/* Responsive service layout, using the same page widths and breakpoints as cashback. */
.sp-carousel-controls { display: none; }
.sp-section-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
@media (min-width: 768px) {
  :root { --sp-page-width: 1280px; }
  html { scrollbar-gutter: stable; }
  .sp-shell { padding: 24px clamp(24px, 3.125vw, 40px) 48px; }
  .sp-shell > *, .sp-hero-copy, .sp-hero-scene { min-width: 0; }
  .sp-hero-scene { max-width: 500px; margin-inline: auto; }
  .sp-hero-copy { margin-top: 24px; }
  .sp-hero-title { font-size: 2.25rem; line-height: 1.7; }
  .sp-hero-description { font-size: 1rem; max-width: 480px; }
  .sp-global-search { max-width: 480px; margin: 24px auto 0; }
  .sp-global-search-open { min-height: 56px; font-size: .875rem; padding: 14px 18px; }
  .sp-categories, .sp-offers, .sp-stores, .sp-subscriptions,
  .sp-merchant-banners, .sp-category-banners, .sp-category-puzzle { margin-top: 56px; }
  .sp-section-title, .sp-offers-heading .sp-section-title, .sp-stores-heading .sp-section-title,
  .sp-subscriptions-heading .sp-section-title { font-size: 1.25rem; line-height: 1.8; }
  .sp-offers-heading, .sp-stores-heading, .sp-subscriptions-heading { min-height: 48px; margin-bottom: 20px; }
  .sp-offers-all, .sp-stores-all, .sp-subscriptions-toggle { font-size: .8125rem; }
  .sp-category-rows { gap: 16px; }
  .sp-category-row .sp-category-slide { width: 112px; height: 148px; }
  .sp-category__item { min-height: 142px; gap: 12px; }
  .sp-category__image { width: 88px; height: 88px; border-radius: 24px; }
  .sp-category-row:not(.swiper-initialized) > .swiper-wrapper { gap: 16px; }
  .sp-carousel-controls { display: flex; align-items: center; gap: 8px; }
  .sp-carousel-controls button { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px;
    padding: 0; border: 1px solid #dce8f4; border-radius: 50%; background: white; color: #006bbe; }
  .sp-carousel-controls button:disabled { opacity: .35; cursor: default; }
  .sp-carousel-controls button:not(:disabled):hover { background: #eef7ff; }
  .sp-carousel-controls svg { width: 20px; height: 20px; }
  .sp-offers-swiper .sp-offer-slide { width: calc((100% - 32px) / 3); }
  .sp-stores-swiper .sp-store-slide { width: calc((100% - 16px) / 2); max-width: none; }
  .sp-offers-swiper:not(.swiper-initialized) > .swiper-wrapper,
  .sp-stores-swiper:not(.swiper-initialized) > .swiper-wrapper { gap: 16px; }
  .sp-offer-title { font-size: .8125rem; }
  .sp-offer-body { padding: 14px; }
  .sp-store-card { height: 108px; padding: 10px; gap: 12px; border-radius: 20px; }
  .sp-store-cover { flex-basis: 86px; width: 86px; height: 86px; border-radius: 14px; }
  .sp-store-name { font-size: .875rem; }
  .sp-banner-frame { max-width: 800px; margin-inline: auto; border-radius: 20px; }
  .sp-banner-link, .sp-banner-link img { border-radius: 20px; }
  .sp-category-banners { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .sp-category-banner { border-radius: 18px; }
  .sp-subscriptions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .sp-subscriptions-grid .sp-subscription-card { height: 132px; border-radius: 18px; }
  .sp-subscription-logo { width: 44px; height: 44px; }
  .sp-subscriptions-grid .sp-subscription-name { font-size: .875rem; }
  .sp-subscriptions-grid .sp-subscription-description { font-size: .75rem; }
  .sp-category-puzzle { grid-template-columns: 1fr 1fr 2.1fr; gap: 20px; }
  .sp-category-puzzle .sp-category-banner--wide { grid-column: auto; }
  .sp-merchant-panel { --sp-dialog-height: min(900px, calc(var(--sp-panel-height, 100dvh) - 48px));
    top: calc(var(--sp-panel-top, 0px) + (var(--sp-panel-height, 100dvh) - var(--sp-dialog-height)) / 2);
    inset-inline: 0; width: calc(100% - 48px); max-width: 1104px;
    height: var(--sp-dialog-height); max-height: var(--sp-dialog-height); margin: 0 auto;
    border: 1px solid #e2e5ed; border-radius: 28px; padding: 0; box-shadow: 0 24px 90px #20243738; }
  .sp-panel-header { min-height: 76px; padding: 12px 24px; border-bottom: 1px solid #edf0f5; }
  .sp-panel-header h2 { font-size: 1.125rem; }
  .sp-merchant-tools { padding: 16px 24px; }
  .sp-merchant-tools .sp-search-field { max-width: 560px; }
  .sp-merchant-scroll { padding: 4px 24px 24px; }
  .sp-merchant-grid, .sp-offers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .sp-stores-grid, .sp-global-search-results, .sp-subscriptions-all { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .sp-global-search-form { margin-bottom: 20px; }
  .sp-global-search-form .sp-search-field { max-width: 560px; }
  .sp-search-result { min-height: 96px; padding: 16px; }
  .sp-search-result-name { font-size: .875rem; }
  .sp-detail-hero { height: 300px; border-radius: 20px; }
  .sp-merchant-profile { margin: 0 0 28px; }
  .sp-detail-summary { max-width: 640px; margin-inline: auto; }
  .sp-branch, .sp-branch-link, .sp-branch-heading { max-width: 720px; margin-inline: auto; }
  .sp-branch-link { display: flex; }
}
@media (min-width: 1024px) {
  /* Desktop keeps every banner visible; the middle in-store group has four columns. */
  .sp-merchant-banners { --sp-banner-columns: 3; }
  #instore-banners { --sp-banner-columns: 4; }
  .sp-merchant-banners .sp-banner-frame { max-width: none; aspect-ratio: auto; min-height: 80px; background: transparent; }
  .sp-merchant-banners .sp-banner-frame > .sp-banner-swiper {
    position: relative; inset: auto; height: auto; overflow: visible; scroll-snap-type: none;
  }
  .sp-merchant-banners .sp-banner-swiper > .swiper-wrapper {
    display: grid; grid-template-columns: repeat(var(--sp-banner-columns), minmax(0, 1fr)); gap: 20px;
    height: auto; transform: none !important;
  }
  .sp-merchant-banners .sp-banner-slide {
    width: 100% !important; min-width: 0; height: auto; margin: 0 !important;
    aspect-ratio: 1367 / 600; scroll-snap-align: none;
  }
  .sp-merchant-banners .sp-banner-pagination { display: none !important; }
  .sp-category-banners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-areas: 'copy scene'; align-items: center; gap: 48px; text-align: right; }
  .sp-hero-scene { grid-area: scene; width: 100%; max-width: 560px; }
  .sp-hero-copy { grid-area: copy; margin: 0; }
  .sp-hero-title { font-size: 2.5rem; }
  .sp-hero-description { margin: 16px 0 0; font-size: 1.125rem; }
  .sp-global-search { margin: 28px 0 0; }
  .sp-category-row .sp-category-slide { width: 120px; height: 160px; }
  .sp-category__image { width: 96px; height: 96px; }
  .sp-category-row:not(.swiper-initialized) > .swiper-wrapper { gap: 20px; }
  .sp-offers-swiper .sp-offer-slide { width: calc((100% - 60px) / 4); }
  .sp-stores-swiper .sp-store-slide { width: calc((100% - 40px) / 3); }
  .sp-offers-swiper:not(.swiper-initialized) > .swiper-wrapper,
  .sp-stores-swiper:not(.swiper-initialized) > .swiper-wrapper { gap: 20px; }
  .sp-subscriptions-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sp-merchant-grid, .sp-offers-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sp-stores-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .sp-hero { gap: 64px; }
  .sp-hero-title { font-size: 2.75rem; }
  .sp-offers-swiper .sp-offer-slide { width: calc((100% - 80px) / 5); }
  .sp-stores-swiper .sp-store-slide { width: calc((100% - 60px) / 4); }
}
