/* My Account - Hide main header on mobile */
.woocommerce-account .site-header {
    display: none;
}

/* My Account - Auth Page */
.lapizza-auth {
    min-height: 100vh;
    background: #1E1C1F;
    padding: 20px 16px;
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.auth-title {
    font-family: 'Figtree', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.auth-back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-back img {
    width: 28px;
    height: 28px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: #4285F4;
    border-color: #4285F4;
    color: #fff;
}

/* Panels */
.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    color: #fff;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4285F4;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Checkbox */
.form-row-remember {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4285F4;
}

.checkbox-label span {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Submit Button */
.auth-submit {
    width: 100%;
    padding: 14px 20px;
    margin-top: 8px;
    background: #4285F4;
    border: none;
    border-radius: 10px;
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth-submit:hover {
    background: #3b78e7;
}

/* Privacy Policy Text */
.woocommerce-privacy-policy-text {
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.woocommerce-privacy-policy-text a {
    color: #4285F4;
    text-decoration: underline;
}

/* Links */
.auth-link {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    color: #4285F4;
    text-decoration: underline;
}

/* ===========================================
   My Account - Logged In
   =========================================== */
.lapizza-account {
    min-height: 100vh;
    background: #1E1C1F;
    padding: 20px 16px;
}

.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.account-title {
    font-family: 'Figtree', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.account-back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-back img {
    width: 28px;
    height: 28px;
}

/* Account Layout */
.account-layout {
    display: flex;
    flex-direction: column;
}

/* Account Navigation */
.account-nav {
    margin-bottom: 24px;
}

.account-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-nav-item a {
    display: block;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.account-nav-item.is-active a,
.account-nav-item a:hover {
    background: #4285F4;
    border-color: #4285F4;
    color: #fff;
}

/* Account Content */
.account-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
}

/* Dashboard */
.account-content > p {
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 16px;
}

.account-content > p a {
    color: #4285F4;
    text-decoration: underline;
}

/* Orders Table */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-orders-table th,
.woocommerce-orders-table td {
    padding: 12px;
    text-align: left;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-orders-table th {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.woocommerce-orders-table a {
    color: #4285F4;
}

.woocommerce-orders-table .button,
.woocommerce-orders-table .woocommerce-button {
    display: inline-block;
    padding: 8px 14px;
    background: #4285F4 !important;
    border: none;
    border-radius: 6px;
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #fff !important;
    text-decoration: none;
    transition: background 0.2s ease;
}

.woocommerce-orders-table .button:hover,
.woocommerce-orders-table .woocommerce-button:hover {
    background: #3b78e7 !important;
}

/* Order Details Page (view-order) */
.woocommerce-order-details,
.woocommerce-customer-details {
    font-family: 'Figtree', sans-serif;
}

.woocommerce-order-details__title,
.woocommerce-column__title {
    font-family: 'Figtree', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px;
}

.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
    padding: 12px;
    text-align: left;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-table--order-details th {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.woocommerce-table--order-details tfoot th,
.woocommerce-table--order-details tfoot td {
    color: #fff;
}

.woocommerce-table--order-details a {
    color: #4285F4;
}

/* Mark elements - blue instead of yellow */
.account-content mark,
.woocommerce-orders-table mark,
.woocommerce-table--order-details mark,
.woocommerce mark {
    background: #4285F4;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Order details text */
.woocommerce-order-details p,
.woocommerce-customer-details p,
.woocommerce-customer-details address {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.woocommerce-customer-details .woocommerce-column {
    margin-bottom: 20px;
}

/* Order overview list */
.woocommerce-order-overview {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.woocommerce-order-overview li {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.woocommerce-order-overview li strong {
    display: block;
    color: #fff;
    font-weight: 600;
}

/* No orders message */
.woocommerce-message--info,
.woocommerce-info {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    max-width: none !important;
    animation: none !important;
}

/* Forms (Edit Account, Addresses) */
.woocommerce-EditAccountForm,
.woocommerce-address-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.woocommerce-EditAccountForm .clear,
.woocommerce-address-fields .clear {
    display: none;
}

/* Name fields side by side */
.woocommerce-EditAccountForm .form-row-first,
.woocommerce-EditAccountForm .form-row-last,
.woocommerce-address-fields .form-row-first,
.woocommerce-address-fields .form-row-last {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    box-sizing: border-box;
}

.woocommerce-EditAccountForm .form-row-wide,
.woocommerce-address-fields .form-row-wide {
    flex: 1 1 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Submit button wrapper - full width */
.woocommerce-EditAccountForm > p:last-child,
.woocommerce-address-fields > p:last-child {
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
}

/* Description text */
#account_display_name_description {
    font-family: 'Figtree', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.woocommerce-EditAccountForm label,
.woocommerce-address-fields label {
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.woocommerce-EditAccountForm .required,
.woocommerce-address-fields .required {
    color: #E53935;
}

.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"],
.woocommerce-address-fields input[type="text"],
.woocommerce-address-fields input[type="tel"],
.woocommerce-address-fields select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    color: #fff;
}

.woocommerce-EditAccountForm input:focus,
.woocommerce-address-fields input:focus,
.woocommerce-address-fields select:focus {
    outline: none;
    border-color: #4285F4;
}

.woocommerce-EditAccountForm select,
.woocommerce-address-fields select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Fieldset for password change */
.woocommerce-EditAccountForm fieldset {
    border: none;
    padding: 0;
    margin: 16px 0 0;
}

.woocommerce-EditAccountForm legend {
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

/* Submit Buttons */
.woocommerce-EditAccountForm button[type="submit"],
.woocommerce-address-fields button[type="submit"] {
    width: 100%;
    padding: 14px 20px;
    margin-top: 8px;
    background: #4285F4;
    border: none;
    border-radius: 10px;
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}

/* Address edit page title */
.woocommerce-address-fields h3,
.account-content > h2,
.account-content > h3,
.account-content h2,
.account-content h3 {
    font-family: 'Figtree', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 20px;
}

/* Addresses Overview */
.woocommerce-Addresses {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.woocommerce-Address {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.woocommerce-Address-title::before {
    display: none !important;
}

.woocommerce-Address-title a {
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    color: #4285F4;
}

.woocommerce-Address address {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ===========================================
   Desktop - Auth
   =========================================== */
@media (min-width: 1024px) {
    .woocommerce-account .site-header {
        display: flex;
    }

    .lapizza-auth {
        min-height: auto;
        max-width: none;
        margin: 20px 16px 40px;
        padding: 32px 40px;
        border-radius: 10px;
    }

    .auth-header {
        margin-bottom: 36px;
    }

    .auth-title {
        font-size: 28px;
    }

    .auth-tabs {
        margin-bottom: 28px;
    }

    .auth-tab {
        padding: 14px 20px;
        font-size: 15px;
    }

    .auth-form {
        gap: 18px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-input {
        padding: 16px 18px;
        font-size: 16px;
    }

    .auth-submit {
        padding: 16px 24px;
        font-size: 17px;
    }

    /* Account - Logged In Desktop */
    .lapizza-account {
        min-height: auto;
        max-width: none;
        margin: 20px 16px 40px;
        padding: 32px 40px;
        border-radius: 10px;
    }

    .account-header {
        margin-bottom: 28px;
    }

    .account-title {
        font-size: 28px;
    }

    /* Sidebar Layout */
    .account-layout {
        flex-direction: row;
        gap: 32px;
    }

    .account-nav {
        flex-shrink: 0;
        width: 220px;
        margin-bottom: 0;
    }

    .account-nav-list {
        flex-direction: column;
        gap: 8px;
    }

    .account-nav-item a {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 10px;
    }

    .account-content {
        flex: 1;
        padding: 28px;
        min-width: 0;
    }

    /* Addresses side by side */
    .woocommerce-Addresses {
        flex-direction: row;
        gap: 24px;
    }

    .woocommerce-Address {
        flex: 1;
        padding: 20px;
    }

    /* Forms - Desktop optimization */
    .woocommerce-EditAccountForm,
    .woocommerce-address-fields {
        max-width: 100%;
        gap: 20px;
    }

    .woocommerce-EditAccountForm .form-row-first,
    .woocommerce-EditAccountForm .form-row-last,
    .woocommerce-address-fields .form-row-first,
    .woocommerce-address-fields .form-row-last {
        flex: 1 1 calc(50% - 10px);
    }

    .woocommerce-EditAccountForm label,
    .woocommerce-address-fields label {
        font-size: 14px;
    }

    .woocommerce-EditAccountForm input[type="text"],
    .woocommerce-EditAccountForm input[type="email"],
    .woocommerce-EditAccountForm input[type="password"],
    .woocommerce-address-fields input[type="text"],
    .woocommerce-address-fields input[type="tel"],
    .woocommerce-address-fields select {
        padding: 16px 18px;
        font-size: 16px;
    }

    .woocommerce-EditAccountForm fieldset {
        width: 100%;
        margin-top: 24px;
    }

    .woocommerce-EditAccountForm legend {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .woocommerce-EditAccountForm button[type="submit"],
    .woocommerce-address-fields button[type="submit"] {
        width: 100%;
        padding: 16px 32px;
        font-size: 17px;
        margin-top: 12px;
    }

    /* Address edit page */
    .woocommerce-address-fields h3 {
        font-size: 20px;
    }

    /* Address form specific fix */
    .woocommerce-address-fields__field-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        width: 100%;
    }

    .woocommerce-address-fields__field-wrapper .form-row {
        margin: 0;
    }

    .woocommerce-address-fields__field-wrapper .form-row-first,
    .woocommerce-address-fields__field-wrapper .form-row-last {
        flex: 1 1 calc(50% - 10px);
    }

    .woocommerce-address-fields__field-wrapper .form-row-wide {
        flex: 1 1 100%;
    }
}
