/* =============================================================
   iData Modern Checkout
   Everything is scoped to body.qdco so the rest of the site is untouched.
============================================================= */

body.qdco {
    --qdco-brand: #2563eb;
    --qdco-ink: #0f172a;
    --qdco-muted: #64748b;
    --qdco-line: #e5e7eb;
    --qdco-soft: #f8fafc;
    --qdco-radius: 18px;
    --qdco-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- standalone page shell ---------- */
body.qdco-standalone {
    margin: 0;
    background: #f1f5f9;
    color: var(--qdco-ink);
    font-family: var(--qdco-font);
    -webkit-font-smoothing: antialiased;
}
body.qdco-standalone *, body.qdco-standalone *::before, body.qdco-standalone *::after { box-sizing: border-box; }

.qdco-topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--qdco-line);
}
.qdco-topbar-in {
    max-width: 1040px; margin: 0 auto; padding: 12px 16px;
    display: flex; align-items: center; gap: 12px;
}
.qdco-back {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    color: var(--qdco-ink); background: var(--qdco-soft); border: 1px solid var(--qdco-line);
    text-decoration: none; flex-shrink: 0;
}
.qdco-back:hover { background: #fff; }
.qdco-brand {
    font-weight: 800; font-size: 17px; letter-spacing: -.01em;
    color: var(--qdco-ink) !important; text-decoration: none !important;
    display: inline-flex; align-items: center; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qdco-brand img { max-height: 34px; width: auto; display: block; }
.qdco-secure {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 700; color: #047857;
    background: #ecfdf5; border: 1px solid #a7f3d0;
    padding: 6px 11px; border-radius: 999px; white-space: nowrap;
}
.qdco-secure .qdco-ic { width: 14px; height: 14px; }

.qdco-main { max-width: 1040px; margin: 0 auto; padding: 22px 16px 40px; }
.qdco-foot { text-align: center; color: var(--qdco-muted); font-size: 12px; padding: 0 16px 28px; }

.qdco-ic { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ---------- heading ---------- */
body.qdco .qdco-head { margin: 0 2px 18px; }
body.qdco .qdco-title {
    margin: 0; padding: 0; font-family: var(--qdco-font);
    font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--qdco-ink);
}
body.qdco .qdco-subtitle { margin: 6px 0 0; color: var(--qdco-muted); font-size: 14px; }

/* ---------- cards ---------- */
body.qdco .qdco-card,
body.qdco form.checkout #customer_details,
body.qdco form.checkout #order_review,
body.qdco #order_review.qdco-pay-card {
    background: #fff;
    border: 1px solid var(--qdco-line);
    border-radius: var(--qdco-radius);
    padding: 20px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -18px rgba(15,23,42,.25);
}
body.qdco .qdco-card-title,
body.qdco form.checkout #customer_details h3 {
    font-family: var(--qdco-font);
    font-size: 15px !important; font-weight: 800 !important; letter-spacing: -.01em;
    color: var(--qdco-ink) !important; margin: 0 0 14px !important; padding: 0 !important;
    text-transform: none !important; border: 0 !important; background: none !important;
}

/* ---------- checkout grid ---------- */
body.qdco .woocommerce form.checkout,
body.qdco form.checkout.woocommerce-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    font-family: var(--qdco-font);
    color: var(--qdco-ink);
    margin: 0;
}
body.qdco form.checkout::before, body.qdco form.checkout::after { display: none !important; content: none !important; }
body.qdco form.checkout > * { min-width: 0; }

body.qdco form.checkout .qdco-summary { order: 1; }
body.qdco form.checkout #customer_details { order: 2; }
body.qdco form.checkout #order_review_heading { display: none !important; }
body.qdco form.checkout #order_review { order: 3; }

@media (min-width: 900px) {
    body.qdco form.checkout.woocommerce-checkout {
        grid-template-columns: minmax(0, 1fr) 400px;
        align-items: start;
        gap: 20px;
    }
    body.qdco form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
    body.qdco form.checkout .qdco-summary     { grid-column: 2; grid-row: 1; }
    body.qdco form.checkout #order_review     { grid-column: 2; grid-row: 2; position: sticky; top: 80px; }
}

/* customer details: neutralise theme column floats */
body.qdco form.checkout #customer_details.col2-set { width: auto !important; float: none !important; margin: 0 !important; }
body.qdco form.checkout #customer_details .col-1,
body.qdco form.checkout #customer_details .col-2 { width: 100% !important; float: none !important; max-width: none !important; padding: 0 !important; flex: none !important; }
body.qdco form.checkout #customer_details .col-2:not(:has(input, select, textarea)) { display: none !important; }
body.qdco form.checkout #customer_details .col-2 { margin-top: 10px; }
body.qdco form.checkout #order_review { width: auto !important; float: none !important; margin: 0 !important; }

/* ---------- fields ---------- */
body.qdco form.checkout .form-row {
    width: 100% !important; float: none !important; margin: 0 0 14px !important; padding: 0 !important;
}
body.qdco form.checkout .form-row label {
    display: block; font-size: 13px; font-weight: 600; color: #334155; margin: 0 0 6px; line-height: 1.3;
}
body.qdco form.checkout .form-row label .required { color: #ef4444; text-decoration: none; border: 0; }
body.qdco form.checkout .form-row label .optional { color: var(--qdco-muted); font-weight: 400; }
body.qdco form.checkout .form-row .woocommerce-input-wrapper { display: block; width: 100%; }

body.qdco form.checkout input.input-text,
body.qdco form.checkout input[type="text"],
body.qdco form.checkout input[type="tel"],
body.qdco form.checkout input[type="email"],
body.qdco form.checkout input[type="password"],
body.qdco form.checkout select,
body.qdco form.checkout textarea,
body.qdco .woocommerce-form-coupon input.input-text,
body.qdco .woocommerce-form-login input.input-text {
    width: 100% !important; max-width: none !important;
    min-height: 50px; padding: 13px 14px !important;
    font-family: var(--qdco-font); font-size: 16px !important; line-height: 1.3; color: var(--qdco-ink) !important;
    background: var(--qdco-soft) !important;
    border: 1.5px solid var(--qdco-line) !important; border-radius: 12px !important;
    box-shadow: none !important; outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
    -webkit-appearance: none; appearance: none;
}
body.qdco form.checkout input.input-text:focus,
body.qdco form.checkout select:focus,
body.qdco form.checkout textarea:focus,
body.qdco .woocommerce-form-coupon input.input-text:focus,
body.qdco .woocommerce-form-login input.input-text:focus {
    background: #fff !important;
    border-color: var(--qdco-brand) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--qdco-brand) 18%, transparent) !important;
}
body.qdco form.checkout .woocommerce-invalid input.input-text,
body.qdco form.checkout .woocommerce-invalid select { border-color: #ef4444 !important; background: #fef2f2 !important; }
body.qdco form.checkout .woocommerce-validated input.input-text { border-color: #10b981 !important; }
body.qdco form.checkout .form-row .description { font-size: 12px; color: var(--qdco-muted); margin-top: 6px; }

/* account creation / checkboxes */
body.qdco form.checkout .woocommerce-account-fields label.checkbox,
body.qdco form.checkout .form-row label.checkbox,
body.qdco form.checkout .woocommerce-form__label-for-checkbox {
    display: flex !important; align-items: center; gap: 10px; font-weight: 500; cursor: pointer;
}
body.qdco form.checkout input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--qdco-brand); margin: 0; flex-shrink: 0; }

/* ---------- order summary ---------- */
body.qdco .qdco-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-top: 1px solid #f1f5f9;
}
body.qdco .qdco-card-title + .qdco-item { border-top: 0; padding-top: 0; }
body.qdco .qdco-net {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
    color: #fff; background: linear-gradient(135deg, #64748b, #334155);
}
body.qdco .qdco-net-mtn        { background: linear-gradient(135deg, #ffd000, #ff9f00); color: #1f1700; }
body.qdco .qdco-net-airteltigo { background: linear-gradient(135deg, #1d4ed8, #0b2a8f); }
body.qdco .qdco-net-telecel    { background: linear-gradient(135deg, #ef2b2b, #a80000); }
body.qdco .qdco-item-main { flex: 1; min-width: 0; }
body.qdco .qdco-item-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
body.qdco .qdco-qty { color: var(--qdco-muted); font-weight: 600; }
body.qdco .qdco-item-ben { font-size: 13px; color: var(--qdco-muted); margin-top: 3px; }
body.qdco .qdco-item-ben strong { color: var(--qdco-ink); letter-spacing: .02em; }
body.qdco .qdco-item-side { text-align: right; flex-shrink: 0; }
body.qdco .qdco-item-price { font-weight: 800; font-size: 15px; white-space: nowrap; }
body.qdco .qdco-remove { font-size: 12px; color: var(--qdco-muted) !important; text-decoration: none !important; }
body.qdco .qdco-remove:hover { color: #ef4444 !important; }
body.qdco .qdco-note {
    display: flex; align-items: center; gap: 8px;
    margin-top: 12px; padding: 10px 12px; border-radius: 12px;
    background: color-mix(in srgb, var(--qdco-brand) 8%, #fff);
    color: color-mix(in srgb, var(--qdco-brand) 70%, #0f172a);
    font-size: 13px; font-weight: 600;
}
body.qdco .qdco-note .qdco-ic { width: 16px; height: 16px; }

/* ---------- totals (WooCommerce review table → totals only) ---------- */
body.qdco .woocommerce-checkout-review-order-table {
    width: 100%; border: 0 !important; margin: 0 0 16px !important; border-collapse: collapse; background: none !important;
}
body.qdco .woocommerce-checkout-review-order-table thead,
body.qdco .woocommerce-checkout-review-order-table tbody,
body.qdco .woocommerce-checkout-review-order-table .cart-subtotal { display: none !important; }
body.qdco .woocommerce-checkout-review-order-table tfoot th,
body.qdco .woocommerce-checkout-review-order-table tfoot td {
    border: 0 !important; background: none !important; padding: 6px 0 !important; font-size: 14px; text-align: left;
}
body.qdco .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
body.qdco .woocommerce-checkout-review-order-table .order-total th,
body.qdco .woocommerce-checkout-review-order-table .order-total td {
    font-size: 18px !important; font-weight: 800 !important; padding-top: 0 !important;
}
body.qdco .woocommerce-checkout-review-order-table .order-total .amount { color: var(--qdco-ink); }

/* ---------- payment methods ---------- */
body.qdco #payment {
    background: none !important; border-radius: 0 !important; padding: 0 !important; margin: 0 !important;
}
body.qdco #payment .qdco-pay-title { margin-top: 0 !important; }
body.qdco #payment ul.payment_methods {
    list-style: none !important; margin: 0 0 14px !important; padding: 0 !important; border: 0 !important;
    display: grid; gap: 10px;
}
body.qdco #payment ul.payment_methods::before, body.qdco #payment ul.payment_methods::after { display: none !important; }
body.qdco #payment ul.payment_methods li {
    list-style: none !important; margin: 0 !important; padding: 14px !important;
    border: 1.5px solid var(--qdco-line) !important; border-radius: 14px !important; background: #fff !important;
    transition: border-color .15s, box-shadow .15s, background .15s;
    line-height: 1.4; position: relative;
    display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 12px;
    text-indent: 0 !important; cursor: pointer;
}
body.qdco #payment ul.payment_methods li::before,
body.qdco #payment ul.payment_methods li::after { display: none !important; content: none !important; }
body.qdco #payment ul.payment_methods li:has(input:checked) {
    border-color: var(--qdco-brand) !important;
    background: color-mix(in srgb, var(--qdco-brand) 5%, #fff) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--qdco-brand) 14%, transparent);
}

/* radio: always the real, visible input (themes often hide it and fake one) */
body.qdco #payment ul.payment_methods li > input[type="radio"],
body.qdco #payment ul.payment_methods li > label input[type="radio"] {
    grid-column: 2; grid-row: 1; order: 99; align-self: center; justify-self: end;
    float: none !important; inset: auto !important; top: auto !important; left: auto !important;
    position: static !important; opacity: 1 !important; visibility: visible !important;
    clip: auto !important; clip-path: none !important; transform: none !important;
    -webkit-appearance: radio !important; appearance: auto !important;
    display: inline-block !important; flex: 0 0 auto;
    width: 20px !important; height: 20px !important; margin: 0 !important; padding: 0 !important;
    accent-color: var(--qdco-brand); cursor: pointer;
}

/* label: plain text row, no theme backgrounds, bars or fake radios */
body.qdco #payment ul.payment_methods li > label {
    grid-column: 1; grid-row: 1; min-width: 0;
    display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 8px;
    margin: 0 !important; padding: 0 !important;
    background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
    position: static !important; float: none !important; width: auto !important;
    font-weight: 700; font-size: 14.5px; line-height: 1.35; color: var(--qdco-ink) !important;
    white-space: normal !important; text-indent: 0 !important; overflow-wrap: anywhere;
    cursor: pointer;
}
body.qdco #payment ul.payment_methods li > label::before,
body.qdco #payment ul.payment_methods li > label::after { display: none !important; content: none !important; }
body.qdco #payment ul.payment_methods li > label * { background: none !important; border: 0 !important; }

body.qdco #payment ul.payment_methods li img {
    max-height: 24px !important; width: auto !important; margin: 0 !important; padding: 0 !important;
    float: none !important; display: inline-block !important; vertical-align: middle; box-shadow: none !important;
}
body.qdco #payment ul.payment_methods li > div.payment_box { grid-column: 1 / -1; grid-row: 2; width: auto; }
body.qdco #payment ul.payment_methods li > label input[type="radio"] { margin-left: auto !important; }
body.qdco #payment ul.payment_methods li .about_paypal { display: none; }
body.qdco #payment div.payment_box {
    background: var(--qdco-soft) !important; color: #334155 !important;
    border-radius: 10px !important; margin: 12px 0 0 !important; padding: 12px !important;
    font-size: 13px !important; line-height: 1.5;
}
body.qdco #payment div.payment_box::before { display: none !important; }
body.qdco #payment div.payment_box p:last-child { margin-bottom: 0; }
body.qdco #payment .woocommerce-notice,
body.qdco #payment li.woocommerce-notice { border-radius: 12px; }

/* terms + privacy */
body.qdco #payment .woocommerce-terms-and-conditions-wrapper { font-size: 12.5px; color: var(--qdco-muted); margin-bottom: 12px; }
body.qdco #payment .woocommerce-privacy-policy-text p { margin: 0 0 10px; }
body.qdco #payment .form-row.place-order { padding: 0 !important; margin: 0 !important; }

/* pay button */
body.qdco #place_order {
    display: flex !important; align-items: center; justify-content: center; gap: 8px;
    width: 100% !important; float: none !important; margin: 0 !important;
    min-height: 56px; padding: 16px 20px !important;
    font-family: var(--qdco-font); font-size: 17px !important; font-weight: 800 !important; letter-spacing: .01em;
    color: #fff !important; text-transform: none !important;
    background: var(--qdco-brand) !important;
    background-image: linear-gradient(135deg, color-mix(in srgb, var(--qdco-brand) 88%, #fff), color-mix(in srgb, var(--qdco-brand) 85%, #000)) !important;
    border: 0 !important; border-radius: 14px !important;
    box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--qdco-brand) 70%, transparent) !important;
    cursor: pointer; transition: transform .15s, filter .15s, box-shadow .15s;
}
body.qdco #place_order::before {
    content: ""; width: 18px; height: 18px; flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.qdco #place_order:hover { filter: brightness(1.06); transform: translateY(-1px); }
body.qdco #place_order:active { transform: translateY(0); }

body.qdco .qdco-trust {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 12px; font-size: 12.5px; color: var(--qdco-muted); text-align: center;
}
body.qdco .qdco-trust .qdco-ic { width: 14px; height: 14px; color: #10b981; }

/* mobile: pay button pinned to the bottom of the screen */
@media (max-width: 899px) {
    body.qdco.qdco-has-sticky { padding-bottom: 92px; }
    body.qdco.qdco-has-sticky #place_order {
        position: fixed !important; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
        width: auto !important; z-index: 9990;
    }
    body.qdco.qdco-has-sticky .qdco-sticky-bg {
        position: fixed; left: 0; right: 0; bottom: 0; height: calc(84px + env(safe-area-inset-bottom)); z-index: 9989;
        background: linear-gradient(to top, rgba(241,245,249,1) 55%, rgba(241,245,249,0));
        pointer-events: none;
    }
}

/* ---------- notices, coupon & login toggles ---------- */
body.qdco .woocommerce-error,
body.qdco .woocommerce-info,
body.qdco .woocommerce-message,
body.qdco .woocommerce-NoticeGroup .woocommerce-error {
    font-family: var(--qdco-font);
    list-style: none; margin: 0 0 14px !important; padding: 12px 14px 12px 42px !important;
    border-radius: 14px !important; border: 1px solid; border-top-width: 1px !important;
    font-size: 14px; line-height: 1.45; position: relative; box-shadow: none;
}
body.qdco .woocommerce-error   { background: #fef2f2 !important; border-color: #fecaca !important; color: #991b1b !important; }
body.qdco .woocommerce-info    { background: #fff !important; border-color: var(--qdco-line) !important; color: #334155 !important; }
body.qdco .woocommerce-message { background: #ecfdf5 !important; border-color: #a7f3d0 !important; color: #065f46 !important; }
body.qdco .woocommerce-error::before,
body.qdco .woocommerce-info::before,
body.qdco .woocommerce-message::before {
    position: absolute !important; left: 14px !important; top: 12px !important; margin: 0 !important;
    width: 18px; height: 18px; line-height: 18px; font-size: 14px; color: inherit !important;
}
body.qdco .woocommerce-error li { margin: 0; padding: 0; list-style: none; }
body.qdco .woocommerce-info a, body.qdco .woocommerce-error a, body.qdco .woocommerce-message a { color: var(--qdco-brand) !important; font-weight: 700; }

body.qdco .woocommerce-form-coupon-toggle,
body.qdco .woocommerce-form-login-toggle { margin: 0 0 12px; }

body.qdco form.checkout_coupon,
body.qdco form.woocommerce-form-login {
    background: #fff; border: 1px solid var(--qdco-line) !important; border-radius: 14px !important;
    padding: 16px !important; margin: 0 0 16px !important;
    display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
}
body.qdco form.checkout_coupon > p:first-child { width: 100%; margin: 0; font-size: 13px; color: var(--qdco-muted); }
body.qdco form.checkout_coupon .form-row-first { flex: 1; min-width: 160px; margin: 0 !important; width: auto !important; float: none !important; }
body.qdco form.checkout_coupon .form-row-last { margin: 0 !important; width: auto !important; float: none !important; }
body.qdco form.checkout_coupon .clear { display: none; }
body.qdco form.checkout_coupon button,
body.qdco form.woocommerce-form-login button {
    min-height: 50px; padding: 0 18px !important; border-radius: 12px !important; border: 0 !important;
    background: var(--qdco-ink) !important; color: #fff !important; font-weight: 700 !important; cursor: pointer;
}
body.qdco form.woocommerce-form-login > * { width: 100%; }

/* loading overlay */
body.qdco .blockUI.blockOverlay { border-radius: var(--qdco-radius); background: rgba(255,255,255,.7) !important; }

/* =============================================================
   THANK-YOU PAGE
============================================================= */
body.qdco .qdco-ty { max-width: 620px; margin: 0 auto; display: grid; gap: 16px; font-family: var(--qdco-font); color: var(--qdco-ink); }

body.qdco .qdco-ty-hero { text-align: center; padding: 28px 20px 20px; position: relative; overflow: hidden; }
body.qdco .qdco-ty-hero::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
    background: var(--qdco-tone, #10b981);
}
body.qdco .qdco-ty-hero.is-ok   { --qdco-tone: #10b981; --qdco-tone-soft: #d1fae5; }
body.qdco .qdco-ty-hero.is-wait { --qdco-tone: #f59e0b; --qdco-tone-soft: #fef3c7; }
body.qdco .qdco-ty-hero.is-bad  { --qdco-tone: #ef4444; --qdco-tone-soft: #fee2e2; }

body.qdco .qdco-ty-badge {
    width: 72px; height: 72px; margin: 4px auto 14px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--qdco-tone-soft); color: var(--qdco-tone);
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--qdco-tone-soft) 45%, transparent);
    animation: qdco-pop .45s cubic-bezier(.2,1.4,.4,1) both;
}
body.qdco .qdco-ty-badge .qdco-ic { width: 34px; height: 34px; stroke-width: 2.6; }
body.qdco .qdco-ty-hero.is-wait .qdco-ty-badge .qdco-ic { animation: qdco-spin 2.4s linear infinite; }
@keyframes qdco-pop  { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes qdco-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    body.qdco .qdco-ty-badge, body.qdco .qdco-ty-badge .qdco-ic { animation: none !important; }
}

body.qdco .qdco-ty-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--qdco-ink); padding: 0; }
body.qdco .qdco-ty-sub { margin: 6px auto 0; max-width: 420px; color: var(--qdco-muted); font-size: 14.5px; line-height: 1.5; }

/* progress steps */
body.qdco .qdco-steps {
    list-style: none; margin: 22px 0 6px; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); position: relative;
}
body.qdco .qdco-steps li { position: relative; display: grid; justify-items: center; gap: 6px; margin: 0; padding: 0; }
body.qdco .qdco-steps li::before {
    content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px;
    background: var(--qdco-line); z-index: 0;
}
body.qdco .qdco-steps li:first-child::before { display: none; }
body.qdco .qdco-steps li.is-done::before { background: #10b981; }
body.qdco .qdco-step-dot {
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
    background: #fff; border: 2px solid var(--qdco-line); color: transparent; transition: all .3s;
}
body.qdco .qdco-step-dot .qdco-ic { width: 14px; height: 14px; stroke-width: 3; }
body.qdco .qdco-steps li.is-done .qdco-step-dot { background: #10b981; border-color: #10b981; color: #fff; }
body.qdco .qdco-steps li.is-current .qdco-step-dot { box-shadow: 0 0 0 5px rgba(16,185,129,.18); }
body.qdco .qdco-step-label { font-size: 12px; font-weight: 700; color: var(--qdco-muted); }
body.qdco .qdco-steps li.is-done .qdco-step-label { color: var(--qdco-ink); }

/* meta grid */
body.qdco .qdco-ty-meta {
    display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px;
    margin-top: 18px; text-align: left;
}
@media (min-width: 600px) { body.qdco .qdco-ty-meta { grid-template-columns: repeat(4, minmax(0,1fr)); } }
body.qdco .qdco-ty-meta > div { background: var(--qdco-soft); border: 1px solid #eef2f7; border-radius: 12px; padding: 10px 12px; min-width: 0; }
body.qdco .qdco-ty-meta > div > span { display: block; font-size: 11px; font-weight: 700; color: var(--qdco-muted); text-transform: uppercase; letter-spacing: .05em; }
body.qdco .qdco-ty-meta b { display: block; font-size: 14px; margin-top: 3px; overflow-wrap: anywhere; }

body.qdco .qdco-pill {
    display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
    background: #fef3c7; color: #92400e;
}
body.qdco .qdco-pill-processing, body.qdco .qdco-pill-data-processing { background: #dbeafe; color: #1e40af; }
body.qdco .qdco-pill-completed { background: #d1fae5; color: #065f46; }
body.qdco .qdco-pill-failed, body.qdco .qdco-pill-cancelled, body.qdco .qdco-pill-refunded { background: #fee2e2; color: #991b1b; }

body.qdco .qdco-ty-rows { margin-top: 6px; border-top: 1px solid #f1f5f9; padding-top: 10px; }
body.qdco .qdco-ty-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
body.qdco .qdco-ty-rows span { color: var(--qdco-muted); }
body.qdco .qdco-ty-rows b { text-align: right; overflow-wrap: anywhere; }

/* actions */
body.qdco .qdco-ty-actions { display: grid; gap: 10px; }
@media (min-width: 600px) { body.qdco .qdco-ty-actions { grid-template-columns: repeat(2, minmax(0,1fr)); } }
body.qdco .qdco-ty-hero .qdco-ty-actions { margin-top: 18px; grid-template-columns: 1fr; }
body.qdco .qdco-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 12px 18px; border-radius: 14px;
    font-family: var(--qdco-font); font-size: 15px; font-weight: 800; text-decoration: none !important;
    color: #fff !important;
    background: var(--qdco-brand);
    background-image: linear-gradient(135deg, color-mix(in srgb, var(--qdco-brand) 88%, #fff), color-mix(in srgb, var(--qdco-brand) 85%, #000));
    box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--qdco-brand) 70%, transparent);
    transition: transform .15s, filter .15s;
}
body.qdco .qdco-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
body.qdco .qdco-btn-wa { background: #16a34a; background-image: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 10px 20px -12px rgba(22,163,74,.7); }
body.qdco .qdco-btn-ghost { background: #fff; background-image: none; color: var(--qdco-ink) !important; border: 1.5px solid var(--qdco-line); box-shadow: none; }

/* gateway / plugin output from woocommerce_thankyou */
body.qdco .qdco-ty-extra:empty { display: none; }
body.qdco .qdco-ty-extra > * { background: #fff; border: 1px solid var(--qdco-line); border-radius: var(--qdco-radius); padding: 16px 20px; margin: 0 0 12px; }
body.qdco .qdco-ty-extra h2 { font-size: 16px; margin: 0 0 10px; }

/* hide default bits some themes add on the order-received page */
body.qdco .woocommerce-order > .woocommerce-notice--success,
body.qdco .woocommerce-order > .woocommerce-thankyou-order-details { display: none; }

/* =============================================================
   SAVED DETAILS (returning customers)
============================================================= */
body.qdco.qdco-details-saved:not(.qdco-editing) .woocommerce-billing-fields__field-wrapper { display: none !important; }
body.qdco .qdco-saved {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 14px;
    background: var(--qdco-soft); border: 1.5px solid var(--qdco-line);
}
body.qdco.qdco-editing .qdco-saved { margin-bottom: 14px; }
body.qdco .qdco-saved-info { flex: 1; min-width: 0; }
body.qdco .qdco-saved-name { font-weight: 700; font-size: 14.5px; color: var(--qdco-ink); }
body.qdco .qdco-saved-line { font-size: 13.5px; color: var(--qdco-muted); overflow-wrap: anywhere; line-height: 1.45; }
body.qdco .qdco-saved-edit {
    flex-shrink: 0; cursor: pointer;
    padding: 8px 14px !important; min-height: 0 !important; border-radius: 10px !important;
    font-family: var(--qdco-font); font-size: 13px !important; font-weight: 700 !important; line-height: 1.2;
    color: var(--qdco-brand) !important; background: #fff !important;
    border: 1.5px solid color-mix(in srgb, var(--qdco-brand) 35%, #fff) !important; box-shadow: none !important;
    text-transform: none !important; letter-spacing: 0;
}
body.qdco .qdco-saved-edit:hover { background: color-mix(in srgb, var(--qdco-brand) 6%, #fff) !important; }

/* =============================================================
   MY ACCOUNT
============================================================= */
body.qdco-account-in .woocommerce:has(> .qdco-acc-nav) {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
    font-family: var(--qdco-font); color: var(--qdco-ink);
    max-width: 1080px; margin-left: auto; margin-right: auto;
}
body.qdco-account-in .woocommerce:has(> .qdco-acc-nav)::before,
body.qdco-account-in .woocommerce:has(> .qdco-acc-nav)::after { display: none !important; content: none !important; }
@media (min-width: 900px) {
    body.qdco-account-in .woocommerce:has(> .qdco-acc-nav) { grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
}

/* menu */
body.qdco-account .qdco-acc-nav {
    width: auto !important; float: none !important; margin: 0 !important; padding: 8px !important;
    background: #fff; border: 1px solid var(--qdco-line); border-radius: var(--qdco-radius);
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -18px rgba(15,23,42,.25);
}
body.qdco-account .qdco-acc-nav ul { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 2px; }
body.qdco-account .qdco-acc-nav li { margin: 0 !important; padding: 0 !important; list-style: none !important; border: 0 !important; }
body.qdco-account .qdco-acc-nav li::before { display: none !important; }
body.qdco-account .qdco-acc-nav a {
    display: flex !important; align-items: center; gap: 10px;
    padding: 11px 12px !important; border-radius: 12px;
    font-size: 14px; font-weight: 600; color: #334155 !important; text-decoration: none !important;
    background: none; border: 0 !important; transition: background .15s, color .15s;
}
body.qdco-account .qdco-acc-nav a .qdco-ic { color: #94a3b8; transition: color .15s; }
body.qdco-account .qdco-acc-nav a:hover { background: var(--qdco-soft); color: var(--qdco-ink) !important; }
body.qdco-account .qdco-acc-nav li.is-active a {
    background: color-mix(in srgb, var(--qdco-brand) 10%, #fff); color: var(--qdco-brand) !important;
}
body.qdco-account .qdco-acc-nav li.is-active a .qdco-ic { color: var(--qdco-brand); }
body.qdco-account .qdco-acc-nav-channel a .qdco-ic { color: #16a34a; }
@media (min-width: 900px) {
    body.qdco-account .qdco-acc-nav { position: sticky; top: 24px; }
}

/* mobile: horizontal scrolling pills */
@media (max-width: 899px) {
    body.qdco-account .qdco-acc-nav {
        padding: 6px !important; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    body.qdco-account .qdco-acc-nav::-webkit-scrollbar { display: none; }
    body.qdco-account .qdco-acc-nav ul { display: flex; gap: 6px; width: max-content; }
    body.qdco-account .qdco-acc-nav a { white-space: nowrap; padding: 9px 12px !important; font-size: 13px; }
}

/* content area */
body.qdco-account .woocommerce-MyAccount-content {
    width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; min-width: 0;
}
/* inner pages (account details, view order, wallet…) get a card */
body.qdco-account .woocommerce-MyAccount-content > :not(.qdco-dash):not(.woocommerce-notices-wrapper):not(.woocommerce-message):not(.woocommerce-error):not(.woocommerce-info) {
    background: #fff; border: 1px solid var(--qdco-line); border-radius: var(--qdco-radius);
    padding: 20px; margin: 0 0 16px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -18px rgba(15,23,42,.25);
}
body.qdco-account .woocommerce-MyAccount-content > p:not(:has(*)) { background: none; border: 0; box-shadow: none; padding: 0; }
body.qdco-account .woocommerce-MyAccount-content h2,
body.qdco-account .woocommerce-MyAccount-content h3,
body.qdco-account .woocommerce-MyAccount-content legend {
    font-family: var(--qdco-font); font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--qdco-ink); margin: 0 0 12px; padding: 0; border: 0;
}

/* account forms */
body.qdco-account .woocommerce-MyAccount-content .form-row,
body.qdco-account .woocommerce-form-login .form-row,
body.qdco-account .woocommerce-form-register .form-row,
body.qdco-account .woocommerce-ResetPassword .form-row {
    width: 100% !important; float: none !important; margin: 0 0 14px !important; padding: 0 !important;
}
@media (min-width: 640px) {
    body.qdco-account .woocommerce-MyAccount-content .form-row-first,
    body.qdco-account .woocommerce-MyAccount-content .form-row-last { width: calc(50% - 8px) !important; display: inline-block; vertical-align: top; }
    body.qdco-account .woocommerce-MyAccount-content .form-row-first { margin-right: 12px !important; }
}
body.qdco-account .woocommerce label { font-size: 13px; font-weight: 600; color: #334155; display: block; margin: 0 0 6px; }
body.qdco-account .woocommerce label.woocommerce-form__label-for-checkbox,
body.qdco-account .woocommerce label.inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
body.qdco-account .woocommerce input.input-text,
body.qdco-account .woocommerce input[type="text"],
body.qdco-account .woocommerce input[type="email"],
body.qdco-account .woocommerce input[type="tel"],
body.qdco-account .woocommerce input[type="password"],
body.qdco-account .woocommerce input[type="number"],
body.qdco-account .woocommerce select,
body.qdco-account .woocommerce textarea {
    width: 100% !important; max-width: none; min-height: 48px; padding: 12px 14px !important;
    font-family: var(--qdco-font); font-size: 16px !important; color: var(--qdco-ink) !important;
    background: var(--qdco-soft) !important; border: 1.5px solid var(--qdco-line) !important; border-radius: 12px !important;
    box-shadow: none !important; outline: none;
}
body.qdco-account .woocommerce input:focus,
body.qdco-account .woocommerce select:focus,
body.qdco-account .woocommerce textarea:focus {
    background: #fff !important; border-color: var(--qdco-brand) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--qdco-brand) 18%, transparent) !important;
}
body.qdco-account .woocommerce input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--qdco-brand); }
body.qdco-account .woocommerce .password-input { display: block; position: relative; }
body.qdco-account .woocommerce em { color: var(--qdco-muted); font-size: 12px; }

body.qdco-account .woocommerce button.button,
body.qdco-account .woocommerce a.button,
body.qdco-account .woocommerce input.button {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 11px 20px !important; border-radius: 12px !important; border: 0 !important;
    font-family: var(--qdco-font); font-size: 14.5px !important; font-weight: 700 !important; text-transform: none !important;
    color: #fff !important; text-decoration: none !important; cursor: pointer;
    background: var(--qdco-brand) !important;
    background-image: linear-gradient(135deg, color-mix(in srgb, var(--qdco-brand) 88%, #fff), color-mix(in srgb, var(--qdco-brand) 85%, #000)) !important;
    box-shadow: 0 8px 16px -10px color-mix(in srgb, var(--qdco-brand) 70%, transparent) !important;
}
body.qdco-account .woocommerce button.button:hover,
body.qdco-account .woocommerce a.button:hover { filter: brightness(1.06); }

/* tables (orders, view order, wallet transactions) */
body.qdco-account .woocommerce table.shop_table,
body.qdco-account .woocommerce table.woocommerce-orders-table,
body.qdco-account .woocommerce-MyAccount-content table {
    width: 100%; border: 0 !important; border-collapse: collapse; margin: 0 0 12px; border-radius: 0; background: none;
    font-size: 14px;
}
body.qdco-account .woocommerce-MyAccount-content table th {
    font-size: 11.5px; font-weight: 700; color: var(--qdco-muted); text-transform: uppercase; letter-spacing: .05em;
    background: none !important; border: 0 !important; border-bottom: 1px solid var(--qdco-line) !important; padding: 10px 8px !important; text-align: left;
}
body.qdco-account .woocommerce-MyAccount-content table td {
    border: 0 !important; border-bottom: 1px solid #f1f5f9 !important; padding: 12px 8px !important; background: none !important; vertical-align: middle;
}
body.qdco-account .woocommerce-MyAccount-content table tr:last-child td { border-bottom: 0 !important; }
body.qdco-account .woocommerce-MyAccount-content table a:not(.button) { color: var(--qdco-brand); font-weight: 600; text-decoration: none; }
body.qdco-account .woocommerce-MyAccount-content mark {
    background: color-mix(in srgb, var(--qdco-brand) 10%, #fff); color: var(--qdco-ink); padding: 1px 6px; border-radius: 6px; font-weight: 700;
}
body.qdco-account .woocommerce-MyAccount-content address {
    font-style: normal; line-height: 1.6; border: 0 !important; padding: 0 !important;
}

/* logged-out: login / register / lost password */
body.qdco-account:not(.qdco-account-in) .woocommerce {
    font-family: var(--qdco-font); color: var(--qdco-ink); max-width: 960px; margin-left: auto; margin-right: auto;
}
body.qdco-account form.woocommerce-form-login,
body.qdco-account form.woocommerce-form-register,
body.qdco-account form.woocommerce-ResetPassword {
    display: block; background: #fff; border: 1px solid var(--qdco-line) !important; border-radius: var(--qdco-radius) !important;
    padding: 22px !important; margin: 0 0 16px !important;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -18px rgba(15,23,42,.25);
}
body.qdco-account form.woocommerce-form-login > *,
body.qdco-account form.woocommerce-form-register > * { width: auto; }
body.qdco-account .u-columns.col2-set { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; width: auto; }
body.qdco-account .u-columns.col2-set::before, body.qdco-account .u-columns.col2-set::after { display: none; }
@media (min-width: 800px) { body.qdco-account .u-columns.col2-set { grid-template-columns: repeat(2, minmax(0,1fr)); } }
body.qdco-account .u-columns .u-column1, body.qdco-account .u-columns .u-column2 { width: auto !important; float: none !important; padding: 0 !important; }
body.qdco-account .woocommerce-LostPassword a { color: var(--qdco-brand); font-weight: 600; font-size: 13.5px; }

/* ---------- dashboard ---------- */
body.qdco .qdco-dash { display: grid; gap: 16px; font-family: var(--qdco-font); color: var(--qdco-ink); }
body.qdco .qdco-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.qdco .qdco-dash-hello { margin: 0 !important; font-size: 24px !important; font-weight: 800 !important; letter-spacing: -.02em; color: var(--qdco-ink); }
body.qdco .qdco-dash-sub { margin: 4px 0 0; color: var(--qdco-muted); font-size: 14px; }
body.qdco .qdco-dash-new { min-height: 44px; padding: 10px 16px; font-size: 14px; }

body.qdco .qdco-dash-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
@media (min-width: 640px) { body.qdco .qdco-dash-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
body.qdco .qdco-dash-grid > :only-child { grid-column: 1 / -1; }

/* wallet card */
body.qdco .qdco-wallet {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: var(--qdco-radius); padding: 20px; color: #fff; display: flex; flex-direction: column; gap: 6px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--qdco-brand) 90%, #fff), color-mix(in srgb, var(--qdco-brand) 60%, #0f172a));
    box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--qdco-brand) 80%, transparent);
    min-height: 180px;
}
body.qdco .qdco-wallet::before, body.qdco .qdco-wallet::after {
    content: ""; position: absolute; z-index: -1; border-radius: 50%; background: rgba(255,255,255,.12);
}
body.qdco .qdco-wallet::before { width: 170px; height: 170px; top: -70px; right: -50px; }
body.qdco .qdco-wallet::after  { width: 110px; height: 110px; bottom: -50px; left: -30px; background: rgba(255,255,255,.08); }
body.qdco .qdco-wallet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.qdco .qdco-wallet-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; opacity: .9; }
body.qdco .qdco-wallet-link { color: #fff !important; font-size: 12.5px; font-weight: 700; text-decoration: none !important; opacity: .85; border-bottom: 1px solid rgba(255,255,255,.5); }
body.qdco .qdco-wallet-amount { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 6px 0 auto; overflow-wrap: anywhere; }
body.qdco .qdco-wallet-amount .amount, body.qdco .qdco-wallet-amount bdi { color: #fff; }
body.qdco .qdco-wallet-btn {
    margin-top: 14px; align-self: flex-start;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--qdco-ink) !important;
    font-weight: 800; font-size: 14px; text-decoration: none !important;
    box-shadow: 0 6px 14px rgba(0,0,0,.15); transition: transform .15s;
}
body.qdco .qdco-wallet-btn:hover { transform: translateY(-1px); }

/* profile card */
body.qdco .qdco-profile { display: flex; flex-direction: column; gap: 14px; }
body.qdco .qdco-profile-top { display: flex; align-items: center; gap: 12px; }
body.qdco .qdco-avatar {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    font-weight: 800; font-size: 19px; color: var(--qdco-brand);
    background: color-mix(in srgb, var(--qdco-brand) 12%, #fff);
}
body.qdco .qdco-profile-main { min-width: 0; }
body.qdco .qdco-profile-name { font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
body.qdco .qdco-profile-since { font-size: 12.5px; color: var(--qdco-muted); }
body.qdco .qdco-profile-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #f1f5f9; font-size: 14px; }
body.qdco .qdco-profile-rows span { color: var(--qdco-muted); }
body.qdco .qdco-profile-rows b { text-align: right; overflow-wrap: anywhere; min-width: 0; }
body.qdco .qdco-profile-rows em { color: var(--qdco-muted); font-weight: 500; font-style: normal; }
body.qdco .qdco-profile-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
body.qdco .qdco-profile-actions a {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; text-decoration: none !important;
    color: var(--qdco-ink) !important; background: var(--qdco-soft); border: 1px solid var(--qdco-line);
}
body.qdco .qdco-profile-actions a .qdco-ic { width: 15px; height: 15px; }
body.qdco .qdco-profile-actions a.qdco-logout { color: #b91c1c !important; }

/* recent orders */
body.qdco .qdco-recent-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
body.qdco .qdco-recent-head .qdco-card-title { margin: 0 !important; }
body.qdco .qdco-see-all { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--qdco-brand) !important; text-decoration: none !important; }
body.qdco .qdco-see-all .qdco-ic { width: 15px; height: 15px; }
body.qdco a.qdco-order-row { text-decoration: none !important; color: inherit !important; border-radius: 12px; margin: 0 -8px; padding-left: 8px; padding-right: 8px; transition: background .15s; }
body.qdco a.qdco-order-row:hover { background: var(--qdco-soft); }
body.qdco .qdco-recent-head + .qdco-order-row { border-top: 0; }
body.qdco .qdco-order-row .qdco-item-side { display: grid; justify-items: end; gap: 4px; }
body.qdco .qdco-order-row .qdco-qty { font-size: 12px; margin-left: 4px; }
body.qdco .qdco-empty { text-align: center; padding: 18px 0 6px; color: var(--qdco-muted); }
body.qdco .qdco-empty p { margin: 0 0 12px; }

/* developer API */
body.qdco .qdco-dev { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
body.qdco .qdco-dev .qdco-card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 4px !important; }
body.qdco .qdco-dev p { margin: 0; color: var(--qdco-muted); font-size: 13.5px; }
body.qdco .qdco-dev-text { flex: 1; min-width: 220px; }
body.qdco .qdco-dev-actions { display: flex; gap: 10px; flex-wrap: wrap; }
body.qdco .qdco-dev-actions .qdco-btn { min-height: 44px; padding: 10px 16px; font-size: 14px; }

/* whatsapp channel banner */
body.qdco a.qdco-channel {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--qdco-radius);
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4); border: 1px solid #bbf7d0;
    color: #14532d !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s;
}
body.qdco a.qdco-channel:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -14px rgba(22,163,74,.6); }
body.qdco .qdco-channel-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #16a34a; color: #fff; flex-shrink: 0; }
body.qdco .qdco-channel-text { flex: 1; min-width: 0; }
body.qdco .qdco-channel-text b { display: block; font-size: 14.5px; }
body.qdco .qdco-channel-text small { display: block; font-size: 12.5px; color: #15803d; }
body.qdco .qdco-nowrap, body.qdco .qdco-order-row .qdco-qty { white-space: nowrap; }
@media (max-width: 599px) {
    body.qdco .qdco-ord-date { display: none; }
    body.qdco .qdco-wallet { min-height: 0; }
    body.qdco .qdco-wallet-amount { font-size: 28px; margin-bottom: 0; }
    body.qdco .qdco-order-row .qdco-item-price { font-size: 14px; }
    body.qdco .qdco-order-row .qdco-pill { font-size: 11px; }
    body.qdco .qdco-dash-hello { font-size: 21px !important; }
}

/* account menu switched off: single centred column */
body.qdco-account-in.qdco-menu-off .woocommerce:has(> .woocommerce-MyAccount-content) {
    max-width: 860px; margin-left: auto; margin-right: auto; font-family: var(--qdco-font);
}
body.qdco-account-in.qdco-menu-off .woocommerce-MyAccount-navigation { display: none !important; }
body.qdco-account-in.qdco-menu-off .woocommerce-MyAccount-content { width: 100% !important; float: none !important; }
body.qdco .qdco-acc-back {
    display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px;
    padding: 8px 14px 8px 10px; border-radius: 999px;
    background: #fff; border: 1px solid var(--qdco-line);
    font-size: 13.5px; font-weight: 700; color: var(--qdco-ink) !important; text-decoration: none !important;
}
body.qdco .qdco-acc-back:hover { border-color: var(--qdco-brand); color: var(--qdco-brand) !important; }

/* menu off: also hide anything the theme adds beside the content (e.g. avatar/user box above the menu) */
body.qdco-account-in.qdco-menu-off .woocommerce:has(> .woocommerce-MyAccount-content) > :not(.woocommerce-MyAccount-content):not(.woocommerce-notices-wrapper):not(.qdco-acc-back):not(.woocommerce-message):not(.woocommerce-error):not(.woocommerce-info) {
    display: none !important;
}
body.qdco-account-in.qdco-menu-off .woocommerce:has(> .woocommerce-MyAccount-content) {
    display: block !important; border: 0 !important;
}
body.qdco-account-in.qdco-menu-off .woocommerce-MyAccount-content { border: 0 !important; border-left: 0 !important; padding-left: 0 !important; }

/* theme puts the menu in its own sidebar wrapper (not our grid): keep a gap, drop the divider line */
body.qdco-account-in .woocommerce-MyAccount-content { border-left: 0 !important; box-shadow: none; }
@media (min-width: 769px) {
    body.qdco-account-in:not(.qdco-menu-off) .woocommerce:not(:has(> .qdco-acc-nav)) .woocommerce-MyAccount-content {
        padding-left: 28px !important; box-sizing: border-box;
    }
    body.qdco-account-in:not(.qdco-menu-off) .woocommerce:not(:has(> .qdco-acc-nav)) .qdco-acc-nav {
        margin-right: 8px !important; box-sizing: border-box; max-width: 100%;
    }
}

/* content always sits BESIDE a floated theme menu, never underneath it (fixes boxes from other plugins, e.g. API page) */
body.qdco-account-in .woocommerce-MyAccount-content { display: flow-root !important; overflow-wrap: anywhere; }
body.qdco-account-in .woocommerce-MyAccount-content pre,
body.qdco-account-in .woocommerce-MyAccount-content code { overflow-wrap: anywhere; white-space: pre-wrap; }
body.qdco-account-in .woocommerce-MyAccount-content table { display: block; overflow-x: auto; }
@media (min-width: 769px) {
    body.qdco-account-in .woocommerce-MyAccount-content table { display: table; }
}
