﻿.auth-section {
    padding: 8rem 1rem;
    display: flex;
    justify-content: center;
}

.auth-wrapper {
    max-width: 500px;
    width: 100%;
}

.auth-card {
    background: #fff;
    padding: 3rem;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.auth-submit-btn {
    width: 100%;
}

.validation-summary-errors ul{
    margin-top:20px;
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth-legal-text {
    margin-top: 20px;
    font-size: 13px;
    text-align: center;
    color: #777;
}

    .auth-legal-text a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
    }

        .auth-legal-text a:hover {
            text-decoration: underline;
        }


.auth-resend-btn {
    margin-top: 1rem;
    width: 100%;
}

#resend-otp-btn {
    margin-top: 1rem;
}

.auth-back-link {
    display: block;
    text-align: center;
    margin-top: 1.4rem;
    color: var(--primary-color);
    font-weight: 500;
}

@media (max-width: 576px) {
    .auth-card {
        padding: 2rem;
    }
    .g-recaptcha {
        transform: scaleX(0.9);
        transform-origin: 0 0;
    }
}


.account-section {
    padding: 10rem 1rem;
}

.account-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
}

.account-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

    .account-sidebar a {
        padding: 0.8rem 1rem;
        border-radius: 6px;
        background: #fff;
        box-shadow: 0 8px 20px rgba(0,0,0,0.04);
        font-weight: 500;
        transition: 0.2s ease;
    }

        .account-sidebar a:hover {
            background: var(--primary-color);
            color: #fff;
        }

        .account-sidebar a.active {
            background: var(--primary-color);
            color: #fff;
        }

.account-content {
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

    .account-content h2 {
        margin-bottom: 2rem;
    }

.delete-form {
    margin-top: 2rem;
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.address-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.05);
}

.address-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 992px) {
    .account-wrapper {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        flex-direction: row;
        justify-content: space-between;
    }

    .address-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .account-content {
        padding: 2rem;
    }

    .account-sidebar {
        flex-direction: column;
    }
}




.mb-3 {
    margin-bottom: 1rem;
}

.mt-3 {
    margin-top: 1rem;
}

.account-form label {
    display: block;
    color: #333;
    font-weight: 500;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.6rem;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

    .checkbox-row input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--primary-color);
    }

.address-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.address-title {
    margin: 0;
}

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

    .form-actions {
        flex-direction: column;
    }

        .form-actions .btn {
            width: 100%;
        }

    .address-actions {
        flex-direction: column;
    }

        .address-actions .btn {
            width: 100%;
        }
}



.account-header {
    margin-bottom: 2rem;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.danger-zone {
    margin-top: 3rem;
    padding: 2rem;
    border: 1px solid #f1dada;
    background: #fff7f7;
    border-radius: 10px;
}

    .danger-zone h3 {
        margin-bottom: 0.6rem;
        color: #a00000;
    }

    .danger-zone p {
        margin-bottom: 1.2rem;
        color: #555;
    }

.danger-btn {
    border-color: #a00000;
    color: #a00000;
}

    .danger-btn:hover {
        background: #a00000;
        color: #fff;
    }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .modal-overlay.active {
        display: flex;
    }

.modal-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

    .modal-box h3 {
        margin-bottom: 1rem;
    }

.modal-actions {
    margin-top: 1.8rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 576px) {
    .modal-actions {
        flex-direction: column;
    }

        .modal-actions .btn {
            width: 100%;
        }
}


/* ================= ORDERS LIST ================= */

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.25s ease;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.order-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.order-date {
    font-size: 14px;
    color: #777;
    margin-top: 4px;
}

.order-meta {
    text-align: right;
}

.order-total {
    font-weight: 600;
    font-size: 16px;
}

.order-status {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Status Colors */
.status-pending {
    background: #fff7e6;
    color: #b26a00;
}

.status-accepted {
    background: #e6f9ed;
    color: #1e7e34;
}

.status-rejected {
    background: #fde8e8;
    color: #b00020;
}

/* Expand Body */
.order-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 2rem;
}

.order-card.active .order-body {
    max-height: 600px;
    padding-bottom: 1.5rem;
}

.order-items {
    margin-top: 1rem;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}

.order-address,
.order-comment {
    margin-top: 1rem;
    font-size: 14px;
    color: #444;
}

@media (max-width: 992px) {

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .order-meta {
        text-align: left;
    }
}


.orders-disclaimer {
    font-size: 13px;
    color: #777;
    margin-bottom: 1.5rem;
    margin-top: -1rem;
}

/* ================= Privacy Policy ================= */
.legal-section {
    padding: 80px 20px;
    padding-top:150px;
}

.legal-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

    .legal-wrapper h1 {
        margin-bottom: 10px;
        color: var(--primary-color);
    }

.legal-updated {
    font-size: 14px;
    color: #777;
    margin-bottom: 40px;
}

.legal-wrapper h2 {
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-wrapper p,
.legal-wrapper li {
    line-height: 1.7;
    font-size: 15px;
    color: #444;
}

.legal-wrapper ul {
    padding-left: 20px;
}

@media (max-width: 576px) {
    .legal-wrapper {
        padding: 30px 20px;
    }
}