

.pg-profile { --pg-nav-active: #0D1B4C; --pg-green: #F5821F; --pg-green-dark: #E57217; background: #f6f7f9; }

.pg-account-content {
    padding: 0 14px 28px;
    max-width: 480px;
    margin: 0 auto;
}


.pg-guest-welcome {
    text-align: center;
    padding: 28px 0 18px;
}
.pg-guest-icon { margin-bottom: 12px; }
.pg-guest-icon svg { width: 56px; height: 56px; }
.pg-guest-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.pg-guest-subtitle { font-size: 14px; color: #888; margin: 0; }


.pg-account-content .woocommerce {
    margin: 0;
    padding: 0;
}


.pg-account-content .woocommerce #customer_login.u-columns {
    display: block;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}
.pg-account-content .woocommerce #customer_login .u-column1,
.pg-account-content .woocommerce #customer_login .u-column2 {
    width: 100%;
    float: none;
    padding: 26px 22px 28px;
}

.pg-account-content .woocommerce #customer_login .pg-tab-hidden {
    display: none !important;
}
.pg-account-content .woocommerce #customer_login h2 {
    display: none; /* replaced by our tab bar */
}


.pg-auth-tabs {
    display: flex;
    background: #fff;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    border-bottom: none;
}
.pg-auth-tab {
    flex: 1;
    padding: 16px 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #5a5a5a;
    background: #eef0f2;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-bottom: 3px solid transparent;
}
.pg-auth-tab.pg-auth-tab-active {
    color: #fff;
    border-bottom-color: var(--pg-green);
    background: var(--pg-green);
}
.pg-auth-tab:hover:not(.pg-auth-tab-active) { background: #e2e5e9; color: #333; }

.pg-auth-tabs + #customer_login.u-columns {
    border-radius: 0 0 18px 18px;
    border-top: none;
}


.pg-account-content .woocommerce form .form-row {
    margin-bottom: 16px;
    padding: 0;
}
.pg-account-content .woocommerce form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}
.pg-account-content .woocommerce form label .required {
    color: #ff3b30;
}


.pg-account-content .woocommerce form .input-text,
.pg-account-content .woocommerce input[type="text"],
.pg-account-content .woocommerce input[type="tel"],
.pg-account-content .woocommerce input[type="password"],
.pg-account-content .woocommerce input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px 13px 42px;
    border: 1.5px solid #e4e4e4;
    border-radius: 11px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #222;
    background: #fafbfc no-repeat 14px center;
    background-size: 17px 17px;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
    -webkit-appearance: none;
    appearance: none;
}


.pg-account-content .woocommerce input#username,
.pg-account-content .woocommerce input#pg_username {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.pg-account-content .woocommerce input#pg_full_name {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.pg-account-content .woocommerce input#pg_phone,
.pg-account-content .woocommerce input[type="tel"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.68 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.32 1.85.55 2.81.68A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}
/* Password → lock icon */
.pg-account-content .woocommerce input[type="password"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}
/* Email (used in lost-password form) → mail icon */
.pg-account-content .woocommerce input[type="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
}

.pg-account-content .woocommerce form .input-text:focus,
.pg-account-content .woocommerce input:focus {
    border-color: var(--pg-green);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(14,159,69,0.12);
    outline: none;
}


.pg-account-content .woocommerce .woocommerce-form-login img,
.pg-account-content .woocommerce .login .woocommerce-LostPassword + img,
.pg-account-content .woocommerce img.login-logo,
.pg-account-content #login > a > img,
.pg-account-content .woocommerce .login h1 img,
.pg-account-content .woocommerce .login-logo,
.pg-account-content .woocommerce .login h1,
.pg-account-content .woocommerce #login > a:first-child {
    display: none !important;
}
.pg-account-content .woocommerce .woocommerce-form-register__email,
.pg-account-content .woocommerce .woocommerce-form-row--email {
    display: none !important;
}


.pg-account-content .woocommerce-password-input,
.pg-account-content .woocommerce .password-input {
    display: block !important;
    width: 100% !important;
    position: relative !important;
}
.pg-account-content .woocommerce-password-input input,
.pg-account-content .woocommerce .password-input input {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-right: 42px !important; /* room for the eye icon so text doesn't run under it */
}
.pg-account-content .woocommerce-password-input .show-password-input,
.pg-account-content .woocommerce .password-input .show-password-input {
    position: absolute !important;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.pg-account-content .woocommerce .woocommerce-form-login .woocommerce-button,
.pg-account-content .woocommerce .woocommerce-form-register .woocommerce-button,
.pg-account-content .woocommerce button[name="login"],
.pg-account-content .woocommerce button[name="register"],
.pg-account-content .woocommerce .woocommerce-form-login__submit,
.pg-account-content .woocommerce .woocommerce-form-register__submit,
.pg-account-content .woocommerce .woocommerce-ResetPassword button {
    background: var(--pg-green) !important;
    color: #fff !important;
    border: none;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s, transform 0.1s;
    font-family: 'Poppins', sans-serif;
    display: block;
    text-align: center;
    margin-top: 6px;
    box-shadow: 0 4px 14px rgba(14,159,69,0.25);
}
.pg-account-content .woocommerce .woocommerce-form-login .woocommerce-button:hover,
.pg-account-content .woocommerce .woocommerce-form-register .woocommerce-button:hover {
    background: var(--pg-green-dark) !important;
}
.pg-account-content .woocommerce .woocommerce-form-login .woocommerce-button:active,
.pg-account-content .woocommerce .woocommerce-form-register .woocommerce-button:active {
    transform: scale(0.98);
}

/* ── Remember me / lost password row ────────────────────────────────── */
.pg-account-content .woocommerce .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #777;
    margin-bottom: 4px;
}
.pg-account-content .woocommerce .woocommerce-form-login label[for="rememberme"] {
    font-size: 13px;
    color: #777;
    margin: 0;
    display: inline;
}
.pg-account-content .woocommerce .woocommerce-form-login .woocommerce-LostPassword {
    font-size: 13px;
    margin: 14px 0 0;
    text-align: center;
}
.pg-account-content .woocommerce .woocommerce-LostPassword a {
    color: var(--pg-green);
    font-weight: 600;
    text-decoration: none;
}
.pg-account-content .woocommerce .woocommerce-LostPassword a:hover { text-decoration: underline; }

/* ── Privacy policy text ─────────────────────────────────────────────── */
.pg-account-content .woocommerce form .woocommerce-privacy-policy-text {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin-top: 14px;
}
.pg-account-content .woocommerce form .woocommerce-privacy-policy-text a {
    color: var(--pg-green);
    font-weight: 600;
}

/* ── Lost-password screen (single form, no tabs) ─────────────────────── */
.pg-account-content .woocommerce .woocommerce-ResetPassword {
    background: #fff;
    border-radius: 18px;
    padding: 28px 22px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 1px solid #f0f0f0;
}
.pg-account-content .woocommerce .woocommerce-ResetPassword p:first-child {
    font-size: 13px;
    color: #777;
    margin: 0 0 18px;
    line-height: 1.5;
}

/* ── Notices ──────────────────────────────────────────────────────────── */
.pg-account-content .woocommerce .woocommerce-error {
    background: #fff3f0;
    border: 1px solid #ffccc7;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 13px;
    color: #d6362a;
    list-style: none;
    margin: 0 0 16px;
    line-height: 1.5;
}
.pg-account-content .woocommerce .woocommerce-error li::before { content: "⚠️ "; }
.pg-account-content .woocommerce .woocommerce-message {
    background: #FFF3E0;
    border: 1px solid #b8e6c8;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 13px;
    color: var(--pg-green);
    margin: 0 0 16px;
    line-height: 1.5;
}

/* ── My Account dashboard (when logged in) ───────────────────────────── */
.pg-account-content .woocommerce .woocommerce-MyAccount-navigation {
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.pg-account-content .woocommerce .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.pg-account-content .woocommerce .woocommerce-MyAccount-navigation li { margin: 0; }
.pg-account-content .woocommerce .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
}
.pg-account-content .woocommerce .woocommerce-MyAccount-navigation li a:hover {
    background: #FFF3E0;
    color: var(--pg-green);
}
.pg-account-content .woocommerce .woocommerce-MyAccount-navigation li.is-active a {
    background: var(--pg-green);
    color: #fff;
    font-weight: 600;
}
.pg-account-content .woocommerce .woocommerce-MyAccount-content {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}


@media (min-width: 768px) {
    .pg-profile.pg-app { background: #f6f7f9; }

    .pg-account-content {
        max-width: 560px;
        padding: 36px 20px 40px;
    }
    .pg-guest-welcome { padding: 8px 0 26px; }
    .pg-guest-title { font-size: 25px; }
    .pg-guest-subtitle { font-size: 15px; }

    .pg-auth-tab { padding: 17px; font-size: 16px; }

    .pg-account-content .woocommerce #customer_login .u-column1,
    .pg-account-content .woocommerce #customer_login .u-column2 {
        padding: 34px 32px 36px;
    }
    .pg-account-content .woocommerce form .input-text,
    .pg-account-content .woocommerce input[type="text"],
    .pg-account-content .woocommerce input[type="tel"],
    .pg-account-content .woocommerce input[type="password"],
    .pg-account-content .woocommerce input[type="email"] {
        padding: 13px 16px 13px 44px;
        font-size: 15px;
    }
    .pg-account-content .woocommerce .woocommerce-form-login .woocommerce-button,
    .pg-account-content .woocommerce .woocommerce-form-register .woocommerce-button,
    .pg-account-content .woocommerce button[name="login"],
    .pg-account-content .woocommerce button[name="register"] {
        width: auto;
        min-width: 220px;
        margin-left: auto;
        margin-right: auto;
        padding: 14px 40px;
        font-size: 16px;
    }

    /* My Account dashboard gets a light two-column treatment even on tablet */
    .pg-account-content .woocommerce.woocommerce-MyAccount {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 18px;
        align-items: start;
        max-width: none;
    }
}


@media (min-width: 1024px) {
    .pg-profile.pg-app { background: #f0f2f5; }


    .pg-account-content {
        max-width: 1040px;
        margin: 0 auto;
        padding: 56px 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 56px;
        min-height: calc(100vh - 120px);
    }

    .pg-account-content .pg-guest-welcome {
        flex: 1 1 420px;
        max-width: 440px;
        text-align: left;
        padding: 44px 40px;
        background: linear-gradient(160deg, #FFF3E0 0%, #f6fdf8 60%, #ffffff 100%);
        border-radius: 24px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.05);
    }
    .pg-account-content .pg-guest-icon { margin-bottom: 22px; }
    .pg-account-content .pg-guest-icon svg { width: 84px; height: 84px; }
    .pg-account-content .pg-guest-title { font-size: 32px; line-height: 1.2; margin-bottom: 10px; }
    .pg-account-content .pg-guest-subtitle { font-size: 16px; line-height: 1.5; }

    /* Login/Register form column */
    .pg-account-content .pg-auth-col {
        flex: 1 1 440px;
        max-width: 440px;
        margin: 0;
        width: 100%;
    }
    .pg-account-content .woocommerce.woocommerce-MyAccount ~ .pg-auth-col,
    .pg-account-content .woocommerce.woocommerce-MyAccount {
        max-width: none;
    }
    .pg-account-content .woocommerce #customer_login .u-column1,
    .pg-account-content .woocommerce #customer_login .u-column2 {
        padding: 38px 36px 40px;
    }
    .pg-account-content .woocommerce .woocommerce-ResetPassword {
        padding: 38px 36px;
    }

    .pg-account-content .woocommerce .woocommerce-form-login .woocommerce-button,
    .pg-account-content .woocommerce .woocommerce-form-register .woocommerce-button,
    .pg-account-content .woocommerce button[name="login"],
    .pg-account-content .woocommerce button[name="register"] {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .pg-auth-tabs { border-radius: 18px 18px 0 0; }
    .pg-auth-tab { padding: 18px; }


    .pg-account-content .woocommerce.woocommerce-MyAccount {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 24px;
        align-items: start;
        max-width: none;
    }
}


@media (min-width: 1280px) {
    .pg-account-content {
        max-width: 1120px;
        gap: 72px;
    }
}
/* Address Book UI Custom Styles */
.pg-selectable-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.pg-add-new-addr-btn:hover {
    background: #e2e2e2 !important;
}
