/* Sasti Market Checkout */

.aq-checkout{
    padding:34px 0 70px;
    background:
        radial-gradient(circle at 15% 10%,rgba(25,242,107,.06),transparent 30%),
        var(--bg);
}

.aq-wrap{
    width:min(1180px,calc(100% - 32px));
    margin-inline:auto;
}

.aq-grid{
    display:grid;
    grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);
    gap:22px;
    align-items:start;
}

.aq-main{
    display:grid;
    gap:18px;
}

.aq-card,
.aq-summary,
.aq-side-note,
.aq-help-box,
.aq-success{
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:22px;
}

.aq-card{
    padding:24px;
}

.aq-card-title{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:20px;
}

.aq-card-title h2{
    margin:3px 0 0;
    font-size:22px;
    letter-spacing:-.03em;
}

.aq-card-kicker{
    display:block;
    color:var(--accent);
    font-size:10px;
    font-weight:900;
    letter-spacing:.12em;
}

.aq-card-icon{
    width:42px;
    height:42px;
    flex:0 0 42px;
    display:grid;
    place-items:center;
    border-radius:13px;
    background:rgba(25,242,107,.10);
    border:1px solid rgba(25,242,107,.18);
    color:var(--accent);
    font-weight:900;
}

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

.aq-payment-method{
    min-width:0;
    padding:15px;
    border:1px solid var(--line);
    border-radius:16px;
    background:#090e0b;
}

.aq-payment-method-head{
    display:flex;
    align-items:center;
    gap:10px;
    padding-bottom:13px;
    margin-bottom:10px;
    border-bottom:1px solid var(--line);
}

.aq-payment-logo{
    width:36px;
    height:36px;
    flex:0 0 36px;
    display:grid;
    place-items:center;
    border-radius:11px;
    background:var(--accent);
    color:#041108;
    font-weight:950;
}

.aq-payment-method-head strong,
.aq-payment-method-head small{
    display:block;
}

.aq-payment-method-head strong{
    font-size:14px;
}

.aq-payment-method-head small{
    color:var(--muted);
    font-size:10px;
}

.aq-payment-line{
    display:grid;
    gap:2px;
    padding:7px 0;
}

.aq-payment-line span{
    color:var(--muted);
    font-size:10px;
}

.aq-payment-line b{
    overflow-wrap:anywhere;
    font-size:12px;
}

.aq-payment-note{
    margin:15px 0 0;
    color:var(--muted);
    font-size:11px;
}

.aq-form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:13px;
}

.aq-input-field{
    display:grid;
    gap:7px;
    margin-top:14px;
}

.aq-input-field>span:first-child,
.aq-proof-label{
    font-size:12px;
    font-weight:800;
    color:#fff;
}

.aq-input-field input,
.aq-input-field textarea{
    width:100%;
    border:1px solid var(--line);
    background:#090e0b;
    color:#fff;
    border-radius:13px;
    padding:13px 14px;
    outline:none;
}

.aq-input-field input{
    min-height:46px;
}

.aq-input-field textarea{
    resize:vertical;
    min-height:110px;
}

.aq-input-field input:focus,
.aq-input-field textarea:focus{
    border-color:var(--accent);
    box-shadow:0 0 0 3px rgba(25,242,107,.10);
}

.aq-proof-field{
    display:grid;
    gap:8px;
    margin-top:18px;
    cursor:pointer;
}

.aq-proof-field input{
    position:absolute;
    opacity:0;
    width:1px;
    height:1px;
}

.aq-proof-box{
    min-height:128px;
    display:grid;
    place-items:center;
    align-content:center;
    gap:7px;
    padding:18px;
    text-align:center;
    border:1px dashed #34463a;
    border-radius:15px;
    background:#090e0b;
}

.aq-upload-icon{
    font-size:28px;
    color:var(--accent);
}

.aq-proof-box strong{
    font-size:13px;
}

.aq-proof-box small{
    color:var(--muted);
    font-size:10px;
}

.aq-proof-note{
    margin:8px 0 0;
    color:var(--muted);
    font-size:10px;
}

.aq-coupon-field{
    margin-top:18px;
}

.aq-coupon-row{
    display:grid;
    grid-template-columns:1fr auto;
    gap:9px;
}

.aq-coupon-button{
    min-width:90px;
    border:0;
    border-radius:13px;
    background:rgba(25,242,107,.16);
    color:var(--accent);
    font-weight:850;
    padding:0 18px;
    cursor:pointer;
}

.aq-note-count{
    text-align:right;
    color:var(--muted);
    font-size:9px;
}

.aq-submit{
    width:100%;
    min-height:54px;
    margin-top:14px;
    border:0;
    border-radius:14px;
    background:linear-gradient(135deg,var(--accent2),var(--accent));
    color:#041108;
    font-size:14px;
    font-weight:900;
    cursor:pointer;
}

.aq-submit:disabled{
    opacity:.45;
    cursor:not-allowed;
}

.aq-side{
    position:sticky;
    top:18px;
    display:grid;
    gap:14px;
}

.aq-summary{
    padding:20px;
}

.aq-summary-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding-bottom:15px;
    border-bottom:1px solid var(--line);
}

.aq-summary-head h2{
    margin:0;
    font-size:18px;
}

.aq-summary-head span{
    padding:5px 8px;
    border:1px solid rgba(25,242,107,.22);
    border-radius:999px;
    color:var(--accent);
    font-size:9px;
}

.aq-product-row{
    display:grid;
    grid-template-columns:48px 1fr auto;
    gap:11px;
    align-items:center;
    padding:17px 0;
    border-bottom:1px solid var(--line);
}

.aq-product-img{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:12px;
    background:#090e0b;
    color:var(--accent);
    font-weight:900;
}

.aq-product-img img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:4px;
}

.aq-summary-product{
    min-width:0;
}

.aq-summary-product strong,
.aq-summary-product small{
    display:block;
}

.aq-summary-product strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:12px;
}

.aq-summary-product small{
    margin-top:2px;
    color:var(--muted);
    font-size:10px;
}

.aq-product-row>strong{
    font-size:12px;
    white-space:nowrap;
}

.aq-summary-lines{
    padding:13px 0;
    border-bottom:1px solid var(--line);
}

.aq-summary-lines>div{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:4px 0;
    font-size:11px;
}

.aq-summary-lines span{
    color:var(--muted);
}

.aq-total{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px 0;
    font-size:15px;
}

.aq-total strong{
    color:var(--accent);
    font-size:18px;
}

.aq-checks{
    display:grid;
    gap:7px;
    padding-top:13px;
    border-top:1px solid var(--line);
}

.aq-checks span{
    color:var(--muted);
    font-size:10px;
}

.aq-side-note,
.aq-help-box{
    display:grid;
    gap:5px;
    padding:16px 18px;
}

.aq-side-note{
    background:
        linear-gradient(135deg,rgba(25,242,107,.06),transparent),
        var(--panel);
}

.aq-side-note strong,
.aq-help-box strong{
    font-size:12px;
}

.aq-help-box span{
    color:var(--muted);
    font-size:10px;
}

.aq-help-box a{
    min-height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-top:6px;
    border-radius:999px;
    background:rgba(25,242,107,.18);
    color:var(--accent);
    font-size:12px;
    font-weight:900;
}

.aq-alert{
    margin-bottom:14px;
    padding:13px 15px;
    border:1px solid rgba(255,114,114,.35);
    border-radius:14px;
    background:rgba(255,114,114,.08);
    color:#ffb2b2;
    font-size:12px;
}

.aq-success{
    width:min(680px,100%);
    margin:auto;
    padding:34px;
    text-align:center;
}

.aq-success .ok{
    width:56px;
    height:56px;
    display:grid;
    place-items:center;
    margin:0 auto 14px;
    border-radius:50%;
    background:var(--accent);
    color:#041108;
    font-size:24px;
    font-weight:950;
}

.aq-tag{
    color:var(--accent);
    font-size:10px;
    font-weight:900;
    letter-spacing:.12em;
}

.aq-success h1{
    margin:8px 0 12px;
    font-size:34px;
    letter-spacing:-.04em;
}

.aq-success p{
    color:var(--muted);
}

.aq-success-actions{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:20px;
}

.aq-success-actions a{
    min-height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 16px;
    border:1px solid var(--line);
    border-radius:12px;
    font-size:12px;
    font-weight:800;
}

.aq-success-actions a:first-child{
    background:var(--accent);
    color:#041108;
    border-color:var(--accent);
}

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

    .aq-side{
        position:static;
    }

    .aq-payment-methods{
        grid-template-columns:1fr;
    }
}

@media(max-width:620px){
    .aq-checkout{
        padding:24px 0 52px;
    }

    .aq-wrap{
        width:min(100% - 22px,1180px);
    }

    .aq-card{
        padding:18px;
        border-radius:18px;
    }

    .aq-form-grid{
        grid-template-columns:1fr;
    }

    .aq-product-row{
        grid-template-columns:44px 1fr;
    }

    .aq-product-row>strong{
        grid-column:2;
        margin-top:-7px;
    }

    .aq-card-title h2{
        font-size:19px;
    }

    .aq-payment-methods{
        grid-template-columns:1fr;
    }
}
/* Payment proof preview */
.aq-proof-preview{
    display:block;
    width:min(260px,100%);
    max-height:180px;
    object-fit:contain;
    margin-top:8px;
    border:1px solid var(--line);
    border-radius:12px;
    background:#060a07;
}
.aq-proof-preview[hidden]{
    display:none;
}
/* Order Summary responsive placement */

.aq-mobile-summary{
    display:none;
}

@media(max-width:900px){

    .aq-mobile-summary{
        display:block;
        margin-bottom:14px;
    }

    .aq-side .aq-summary{
        display:none;
    }

    .aq-side{
        position:static;
    }
}

@media(min-width:901px){

    .aq-mobile-summary{
        display:none;
    }

    .aq-side .aq-summary{
        display:block;
    }
}