:root {
    --brand: #42C20A;
    --brand-dark: #2f9806;
    --brand-soft: #eefbe7;
    --brand-border: #b9e7a1;
    --text-dark: #0f172a;
    --text-muted: #667085;
}

body {
    background: #f3f5f9;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto;
    margin: 0;
    color: #0f172a;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 28px 190px;
}

.panel {
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 18px;
}

.h {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
}

.muted {
    color: #667085;
}

.row {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px;
}

.row-3 {
    display: grid;
    grid-template-columns:1fr 1fr 1fr;
    gap: 12px;
}

@media (max-width: 900px) {
    .row-3 {
        grid-template-columns:1fr;
    }

    .row {
        grid-template-columns:1fr;
    }
}

.input {
    width: 100%;
    border: 1px solid #e6e8ee;
    border-radius: 12px;
    padding: 12px;
    box-sizing: border-box;
    height: 44px;
    background: #fff;
}

.input[type="number"] {
    -moz-appearance: textfield;
}

.input[type="number"]::-webkit-outer-spin-button,
.input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn {
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    transition: .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.btn-secondary {
    background: #0f172a;
    color: #fff;
}

.alert {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.alert-ok {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.alert-warn {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.grid-2 {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 980px) {
    .grid-2 {
        grid-template-columns:1fr;
    }
}

.box {
    border: 1px solid #e6e8ee;
    border-radius: 18px;
    padding: 14px;
    background: #fff;
}

.service-card {
    border: 1px solid #e6e8ee;
    border-radius: 18px;
    padding: 14px;
    background: #fff;
}

.service-top {
    display: grid;
    grid-template-columns:88px 1fr;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.service-image-wrap {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    background: #f6f7fb;
    border: 1px solid #eef0f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-title {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 6px;
}

.price-line {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-base {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    visibility: hidden;
}

.price-base s {
    opacity: .9;
}

.price-discounted {
    color: #0f172a;
    font-weight: 900;
    font-size: 16px;
}

.service-note {
    font-size: 12px;
    color: #667085;
}

.type-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    padding: 10px;
    margin-top: 10px;
}

.type-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.type-ico {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.type-left strong {
    font-size: 14px;
}

.small {
    font-size: 12px;
    color: #667085;
}

.qty-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e6e8ee;
    border-radius: 10px;
    background: #fff;
    font-weight: 900;
    cursor: pointer;
    flex: 0 0 auto;
}

.qty {
    width: 74px;
    text-align: center;
    height: 36px;
    padding: 6px 8px;
}

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

@media (max-width: 900px) {
    .radio-grid {
        grid-template-columns:1fr;
    }
}

.radio-card {
    border: 1px solid #e6e8ee;
    border-radius: 16px;
    padding: 14px;
    cursor: pointer;
    background: #fff;
    transition: .15s;
}

.radio-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(20, 25, 40, .07);
}

.radio-card.selected {
    outline: 3px solid rgba(66, 194, 10, .20);
    border-color: var(--brand);
}

.radio-card .t {
    font-weight: 900;
    color: #0f172a;
    font-size: 16px;
}

.radio-card .d {
    color: #667085;
    margin-top: 6px;
    font-size: 14px;
}

.radio-card .r {
    margin-top: 10px;
    font-weight: 900;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
}

.badge-ok {
    background: var(--brand-soft);
    color: var(--brand-dark);
    border: 1px solid var(--brand-border);
}

.badge-warn {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-discount {
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.suggestion-card {
    border: 1px solid #e6e8ee;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}

.suggestion-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
}

.suggestion-title img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.suggestion-row {
    font-size: 14px;
    color: #475467;
    margin-bottom: 6px;
}

.suggestion-highlight {
    margin-top: 10px;
    padding: 10px;
    border-radius: 12px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-border);
    color: var(--brand-dark);
    font-weight: 800;
}

.small-note {
    font-size: 13px;
    color: #667085;
    margin-top: 8px;
}

.panel .h {
    position: relative;
    padding-left: 14px;
}

.panel .h::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    border-radius: 999px;
    background: var(--brand);
}

.total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px;
    border: 1px solid #e6e8ee;
    border-radius: 14px;
    background: #fafbff;
}

.total-block {
    min-width: 130px;
}

.total-block .muted {
    font-size: 13px;
}

.total {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    margin-top: 4px;
}

.err {
    color: #b42318;
    font-weight: 800;
    margin-top: 12px;
    display: none;
}

.floating-cart {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;

    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e6e8ee;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, .08);

    padding: 12px 16px;
}

.floating-cart-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.floating-cart-totals {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.floating-cart-block {
    min-width: 120px;
}

.floating-cart-block .label {
    font-size: 12px;
    color: #667085;
    margin-bottom: 4px;
}

.floating-cart-block .value {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
}

.floating-cart-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.floating-cart-note {
    font-size: 12px;
    color: #667085;
}

@media (max-width: 900px) {
    .floating-cart-inner {
        align-items: stretch;
    }

    .floating-cart-totals {
        width: 100%;
        justify-content: space-between;
        gap: 14px;

        flex-wrap: nowrap;
    }

    .floating-cart-actions {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }

    .floating-cart-actions .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 600px) {
    .floating-cart-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .floating-cart-note {
        text-align: center;
    }

    #coverageBadgeWrap {
        display: none;
    }
}

.text-center {
    text-align: center;
}

.hero-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 0 24px;
    margin-bottom: 10px;
}

.hero-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 16px;
}

.hero-text h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 900;
    color: var(--text-dark);
}

.hero-text p {
    margin: 0;
    font-size: 16px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 180px;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-text p {
        font-size: 15px;
    }
}

.info-brand {
    background: var(--brand);
    color: #fff;
    border: 1px solid var(--brand-dark);
    border-radius: 16px;
    padding: 14px 16px;
}

.info-brand strong,
.info-brand b {
    color: #fff;
}

.info-brand .muted,
.info-brand .small-note {
    color: rgba(255, 255, 255, .88);
}

.info-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #d0e9c2;
    background: #eefbe7;
    color: #2f9806;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .15s ease;
}

.info-link-btn:hover {
    transform: translateY(-1px);
    background: #e6f8dc;
}

.info-link-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #42C20A;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}


.modal-box {
    width: min(900px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e6e8ee;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .25);
    padding: 22px;
    position: relative;
    z-index: 20001;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.modal-title {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
}

.modal-close {
    border: 0;
    background: #f4f6fa;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
    color: #344054;
}

.help-grid {
    display: grid;
    grid-template-columns:1.2fr .8fr;
    gap: 18px;
}

@media (max-width: 900px) {
    .help-grid {
        grid-template-columns:1fr;
    }
}

.help-card {
    border: 1px solid #e6e8ee;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}

.help-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #0f172a;
}

.help-card p {
    margin: 0 0 10px;
    color: #475467;
    line-height: 1.5;
}

.help-list {
    margin: 0;
    padding-left: 18px;
    color: #475467;
    line-height: 1.6;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.size-table th,
.size-table td {
    border: 1px solid #e6e8ee;
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
}

.size-table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 900;
}

.help-highlight {
    background: #eefbe7;
    border: 1px solid #b9e7a1;
    color: #2f9806;
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 14px;
    line-height: 1.5;
}

.bill-preview {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #e6e8ee;
    display: block;
    margin-top: 10px;
}

.bill-caption {
    font-size: 13px;
    color: #667085;
    margin-top: 8px;
    line-height: 1.5;
}

.service-mode-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 14px;
}

@media (max-width: 900px) {
    .service-mode-grid {
        grid-template-columns:1fr;
    }
}

.service-mode-card {
    border: 1px solid #e6e8ee;
    border-radius: 18px;
    padding: 18px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: .15s ease;
}

.service-mode-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(20, 25, 40, .07);
}

.service-mode-card.active {
    outline: 3px solid rgba(66, 194, 10, .20);
    border-color: #42C20A;
    background: #f8fff4;
}

.service-mode-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.service-mode-title {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 8px;
}

.service-mode-text {
    color: #667085;
    line-height: 1.5;
}

.bio-qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e6e8ee;
    border-radius: 10px;
    background: #fff;
    font-weight: 900;
    cursor: pointer;
    flex: 0 0 auto;
}

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

.bio-bins-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1100px) {
    .bio-frequency-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .bio-bins-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .bio-frequency-grid,
    .bio-bins-grid {
        grid-template-columns:1fr;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #fff;
    border-radius: 14px;
    width: 420px;
    max-width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    padding: 22px;
    position: relative;
    z-index: 20001;
}

.modal-header {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.modal-body {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-ghost {
    background: transparent;
    border: 1px solid #e3e6eb;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
}

.suggestion-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
}

.suggestion-toggle-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.suggestion-info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.suggestion-toggle-title {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
}

.suggestion-toggle-subtitle {
    font-size: 13px;
    color: #667085;
    margin-top: 4px;
    line-height: 1.4;
}

.suggestion-toggle-right {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f4f6fa;
    border: 1px solid #e6e8ee;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: #344054;
    flex: 0 0 auto;
}

.suggestion-content {
    margin-top: 18px;
}

.suggestion-panel-collapsed {
    padding: 18px 22px;
}

.suggestion-panel-open {
    padding: 22px;
}

.service-mode-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.service-mode-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.service-mode-badge-standard {
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.service-mode-badge-bio {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.service-mode-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #475467;
    line-height: 1.6;
    font-size: 14px;
}

.service-mode-list li + li {
    margin-top: 4px;
}

.service-mode-hint {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e6e8ee;
    color: #334155;
    font-size: 13px;
    line-height: 1.5;
}

.service-mode-card {
    display: block;
}

.service-mode-card.active .service-mode-hint {
    background: #eefbe7;
    border-color: #b9e7a1;
    color: #2f9806;
}

.service-mode-explain {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 14px;
    line-height: 1.6;
}

.service-mode-icon img {
    width: 64px;
    height: auto;
    display: block;
}

@media (max-width: 600px) {
    .service-mode-icon img {
        width: 48px;
    }
}

.billing-toggle-row {
    margin-top: 8px;
}

.billing-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
}

.billing-toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #42C20A;
}

.floating-cart {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 9999;

    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(230, 232, 238, 0.95);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14),
    0 4px 18px rgba(15, 23, 42, 0.06);

    overflow: hidden;
    padding: 14px 18px;
}

.floating-cart-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.floating-cart-block {
    min-width: 120px;
}

.floating-cart-block .label {
    font-size: 12px;
    color: #667085;
    margin-bottom: 4px;
}

.floating-cart-block .value {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
}

.floating-cart::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
    .floating-cart {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 12px 14px;
        border-radius: 18px;
    }
}
