.sp-redesign { background: #0a0029; }
.sp-page { max-width: 525px; margin: 0 auto; padding: 16px 12px 30px; color: #fff; font-size: 15px; line-height: 1.5; }
#main.sp-page { display: block; padding-bottom: 30px; }
.sp-page *, .sp-page *::before { box-sizing: border-box; }
.sp-page [hidden] { display: none !important; }
.sp-page h1 { font-size: 24px; font-weight: 700; line-height: 1.3; margin: 16px 0 10px; }
.sp-page h2 { font-size: 22px; line-height: 1.25; font-weight: 700; margin: 0 0 14px; }
.sp-page h3 { font-size: 17px; font-weight: 700; margin: 22px 0 4px; line-height: 1.4; }
.sp-page p { font-size: inherit; line-height: 1.55; margin: 0; color: #c7c2d4; }
.sp-page a { color: inherit; }
.sp-breadcrumbs { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.sp-breadcrumbs div { min-width: 0; }
.sp-breadcrumbs a:not(.sp-back) { color: #fff; text-decoration: underline; }
.sp-back { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border: 1px solid #352961; border-radius: 14px; background: #1c1730; font-size: 28px; text-decoration: none; }
.sp-page .sp-location { margin: 0 0 16px; }
.sp-location strong { color: white; }
.sp-page .sp-location a { color: #a8ffcf; font-weight: 600; margin-left: 5px; }
.sp-controls { position: sticky; top: 0; z-index: 20; background: #0a0029; padding: 4px 0; }
.sp-filter-row,.sp-sort-row { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; padding-bottom: 8px; }
.sp-sort-row > span { color: #fff; font-size: 13px; }
.sp-chip { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 44px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.04); font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; }
.sp-chip[aria-pressed=true],.sp-chip[aria-current=true] { border-color: rgba(255,255,255,.95); background: rgba(255,255,255,.95); color: #000; }
.sp-page select { width: auto; max-width: none; appearance: auto; }
.sp-page select option { background: #1c1730; color: white; }
.sp-page :focus-visible { outline: 2px solid #a8ffcf; outline-offset: 3px; }
.sp-count { display: flex; justify-content: space-between; gap: 8px; margin: 8px 0; font-size: 12px; color: #fff; }
.sp-page .sp-guarantee { color: #4ade80; background: #1c1730; border: 1px solid #352961; border-radius: 12px; padding: 9px 12px; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.sp-card { background: #1a1433; border: 0; border-radius: 16px; padding: 20px 24px; margin-bottom: 12px; box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.sp-card-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.sp-card h2 { font-size: 20px; line-height: 1.25; margin: 0 0 4px; overflow-wrap: anywhere; }
.sp-price { text-align: right; display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.sp-price del { color: #8a849c; font-size: 15px; font-weight: 500; margin-bottom: 3px; }
.sp-price strong { font-size: 26px; font-weight: 700; }
.sp-price small { font-size: 12px; margin-top: 4px; }
.sp-booking-price { color: #4ade80; font-weight: 600; }
.sp-tags { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0; min-height: 22px; }
.sp-quality,.sp-ad { padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; line-height: 1.2; }
.sp-quality { color: #b7b2c4; background: transparent; padding-right: 0; font-size: 14px; font-weight: 400; }
.sp-ad { display: inline-block; color: #c7c2d4; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; margin-top: 4px; font-size: 11px; font-weight: 500; }
.sp-page .sp-rating { color: #9a94ac; font-size: 15px; }
.sp-rating span { color: #f5b942; margin-right: 5px; }
.sp-rating strong { color: #f5b942; }
.sp-distance { display: flex; align-items: center; gap: 5px; }
.sp-distance svg { width: 14px; height: 16px; flex-shrink: 0; }
.sp-page .sp-hours { color: #9a94ac; font-size: 13px; font-weight: 400; margin-top: 9px; }
.sp-hours[data-status]::before { content: '●'; margin-right: 8px; }
.sp-page .sp-hours.is-open { color: #4ade80; }
.sp-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 9px; font-size: 15px; color: #c7c2d4; }
.sp-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; }
.sp-delivery { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 600; }
.sp-delivery span { color: #7dc4ff; background: #16233a; border: 1px solid #2b4a6b; border-radius: 999px; padding: 5px 9px; }
.sp-delivery span + span { color: #f0a860; background: #2e2313; border-color: #5c3f1f; }
.sp-page .sp-select { min-width: 80px; min-height: 44px; padding: 9px 22px; border-radius: 999px; background: white; color: black; font-weight: 700; text-align: center; text-decoration: none; flex-shrink: 0; }
.sp-more { width: 100%; margin: 8px 0 0; }
.sp-page section { margin-top: 26px; }
.sp-steps { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 0; margin: 0; }
.sp-steps li { background: #1c1730; border: 1px solid #352961; border-radius: 14px; padding: 12px 10px; font-size: 13px; }
.sp-steps b,.sp-steps strong { display: block; }
.sp-steps b { color: #a8ffcf; font-size: 22px; }
.sp-links { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-panel { background: #1c1730; border: 1px solid #352961; border-radius: 16px; padding: 16px; }
.sp-page .sp-panel h2 { font-size: 18px; margin-bottom: 8px; }
.sp-page .sp-footer { text-align: center; margin-top: 24px; font-size: 12px; }
.sp-redesign .footer-desk,.sp-redesign .footer-mob { display: none; }
.sp-skeleton { height: 230px; margin: 12px 0; border-radius: 19px; background: linear-gradient(110deg,#1c1730 30%,#2a2458 50%,#1c1730 70%); }
@media (max-width: 768px) {
    .sp-redesign .header { display: none; }
    .sp-redesign #main.sp-page { padding-top: 12px; }
    .sp-redesign .wrapper { padding-top: 0; }
}
/* Match the existing SP card's compact mobile typography. */
@media (max-width: 480px) {
    .sp-page h1 { font-size: 20px; }
    .sp-page h2 { font-size: 20px; }
    .sp-card { padding: 14px 16px; }
    .sp-card h2 { font-size: 16px; }
    .sp-price strong { font-size: 24px; }
    .sp-price del { font-size: 13px; }
    .sp-price small { font-size: 12px; }
    .sp-page .sp-rating,.sp-page .sp-distance,.sp-facts { font-size: 13px; }
    .sp-quality { font-size: 13px; }
    .sp-chip { font-size: 13px; padding: 6px 10px; }
    .sp-page .sp-select { font-size: 13px; }
}

/* Comparison variant: quieter two-section cards, no provider logos. */
.sp-card { padding: 0; border: 1px solid rgba(255,255,255,.08); box-shadow: none; overflow: hidden; }
.sp-card-top { display: block; padding: 16px 16px 0; }
.sp-card-top > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sp-card h2 { font-size: 16px; margin: 0; }
.sp-ad { flex-shrink: 0; margin: 0; }
.sp-tags { margin: 8px 16px; }
.sp-page .sp-rating { display: inline-block; background: rgba(255,255,255,.06); border-radius: 999px; margin: 0 16px 14px; padding: 4px 9px; font-size: 13px; color: #c7c2d4; }
.sp-card-details { padding: 12px 16px 16px; }
.sp-card-details .sp-hours { margin-top: 0; }
.sp-facts { font-size: 13px; gap: 6px 12px; }
.sp-card-bottom { flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.sp-delivery { width: 100%; gap: 8px; }
.sp-delivery:empty { display: none; }
.sp-delivery span { color: #7dc4ff; background: #16233a; border-color: #2b4a6b; font-weight: 600; }
.sp-delivery span + span { color: #f0a860; background: #2e2313; border-color: #5c3f1f; }
.sp-card-offer { display: flex; align-items: center; justify-content: flex-end; gap: 16px; width: 100%; }
.sp-price strong { font-size: 20px; line-height: 1.2; }
.sp-price del { font-size: 12px; }
.sp-price small { font-size: 12px; font-weight: 400; }
.sp-price .sp-booking-price { color: #4ade80; font-weight: 600; }
.sp-page .sp-select { font-size: 14px; min-width: 82px; }

.sp-warranty { color: #9ad6ff; }
.sp-offer-quality { margin-right: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.sp-quality-caption { color: #9a94ac; font-size: 12px; }
.sp-offer-quality .sp-quality { color: #c7c2d4; padding: 0; font-size: 13px; }
.sp-breadcrumbs, .sp-breadcrumbs a:not(.sp-back), .sp-breadcrumbs strong { color: #9a94ac; font-weight: 400; }
.sp-breadcrumbs a:not(.sp-back) { text-decoration: none; }
.sp-breadcrumbs a:not(.sp-back):hover { text-decoration: underline; color: #c7c2d4; }
@media (max-width: 360px) { .sp-card-offer { gap: 10px; } .sp-page .sp-select { min-width: 68px; padding: 9px 16px; } }

.sp-card-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; min-width: 0; }
.sp-offer-quality { min-width: 0; margin-right: 0; }

/* Consistent gutters and compact comparison controls. */
#main.sp-page { padding-left: 16px; padding-right: 16px; width: 100%; box-sizing: border-box; }
.sp-controls { width: 100%; min-width: 0; }
.sp-filter-row, .sp-sort-row { width: 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; }
.sp-filter-row > *, .sp-sort-row > * { flex: 0 0 auto; }
.sp-sort-row > span { white-space: nowrap; }
.sp-card-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; padding-bottom: 12px; }
.sp-card-top > .sp-provider-name { display: block; min-width: 0; }
.sp-provider-name .sp-ad { margin-top: 6px; }
.sp-card-top .sp-distance { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 13px; line-height: 20px; }
.sp-distance svg { width: 16px; height: 16px; }
.sp-offer-quality .sp-quality { padding: 4px 7px; border-radius: 6px; font-size: 12px; line-height: 1.2; }
.sp-offer-quality .sp-quality-0 { background: #2a2458; color: #d9d4ff; }
.sp-offer-quality .sp-quality-1 { background: #173a5e; color: #8ecbff; }
.sp-offer-quality .sp-quality-2 { background: #3d2f0a; color: #ffd27a; }

/* Paid placement is labelled below the provider name. */
.sp-card--ad { padding-left: 0; }
.sp-card-top > .sp-provider-name { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sp-provider-name h2 { flex: 0 1 auto; min-width: 0; }
.sp-provider-name .sp-ad { position: static; writing-mode: horizontal-tb; transform: none; display: inline-flex; align-items: center; flex: 0 0 auto; margin: 0; padding: 3px 7px; border: 1px solid #69500a; border-radius: 8px; background: #3d2f0a; color: #ffd27a; font-size: 11px; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none; }
/* Compact visible button; the link keeps a 44px-high touch target. */
.sp-page .sp-select { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; min-width: 60px; min-height: 44px; padding: 0 12px; background: transparent; font-size: 13px; }
.sp-page .sp-select::before { content: ''; position: absolute; inset: 5px 0; border-radius: 999px; background: #fff; z-index: -1; }
.sp-page .sp-select:hover::before { background: #e8e8e8; }
.sp-card-offer { gap: 8px; }

.sp-count { color: #9a94ac; }

/* Follow-up review: neutral comparison details and explicit external navigation. */
.sp-card--ad { position: relative; margin-top: 20px; overflow: visible; }
.sp-provider-name .sp-ad { position: absolute; top: -10px; left: 16px; background: #353041; border-color: #615a70; color: #e1dce9; border-radius: 999px; }
.sp-page .sp-rating { display: flex; align-items: center; gap: 6px; background: transparent; border-radius: 0; padding: 0; font-size: 15px; }
.sp-rating .spc-star, .sp-rating strong { color: #f5b942; }
.sp-rating .spc-star { display: inline-flex; align-items: center; font-size: 15px; }
.sp-page .sp-hours:not(.is-open) { color: #9a94ac; }
.sp-delivery span, .sp-delivery span + span { background: #353041; border-color: #494253; color: #d4cedf; }
.sp-offer-quality .sp-quality { background: #2a2458; color: #d9d4ff; }
.sp-page .sp-location a { color: #c7c2d4; font-weight: 500; margin-left: 0; }
.sp-back { min-width: 32px; height: 32px; border: 0; border-radius: 8px; font-size: 14px; }
@media (max-width: 360px) { .sp-card-offer:has([data-forward="1"]) { grid-template-columns: minmax(0, 1fr) auto; } .sp-card-offer [data-forward="1"] { grid-column: 2; } }

/* Match the preceding repair page navigation. */
.sp-breadcrumbs { font-size: 15px; gap: 12px; }
.sp-breadcrumbs .sp-back { background: transparent; border: 0; color: #b366ff; border-radius: 0; font-size: 20px; min-width: 32px; height: 44px; }
.sp-breadcrumbs a:not(.sp-back) { color: #b5afc7; }
.sp-breadcrumbs strong { color: #fff; font-weight: 700; }
.sp-breadcrumbs div > span { padding: 0 4px; color: #b5afc7; }
.sp-page .sp-location a span { color: #f0a860; }
.sp-page .sp-location a:hover { text-decoration: underline; }

/* Delivery gets its own full-width row below the provider rating. */
.sp-card > .sp-delivery { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; width: auto; margin: 0 16px 14px; gap: 8px; }
.sp-card > .sp-delivery span { white-space: nowrap; }
.sp-card > .sp-delivery:empty { display: none; }
.sp-card-bottom { margin-top: 12px; }

/* Delivery labels use the same visual treatment as quality labels. */
.sp-card > .sp-delivery span,
.sp-card > .sp-delivery span + span {
    padding: 4px 7px;
    border: 0;
    border-radius: 6px;
    background: #2a2458;
    color: #d9d4ff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}

/* White delivery labels with simple monochrome icons. */
.sp-card > .sp-delivery span,
.sp-card > .sp-delivery span + span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #1c1730;
}
.sp-card > .sp-delivery i { font-size: 12px; line-height: 1; }

/* Softer delivery labels keep the white booking action prominent. */
.sp-card > .sp-delivery span,
.sp-card > .sp-delivery span + span { background: #e3ddec; color: #292136; }
.sp-card-details .sp-card-bottom { margin-top: 6px; }

/* Provider warranty is a quiet comparison detail, without the booking bonus. */
.sp-facts .sp-provider-warranty { color: #9a94ac; display: inline-flex; align-items: center; gap: 5px; }

/* V3 quality indicators: plain labels and tier dashes. */
.sp-offer-quality .sp-quality { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #b7b0d6; font-size: 13px; font-weight: 400; }
.sp-quality-dashes { display: inline-flex; gap: 3px; }
.sp-quality-dashes i { display: block; width: 10px; height: 5px; border-radius: 3px; background: #8f88b3; }

/* V3 comparison hierarchy and grouped controls. */
.sp-page .sp-rating { font-size: 14px; line-height: 1.4; }
.sp-rating .spc-star, .sp-rating .spc-star i { font-size: 14px; }
.sp-card > .sp-delivery { justify-content: flex-start; gap: 6px; }
.sp-card > .sp-delivery span, .sp-card > .sp-delivery span + span { min-height: 28px; padding: 0 10px; border-radius: 8px; background: rgba(255,255,255,.08); color: #e4e0f5; font-size: 13px; font-weight: 500; }
.sp-card-details .sp-card-bottom { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.10); }
.sp-controls .sp-filter-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 4px; border-radius: 999px; background: #1c1730; box-sizing: border-box; overflow: visible; }
.sp-controls .sp-filter-row .sp-chip { min-height: 44px; padding: 0 8px; border: 0; font-size: 15px; }
.sp-grouped-dropdowns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.sp-grouped-dropdowns > select, .sp-sort-menu summary { width: 100%; min-height: 44px; box-sizing: border-box; padding: 0 12px; border: 1px solid #393149; border-radius: 14px; background: transparent; color: #fff; font-size: 14px; }
.sp-sort-menu { position: relative; min-width: 0; }
.sp-sort-menu summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.sp-sort-menu summary::-webkit-details-marker { display: none; }
.sp-sort-menu summary::after { content: '⌄'; margin-left: 6px; }
.sp-sort-menu .sp-sort-row { position: absolute; top: 100%; right: 0; width: max-content; min-width: 100%; z-index: 10; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px; border: 1px solid #393149; border-radius: 14px; background: #1c1730; overflow: visible; }
.sp-sort-menu .sp-sort-row .sp-chip { font-size: 14px; min-height: 44px; display: flex; align-items: center; }
/* Compact controls with comfortable tap targets. */
.sp-controls .sp-filter-row { padding: 2px; gap: 3px; margin-bottom: 0; }
.sp-controls .sp-filter-row .sp-chip { min-height: 40px; font-size: 13px; font-weight: 600; }
.sp-grouped-dropdowns { margin-top: 6px; gap: 6px; }
.sp-grouped-dropdowns > select, .sp-sort-menu summary { min-height: 44px; padding: 0 10px; font-size: 13px; border-radius: 12px; }
.sp-page .sp-booking-note { margin: 0 0 16px; color: #9a94ac; font-size: 12px; line-height: 1.5; }
/* Keep the count and booking-price explanation together. */
.sp-page .sp-count { margin-bottom: 0; }
.sp-page .sp-booking-note { margin-top: 0; }

/* Compact card rhythm without stacking paragraph and section margins. */
.sp-page .sp-rating { margin-bottom: 8px; }
.sp-card > .sp-delivery { margin-bottom: 0; }
.sp-card-details { padding-top: 8px; padding-bottom: 12px; }
.sp-page .sp-card-details .sp-hours { margin: 0; line-height: 1.4; }
.sp-card-details .sp-facts { margin-top: 5px; line-height: 1.4; }
.sp-card-details .sp-card-bottom { margin-top: 10px; padding-top: 8px; }