/* Customer account and order detail */
.customer-account-layout{
    display:grid;
    grid-template-columns:280px minmax(0,1fr);
    gap:22px;
    align-items:start;
}

.customer-account-summary,
.customer-account-main .plain-card,
.customer-order-detail-page .plain-card{
    background:#fff;
    border:1px solid #dbe3ed;
    border-radius:18px;
    padding:20px;
    box-shadow:0 2px 10px rgba(15,23,42,.04);
}

.customer-account-summary{
    position:sticky;
    top:18px;
}

.customer-account-summary h2,
.customer-orders-card h2,
.customer-addresses-card h2,
.customer-order-detail-page h2{
    margin:0 0 14px;
    font-size:18px;
    line-height:1.3;
    color:#111827;
}

.customer-profile-box{
    display:grid;
    gap:6px;
    margin-bottom:16px;
    color:#475569;
}

.customer-profile-box strong{
    color:#111827;
    font-size:17px;
}

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

.customer-order-list{
    display:grid;
    gap:10px;
}

.customer-order-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    gap:14px;
    align-items:center;
    padding:14px;
    border:1px solid #e5edf5;
    border-radius:14px;
    text-decoration:none;
    color:#111827;
    background:#fff;
}

.customer-order-row:hover{
    background:#fff7ed;
    border-color:#fed7aa;
}

.customer-order-row div{
    display:grid;
    gap:4px;
}

.customer-order-row span,
.customer-order-row small{
    color:#64748b;
    font-size:13px;
}

.customer-order-status{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:max-content;
    padding:4px 10px;
    border-radius:999px;
    font-weight:800;
    font-size:12px;
    background:#e0f2fe;
    color:#075985;
}

.customer-order-status.pending{background:#fef3c7;color:#92400e;}
.customer-order-status.preparing{background:#dbeafe;color:#1d4ed8;}
.customer-order-status.ready{background:#dcfce7;color:#166534;}
.customer-order-status.shipped{background:#ede9fe;color:#6d28d9;}
.customer-order-status.completed{background:#dcfce7;color:#166534;}
.customer-order-status.cancelled{background:#fee2e2;color:#991b1b;}

.customer-address-list{
    display:grid;
    gap:10px;
}

.customer-address-box{
    padding:14px;
    border:1px solid #e5edf5;
    border-radius:14px;
    background:#f8fafc;
}

.customer-address-box strong,
.customer-address-box span{
    display:block;
    margin-bottom:5px;
}

.customer-address-box p{
    margin:0;
    color:#475569;
}

.customer-order-detail-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:18px;
    margin-bottom:18px;
}

.customer-order-detail-page > .plain-card{
    margin-bottom:18px;
}

.customer-detail-list{
    display:grid;
    gap:10px;
    color:#475569;
}

.customer-detail-list strong{
    color:#111827;
}

.customer-order-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
}

.customer-order-table th,
.customer-order-table td{
    text-align:left;
    padding:12px 14px;
    border-bottom:1px solid #eef2f7;
}

.customer-order-table th{
    background:#f8fafc;
    color:#111827;
    font-weight:800;
}

.customer-shipment-list{
    display:grid;
    gap:10px;
}

.customer-shipment-box{
    display:grid;
    gap:5px;
    padding:14px;
    border:1px solid #e5edf5;
    border-radius:14px;
    background:#f8fafc;
}

.customer-shipment-box span{
    color:#475569;
}

@media(max-width:900px){
    .customer-account-layout,
    .customer-order-detail-grid{
        grid-template-columns:1fr;
    }

    .customer-account-summary{
        position:static;
    }

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


/* Customer account address book improvements */
.customer-account-menu{
    display:grid;
    gap:8px;
    margin-top:16px;
}

.customer-account-menu a{
    display:block;
    padding:10px 12px;
    border:1px solid #e2e8f0;
    border-radius:12px;
    color:#0f172a;
    text-decoration:none;
    background:#fff;
    font-weight:700;
}

.customer-account-menu a:hover{
    border-color:#f97316;
    background:#fff7ed;
}

.customer-address-columns{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-bottom:22px;
}

.customer-address-columns h3{
    margin:0 0 12px;
    font-size:16px;
    color:#0f172a;
}

.customer-address-head{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:flex-start;
}

.customer-address-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:12px;
}

.customer-address-actions form{
    margin:0;
}

.customer-address-actions button,
.customer-address-edit summary,
.customer-address-add summary{
    border:1px solid #cbd5e1;
    background:#fff;
    border-radius:10px;
    padding:8px 10px;
    cursor:pointer;
    font-weight:700;
    color:#334155;
}

.customer-address-actions button:hover,
.customer-address-edit summary:hover,
.customer-address-add summary:hover{
    border-color:#f97316;
    background:#fff7ed;
    color:#9a3412;
}

.customer-address-edit{
    margin-top:12px;
}

.customer-address-add{
    margin-top:18px;
    padding:16px;
    border:1px dashed #cbd5e1;
    border-radius:16px;
    background:#f8fafc;
}

.customer-address-form{
    display:grid;
    gap:12px;
    margin-top:14px;
}

.customer-address-form .form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.customer-address-form label{
    display:block;
    margin:0 0 6px;
    font-weight:800;
    font-size:13px;
    color:#334155;
}

.customer-address-form input,
.customer-address-form select,
.customer-address-form textarea{
    width:100%;
    box-sizing:border-box;
    border:1px solid #cbd5e1;
    border-radius:12px;
    padding:10px 12px;
    font-size:14px;
    color:#0f172a;
    background:#fff;
}

.customer-address-form textarea{
    min-height:82px;
    resize:vertical;
}

.customer-inline-check{
    display:flex !important;
    gap:10px;
    align-items:center;
    margin:4px 0 0 !important;
}

.customer-inline-check input{
    width:auto !important;
}

.customer-auth-card .form{
    display:grid;
    gap:12px;
}

.customer-auth-card .form label{
    font-weight:800;
    color:#334155;
    margin:0;
}

.customer-auth-card .form input{
    min-height:44px;
    border:1px solid #cbd5e1;
    border-radius:12px;
    padding:10px 12px;
    font-size:15px;
}

.customer-auth-card .form button{
    min-height:46px;
    border:0;
    border-radius:12px;
    background:#f97316;
    color:#fff;
    font-weight:900;
    cursor:pointer;
}

@media(max-width:900px){
    .customer-address-columns,
    .customer-address-form .form-row{
        grid-template-columns:1fr;
    }
}
