.svc,
  .svc-modal {
    --svc-blue: #008efa;
    --svc-blue-hover: #007fdc;
    --svc-text: #252a3b;
    --svc-muted: #747b8c;
    --svc-border: #e1e4ed;
    --svc-soft: #f3f5fb;
    --svc-soft-blue: #eef7ff;
    --svc-white: #ffffff;
    --svc-radius: 16px;
    --svc-shadow: 0 18px 55px rgba(27, 38, 66, 0.18);
    box-sizing: border-box;
  }

  .svc *,
  .svc *::before,
  .svc *::after,
  .svc-modal *,
  .svc-modal *::before,
  .svc-modal *::after {
    box-sizing: border-box;
  }

  .svc {
    width: 100%;
    color: var(--svc-text);
  }

  .svc button,
  .svc input,
  .svc-modal button,
  .svc-modal a,
  .svc-modal code {
    font: inherit;
    font-family: inherit !important;
  }

  .svc__toolbar {
    display: grid;
    gap: 13px;
    margin-bottom: 16px;
  }

  .svc__search {
    position: relative;
    width: min(350px, 100%);
    margin-inline: auto;
  }

  .svc__search svg {
    position: absolute;
    top: 50%;
    inset-inline-start: 14px;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    fill: none;
    stroke: #8c92a1;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
  }

  .svc__search input {
    width: 100%;
    height: 42px;
    padding: 0 40px 0 14px;
    border: 1px solid var(--svc-border);
    border-radius: 13px;
    background: var(--svc-white);
    color: var(--svc-text);
    font-size: 12.5px;
    font-weight: 400;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
  }

  .svc__search input::placeholder {
    color: #989eac;
  }

  .svc__search input:focus {
    border-color: rgba(0, 142, 250, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 142, 250, 0.08);
  }

  .svc__tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    overflow-x: auto;
    padding: 1px 0 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .svc__tabs::-webkit-scrollbar {
    display: none;
  }

  .svc__tab {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 5px 14px;
    border: 1px solid var(--svc-border) !important;
    border-radius: 999px;
    background: var(--svc-white) !important;
    color: #626979 !important;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
    box-shadow: none !important;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
  }

  @media (hover: hover) {
    .svc__tab:hover {
      border-color: #c8e4f8 !important;
      background: #f8fbfe !important;
      color: var(--svc-blue) !important;
    }
  }

  .svc__tab[aria-selected="true"],
  .svc__tab[aria-selected="true"]:hover {
    border-color: var(--svc-blue) !important;
    background: var(--svc-blue) !important;
    color: var(--svc-white) !important;
  }

  .svc__status {
    min-height: 130px;
  }

  .svc__status-message {
    display: grid;
    place-items: center;
    min-height: 130px;
    padding: 18px;
    border: 1px dashed var(--svc-border);
    border-radius: var(--svc-radius);
    color: var(--svc-muted);
    text-align: center;
    font-size: 12.5px;
    line-height: 1.8;
  }

  .svc__skeleton-grid,
  .svc__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .svc__skeleton-grid span {
    width: 100%;
    min-height: 116px;
    aspect-ratio: 550 / 194;
    border: 1px solid #eceef4;
    border-radius: var(--svc-radius);
    background: linear-gradient(100deg, #f5f6f8 20%, #fbfbfc 38%, #f5f6f8 56%);
    background-size: 220% 100%;
    animation: svc-loading 1.25s linear infinite;
  }

  @keyframes svc-loading {
    to { background-position-x: -220%; }
  }

  .svc__panel[hidden] {
    display: none;
  }

  .svc .svc-card,
  .svc .svc-card:hover,
  .svc .svc-card:focus,
  .svc .svc-card:active {
    position: relative;
    display: block !important;
    width: 100% !important;
    min-width: 0;
    min-height: 116px;
    max-height: 138px;
    aspect-ratio: 550 / 194;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--svc-border);
    border-radius: var(--svc-radius) !important;
    background: var(--svc-white) !important;
    color: var(--svc-text) !important;
    text-align: start !important;
    cursor: pointer;
    appearance: none;
    box-shadow: none;
    transform: none !important;
    transition: border-color 160ms ease, box-shadow 160ms ease;
  }

  @media (hover: hover) {
    .svc .svc-card:hover {
      border-color: #b9dcf5 !important;
      background: var(--svc-white) !important;
      box-shadow: 0 5px 16px rgba(0, 142, 250, 0.07);
    }

    .svc .svc-card:hover .svc-card__offer {
      background: #f5f8fd !important;
    }

    .svc .svc-card:hover .svc-card__cta {
      background: var(--svc-blue-hover) !important;
    }
  }

  .svc-card:focus-visible {
    outline: 3px solid rgba(0, 142, 250, 0.16);
    outline-offset: 2px;
  }

  .svc .svc-card__head {
    position: absolute !important;
    top: 6px !important;
    right: 10px !important;
    left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: calc(100% - 20px) !important;
    min-width: 0;
    min-height: 42px;
    margin: 0 !important;
    padding: 0 !important;
  }

  .svc .svc-card__merchant {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    gap: 8px;
  }

  .svc-card__logo-wrap {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent !important;
  }

  .svc-card__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    object-fit: contain;
    object-position: center;
  }

  .svc-card__logo-fallback,
  .svc-modal__logo-fallback {
    display: none;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: var(--svc-soft-blue);
    color: var(--svc-blue);
    font-size: 11px;
    font-weight: 600;
  }

  .svc-card__merchant-text {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .svc-card__merchant-name {
    overflow: hidden;
    margin: 0 !important;
    color: var(--svc-text);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .svc-card__tags {
    overflow: hidden;
    color: var(--svc-muted);
    font-size: 9.5px;
    font-weight: 400;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .svc .svc-card__offer {
    position: absolute !important;
    right: 10px !important;
    left: 10px !important;
    bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    min-height: 48px;
    margin: 0 !important;
    padding: 7px 9px 7px 8px !important;
    border-radius: 12px;
    background: var(--svc-soft) !important;
    gap: 8px;
    transition: background-color 160ms ease;
  }

  .svc-card__offer-text {
    display: grid;
    min-width: 0;
    gap: 2px;
    align-content: center;
  }

  .svc-card__discount {
    overflow: hidden;
    color: #292e3e;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .svc-card__condition {
    display: block;
    overflow: hidden;
    color: #707687;
    font-size: 9.25px;
    font-weight: 400;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .svc-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 78px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--svc-blue) !important;
    color: var(--svc-white) !important;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 160ms ease;
  }

  .svc__more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 17px;
  }

  .svc__more {
    min-width: 138px;
    min-height: 38px;
    padding: 7px 18px;
    border: 1px solid var(--svc-border) !important;
    border-radius: 999px;
    background: var(--svc-white) !important;
    color: #535a6b !important;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none !important;
    transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
  }

  @media (hover: hover) {
    .svc__more:hover {
      border-color: #c8e4f8 !important;
      background: #f8fbfe !important;
      color: var(--svc-blue) !important;
    }
  }

  .svc-modal[hidden] {
    display: none;
  }

  .svc-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 18px;
  }

  .svc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(29, 34, 48, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .svc-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(540px, 100%);
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    padding: 25px 30px 28px;
    border: 1px solid rgba(226, 229, 237, 0.96);
    border-radius: 22px;
    background: var(--svc-white);
    box-shadow: var(--svc-shadow);
    color: var(--svc-text);
    text-align: center;
    overscroll-behavior: contain;
  }

  .svc-modal__dialog:focus {
    outline: none;
  }

  .svc-modal__close,
  .svc-modal__close:hover,
  .svc-modal__close:focus,
  .svc-modal__close:active {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    color: #707684 !important;
    cursor: pointer;
    box-shadow: none !important;
  }

  @media (hover: hover) {
    .svc-modal__close:hover {
      background: #f5f7fa !important;
      color: #2b3040 !important;
    }
  }

  .svc-modal__close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
  }

  .svc-modal__brand {
    display: grid;
    justify-items: center;
    gap: 5px;
    margin: 18px 0 17px;
  }

  .svc-modal__logo-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent !important;
  }

  .svc-modal__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    object-fit: contain;
    object-position: center;
  }

  .svc-modal__merchant {
    color: #2c3243;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
  }

  .svc-modal__tags {
    color: var(--svc-muted);
    font-size: 10px;
    font-weight: 400;
  }

  .svc-modal__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--svc-soft-blue);
    color: var(--svc-blue);
    font-size: 9.75px;
    font-weight: 500;
  }

  .svc-modal__title {
    margin: 13px 0 5px;
    color: #272c3c;
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: -0.15px;
  }

  .svc-modal__condition {
    margin: 0 auto;
    color: #676e7e;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.75;
  }

  .svc-modal__code-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(400px, 100%);
    min-height: 54px;
    margin: 21px auto 15px;
    overflow: hidden;
    border: 1px solid var(--svc-border);
    border-radius: 15px;
    background: var(--svc-white);
  }

  .svc-modal__code {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 9px 15px;
    overflow: hidden;
    color: var(--svc-blue);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.1px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .svc-modal__copy,
  .svc-modal__copy:hover,
  .svc-modal__copy:focus,
  .svc-modal__copy:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 110px;
    padding: 8px 13px;
    border: 0 !important;
    border-inline-start: 1px solid var(--svc-border) !important;
    background: var(--svc-soft) !important;
    color: #474d5d !important;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none !important;
    transition: background-color 150ms ease, color 150ms ease;
  }

  @media (hover: hover) {
    .svc-modal__copy:hover {
      background: #eef2f8 !important;
    }
  }

  .svc-modal__copy.is-copied,
  .svc-modal__copy.is-copied:hover {
    background: #ecf8f2 !important;
    color: #168458 !important;
  }

  .svc-modal__copy svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .svc-modal__cta,
  .svc-modal__cta:hover,
  .svc-modal__cta:focus,
  .svc-modal__cta:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 215px;
    min-height: 44px;
    padding: 9px 21px;
    border: 0 !important;
    border-radius: 999px;
    background: var(--svc-blue) !important;
    color: var(--svc-white) !important;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 150ms ease;
  }

  @media (hover: hover) {
    .svc-modal__cta:hover {
      background: var(--svc-blue-hover) !important;
    }
  }

  .svc-modal__cta svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  @media (max-width: 900px) {
    .svc__skeleton-grid,
    .svc__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .svc__tabs {
      justify-content: flex-start;
    }
  }

  @media (max-width: 600px) {
    .svc__toolbar {
      gap: 11px;
      margin-bottom: 14px;
    }

    .svc__search {
      width: 100%;
    }

    .svc__tabs {
      margin-inline: -4px;
      padding-inline: 4px;
    }

    .svc__tab {
      min-height: 33px;
      padding: 5px 12px;
      font-size: 10.75px;
    }

    .svc__skeleton-grid,
    .svc__grid {
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .svc .svc-card,
    .svc .svc-card:hover,
    .svc .svc-card:focus,
    .svc .svc-card:active {
      min-height: 118px;
      max-height: 134px;
      padding: 0 !important;
      border-radius: 15px !important;
    }

    .svc-card__logo-wrap {
      flex-basis: 42px;
      width: 42px;
      height: 42px;
    }

    .svc .svc-card__offer {
      right: 10px !important;
      left: 10px !important;
      min-height: 48px;
      padding: 7px 8px !important;
    }

    .svc-modal {
      align-items: end;
      padding: 0;
    }

    .svc-modal__dialog {
      width: 100%;
      max-height: 92dvh;
      padding: 23px 19px 25px;
      border-radius: 22px 22px 0 0;
    }

    .svc-modal__brand {
      margin: 18px 0 15px;
    }

    .svc-modal__logo-wrap {
      width: 78px;
      height: 78px;
    }

    .svc-modal__title {
      font-size: 18px;
    }

    .svc-modal__condition {
      font-size: 12px;
    }

    .svc-modal__code-box {
      min-height: 52px;
      margin-top: 19px;
    }

    .svc-modal__code {
      padding-inline: 10px;
      font-size: 16px;
    }

    .svc-modal__copy,
    .svc-modal__copy:hover,
    .svc-modal__copy:focus,
    .svc-modal__copy:active {
      min-width: 101px;
      padding-inline: 10px;
      font-size: 11px;
    }

    .svc-modal__cta,
    .svc-modal__cta:hover,
    .svc-modal__cta:focus,
    .svc-modal__cta:active {
      min-width: 205px;
      min-height: 43px;
      font-size: 12px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .svc *,
    .svc-modal * {
      scroll-behavior: auto !important;
      animation: none !important;
      transition: none !important;
    }
  }

/* PHP-rendered semantic card adaptations */
.svc .svc-card {
  container-type: inline-size;
}

.svc-card__merchant-name {
  margin: 0;
}

.svc-card__hitarea {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0 !important;
  border-radius: inherit;
  background: transparent !important;
  cursor: pointer;
  box-shadow: none !important;
}

.svc-card__hitarea:focus-visible {
  outline: 3px solid rgba(0, 142, 250, 0.18);
  outline-offset: -3px;
}

.svc-card__noscript {
  position: relative;
  z-index: 4;
}

.svc__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.svc__status[hidden],
.svc__more-wrap[hidden] {
  display: none !important;
}

.svc.is-loading .svc__grid {
  opacity: .45;
  pointer-events: none;
}

.svc.is-loading .svc__more {
  pointer-events: none;
  opacity: .65;
}

@media (min-width: 901px) and (max-width: 1199px) {
  .svc__skeleton-grid,
  .svc__grid {
    grid-template-columns: repeat(var(--svc-cols-laptop, 3), minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .svc__skeleton-grid,
  .svc__grid {
    grid-template-columns: repeat(var(--svc-cols-desktop, 4), minmax(0, 1fr));
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .svc__skeleton-grid,
  .svc__grid {
    grid-template-columns: repeat(var(--svc-cols-tablet, 2), minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .svc__skeleton-grid,
  .svc__grid {
    grid-template-columns: repeat(var(--svc-cols-mobile, 1), minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .svc.is-js .svc-card--mobile-hidden {
    display: none !important;
  }
}
