.my-service-page .page-head {
  margin-bottom: 18px;
}

.my-service-page .page-head .page-title {
  margin: 0;
}

.my-service-page .my-service-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(420px, 100%);
  margin-bottom: 16px;
}

.my-service-loading,
.my-service-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: #64748b;
  text-align: center;
}

.my-service-list {
  display: grid;
  gap: 14px;
  justify-items: start;
  width: 100%;
}

.my-service-item {
  overflow: hidden;
  width: 100%;
  border: 1px solid #d4dce6;
  border-radius: 18px;
  background: #ffffff;
}

.my-service-item > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e8edf3;
  background: #fafbfc;
}

.my-service-item > header > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.my-service-item h2 {
  margin: 0;
  color: #0f172a;
  font-size: 19px;
  letter-spacing: -0.035em;
}

.my-service-index-up-accent {
  color: transparent;
  background: linear-gradient(100deg, #0b2a55 0%, #1267d6 52%, #08a9d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.my-service-status,
.my-service-auto-renew {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #d4dce6;
  border-radius: 999px;
  background: #f3f4f6;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.my-service-status.active,
.my-service-auto-renew.enabled {
  border-color: #d4dce6;
  background: #f0f9ff;
  color: #0369a1;
}

.my-service-status.upcoming {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.my-service-status.configuration {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.my-service-status.pending {
  border-color: #d4dce6;
  background: #f0f9ff;
  color: #0369a1;
}

.my-service-status.review {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.my-service-status.applied {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #047857;
}

.my-service-status.refunded {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.my-service-renewal-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.my-service-item .my-service-auto-renew {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  line-height: 1;
  text-align: center;
}

.my-service-renewal-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 62px;
  min-width: 62px;
  min-height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #e2e8f0;
  padding: 0 8px 0 29px;
  color: #334155;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.my-service-renewal-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .2);
  transition: transform .18s ease;
}

.my-service-renewal-toggle.enabled {
  justify-content: flex-start;
  border-color: #0284c7;
  background: #0284c7;
  padding: 0 29px 0 8px;
  color: #ffffff;
}

.my-service-renewal-toggle.enabled::before {
  transform: translateX(32px);
}

.my-service-renewal-toggle:hover,
.my-service-renewal-toggle:focus-visible {
  border-color: #38bdf8;
  color: #0369a1;
}

.my-service-renewal-toggle.enabled:hover,
.my-service-renewal-toggle.enabled:focus-visible {
  border-color: #0284c7;
  color: #ffffff;
}

.my-service-renewal-toggle:disabled {
  cursor: wait;
  opacity: .65;
}

.my-service-item dd .my-service-renewal-notice,
.my-service-active-renewal .my-service-renewal-notice {
  min-height: 0;
  margin-top: 6px;
  color: #b91c1c;
}

.my-service-item dd .my-service-renewal-date,
.my-service-item dd .my-service-renewal-progress,
.my-service-active-renewal .my-service-renewal-date,
.my-service-active-renewal .my-service-renewal-progress {
  margin-top: 7px;
  line-height: 1.55;
}

.my-service-item dd .my-service-renewal-progress,
.my-service-active-renewal .my-service-renewal-progress {
  color: #0369a1;
}

.my-service-item dd .my-service-renewal-notice a,
.my-service-active-renewal .my-service-renewal-notice a {
  color: inherit;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.my-service-item dl {
  display: grid;
  grid-template-columns: .85fr 1.4fr 1.35fr .8fr;
  margin: 0;
}

.my-service-item dl > div {
  min-width: 0;
  padding: 18px 20px;
}

.my-service-item dl > div + div {
  border-left: 1px solid #e8edf3;
}

.my-service-item dt {
  margin-bottom: 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.my-service-item dd {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.my-service-item dd strong,
.my-service-item dd span:not(.my-service-auto-renew),
.my-service-item dd small {
  display: block;
}

.my-service-index-up-item dl {
  grid-template-columns: 1.12fr 1.26fr 1.22fr .8fr;
}

.my-service-index-up-item dl > div:first-child {
  padding-inline: 12px;
}

.my-service-item dd span:not(.my-service-auto-renew),
.my-service-item dd small {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.my-service-index-up-item dd.my-service-index-up-target {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 2px;
}

.my-service-index-up-item dd.my-service-index-up-target > strong,
.my-service-index-up-item dd.my-service-index-up-target > span {
  display: inline;
  margin-top: 0;
}

.my-service-entitlement-item.is-current {
  display: grid;
  grid-template-columns: minmax(270px, .95fr) minmax(0, 2fr);
  align-items: stretch;
}

.my-service-entitlement-item.is-current.has-extension {
  grid-template-columns: minmax(270px, .95fr) minmax(0, 2fr) auto;
}

.my-service-entitlement-item.is-current > header {
  min-width: 0;
  justify-content: flex-start;
  padding: 16px 18px;
  border-right: 1px solid #e8edf3;
  border-bottom: 0;
}

.my-service-entitlement-item.is-current > header > div {
  flex: 1 1 auto;
}

.my-service-entitlement-item.is-current h2 {
  font-size: 17px;
  white-space: nowrap;
}

.my-service-current-details {
  display: grid;
  grid-template-columns: minmax(86px, .55fr) minmax(176px, 1.2fr) minmax(246px, 1.45fr);
  min-width: 0;
}

.my-service-current-details > div {
  display: flex;
  min-width: 0;
  min-height: 102px;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
}

.my-service-current-details > div + div {
  border-left: 1px solid #e8edf3;
}

.my-service-active-quantity {
  flex-direction: column;
  gap: 6px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}

.my-service-active-period,
.my-service-active-renewal {
  flex-direction: column;
  gap: 6px;
  color: #0f172a;
  font-size: 13px;
  text-align: center;
}

.my-service-active-period strong {
  font-size: 14px;
  white-space: nowrap;
}

.my-service-active-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.my-service-active-renewal .my-service-renewal-control {
  width: 100%;
  min-height: 30px;
  justify-content: center;
  gap: 10px;
}

.my-service-active-renewal .my-service-renewal-control .my-service-renewal-date {
  display: inline-block;
  max-width: none;
  margin: 0;
  white-space: nowrap;
}

.my-service-active-renewal small {
  display: block;
  max-width: 220px;
  color: #64748b;
  font-size: 11px;
  font-weight: 650;
}

.my-service-active-action {
  display: flex;
  min-width: 154px;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-left: 1px solid #e8edf3;
  background: #fafbfc;
}

.my-service-active-action .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.my-service-request-item {
  border-color: #d4dce6;
  box-shadow: 0 12px 28px rgba(71, 85, 105, .06);
}

.my-service-request-item[data-request-status="review"] {
  border-color: #fed7aa;
}

.my-service-index-up-item[data-request-status="active"] {
  border-color: #d4dce6;
}

.my-service-index-up-item[data-request-status="applied"] {
  border-color: #bbf7d0;
  box-shadow: none;
}

.my-service-load-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 750;
}

@media (min-width: 761px) and (max-width: 1180px) {
  .my-service-entitlement-item.is-current {
    grid-template-columns: minmax(0, 1fr);
  }

  .my-service-entitlement-item.is-current.has-extension {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .my-service-entitlement-item.is-current:not(.has-extension) > header {
    border-right: 0;
  }

  .my-service-current-details {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid #e8edf3;
  }

  .my-service-active-action {
    grid-column: 2;
    grid-row: 1;
  }
}

body.my-services-modal-open {
  overflow: hidden;
}

.my-services-layer {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(15, 23, 42, .56);
  backdrop-filter: blur(4px);
}

.my-services-dialog {
  position: relative;
  width: min(100%, 620px);
  border-radius: 24px;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .28);
}

.my-services-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #dbe4ee;
  border-radius: 50%;
  background: #ffffff;
  color: #475569;
  font-size: 23px;
  cursor: pointer;
}

.my-services-dialog-kicker {
  color: #0284c7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.my-services-dialog h2 {
  margin: 7px 44px 0 0;
  color: #0f172a;
  font-size: 26px;
  letter-spacing: -0.05em;
}

.my-services-dialog > p,
.my-services-extension-dialog > p {
  margin: 9px 0 20px;
  color: #64748b;
  line-height: 1.6;
}

.my-services-expiry-list {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.my-services-expiry-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #dbe4ee;
  border-radius: 13px;
  padding: 13px 15px;
}

.my-services-expiry-list span {
  color: #0369a1;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.my-services-dismiss-check,
.my-services-extension-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.my-services-dismiss-check input,
.my-services-extension-consent input {
  margin-top: 3px;
}

.my-services-dialog-primary {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
}

.my-services-extension-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.my-services-extension-fields label {
  display: grid;
  gap: 7px;
}

.my-services-extension-fields .my-services-renewal-store {
  grid-column: 1 / -1;
}

.my-services-extension-fields label > span {
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

.my-services-extension-fields input,
.my-services-extension-fields select {
  width: 100%;
  height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  padding: 0 13px;
  color: #0f172a;
  font: inherit;
}

.my-services-extension-fields input[readonly] {
  background: #f8fafc;
  color: #475569;
}

.my-services-extension-note {
  margin: 14px 0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px 14px;
  color: #475569;
  font-size: 12px;
  line-height: 1.6;
}

.my-services-extension-summary {
  overflow: hidden;
  margin: 0 0 16px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
}

.my-services-extension-summary > div,
.my-services-extension-complete dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
}

.my-services-extension-summary > div + div,
.my-services-extension-complete dl > div + div {
  border-top: 1px solid #e8edf3;
}

.my-services-extension-summary dt,
.my-services-extension-complete dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.my-services-extension-summary dd,
.my-services-extension-complete dd {
  margin: 0;
  color: #0f172a;
  font-weight: 850;
  text-align: right;
}

.my-services-extension-summary .total {
  background: #f0f9ff;
}

.my-services-extension-summary .total dd {
  color: #0369a1;
  font-size: 19px;
}

.my-services-extension-notice {
  min-height: 22px;
  margin-top: 10px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 750;
}

.my-services-extension-actions {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 10px;
}

.my-services-extension-actions .btn {
  min-height: 48px;
}

.my-services-extension-complete {
  text-align: center;
}

.my-services-extension-complete > span {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 13px;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #047857;
  font-size: 28px;
  font-weight: 900;
}

.my-services-extension-complete h2 {
  margin: 0;
}

.my-services-extension-complete p {
  color: #64748b;
  line-height: 1.6;
}

.my-services-extension-complete dl {
  overflow: hidden;
  margin: 18px 0 0;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  text-align: left;
}

@media (max-width: 760px) {
  .my-service-page .my-service-tabs {
    width: min(420px, 100%);
  }

  .my-service-item > header {
    align-items: flex-start;
  }

  .my-service-item dl {
    grid-template-columns: 1fr;
  }

  .my-service-index-up-item dl {
    grid-template-columns: 1fr;
  }

  .my-service-item dl > div + div {
    border-top: 1px solid #e8edf3;
    border-left: 0;
  }

  .my-service-entitlement-item.is-current,
  .my-service-entitlement-item.is-current.has-extension {
    display: block;
  }

  .my-service-entitlement-item.is-current > header {
    border-right: 0;
    border-bottom: 1px solid #e8edf3;
  }

  .my-service-current-details {
    grid-template-columns: 1fr;
  }

  .my-service-current-details > div {
    min-height: 0;
    padding: 16px 18px;
  }

  .my-service-current-details > div + div {
    border-top: 1px solid #e8edf3;
    border-left: 0;
  }

  .my-service-active-action {
    min-width: 0;
    border-top: 1px solid #e8edf3;
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .my-service-page .my-service-tabs button {
    min-width: 0;
    padding: 10px 8px;
    font-size: 13px;
  }

  .my-service-item > header {
    display: grid;
  }

  .my-service-item > header .btn {
    width: 100%;
  }

  .my-service-entitlement-item.is-current h2 {
    white-space: normal;
  }

  .my-service-active-action .btn {
    width: 100%;
  }

  .my-services-layer {
    align-items: end;
    padding: 0;
  }

  .my-services-dialog {
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
    padding: 24px 18px 20px;
  }

  .my-services-extension-fields {
    grid-template-columns: 1fr;
  }

  .my-services-expiry-list > div {
    display: grid;
  }

  .my-services-expiry-list span {
    text-align: left;
  }
}
