
/* ==========================================================
   DHANKUBERA QUICK CHECKOUT — PREMIUM ORANGE & WHITE UI
   Append to the bottom of quick-checkout.css
   ========================================================== */

:root {
    --dkqc-orange: #f58220;
    --dkqc-orange-dark: #d96508;
    --dkqc-orange-soft: #fff3e8;
    --dkqc-ink: #202124;
    --dkqc-muted: #737780;
    --dkqc-border: #ececf0;
    --dkqc-surface: #ffffff;
}

/* Page overlay */
.dkqc-overlay {
    background: rgba(20, 23, 29, 0.58);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Main checkout panel */
.dkqc-drawer {
    width: min(100%, 470px);
    max-width: 100%;
    background: #fff;
    color: var(--dkqc-ink);
    box-shadow: -18px 0 60px rgba(20, 23, 29, 0.18);
    border-left: 1px solid rgba(255, 255, 255, 0.7);
    font-family: inherit;
    overflow-x: hidden;
}

/* Branded header */
.dkqc-drawer .dkqc-drawer__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 25px 25px 23px;
    background: linear-gradient(135deg, #fff7ef 0%, #fff 78%);
    border-top: 5px solid var(--dkqc-orange);
    border-bottom: 1px solid #f3eee9;
}

.dkqc-drawer .dkqc-drawer__header h2 {
    margin: 0;
    color: #252525;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 750;
    letter-spacing: -0.65px;
}

.dkqc-drawer .dkqc-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #f0e5dc;
    border-radius: 13px;
    background: #fff;
    color: #343434;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.dkqc-drawer .dkqc-close:hover {
    background: var(--dkqc-orange);
    border-color: var(--dkqc-orange);
    color: #fff;
    transform: rotate(90deg);
}

/* Scrollable content */
.dkqc-drawer .dkqc-drawer__body {
    padding: 23px 24px 26px;
    overflow-y: auto;
}

.dkqc-drawer .dkqc-drawer__status {
    margin: 0 0 20px;
    color: var(--dkqc-muted);
    font-size: 13px;
    line-height: 1.65;
}

/* Cart summary surface */
.dkqc-drawer .dkqc-drawer__summary {
    margin: 0 0 22px;
    padding: 17px;
    border: 1px solid var(--dkqc-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(24, 28, 35, .035);
}

.dkqc-drawer .dkqc-cart-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dkqc-drawer .dkqc-cart-items li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f2;
    color: #444750;
    font-size: 13px;
    line-height: 1.55;
}

.dkqc-drawer .dkqc-cart-items li:first-child {
    padding-top: 2px;
}

.dkqc-drawer .dkqc-cart-items li:last-child {
    border-bottom: 0;
}

.dkqc-drawer .dkqc-cart-items li span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dkqc-drawer .dkqc-cart-items li strong {
    flex-shrink: 0;
    color: #22242a;
    font-size: 13px;
    font-weight: 700;
}

/* Order subtotal */
.dkqc-drawer .dkqc-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 13px;
    padding: 16px;
    background: var(--dkqc-orange-soft);
    border: 1px solid #ffe0c5;
    border-radius: 12px;
}

.dkqc-drawer .dkqc-cart-total span {
    color: #5f4b3b;
    font-size: 13px;
    font-weight: 600;
}

.dkqc-drawer .dkqc-cart-total strong {
    color: var(--dkqc-orange-dark);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.3px;
}

/* Customer form */
.dkqc-drawer .dkqc-customer-form {
    margin: 0;
    padding: 21px;
    border: 1px solid var(--dkqc-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(24, 28, 35, .035);
}

.dkqc-drawer .dkqc-customer-form h3 {
    margin: 0 0 5px;
    color: var(--dkqc-ink);
    font-size: 19px;
    line-height: 1.4;
    font-weight: 750;
    letter-spacing: -.35px;
}

.dkqc-drawer .dkqc-customer-form label {
    display: block;
    margin: 16px 0 7px;
    color: #454750;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15px;
}

.dkqc-drawer .dkqc-customer-form input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e3e4e8;
    border-radius: 10px;
    outline: none;
    background: #fafafa;
    color: #25262a;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .2s ease, background .2s ease,
                box-shadow .2s ease;
}

.dkqc-drawer .dkqc-customer-form input::placeholder {
    color: #a0a2a8;
}

.dkqc-drawer .dkqc-customer-form input:hover {
    border-color: #d3d4d9;
    background: #fff;
}

.dkqc-drawer .dkqc-customer-form input:focus {
    border-color: var(--dkqc-orange);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(245, 130, 32, .12);
}

/* Primary payment button */
.dkqc-drawer #dkqc-pay-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 52px;
    margin: 23px 0 0;
    padding: 14px 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #fa922f 0%, #ed7412 100%);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: .1px;
    box-shadow: 0 7px 16px rgba(234, 111, 13, .22);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease,
                filter .2s ease;
}

.dkqc-drawer #dkqc-pay-button:hover {
    transform: translateY(-1px);
    filter: saturate(1.08);
    box-shadow: 0 10px 23px rgba(234, 111, 13, .28);
}

.dkqc-drawer #dkqc-pay-button:active {
    transform: translateY(0);
}

.dkqc-drawer #dkqc-pay-button:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

/* Status and errors */
.dkqc-drawer #dkqc-checkout-message {
    margin: 12px 0 0;
    padding: 0;
    color: #b42318;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.dkqc-drawer .dkqc-gateway-notice {
    margin: 16px 0 0;
    padding: 13px 15px;
    border: 1px solid #ffd9b7;
    border-radius: 12px;
    background: #fff8f1;
    color: #75411c;
    font-size: 12px;
    line-height: 1.65;
}

.dkqc-drawer .dkqc-gateway-notice a {
    display: inline-block;
    margin-top: 5px;
    color: var(--dkqc-orange-dark);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Footer actions */
.dkqc-drawer .dkqc-drawer__footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 24px 24px;
    border-top: 1px solid #eeeef1;
    background: #fff;
}

.dkqc-drawer .dkqc-drawer__footer .dkqc-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 13px 17px;
    border: 1px solid var(--dkqc-orange);
    border-radius: 11px;
    background: #fff;
    color: var(--dkqc-orange-dark);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.dkqc-drawer .dkqc-drawer__footer .dkqc-continue:hover {
    background: var(--dkqc-orange);
    color: #fff;
}

.dkqc-drawer .dkqc-drawer__footer .dkqc-view-cart {
    display: block;
    padding: 3px;
    color: #72747c;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.dkqc-drawer .dkqc-drawer__footer .dkqc-view-cart:hover {
    color: var(--dkqc-orange-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Mobile layout */
@media (max-width: 520px) {
    .dkqc-drawer {
        width: 100%;
        max-width: 100%;
    }

    .dkqc-drawer .dkqc-drawer__header {
        padding: 20px 18px;
    }

    .dkqc-drawer .dkqc-drawer__header h2 {
        font-size: 21px;
    }

    .dkqc-drawer .dkqc-drawer__body {
        padding: 18px;
    }

    .dkqc-drawer .dkqc-drawer__summary,
    .dkqc-drawer .dkqc-customer-form {
        padding: 16px;
        border-radius: 14px;
    }

    .dkqc-drawer .dkqc-drawer__footer {
        padding: 15px 18px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dkqc-drawer *,
    .dkqc-overlay {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
    
/* DKQC FIX: Keep the drawer fixed over the entire page */
html body .dkqc-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999998 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

html body aside#dkqc-drawer.dkqc-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    z-index: 999999 !important;
    width: min(470px, 100%) !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    background: #fff;
    transform: translateX(100%);
}

/* Drawer open state */
html body .dkqc-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

html body aside#dkqc-drawer.dkqc-drawer.is-open {
    transform: translateX(0);
}

/* Keep drawer children within the viewport */
html body #dkqc-drawer *,
html body #dkqc-drawer *::before,
html body #dkqc-drawer *::after {
    box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
    html body .dkqc-overlay {
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    html body aside#dkqc-drawer.dkqc-drawer {
        transition: transform 0.3s ease;
    }
}

}
