/* Device / services page (fix_device_services.html). Selectors are anchored on #fds-page / #fds-modal
   to outrank fix_device_services.css and Pico. Bump ?v= in the template when editing. */
/* ══════════════════════════════════════════════════════════════
   Device-services page — visual layer matching the brand page.
   Selectors are anchored on #fds-page to outrank fix_device_services.css.
   ══════════════════════════════════════════════════════════════ */
#fds-page.container {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 24px 48px !important;
    overflow-x: clip;
}
#fds-page, #fds-page p, #fds-page li { color: #0f172a; }

/* ── Page title → compact eyebrow above the device hero ── */
#fds-page .page-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #64748b !important;
    text-align: left !important;
    margin: 28px 0 10px !important;
    line-height: 1.4 !important;
}

/* ── Device hero ── */
#fds-page .device-info {
    background: linear-gradient(110deg, #fff 0%, #f5f8fb 100%);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px 28px !important;
    margin: 0 0 36px !important;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}
#fds-page .fds-crumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0071e3;
    text-decoration: none;
    margin-bottom: 14px;
}
#fds-page .fds-crumb:hover { text-decoration: underline; }
#fds-page .device-details-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 28px !important;
}
#fds-page .device-image {
    flex: 0 0 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
#fds-page .device-image img {
    max-width: 120px;
    max-height: 130px;
    object-fit: contain;
}
#fds-page .device-image.is-empty { display: none; }
#fds-page .device-details { flex: 1; min-width: 0; }
#fds-page .device-details h2 {
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 4px !important;
    line-height: 1.15 !important;
}
#fds-page .device-details > p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px;
}
#fds-page .device-details > p strong { font-weight: 500; }
#fds-page .device-specs {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
#fds-page .device-specs li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #334155;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 5px 11px;
    margin: 0 !important;
}
#fds-page .device-specs li i { color: #0071e3; font-size: 11px; }

/* ── Step headers ── */
#fds-page .steps-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 36px 0 16px;
}
#fds-page .step .step-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    margin: 0 0 18px !important;
    background: none !important;
}
#fds-page .step .step-header .step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 15px !important;
    flex-shrink: 0;
}
#fds-page .step.active .step-header .step-icon { background: #0071e3; color: #fff; }
#fds-page .step.done .step-header .step-icon { background: #16a34a; color: #fff; }
#fds-page .step .step-header .step-image { color: #94a3b8; font-size: 18px !important; }
#fds-page .step .step-header .step-text,
#fds-page .step .step-header .step-text h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    cursor: pointer;
}

/* ── Services grid ── */
#fds-page .services-section { margin: 0 0 8px !important; padding-top: 0 !important; }
#fds-page .services-section .steps-section { padding: 0 !important; margin: 0 !important; }
#fds-page .step { margin: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; border: none !important; }
#fds-page .steps-section > .step { margin: 0 0 28px !important; }
#fds-page .services-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 14px !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
}
#fds-page .services-list .service-item {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    display: flex;
    flex-direction: column;
}
#fds-page .services-list .service-item:hover {
    border-color: #0071e3 !important;
    box-shadow: 0 6px 18px rgba(0, 113, 227, 0.10) !important;
    transform: translateY(-2px);
    background: #fff !important;
}
#fds-page .services-list .service-item.selected {
    border-color: #0071e3 !important;
    background: #f0f7ff !important;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12) !important;
}
#fds-page .services-list .service-item.selected .service-left::before { content: none !important; }
#fds-page .services-list .service-item.selected::after {
    content: '✓';
    position: absolute;
    top: 12px; right: 12px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #0071e3;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
#fds-page .services-list .service-item .service-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px;
    padding: 18px 18px 16px !important;
    flex: 1;
}
#fds-page .service-left {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding-right: 28px;
}
#fds-page .service-image {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0 !important;
}
#fds-page .service-text { min-width: 0; }
#fds-page .service-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 4px !important;
    line-height: 1.3 !important;
}
#fds-page .service-desc {
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    text-align: left !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#fds-page .service-text > p { margin: 6px 0 0 !important; }
#fds-page .service-text .service-detail-description {
    font-size: 12px !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.45 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#fds-page .service-right {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    text-align: left !important;
    min-width: 0 !important;
}
#fds-page .service-price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0071e3 !important;
    padding: 0 !important;
    display: block !important;
    text-align: left !important;
}
#fds-page .service-price .fds-price-val { font-size: 18px; font-weight: 800; color: #0071e3; }
/* updatePrices() rewrites the node as "<s>old</s> new CHF" when a bundle discount applies */
#fds-page .service-price s {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    margin-right: 6px !important;
}
#fds-page .fds-chosen {
    font-size: 12px;
    color: #475569;
    display: none;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
#fds-page .fds-chosen span {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px;
}
#fds-page .service-item.selected .fds-chosen { display: inline-flex; }
/* ── part summary on the card: what part goes in, its grade and warranty — visible before any click ── */
#fds-page .fds-part { display: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px dashed #e2e8f0; font-size: 12px; color: #475569; text-align: left; }
#fds-page .service-item.selected .fds-part { display: block; }
#fds-page .fds-part__head { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
#fds-page .fds-part__head b { font-size: 13px; color: #0f172a; }
#fds-page .fds-part__one { margin: 3px 0 6px; line-height: 1.45; color: #475569; }
#fds-page .fds-part .fds-chips { gap: 4px; }
#fds-page .fds-part .fds-chip { font-size: 10.5px; padding: 2px 7px; }
#fds-page .fds-part__more { margin-top: 6px; display: flex; align-items: center; gap: 8px; color: #64748b; }
#fds-page .fds-part__more .fds-change { font-size: 12px !important; }
#fds-page .fds-change {
    background: none !important; border: none !important; padding: 0 !important; margin: 0 !important;
    width: auto !important; box-shadow: none !important;
    font-size: 12px !important; font-weight: 600; color: #0071e3 !important; cursor: pointer;
    text-decoration: underline; text-underline-offset: 2px; white-space: nowrap;
}
#fds-modal .fds-modal__close { width: 34px !important; margin: 0 !important; padding: 0 !important; }
/* the inline options list never renders inside the card — it opens in the modal */
#fds-page .service-item .service-details { display: none !important; }

/* ── Continue CTA ── */
#fds-page .fds-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 14px; }
#fds-page .fds-continue { max-width: 420px; margin: 0 0 0 auto; text-align: right; flex: 0 0 auto; }
#fds-page .fds-continue__btn {
    display: inline-flex !important; align-items: center; gap: 10px; width: auto !important;
    background: #0071e3 !important; color: #fff !important; border: none !important; border-radius: 999px !important;
    padding: 14px 30px !important; font-size: 16px !important; font-weight: 700 !important; cursor: pointer; margin: 0 !important;
    transition: background .15s, transform .15s, box-shadow .15s;
}
#fds-page .fds-continue__btn:hover:not(:disabled) { background: #0062c4 !important; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,113,227,.3); }
#fds-page .fds-continue__btn:disabled { background: #cbd5e1 !important; cursor: not-allowed; }
#fds-page .fds-continue__hint { font-size: 12px; color: #94a3b8; margin: 8px 0 0; }
#fds-page .fds-continue__hint[hidden] { display: none; }
#fds-page .price-badge { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%;
    background: #0071e3; color: #fff; font-size: 11px; font-weight: 700; margin-left: 6px; vertical-align: middle; }
@media (max-width: 768px) { #fds-page .fds-continue { max-width: none; text-align: stretch; } #fds-page .fds-continue__btn { width: 100% !important; justify-content: center; } }

/* ── Pricing summary ── */
#fds-page .pricing-summary {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 16px 20px !important;
    margin: 0 0 8px !important;
    max-width: 420px;
    margin-left: auto !important;
}
#fds-page .pricing-summary .price-row {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 14px !important;
    color: #475569 !important;
    padding: 6px 0 !important;
    border: none !important;
}
#fds-page .pricing-summary .price-row.final-price {
    border-top: 1px solid #e2e8f0 !important;
    margin-top: 6px !important;
    padding-top: 12px !important;
    font-size: 16px !important;
    color: #0f172a !important;
}
#fds-page .pricing-summary .price-row .highlight {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0071e3 !important;
}
#fds-page .explanation-row p { font-size: 12px; color: #64748b; text-align: right; }

/* ── Delivery options (step 2) ── */
#fds-page .delivery-options {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 14px !important;
}
#fds-page .delivery-option {
    background: #fff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 18px !important;
    text-align: left !important;
    color: #0f172a !important;
    box-shadow: none !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}
#fds-page .delivery-option:hover:not(:disabled) { border-color: #0071e3 !important; box-shadow: 0 6px 18px rgba(0,113,227,0.10) !important; }
#fds-page .delivery-option.selected { border-color: #0071e3 !important; background: #f0f7ff !important; }
#fds-page .delivery-option:disabled { opacity: 0.55; cursor: not-allowed; }
#fds-page .delivery-option .title { font-size: 16px !important; font-weight: 700 !important; color: #0f172a !important; }
#fds-page .delivery-option .description { font-size: 13px !important; color: #64748b !important; }

/* ── Per-device SEO story ── */
#fds-page .fds-seo { margin: 36px 0 0; display: grid; gap: 22px; }
#fds-page .fds-seo h3 { font-size: 21px; font-weight: 800; color: #0f172a; margin: 0 0 8px; letter-spacing: -.2px; }
#fds-page .fds-seo p { font-size: 14.5px; line-height: 1.65; color: #475569; margin: 0; }
#fds-page .fds-seo__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; padding: 8px 0; }
#fds-page .fds-seo__kicker { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: #64748b; font-weight: 700; margin: 0 0 10px !important; }
#fds-page .fds-seo__h2 { font-size: 42px; line-height: 1.05; font-weight: 800; color: #0f172a; margin: 0 0 16px; letter-spacing: -.8px; }
#fds-page .fds-seo__h2 span { color: #0071e3; }
#fds-page .fds-seo__intro { font-size: 15.5px !important; color: #334155 !important; }
#fds-page .fds-seo__ba { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; padding: 30px 24px 10px; }
#fds-page .fds-seo__ba-img { aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(15,23,42,.08); }
#fds-page .fds-seo__ba-img img { width: 100%; height: 100%; object-fit: contain; }
#fds-page .fds-seo__ba-img--before { position: relative; }
/* white crack lines, screen-blended: invisible on the white product background, visible on the phone */
#fds-page .fds-seo__cracks { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; opacity: .95; pointer-events: none; }
#fds-page .fds-seo__ba-img i { font-size: 64px; color: #94a3b8; }
#fds-page .fds-seo__ba-arrow { width: 40px; height: 40px; border-radius: 50%; background: #0071e3; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,113,227,.3); z-index: 1; }
#fds-page .fds-seo__note { font-family: 'Caveat', cursive; font-size: 22px; color: #0f172a; line-height: 1; }
#fds-page .fds-seo__note i { font-size: 16px; margin-left: 2px; }
#fds-page .fds-seo__note--l { position: absolute; left: 0; top: 0; }
#fds-page .fds-seo__note--r { position: absolute; right: 0; top: 0; }
#fds-page .fds-seo__row { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
#fds-page .fds-seo__brand { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px solid #e2e8f0; border-radius: 16px; background: #f8fafc; }
#fds-page .fds-seo__brand i { font-size: 38px; color: #0f172a; }
#fds-page .fds-seo__brand b { display: block; font-size: 15px; color: #0f172a; margin-bottom: 3px; }
#fds-page .fds-seo__brand span { font-size: 12.5px; color: #64748b; line-height: 1.4; }
#fds-page .fds-seo__local { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; padding: 26px; border-radius: 20px; background: #f0f6ff; }
#fds-page .fds-seo__cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
#fds-page .fds-seo__cities span { font-size: 13px; font-weight: 600; color: #0f172a; background: #fff; border: 1px solid #dbe7f6; border-radius: 999px; padding: 7px 13px; }
#fds-page .fds-seo__cities i { color: #0071e3; margin-right: 3px; }
#fds-page .fds-seo__map { position: relative; }
#fds-page .fds-seo__map svg { width: 100%; height: auto; display: block; }
#fds-page .fds-seo__note--map { position: absolute; right: 6px; top: -4px; transform: rotate(-6deg); max-width: 150px; text-align: center; }
#fds-page .fds-seo__closing h3 { font-size: 24px; }
@media (max-width: 860px) {
    #fds-page .fds-seo__hero, #fds-page .fds-seo__row, #fds-page .fds-seo__local { grid-template-columns: 1fr; }
    #fds-page .fds-seo__h2 { font-size: 32px; }
    #fds-page .fds-seo__ba { max-width: 420px; margin: 0 auto; }
    }

/* ── Why us: logistics card ── */
#fds-page .fds-why { margin: 28px 0 0 !important; padding: 26px !important; border-radius: 20px; background: #f0f6ff !important; display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; }
#fds-page .fds-why h2 { font-size: 24px; font-weight: 800; color: #0f172a; margin: 0 0 8px; letter-spacing: -.3px; }
#fds-page .fds-why p { font-size: 14.5px; line-height: 1.65; color: #475569; margin: 0; }
#fds-page .fds-why__steps { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; counter-reset: step; }
#fds-page .fds-why__steps li { list-style: none !important; margin: 0 !important; padding: 14px 14px 14px 16px !important; background: #fff; border: 1px solid #dbe7f6; border-radius: 14px; position: relative; }
#fds-page .fds-why__steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 10px; right: 12px; font-size: 11px; font-weight: 800; color: #94a3b8; }
#fds-page .fds-why__steps i { font-size: 18px; color: #0071e3; margin-bottom: 8px; display: block; }
#fds-page .fds-why__steps b { display: block; font-size: 13.5px; color: #0f172a; margin-bottom: 3px; }
#fds-page .fds-why__steps span { font-size: 12.5px; line-height: 1.45; color: #64748b; }
@media (max-width: 860px) { #fds-page .fds-why { grid-template-columns: 1fr; } }
@media (max-width: 520px) { #fds-page .fds-why__steps { grid-template-columns: 1fr; } }

/* ── Generic sections below ── */
#fds-page .general-services-section,
#fds-page .contact-info-section,
#fds-page .seo-section,
#fds-page .customer-reviews {
    margin: 36px 0 0 !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
}
#fds-page h2 { font-size: 22px; font-weight: 700; color: #0f172a; }
/* ── divider after the checkout zone (price summary + CTA) ── */
#fds-page .fds-divider { border: 0; border-top: 1px solid #e2e8f0; margin: 36px 0 0; }
/* ── "Can't find your service?" card ── */
#fds-page .fds-more-services { margin: 24px 0 0 !important; padding: 20px 22px !important; background: #f8fafc !important; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: none !important; }
#fds-page .fds-more-services__head { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
#fds-page .fds-more-services__head h3 { margin: 0 0 4px; font-size: 17px; }
#fds-page .fds-more-services__head p { margin: 0; font-size: 13px; color: #64748b; line-height: 1.5; max-width: 560px; }
#fds-page .fds-more-services__actions { display: flex; gap: 8px; flex-wrap: wrap; }
#fds-page .fds-more-services__btn { width: auto !important; margin: 0 !important; padding: 9px 16px !important; border-radius: 999px !important; border: 1.5px solid #cbd5e1 !important; background: #fff !important; color: #0f172a !important; font-size: 13px !important; font-weight: 600; cursor: pointer; white-space: nowrap; }
#fds-page .fds-more-services__btn.is-primary { background: #fff !important; border-color: #0f172a !important; color: #0f172a !important; }
#fds-page .fds-more-services__btn.is-primary:hover { background: #0f172a !important; color: #fff !important; }
#fds-page .fds-more-services__btn.is-primary.is-open { background: #0f172a !important; color: #fff !important; }
#fds-page .fds-more-services__form { margin-top: 18px; padding-top: 18px; border-top: 1px solid #f1f5f9; }
#fds-page .fds-more-services__form form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: none; margin: 0; }
#fds-page .fds-more-services__form form textarea, #fds-page .fds-more-services__form form button, #fds-page .fds-more-services__form form #response-message, #fds-page .fds-more-services__form form #response-message-info { grid-column: 1 / -1; }
#fds-page .fds-more-services__form form input, #fds-page .fds-more-services__form form textarea { height: auto !important; padding: 10px 12px !important; border: 1px solid #cbd5e1 !important; border-radius: 10px !important; font-size: 14px !important; margin: 0 !important; background: #fff !important; }
#fds-page .fds-more-services__form form button { width: auto !important; justify-self: end; }
@media (max-width: 640px) { #fds-page .fds-more-services__form form { grid-template-columns: 1fr; } #fds-page .fds-more-services__form form button { width: 100% !important; } }
#fds-page h3 { font-size: 18px; font-weight: 700; color: #0f172a; }
#fds-page .contact-info { color: #0071e3; font-weight: 600; }
#fds-page button.cta-button, #fds-page #submit-button, #fds-page button[type="submit"] {
    background: #0071e3 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    cursor: pointer;
}
#fds-page button.cta-button:hover, #fds-page #submit-button:hover { background: #0062c4 !important; }

/* ── Options modal ── */
#fds-modal { display: none; position: fixed; inset: 0; z-index: 2000; }
#fds-modal.is-open { display: block; }
#fds-modal .fds-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}
#fds-modal .fds-modal__card {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 32px));
    max-height: min(86vh, 720px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fds-pop 0.18s ease-out;
}
@keyframes fds-pop { from { opacity: 0; transform: translate(-50%, -48%) scale(0.98); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
#fds-modal .fds-modal__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #e2e8f0;
}
#fds-modal .fds-modal__title { font-size: 17px; font-weight: 700; color: #0f172a; margin: 0; }
#fds-modal .fds-modal__sub { font-size: 12px; color: #64748b; margin: 2px 0 0; }
#fds-modal .fds-modal__close {
    background: #f1f5f9; border: none; width: 34px; height: 34px; border-radius: 50%;
    font-size: 16px; color: #475569; cursor: pointer; flex-shrink: 0;
}
#fds-modal .fds-modal__close:hover { background: #e2e8f0; color: #0f172a; }
#fds-modal .fds-modal__body { overflow-y: auto; padding: 10px 12px; }
#fds-modal .fds-modal__foot {
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex; justify-content: flex-end; gap: 10px;
    background: #f8fafc;
}
#fds-modal .fds-modal__confirm {
    background: #0071e3; color: #fff; border: none; border-radius: 999px;
    padding: 11px 26px; font-weight: 600; font-size: 14px; cursor: pointer;
    width: auto !important; min-width: 160px; margin: 0 !important;
}
#fds-modal .fds-modal__confirm:hover { background: #0062c4; }

/* options list inside the modal (node is moved here from the card) */
#fds-modal .service-details-list { display: block !important; list-style: none; margin: 0; padding: 0; }
#fds-modal .service-details-list .service-separator { display: none; }
#fds-modal .fds-opt { list-style: none; margin: 0 0 10px; border: 1.5px solid #e2e8f0; border-radius: 14px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
#fds-modal .fds-opt.has-warn { border-color: #fcd34d; }
#fds-modal .fds-opt:has(input:checked) { border-color: #0071e3 !important; background: #f0f7ff; box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
#fds-modal .service-detail-content { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; margin: 0; cursor: pointer; }
#fds-modal .service-radio { width: 18px; height: 18px; margin: 3px 0 0; accent-color: #0071e3; flex-shrink: 0; }
#fds-modal .service-detail-main { display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: 12px !important; flex: 1; min-width: 0; }
#fds-modal .service-detail-info { flex: 1 !important; min-width: 0 !important; }
#fds-modal .fds-opt__top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
#fds-modal .service-detail-name { font-size: 15px; font-weight: 800; color: #0f172a; margin: 0; }
#fds-modal .fds-opt__color { font-weight: 500; font-size: 13px; color: #475569; }
#fds-modal .fds-opt__color i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); vertical-align: -1px; margin: 0 4px 0 2px; }
#fds-modal .fds-stars, #fds-page .fds-stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }
#fds-modal .fds-stars span, #fds-page .fds-stars span { color: #e2e8f0; }
#fds-modal .fds-verdict, #fds-page .fds-verdict { font-size: 10px; font-weight: 800; letter-spacing: .6px; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; }
#fds-modal .fds-verdict--best, #fds-page .fds-verdict--best { background: #0f172a; color: #fff; }
#fds-modal .fds-verdict--ok, #fds-page .fds-verdict--ok { background: #16a34a; color: #fff; }
#fds-modal .fds-verdict--good, #fds-page .fds-verdict--good { background: #dbeafe; color: #1e40af; }
#fds-modal .fds-verdict--warn, #fds-page .fds-verdict--warn { background: #fef3c7; color: #92400e; }
#fds-modal .fds-verdict--bad, #fds-page .fds-verdict--bad { background: #fee2e2; color: #991b1b; }
#fds-modal .fds-opt__one { font-size: 13px; color: #334155; margin: 3px 0 6px; line-height: 1.45; }
#fds-modal .fds-chips, #fds-page .fds-chips { display: flex; gap: 6px; flex-wrap: wrap; }
#fds-modal .fds-chip, #fds-page .fds-chip { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; }
#fds-modal .fds-chip--ok, #fds-page .fds-chip--ok { background: #dcfce7; color: #166534; } #fds-modal .fds-chip--eco, #fds-page .fds-chip--eco { background: #ecfccb; color: #3f6212; }
#fds-modal .fds-chip--info, #fds-page .fds-chip--info { background: #dbeafe; color: #1e40af; } #fds-modal .fds-chip--bad, #fds-page .fds-chip--bad { background: #fee2e2; color: #991b1b; } #fds-modal .fds-chip--warn, #fds-page .fds-chip--warn { background: #fef3c7; color: #92400e; }
#fds-modal .fds-warn { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.45; padding: 8px 10px; border-radius: 9px; margin: 8px 0 0; }
#fds-modal .fds-warn--warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
#fds-modal .fds-warn--bad  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
#fds-modal .service-detail-price { font-size: 17px !important; font-weight: 800 !important; color: #0071e3 !important; white-space: nowrap; flex-shrink: 0; margin-left: auto; }
#fds-modal .fds-q { flex-shrink: 0; width: 26px !important; height: 26px; border-radius: 50%; border: 1.5px solid #cbd5e1 !important; background: #fff !important; color: #64748b !important;
                     font-size: 13px !important; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; margin: 2px 0 0 !important; padding: 0 !important; box-shadow: none !important; }
#fds-modal .fds-q:hover, #fds-modal .fds-q.on { border-color: #0071e3 !important; color: #0071e3 !important; background: #eff6ff !important; }
#fds-modal .fds-more { border-top: 1px dashed #e2e8f0; margin: 0 14px; padding: 10px 0 12px; font-size: 12.5px; color: #334155; line-height: 1.5; }
#fds-modal .fds-more[hidden] { display: none; }
#fds-modal .fds-more__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
#fds-modal .fds-more__grid div b { color: #0f172a; } #fds-modal .fds-more__grid .plus b { color: #166534; } #fds-modal .fds-more__grid .minus b { color: #991b1b; }
#fds-modal .fds-more__tech { margin-top: 8px; padding: 8px 10px; background: #f8fafc; border-radius: 8px; font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #64748b; }
/* device factory-panel strip + "how to choose" link */
#fds-modal .fds-modal__device { display: flex; gap: 10px; align-items: center; padding: 9px 20px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; font-size: 12px; color: #475569; }
#fds-modal .fds-modal__device b { color: #0f172a; }
#fds-modal .fds-modal__how { margin-left: auto; color: #0071e3; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; background: none !important; border: none !important; padding: 0 !important; width: auto !important; font-size: 12px !important; }
#fds-modal .fds-modal__device[hidden] { display: none; }
/* comparison overlay */
#fds-cmp { display: none; position: fixed; inset: 0; z-index: 2100; background: rgba(15,23,42,.6); align-items: center; justify-content: center; padding: 16px; }
#fds-cmp.is-open { display: flex; }
#fds-cmp .fds-cmp__card { background: #fff; border-radius: 16px; max-width: 760px; width: 100%; max-height: 88vh; overflow: auto; padding: 18px 20px; }
#fds-cmp h4 { margin: 0 0 4px; font-size: 16px; display: flex; justify-content: space-between; }
#fds-cmp h4 button { background: none !important; border: none !important; color: #64748b; font-size: 16px; cursor: pointer; width: auto !important; padding: 0 !important; margin: 0 !important; }
#fds-cmp p { margin: 0 0 12px; font-size: 13px; color: #64748b; }
#fds-cmp table { width: 100%; border-collapse: collapse; font-size: 12px; }
#fds-cmp th, #fds-cmp td { padding: 7px 8px; border-bottom: 1px solid #f1f5f9; text-align: left; vertical-align: top; color: #0f172a; }
#fds-cmp th { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #64748b; font-weight: 700; }
#fds-cmp td:first-child { font-weight: 700; color: #0f172a; white-space: nowrap; }
#fds-cmp .y { color: #166534; font-weight: 600; } #fds-cmp .n { color: #991b1b; font-weight: 600; } #fds-cmp .m { color: #92400e; font-weight: 600; }
@media (max-width: 640px) { #fds-modal .fds-more__grid { grid-template-columns: 1fr; } #fds-modal .service-detail-main { flex-wrap: wrap; } #fds-modal .service-detail-price { width: 100%; text-align: left; margin: 4px 0 0; } }

/* ── Responsive ── */
@media (max-width: 768px) {
    #fds-page.container { padding: 0 16px 40px !important; }
    #fds-page .page-title { margin-top: 18px !important; }
    #fds-page .device-info { padding: 18px !important; border-radius: 14px; }
    #fds-page .device-details-wrapper { flex-direction: column !important; align-items: flex-start !important; gap: 14px !important; }
    #fds-page .device-image { flex-basis: auto; width: 110px; height: 110px; }
    #fds-page .device-image img { max-width: 90px; max-height: 96px; }
    #fds-page .device-details h2 { font-size: 24px !important; }
    #fds-page .services-list { grid-template-columns: 1fr !important; gap: 12px !important; }
    #fds-page .service-wrapper { padding: 16px 14px 14px !important; }
    #fds-page .pricing-summary { max-width: none; }
    #fds-page .step .step-header .step-text,
    #fds-page .step .step-header .step-text h2 { font-size: 17px !important; }
    #fds-modal .fds-modal__card { width: calc(100vw - 20px); max-height: 92vh; border-radius: 16px; }
    #fds-modal .fds-modal__head { padding: 14px 16px 12px; }
    #fds-modal .fds-modal__foot { padding: 12px 16px; }
    #fds-modal .fds-modal__confirm { width: 100% !important; }
    #fds-modal .fds-modal__body { padding: 8px; }
    #fds-modal .service-detail-content { padding: 10px 12px; gap: 10px; }
    #fds-modal .service-detail-description { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ── FAQ ── */
#fds-page .fds-faq { margin: 28px 0 0; }
#fds-page .fds-faq h2 { font-size: 22px; font-weight: 800; color: #0f172a; margin: 0 0 10px; }
#fds-page .fds-faq details { border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 0 16px; margin: 0 0 8px; background: #fff; }
#fds-page .fds-faq details[open] { border-color: #bfdbfe; }
#fds-page .fds-faq summary { cursor: pointer; padding: 13px 0; font-size: 15px; font-weight: 700; color: #0f172a; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
#fds-page .fds-faq summary::-webkit-details-marker { display: none; }
#fds-page .fds-faq summary::after { content: '+'; color: #0071e3; font-weight: 800; }
#fds-page .fds-faq details[open] summary::after { content: '–'; }
#fds-page .fds-faq p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: #475569; }

/* ── micro-trust under the CTA ── */
#fds-page .fds-trust { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: flex-end; }
#fds-page .fds-trust li { list-style: none !important; font-size: 12px; color: #475569; margin: 0; }
#fds-page .fds-trust i { color: #16a34a; margin-right: 4px; }
@media (max-width: 768px) { #fds-page .fds-trust { justify-content: flex-start; } }
/* ── two best reviews near the price box ── */
#fds-page .fds-reviews-mini { flex: 1 1 320px; max-width: 460px; margin: 0; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
#fds-page .fds-reviews-mini__head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #0f172a; margin-bottom: 8px; }
#fds-page .fds-reviews-mini__head .fds-stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }
#fds-page .fds-reviews-mini__avg { margin-left: auto; color: #64748b; font-size: 12px; }
#fds-page .fds-reviews-mini blockquote { margin: 0 0 8px; padding: 0 0 0 10px; border-left: 3px solid #dbe7f6; }
#fds-page .fds-reviews-mini blockquote p { margin: 0; font-size: 13px; line-height: 1.45; color: #334155; }
#fds-page .fds-reviews-mini footer { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }
@media (max-width: 768px) { #fds-page .fds-bottom { flex-direction: column-reverse; gap: 16px; } #fds-page .fds-reviews-mini { max-width: none; flex-basis: auto; width: 100%; } #fds-page .fds-continue { width: 100%; } }
/* ── mobile sticky bar ── */
#fds-page .fds-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e2e8f0; box-shadow: 0 -8px 24px rgba(15,23,42,.10); }
#fds-page .fds-sticky[hidden] { display: none; }
#fds-page .fds-sticky__price { display: flex; flex-direction: column; line-height: 1.1; min-width: 96px; }
#fds-page .fds-sticky__price small { font-size: 11px; color: #64748b; }
#fds-page .fds-sticky__price b { font-size: 18px; color: #0071e3; }
#fds-page .fds-sticky__btn { flex: 1; width: auto !important; justify-content: center; margin: 0 !important; padding: 12px 16px !important; }
/* ── contact shortcut ── */

/* the open mobile menu must not be covered by the sticky order bar */
body.nav-open #fds-page .fds-sticky { display: none !important; }
