/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ======================================================
   GOODFOOD - GLOBAL ACCOUNT BASE
   ====================================================== */

/* Hide default My Account navigation */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .gf-myaccount-navigation {
    display: none !important;
}

/* Make account content full width */
.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove outer WooCommerce account wrapper border/card if theme adds one */
.woocommerce-account .woocommerce {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Keep WooCommerce notices visible */
.woocommerce-account .woocommerce-notices-wrapper,
.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
    display: block;
}

/* Base typography */
.woocommerce-account,
.woocommerce-account p,
.woocommerce-account label,
.woocommerce-account input,
.woocommerce-account button,
.woocommerce-account a {
    font-family: inherit;
}

/* Required star */
.woocommerce-account form label .required,
.gf-auth-panel form label .required,
.gf-account-card form label .required,
.gf-auth-panel .required {
    color: #c32026;
    font-weight: 700;
}

/* Optional text */
.woocommerce-account form label .optional,
.gf-auth-panel form label .optional,
.gf-account-card form label .optional,
.gf-auth-panel .optional {
    color: #777777;
    font-weight: 400;
}

/* ======================================================
   GOODFOOD - B2B ACCOUNT PROFILE FORM
   ====================================================== */

.gf-b2b-account-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.gf-account-card {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    background: #ffffff;
}

.gf-account-section {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #eeeeee;
}

.gf-account-section-first {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.gf-account-section h3 {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    color: #c32026;
}

.gf-account-note {
    margin: -6px 0 16px;
    color: #777777;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

.gf-b2b-account-form .form-row {
    margin-bottom: 16px;
}

.gf-b2b-account-form label,
.gf-account-card form label,
.gf-b2b-account-form .form-row label,
.gf-b2b-account-form .woocommerce-form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700 !important;
    color: #111111;
}

.gf-b2b-account-form .woocommerce-Input,
.gf-b2b-account-form input.input-text,
.gf-account-card input {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 400;
}

.gf-b2b-account-form input::placeholder,
.gf-account-card input::placeholder {
    color: #9a9a9a;
    font-size: 15px;
    font-weight: 400;
}

/* ======================================================
   GOODFOOD - ACCOUNT ACTION BUTTONS
   ====================================================== */

.gf-account-actions {
    margin-top: 24px;
}

.gf-account-actions .button,
.gf-save-account-button,
.gf-logout-button {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    min-height: 46px;
    line-height: 46px;
    padding: 0 24px !important;
    text-align: center;
    border-radius: 8px;
    margin-top: 10px;
    font-weight: 600;
}

.gf-save-account-button {
    margin-top: 0;
}

/* Logout button: grey background, black text */
.gf-logout-button {
    background: #e5e5e5 !important;
    color: #111111 !important;
    border: 1px solid #d8d8d8 !important;
    text-decoration: none !important;
}

.gf-logout-button:hover,
.gf-logout-button:focus {
    background: #dcdcdc !important;
    color: #111111 !important;
    border-color: #cccccc !important;
    text-decoration: none !important;
}

/* ======================================================
   GOODFOOD - AUTH PAGE WRAPPER
   ====================================================== */

.gf-auth-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 24px 0 120px;
}

.gf-auth-card {
    width: 100%;
    max-width: 1040px;
}

.gf-auth-panel {
    display: none;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 32px;
    box-sizing: border-box;
    overflow: visible !important;
}

.gf-auth-panel.is-active {
    display: block;
}

/* Login remains narrow */
#gf-login-panel {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* Register uses wide layout */
#gf-register-panel {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

/* Remove default WooCommerce form box styling inside auth card */
.gf-auth-form,
.gf-auth-form form,
.gf-auth-panel form.login,
.gf-auth-panel form.register,
.gf-auth-panel .woocommerce-form-login,
.gf-auth-panel .woocommerce-form-register {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* ======================================================
   GOODFOOD - AUTH TYPOGRAPHY
   ====================================================== */

.gf-auth-title {
    margin: 0 0 28px;
    text-align: center;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: #c32026;
}

.gf-auth-section-title {
    margin: 0 0 18px;
    font-size: 24px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #c32026 !important;
}

.gf-auth-helper-text,
.gf-auth-forgot,
.gf-auth-switch-text,
.gf-auth-divider span,
.gf-auth-privacy {
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
}

/* ======================================================
   GOODFOOD - AUTH GRID
   ====================================================== */

.gf-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: start;
    margin-bottom: 20px;
}

.gf-auth-col {
    min-width: 0;
}

.gf-auth-col:first-child {
    padding-right: 32px;
}

.gf-auth-col + .gf-auth-col {
    padding-left: 32px;
    border-left: 1px solid #ececec;
}

.gf-auth-section {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.gf-auth-section + .gf-auth-section {
    padding-top: 18px;
    border-top: 1px solid #eeeeee;
}

/* ======================================================
   GOODFOOD - AUTH FORM FIELDS
   ====================================================== */

.gf-auth-panel .form-row,
.gf-auth-panel .woocommerce-form-row,
.gf-auth-panel p.form-row,
.gf-auth-panel p.woocommerce-form-row {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.gf-auth-panel label,
.gf-auth-panel .form-row label,
.gf-auth-panel .woocommerce-form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700 !important;
    color: #111111;
}

.gf-auth-panel input.input-text,
.gf-auth-panel input[type="email"],
.gf-auth-panel input[type="password"],
.gf-auth-panel input[type="text"],
.gf-auth-panel input[type="tel"],
.gf-auth-panel input[type="url"] {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 50px;
    padding: 0 14px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 400;
}

.gf-auth-panel input::placeholder {
    color: #9a9a9a;
    font-size: 15px;
    font-weight: 400;
}

/* ======================================================
   GOODFOOD - PASSWORD TOGGLE
   ====================================================== */

.gf-auth-password-wrap {
    position: relative;
}

.gf-auth-password-wrap input {
    padding-right: 46px !important;
}

.gf-auth-toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-10%);
    border: 0 !important;
    background: transparent !important;
    cursor: pointer;
    color: #8f8f8f;
    font-size: 15px;
    line-height: 1;
    padding: 0 !important;
}

/* ======================================================
   GOODFOOD - AUTH LINKS
   ====================================================== */

.gf-auth-forgot {
    margin: -2px 0 14px;
    text-align: center;
}

.gf-auth-forgot a {
    color: #666666;
    text-decoration: none;
}

.gf-auth-forgot a:hover {
    text-decoration: underline;
}

.gf-auth-switch-text {
    margin: 14px 0 0;
    text-align: center;
    color: #666666;
}

.gf-auth-switch-text a {
    color: #0d57c6;
    text-decoration: none;
    font-weight: 500;
}

.gf-auth-switch-text a:hover {
    text-decoration: underline;
}

/* ======================================================
   GOODFOOD - AUTH MAIN BUTTON
   ====================================================== */

.gf-auth-main-button,
.gf-auth-panel .button,
.gf-auth-panel button[type="submit"] {
    width: 100% !important;
    min-height: 50px;
    border-radius: 8px !important;
    border: 0 !important;
    background: #c32026 !important;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    box-sizing: border-box;
}

.gf-auth-main-button:hover,
.gf-auth-panel .button:hover,
.gf-auth-panel button[type="submit"]:hover {
    background: #ab1b20 !important;
    color: #ffffff !important;
}

/* ======================================================
   GOODFOOD - AUTH PRIVACY TEXT
   ====================================================== */

.gf-auth-privacy {
    margin: 8px 0 18px;
    color: #666666;
}

.gf-auth-privacy a {
    color: #0d57c6;
    text-decoration: none;
}

.gf-auth-privacy a:hover {
    text-decoration: underline;
}

/* ======================================================
   GOODFOOD - CLEARFIX / HEIGHT FIX
   ====================================================== */

.gf-auth-wrap,
.gf-auth-card,
.gf-auth-panel,
.gf-auth-form,
.gf-auth-section {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.gf-auth-card::after,
.gf-auth-panel::after,
.gf-auth-form::after,
.gf-auth-section::after {
    content: "";
    display: table;
    clear: both;
}

.woocommerce-account .woocommerce,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .entry-content,
.woocommerce-account main,
.woocommerce-account .site-main {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* ======================================================
   GOODFOOD - RESPONSIVE
   ====================================================== */

@media (max-width: 991px) {
    .gf-auth-card {
        max-width: 760px;
    }

    .gf-auth-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .gf-auth-col:first-child {
        padding-right: 0;
    }

    .gf-auth-col + .gf-auth-col {
        margin-top: 22px;
        padding-left: 0;
        padding-top: 22px;
        border-left: 0;
        border-top: 1px solid #ececec;
    }
}

@media (max-width: 767px) {
    .gf-account-card {
        padding: 18px;
        border-radius: 10px;
    }

    .gf-account-section {
        padding-top: 18px;
        margin-top: 18px;
    }

    .gf-account-section h3 {
        font-size: 17px;
    }

    .gf-account-actions .button,
    .gf-save-account-button,
    .gf-logout-button {
        min-height: 44px;
        line-height: 44px;
    }

    .gf-auth-wrap {
        padding: 16px 0 80px;
    }

    .gf-auth-card {
        max-width: 100%;
    }

    .gf-auth-panel {
        padding: 22px 16px;
        border-radius: 12px;
    }

    .gf-auth-title {
        font-size: 28px;
        margin-bottom: 22px;
    }

    .gf-auth-section-title {
        font-size: 21px !important;
        margin-bottom: 14px;
    }
}

/* GOODFOOD - Use browser native password reveal only */
.gf-auth-toggle-password {
    display: none !important;
}

.gf-auth-password-wrap input {
    padding-right: 14px !important;
}