.checkout-page{
    padding:160px 0 100px;
    background:#f8fafc;
}

.checkout-header{
    text-align:center;
    margin-bottom:60px;
}

.checkout-header small{
    color:#06298b;
    letter-spacing:3px;
}

.checkout-header h1{
    font-size:64px;
    color:#06298b;
}
.header{
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.header .icons svg{
    stroke: #06298b;
}
.header .menu a{
    color: #06298b;
}
.checkout-grid{
    display:grid;
    grid-template-columns:2fr 420px;
    gap:40px;
    align-items:start;
}

.checkout-form{
    display:flex;
    flex-direction:column;
    gap:25px;
}

.checkout-summary{
    position:sticky;
    top:120px;
    align-self:start;
}

.checkout-card{
    background:white;
    border-radius:24px;
    padding:35px;
    box-shadow:0 8px 25px rgba(0,0,0,.05);
}

.checkout-card h3{
    margin-bottom:25px;
    color:#06298b;
}

.checkout-card input,
.checkout-card textarea{
    width:100%;
    border:1px solid #e2e8f0;
    border-radius:14px;
    padding:15px;
    margin-bottom:15px;
    font-family:inherit;
}

.checkout-consents{
    display:grid;
    gap:14px;
}

.checkout-consents h3{
    margin-bottom:8px;
}

.checkout-consent{
    display:flex;
    align-items:flex-start;
    gap:12px;
    color:#334155;
    line-height:1.6;
}

.checkout-card .checkout-consent input{
    width:auto;
    flex:0 0 auto;
    margin:5px 0 0;
}

.checkout-consent a{
    color:#06298b;
    font-weight:700;
}

.checkout-consents p{
    margin:0;
    color:#64748b;
    font-size:14px;
}

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

.option{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px;

    border:1px solid #e2e8f0;
    border-radius:14px;

    margin-bottom:12px;

    cursor:pointer;
}

.option input{
    width:auto;
    margin:0 12px 0 0;
    flex:0 0 auto;
}

.option span{
    flex:1;
}

.option-text{
    display:grid;
    gap:4px;
}

.option-text strong{
    color:#0f172a;
}

.option-text small,
.shipping-point-field small{
    color:#64748b;
    font-size:13px;
    line-height:1.4;
}

.option > strong{
    white-space:nowrap;
}

.option:hover{
    border-color:#06298b;
}

.shipping-point-field{
    display:grid;
    gap:8px;
    margin-top:14px;
}

.shipping-point-field[hidden]{
    display:none;
}

.shipping-point-field label{
    color:#06298b;
    font-weight:700;
}

.checkout-card .shipping-point-field input{
    margin-bottom:0;
}

.shipping-point-row{
    display:grid;
    grid-template-columns:auto;
    gap:10px;
    align-items:start;
}

.shipping-point-row button{
    min-height:51px;
    border:0;
    border-radius:14px;
    padding:0 16px;
    background:#06298b;
    color:white;
    font-weight:700;
    cursor:pointer;
    white-space:nowrap;
}

.shipping-point-row button:disabled{
    opacity:.55;
    cursor:wait;
}

.shipping-point-selected{
    margin:0;
    padding:10px 12px;
    border:1px solid #dbe3ef;
    border-radius:12px;
    background:#f8fafc;
    color:#334155;
    font-size:14px;
    line-height:1.4;
}

.shipping-point-status{
    margin:0;
    padding:10px 12px;
    border-radius:12px;
    font-size:14px;
    font-weight:700;
}

.shipping-point-status.success{
    background:#ecfdf5;
    color:#047857;
}

.shipping-point-status.danger{
    background:#fef2f2;
    color:#b91c1c;
}

.shipping-point-status.info{
    background:#eff6ff;
    color:#06298b;
}

.shipping-map-modal{
    position:fixed;
    inset:0;
    z-index:1000;
    display:grid;
    place-items:center;
    padding:24px;
    background:rgba(15,23,42,.62);
}

.shipping-map-modal[hidden]{
    display:none;
}

.shipping-map-dialog{
    width:min(1040px,100%);
    height:min(760px,92vh);
    display:grid;
    grid-template-rows:auto minmax(280px,1fr) auto;
    overflow:hidden;
    border-radius:20px;
    background:white;
    box-shadow:0 24px 70px rgba(15,23,42,.3);
}

.shipping-map-head,
.shipping-map-foot{
    display:flex;
    align-items:center;
    gap:12px;
    padding:16px;
}

.shipping-map-head{
    justify-content:space-between;
    border-bottom:1px solid #e2e8f0;
    color:#06298b;
}

.shipping-map-head button{
    width:42px;
    height:42px;
    border:0;
    border-radius:12px;
    background:#f1f5f9;
    color:#0f172a;
    font-size:26px;
    cursor:pointer;
}

.shipping-map-dialog iframe{
    width:100%;
    height:100%;
    border:0;
    background:#f8fafc;
}

.shipping-map-foot{
    border-top:1px solid #e2e8f0;
}

.shipping-map-foot input{
    width:100%;
    min-height:48px;
    border:1px solid #e2e8f0;
    border-radius:14px;
    padding:0 14px;
}

.shipping-map-foot button{
    min-height:48px;
    border:0;
    border-radius:14px;
    padding:0 18px;
    background:#06298b;
    color:white;
    font-weight:700;
    cursor:pointer;
    white-space:nowrap;
}

.summary-card{
    background:white;
    border-radius:24px;
    padding:35px;

    box-shadow:0 8px 25px rgba(0,0,0,.05);
}

.summary-card h3{
    margin-bottom:25px;
    color:#06298b;
}

.summary-item,
.summary-total{
    display:flex;
    justify-content:space-between;
    margin-bottom:15px;
    gap:16px;
}

.summary-total{
    font-size:22px;
    margin-top:20px;
}

.summary-discount strong{
    color:#047857;
}

.summary-loyalty strong{
    color:#d39b24;
}

.summary-discount small{
    color:#64748b;
    font-size:12px;
}

.loyalty-summary-note{
    margin:-8px 0 15px;
    color:#64748b;
    font-size:13px;
    line-height:1.45;
}

.loyalty-summary-note span{
    color:#0f172a;
    font-weight:800;
}

.discount-box{
    display:grid;
    gap:10px;
}

.discount-box label{
    color:#06298b;
    font-weight:700;
}

.discount-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    gap:10px;
    align-items:center;
}

.discount-row input{
    width:100%;
    min-height:46px;
    border:1px solid #e2e8f0;
    border-radius:14px;
    padding:0 14px;
    font-family:inherit;
    text-transform:uppercase;
}

.discount-row button{
    min-height:46px;
    border:0;
    border-radius:14px;
    padding:0 16px;
    background:#06298b;
    color:white;
    font-weight:700;
    cursor:pointer;
}

.discount-row button:disabled{
    opacity:.55;
    cursor:wait;
}

.discount-row .discount-clear{
    width:46px;
    padding:0;
    background:#f1f5f9;
    color:#0f172a;
}

.discount-status{
    margin:0;
    padding:10px 12px;
    border-radius:12px;
    font-size:14px;
    font-weight:700;
}

.discount-status.success{
    background:#ecfdf5;
    color:#047857;
}

.discount-status.danger{
    background:#fef2f2;
    color:#b91c1c;
}

.discount-status.info{
    background:#eff6ff;
    color:#06298b;
}

.btn-order{
    width:100%;
    margin-top:25px;

    border:none;
    background:#06298b;
    color:white;

    padding:18px;

    border-radius:14px;

    font-weight:700;
    cursor:pointer;
}

.btn-order:disabled{
    opacity:.45;
    cursor:not-allowed;
}

.checkout-alert{
    max-width:900px;
    margin:0 auto 24px;
    padding:16px 18px;
    border-radius:16px;
    font-weight:700;
}

.checkout-alert.success{
    background:#ecfdf5;
    color:#047857;
}

.checkout-alert.danger{
    background:#fef2f2;
    color:#b91c1c;
}

.checkout-message{
    margin-bottom:18px;
}

.thank-you-page{
    min-height:70vh;
}

.thank-you-panel{
    max-width:980px;
    margin:0 auto;
    padding:42px;
    border-radius:24px;
    background:white;
    box-shadow:0 8px 25px rgba(0,0,0,.06);
}

.thank-you-status{
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    border-radius:18px;
    background:#ecfdf5;
    color:#047857;
    margin-bottom:24px;
}

.thank-you-status svg{
    width:30px;
    height:30px;
    stroke-width:2.5;
}

.thank-you-copy{
    max-width:720px;
}

.thank-you-copy small{
    color:#06298b;
    letter-spacing:3px;
    font-weight:700;
}

.thank-you-copy h1{
    margin:8px 0 14px;
    color:#06298b;
    font-size:52px;
    line-height:1.05;
}

.thank-you-copy p{
    margin:0;
    color:#475569;
    font-size:18px;
    line-height:1.7;
}

.thank-you-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:14px;
    margin-top:32px;
}

.thank-you-card{
    display:grid;
    gap:6px;
    min-height:104px;
    padding:18px;
    border:1px solid #e2e8f0;
    border-radius:16px;
    background:#f8fafc;
}

.thank-you-card span,
.thank-you-delivery span,
.thank-you-payment dt{
    color:#64748b;
    font-size:13px;
    font-weight:700;
    text-transform:uppercase;
}

.thank-you-card strong{
    color:#0f172a;
    font-size:17px;
    line-height:1.25;
}

.thank-you-card small{
    color:#64748b;
    font-size:13px;
}

.thank-you-payment,
.thank-you-summary{
    margin-top:28px;
    padding-top:28px;
    border-top:1px solid #e2e8f0;
}

.thank-you-payment h2,
.thank-you-summary h2{
    margin:0 0 18px;
    color:#06298b;
    font-size:24px;
}

.thank-you-payment dl{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:14px;
    margin:0;
}

.thank-you-payment dl > div{
    padding:16px;
    border-radius:16px;
    background:#eff6ff;
}

.thank-you-payment dd{
    margin:6px 0 0;
    color:#0f172a;
    font-weight:800;
    overflow-wrap:anywhere;
}

.thank-you-items{
    display:grid;
    gap:12px;
}

.thank-you-items div{
    display:flex;
    justify-content:space-between;
    gap:18px;
    padding-bottom:12px;
    border-bottom:1px solid #e2e8f0;
}

.thank-you-items span{
    color:#334155;
}

.thank-you-items strong{
    color:#0f172a;
    white-space:nowrap;
}

.thank-you-delivery{
    display:grid;
    gap:4px;
    margin-top:18px;
    padding:16px;
    border-radius:16px;
    background:#f8fafc;
}

.thank-you-delivery strong{
    color:#0f172a;
}

.thank-you-delivery small{
    color:#64748b;
}

.thank-you-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:30px;
}

.btn-thank-you{
    min-height:50px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid #e2e8f0;
    border-radius:14px;
    padding:0 20px;
    color:#06298b;
    background:white;
    font-weight:800;
    text-decoration:none;
}

.btn-thank-you.primary{
    border-color:#06298b;
    background:#06298b;
    color:white;
}

.checkout-empty{
    padding:20px 0;
    color:#64748b;
    text-align:center;
}

.summary-card hr{
    border:0;
    border-top:1px solid #e2e8f0;
    margin:18px 0;
}

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

    .checkout-summary{
        position:static;
    }
}

@media(max-width:640px){
    .checkout-page{
        padding:120px 0 70px;
    }

    .checkout-header h1{
        font-size:42px;
    }

    .checkout-card,
    .summary-card,
    .thank-you-panel{
        padding:24px;
        border-radius:20px;
    }

    .thank-you-copy h1{
        font-size:38px;
    }

    .thank-you-copy p{
        font-size:16px;
    }

    .thank-you-grid,
    .thank-you-payment dl{
        grid-template-columns:1fr;
    }

    .thank-you-items div,
    .thank-you-actions{
        align-items:stretch;
        flex-direction:column;
    }

    .btn-thank-you{
        width:100%;
    }

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

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

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

    .shipping-map-modal{
        padding:10px;
    }

    .shipping-map-dialog{
        height:94vh;
        border-radius:16px;
    }

    .shipping-map-head,
    .shipping-map-foot{
        align-items:stretch;
        flex-direction:column;
    }

    .shipping-map-head{
        align-items:center;
        flex-direction:row;
    }

    .shipping-map-foot button{
        width:100%;
    }

    .discount-row .discount-clear{
        width:100%;
    }
}
