/* ============================================================
   ChemSmog Checkout — styling overrides on Botble checkout
   ============================================================ */

body .checkout-page,
body .bb-checkout-page,
body .order-checkout {
    font-family: 'Fredoka', sans-serif !important;
}

/* Step indicators (if Botble renders breadcrumb / step nav) */
body .checkout-steps,
body .bb-checkout-step,
body .checkout-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
}
body .checkout-steps li,
body .bb-checkout-step li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--cs-bg);
    border-radius: 9999px;
    color: var(--cs-text-light);
    font-family: 'Fredoka', sans-serif;
    font-size: 13px;
}
body .checkout-steps li.active,
body .checkout-steps li.is-active {
    color: var(--cs-blue);
    font-weight: 500;
}
body .checkout-steps li.completed::before {
    content: '✓';
    color: var(--cs-green);
    font-weight: 700;
}

/* Section titles inside checkout */
body .checkout-page h2,
body .checkout-page h3,
body .order-checkout h2,
body .order-checkout h3,
body .bb-checkout-section-title {
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 500 !important;
    color: var(--cs-blue) !important;
}
body .checkout-page h2,
body .order-checkout h2 { font-size: 24px !important; }

/* Form inputs — make pill-shaped gray */
body .checkout-page input[type=text],
body .checkout-page input[type=email],
body .checkout-page input[type=tel],
body .checkout-page input[type=number],
body .checkout-page select,
body .checkout-page textarea,
body .order-checkout input[type=text],
body .order-checkout input[type=email],
body .order-checkout input[type=tel],
body .order-checkout input[type=number],
body .order-checkout select,
body .order-checkout textarea,
body .checkout-page .form-control,
body .order-checkout .form-control {
    height: 48px !important;
    padding: 0 18px !important;
    background: var(--cs-bg) !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    font-family: 'Fredoka', sans-serif !important;
    font-size: 14px !important;
    color: var(--cs-text) !important;
    box-shadow: none !important;
}
body .checkout-page textarea.form-control,
body .order-checkout textarea.form-control { height: 120px !important; padding: 14px 18px !important; }
body .checkout-page input:focus,
body .checkout-page select:focus,
body .checkout-page textarea:focus,
body .order-checkout input:focus,
body .order-checkout select:focus,
body .order-checkout textarea:focus,
body .checkout-page .form-control:focus,
body .order-checkout .form-control:focus {
    border-color: var(--cs-teal) !important;
    background: var(--cs-white) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Form labels */
body .checkout-page label,
body .checkout-page .form-label,
body .order-checkout label,
body .order-checkout .form-label {
    font-family: 'Fredoka', sans-serif !important;
    font-size: 13px !important;
    color: var(--cs-text) !important;
    font-weight: 500 !important;
    margin-bottom: 6px !important;
}

/* Submit / primary buttons */
body .checkout-page .btn-primary,
body .checkout-page button[type=submit],
body .order-checkout .btn-primary,
body .order-checkout button[type=submit],
body .checkout-button {
    background: linear-gradient(90deg, var(--cs-btn-g1) 0%, var(--cs-btn-g2) 100%) !important;
    border: none !important;
    color: var(--cs-white) !important;
    border-radius: 9999px !important;
    padding: 12px 32px !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    height: auto !important;
}

/* Order summary sidebar */
body .order-summary,
body .checkout-page__sidebar,
body .checkout-summary {
    background: var(--cs-white) !important;
    border: 1px solid var(--cs-divider) !important;
    border-radius: 16px !important;
    padding: 28px !important;
}
body .order-summary .order-summary-title,
body .checkout-summary h2,
body .checkout-summary h3 {
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 500 !important;
    font-size: 20px !important;
    color: var(--cs-blue) !important;
    margin: 0 0 20px !important;
}

/* Summary line items */
body .order-summary .order-product,
body .checkout-summary .product-line {
    padding: 12px 0;
    border-bottom: 1px solid var(--cs-divider);
    font-family: 'Fredoka', sans-serif;
    font-size: 13px;
}
body .order-summary .total-line,
body .checkout-summary .total {
    border-top: 1px solid var(--cs-divider);
    padding-top: 16px;
    margin-top: 12px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    color: var(--cs-blue);
}

/* Checkbox / radio */
body .checkout-page input[type=checkbox],
body .checkout-page input[type=radio],
body .order-checkout input[type=checkbox],
body .order-checkout input[type=radio] {
    accent-color: var(--cs-teal);
}

/* Hide Botble default page-header on checkout (we don't need a duplicate banner) */
body .checkout-page .page-header,
body .order-checkout .page-header { display: none !important; }

/* ===== Quote request wizard (Figma checkout) ===== */
.cs-quote__grid { display:grid; grid-template-columns:1.6fr 1fr; gap:48px; align-items:start; }
.cs-quote-steps { display:flex; flex-wrap:wrap; align-items:center; gap:4px; list-style:none; padding:0; margin:8px 0 34px; }
.cs-quote-step { display:inline-flex; align-items:center; gap:8px; font-family:'Fredoka',sans-serif; font-size:16px; color:var(--cs-text-light); }
.cs-quote-step__num { width:22px; height:22px; border-radius:50%; background:var(--cs-divider); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:12px; }
.cs-quote-step.is-active { color:var(--cs-navy); font-weight:500; }
.cs-quote-step.is-active .cs-quote-step__num { background:linear-gradient(120deg,var(--cs-green),var(--cs-blue)); }
.cs-quote-step__sep { color:var(--cs-divider); margin:0 10px; }
.cs-quote-panel { display:none; }
.cs-quote-panel.is-active { display:block; }
.cs-quote-panel__eyebrow { font-family:'Fredoka',sans-serif; color:var(--cs-green); font-size:15px; }
.cs-quote-panel__title { font-family:'Fredoka',sans-serif; font-weight:500; font-size:30px; color:var(--cs-blue); margin:4px 0 24px; }
.cs-quote-fields { display:grid; grid-template-columns:1fr 1fr; gap:18px 24px; }
.cs-quote-field--full { grid-column:1 / -1; }
.cs-quote-field label { display:block; font-family:'Fredoka',sans-serif; font-size:14px; color:var(--cs-navy); margin-bottom:8px; }
.cs-quote-field input, .cs-quote-field textarea { width:100%; box-sizing:border-box; border:1px solid var(--cs-divider); border-radius:30px; padding:12px 18px; font-family:'Fredoka',sans-serif; font-size:15px; color:var(--cs-text); background:#f7f7f7; }
.cs-quote-field textarea { border-radius:18px; }
.cs-quote-field input:focus, .cs-quote-field textarea:focus { outline:none; border-color:var(--cs-blue); background:#fff; }
.cs-quote-field input.is-invalid { border-color:#d9534f; background:#fff6f6; }
.cs-quote-nav { display:flex; align-items:center; gap:16px; margin-top:34px; }
.cs-quote-back { background:none; border:none; color:var(--cs-text-light); font-family:'Fredoka',sans-serif; font-size:15px; cursor:pointer; }
.cs-quote-next, .cs-quote-submit { margin-left:auto; }
.cs-quote-recap { display:flex; flex-direction:column; gap:2px; margin-bottom:20px; }
.cs-quote-recap__row { display:flex; justify-content:space-between; gap:20px; font-family:'Fredoka',sans-serif; font-size:15px; border-bottom:1px solid var(--cs-divider); padding:10px 0; }
.cs-quote-recap__row span { color:var(--cs-blue); font-weight:500; }
.cs-quote-recap__row strong { color:var(--cs-text); font-weight:400; text-align:right; }
.cs-quote-consent { display:flex; gap:10px; font-family:'Fredoka',sans-serif; font-size:13px; color:var(--cs-text); margin-top:12px; }
.cs-quote-consent a { color:var(--cs-blue); }
.cs-quote-error { background:rgba(229,160,160,0.22); color:#b05656; border-radius:8px; padding:10px 14px; font-size:14px; margin-top:14px; }
.cs-quote-line { display:grid; grid-template-columns:56px 1fr auto; gap:12px; align-items:center; padding:14px 0; border-bottom:1px solid rgba(134,195,139,0.5); }
.cs-quote-line__media { width:56px; height:56px; border-radius:8px; overflow:hidden; background:var(--cs-bg); flex:0 0 auto; }
.cs-quote-line__media img { width:100%; height:100%; object-fit:cover; }
.cs-quote-line__price { text-align:right; display:flex; flex-direction:column; }
.cs-quote__summary { position:sticky; top:24px; }
.cs-quote-success { text-align:center; max-width:560px; margin:50px auto; }
.cs-quote-success svg { width:64px; height:64px; color:var(--cs-green); }
.cs-quote-success h2 { font-family:'Fredoka',sans-serif; font-weight:500; font-size:30px; color:var(--cs-blue); margin:16px 0 8px; }
.cs-quote-success p { font-family:'Fredoka',sans-serif; color:var(--cs-text); margin:0 0 24px; line-height:1.6; }
@media (max-width:991px){ .cs-quote__grid { grid-template-columns:1fr; } .cs-quote-fields { grid-template-columns:1fr; } .cs-quote-panel__title{font-size:24px;} }
