/* GAYA – konto klienta, koszyk, EkoPunkty
   Uwaga: bazuje na minimalnym resetcie Kadence / WooCommerce. */

.gaya-account {
    max-width: 1160px;
    margin: 80px auto 120px;
    padding: 0 24px;
}

.gaya-account__header {
    text-align: center;
    margin-bottom: 32px;
}

.gaya-account__hello-label {
    font-size: 18px;
    letter-spacing: 0.02em;
    margin: 0 0 8px;
}

.gaya-account__points {
    margin: 0;
    font-size: 14px;
    color: #111;
}

.gaya-account__points-label {
    margin-right: 4px;
}

.gaya-account__points-value {
    color: #3AB83A;
    font-weight: 600;
    margin-right: 4px;
}

.gaya-account__points-icon img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Nawigacja – zakładki */
.gaya-account__nav {
    margin-bottom: 40px;
}

.gaya-account-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.gaya-account-nav__item {
    position: relative;
    padding-bottom: 10px;
}

.gaya-account-nav__link {
    text-decoration: none;
    font-size: 14px;
    color: #b2b2b2;
}

.gaya-account-nav__item.is-active .gaya-account-nav__link {
    color: #000;
}

.gaya-account-nav__item.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #000;
}

/* Formularze w koncie */
.gaya-account-form__title {
    text-align: center;
    margin: 40px 0 32px;
    font-size: 18px;
}

.gaya-account-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    max-width: 800px;
    margin: 0 auto 32px;
}
.gaya-account-form__grid  > p {width: 100% !important;}
.gaya-account-form__field label {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
}

.gaya-account-form__field .input-text,
.gaya-account-form__field input[type="text"],
.gaya-account-form__field input[type="email"],
.gaya-account-form__field input[type="tel"] {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #e0e0e0;
    background: #fff;
    padding: 10px 18px;
    font-size: 14px;
    outline: none;
}

.gaya-account-form__field .input-text:focus {
    border-color: #000;
}

.gaya-account-form__actions {
    text-align: center;
    margin-top: 8px;
}

.gaya-btn.gaya-btn--primary {
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 14px 64px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.gaya-btn.gaya-btn--primary:hover {
    opacity: .9;
}

/* Checkbox VAT */
.gaya-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.gaya-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

/* Karta adresu */
.gaya-account-addresses {
    max-width: 480px;
    margin: 0 auto;
}

.gaya-address-card {
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    padding: 18px 24px;
    margin-bottom: 16px;
}

.gaya-address-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.gaya-address-card__name {
    font-size: 14px;
    margin: 0;
}

.gaya-address-card__badge {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #3AB83A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gaya-address-card__badge-icon {
    color: #fff;
    font-size: 14px;
}

.gaya-address-card__body {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.gaya-address-card__footer {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    font-size: 13px;
}

.gaya-address-card__link {
    color: #000;
    text-decoration: none;
}

.gaya-address-card__link--muted {
    color: #999;
}

.gaya-account-addresses__add {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}

/* Zamówienia */
.gaya-account-orders {
    max-width: 900px;
    margin: 0 auto;
}

.gaya-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.gaya-orders-table__row {
    border-bottom: 1px solid #e5e5e5;
}

.gaya-orders-table__products {
    padding: 12px 0;
}

.gaya-orders-table__thumb {
    width: 40px !important;
    height: auto !important;
    margin-right: 6px;
}

.gaya-orders-table__date,
.gaya-orders-table__total,
.gaya-orders-table__actions {
    font-size: 14px;
    white-space: nowrap;
    padding: 12px 0;
}

.gaya-orders-table__date {
    width: 120px;
}

.gaya-orders-table__total {
    width: 120px;
}

.gaya-orders-table__actions {
    text-align: right;
}

.gaya-orders-table__link {
    color: #000;
    text-decoration: none;
    margin-left: 16px;
    font-size: 13px;
}

/* Subskrypcje */
.gaya-account-subscriptions {
    max-width: 900px;
    margin: 0 auto;
}

.gaya-subscriptions-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e5e5e5;
}

.gaya-subscriptions-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, auto);
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e5e5e5;
    column-gap: 24px;
}

.gaya-subscriptions-list__product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gaya-subscriptions-list__thumb {
    width: 48px !important;
    height: auto !important;
}

.gaya-subscriptions-list__name {
    font-size: 14px;
}

.gaya-subscriptions-list__meta {
    font-size: 12px;
    color: #999;
}

.gaya-subscriptions-list__delivery {
    font-size: 13px;
}

.gaya-subscriptions-list__actions {
    text-align: right;
    font-size: 13px;
}

.gaya-subscriptions-list__link {
    color: #000;
    text-decoration: none;
    margin-left: 16px;
}

.gaya-subscriptions-list__link--muted {
    color: #999;
}

/* Reset hasła – formularz Woo trzymamy, tylko centrowanie */
.woocommerce-lost-password .woocommerce form {
    max-width: 480px;
    margin: 32px auto 0;
}

.woocommerce-lost-password .woocommerce form .input-text {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #e0e0e0;
    padding: 10px 18px;
}

/* Koszyk – prawa kolumna z EkoPunktami (makieta nowego koszyka) */

.gaya-cart-summary {
    border-radius: 24px;
    border: 1px solid #e5e5e5;
    padding: 24px 28px 28px;
    background: #fff;
    font-size: 14px;
}

/* Tooltip EkoPunkty */
.gaya-eco {
    position: relative;
    border-radius: 12px;
    border: 1px solid #3AB83A;
    padding: 12px 14px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gaya-eco__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #3AB83A;
}

.gaya-eco__icon img {
    width: 18px;
    height: 18px;
}

.gaya-eco__points {
    font-weight: 600;
}

.gaya-eco__tooltip {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0,0,0,.12);
    padding: 16px 20px;
    width: 260px;
    font-size: 12px;
    z-index: 5;
    display: none;
}

.gaya-eco.is-open .gaya-eco__tooltip {
    display: block;
}

/* Przyciski/inputs w podsumowaniu koszyka */
.gaya-cart-summary .button.checkout-button {
    width: 100%;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 14px 0;
}

/* Responsywność */
@media (max-width: 768px) {
    .gaya-account {
        margin-top: 48px;
    }

    .gaya-account-nav {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .gaya-account-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gaya-subscriptions-list__item {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 8px;
        text-align: left;
    }

    .gaya-subscriptions-list__actions {
        text-align: left;
    }
}


/* Tło strony logowania/rejestracji */
body.woocommerce-account,
body.page-id-XX { /* podmień XX na ID strony logowania, jeśli chcesz */
    background: #FAFAFA;
}

/* Wrapper */
.woocommerce form.login, .woocommerce form.checkout_coupon, .woocommerce form.register {
    border: none !important;
}
.woocommerce form .form-row .button {
    border-radius: 999px;
    background: #393535 !important;
    margin-top: 10px;
}
.gaya-auth-wrapper {
    max-width: 480px;
    margin: 72px auto 96px;
    padding: 32px 40px 40px;
    font-family: inherit;
    border:0 !important;
}

/* Zakładki */
.gaya-auth-tabs {

    margin-bottom: 28px;
    text-align: center;
}

.gaya-auth-tab {
    position: relative;
    padding: 0 0 14px;
    margin: 0;
    border: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: none;
    color: #B0B0B0;
    cursor: pointer;
    margin-right: 20px;
}

.gaya-auth-tab.is-active {
    color: #111111;
}

.gaya-auth-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #111111;
}

/* Nagłówek */
.gaya-auth-header {
    margin-bottom: 28px;
    text-align: center;
}

.gaya-auth-title {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 6px;
    font-weight: 600;
}

.gaya-auth-subtitle {
    margin: 0;
    font-size: 14px;
    color: #888888;
}

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

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

/* Pola formularza */
.gaya-auth-wrapper .woocommerce-form-row {
    margin-bottom: 18px;
}

.gaya-auth-wrapper label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #111111;
}

.gaya-auth-wrapper .input-text,
.gaya-auth-wrapper input[type="text"],
.gaya-auth-wrapper input[type="email"],
.gaya-auth-wrapper input[type="password"] {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
    background: #fafafa;
    padding: 14px 14px;
    font-size: 14px;
    line-height: 1.3;
    box-shadow: none;
}

.gaya-auth-wrapper .input-text:focus,
.gaya-auth-wrapper input[type="text"]:focus,
.gaya-auth-wrapper input[type="email"]:focus,
.gaya-auth-wrapper input[type="password"]:focus {
    outline: none;
    border-color: #111111;
    background: #ffffff;
}

/* Główny przycisk */
.gaya-auth-btn-primary {
    width: 100%;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 24px;
    border: none;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease;
}

.gaya-auth-btn-primary:hover {
    background: #000000;
    transform: translateY(-1px);
}

/* Rząd z checkboxem + przycisk logowania */
.gaya-auth-login-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gaya-auth-login-row .woocommerce-form-login__rememberme {
    font-size: 13px;
    color: #444;
}

/* Link „Nie pamiętasz hasła?” */
.gaya-auth-lost-password {
    margin-top: 10px;
    text-align: right;
}

.gaya-auth-lost-password a {
    font-size: 13px;
    color: #111111;
    text-decoration: none;
}

.gaya-auth-lost-password a:hover {
    text-decoration: underline;
}

/* Sekcja Google / inne przyciski */
.gaya-auth-google {
    margin-top: 20px;
}

/* Mobile */
@media (max-width: 600px) {
    .gaya-auth-wrapper {
        margin: 40px 16px 64px;
        padding: 24px 20px 28px;
        border-radius: 20px;
    }

    .gaya-auth-tabs {
        gap: 32px;
        margin-bottom: 20px;
    }

    .gaya-auth-title {
        font-size: 24px;
    }
}

