/* === Reset/Lost Password — Yokaba === */

body.woocommerce-lost-password .woocommerce {
    max-width: 520px;
    margin: 64px auto;
    padding: 0 24px;
}

.yokaba-lost-password-form-wrapper {
    background: #fff;
    border: 1px solid #E5E2DD;
    border-radius: 14px;
    padding: 40px 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    color: #1F1B16;
}
.yokaba-lost-password-form-wrapper h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    color: #1F1B16;
    letter-spacing: -0.01em;
}
.yokaba-lost-password-description {
    margin: 0 0 24px;
    color: #6E665C;
    font-size: 14px;
    line-height: 1.55;
}

.yokaba-lost-password-form-wrapper .form-row { margin-bottom: 18px; }
.yokaba-lost-password-form-wrapper label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #1F1B16;
}
.yokaba-lost-password-form-wrapper input[type="email"],
.yokaba-lost-password-form-wrapper input[type="text"],
.yokaba-lost-password-form-wrapper input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #D9D4CC;
    border-radius: 10px;
    background: #FAF8F5;
    font-size: 15px;
    line-height: 1.4;
    color: #1F1B16;
    transition: border-color .15s, background .15s, box-shadow .15s;
    box-sizing: border-box;
}
.yokaba-lost-password-form-wrapper input:focus {
    outline: none;
    border-color: #A88466;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(168,132,102,.18);
}

/* Toggle pokaż hasło — nadpisuje GLOBALNE button styles theme'u */
.yokaba-lost-password-form-wrapper .yokaba-password-input {
    position: relative;
    display: block;
}
.yokaba-lost-password-form-wrapper .yokaba-password-input input {
    padding-right: 48px;
}
.yokaba-lost-password-form-wrapper button.yokaba-password-toggle,
.yokaba-lost-password-form-wrapper .yokaba-password-toggle {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #8A8378 !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    line-height: 1 !important;
}
.yokaba-lost-password-form-wrapper button.yokaba-password-toggle:hover {
    color: #A88466 !important;
    background: #F4F0EA !important;
}
.yokaba-lost-password-form-wrapper button.yokaba-password-toggle svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

/* Natywny WC password-strength-meter — dostosuj do palety */
.yokaba-lost-password-form-wrapper .woocommerce-password-strength {
    display: block;
    margin-top: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    border-radius: 6px;
    border: 1px solid transparent;
}
.yokaba-lost-password-form-wrapper .woocommerce-password-strength.short,
.yokaba-lost-password-form-wrapper .woocommerce-password-strength.bad {
    background: #FBECEC;
    border-color: #F2C9C9;
    color: #C03B3B;
}
.yokaba-lost-password-form-wrapper .woocommerce-password-strength.good {
    background: #FEF6E5;
    border-color: #F2D89A;
    color: #B98000;
}
.yokaba-lost-password-form-wrapper .woocommerce-password-strength.strong {
    background: #ECF7F0;
    border-color: #B8E0C5;
    color: #1A8A4E;
}
.yokaba-lost-password-form-wrapper .woocommerce-password-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #8A8378;
    line-height: 1.4;
}

/* Field error */
.yokaba-lost-password-form-wrapper .yokaba-field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #C03B3B;
    min-height: 16px;
}

/* Buttons */
.yokaba-lost-password-form-wrapper .yokaba-lost-password-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.yokaba-lost-password-form-wrapper button.yokaba-lost-password-submit-btn,
.yokaba-lost-password-form-wrapper a.yokaba-lost-password-submit-btn {
    flex: 1 1 auto;
    background: #1F1B16 !important;
    color: #fff !important;
    border: 0 !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    transition: background .15s, transform .05s;
    width: auto;
}
.yokaba-lost-password-form-wrapper button.yokaba-lost-password-submit-btn:hover,
.yokaba-lost-password-form-wrapper a.yokaba-lost-password-submit-btn:hover {
    background: #A88466 !important;
}
.yokaba-lost-password-form-wrapper a.yokaba-lost-password-back-btn {
    flex: 0 1 auto;
    color: #6E665C !important;
    background: transparent !important;
    text-decoration: none !important;
    font-size: 13px !important;
    padding: 12px 18px !important;
    border: 1px solid #D9D4CC !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
}
.yokaba-lost-password-form-wrapper a.yokaba-lost-password-back-btn:hover {
    color: #1F1B16 !important;
    border-color: #A88466 !important;
}

/* Confirmation */
.yokaba-lost-password-confirmation { text-align: center; }
.yokaba-confirmation-icon { color: #1A8A4E; margin: 0 auto 12px; width: 48px; height: 48px; }
.yokaba-lost-password-confirmation .yokaba-lost-password-buttons { justify-content: center; }
.yokaba-lost-password-confirmation .yokaba-lost-password-submit-btn { flex: 0 1 auto; min-width: 200px; }

/* Walidacja email rejestracji */
.yokaba-email-exists {
    display: none;
    margin-top: 6px;
    padding: 10px 12px;
    background: #FFF6E5;
    border: 1px solid #F2D89A;
    border-radius: 8px;
    font-size: 13px;
    color: #6B4A00;
    line-height: 1.45;
}
.yokaba-email-exists.is-visible { display: block; }
.yokaba-email-exists a { color: #A88466; font-weight: 600; text-decoration: underline; }
.yokaba-email-exists a:hover { color: #1F1B16; }
.yokaba-email-checking {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    color: #8A8378;
}
.yokaba-email-checking.is-visible { display: block; }

@media (max-width: 600px) {
    .yokaba-lost-password-form-wrapper { padding: 28px 20px; border-radius: 12px; }
    .yokaba-lost-password-buttons { flex-direction: column; }
    .yokaba-lost-password-submit-btn,
    .yokaba-lost-password-back-btn { width: 100%; }
}

/* === HOTFIX: wzmocniona specyficzność na buttony (przegrywały z theme/WC) === */
body.woocommerce-account .yokaba-lost-password-form-wrapper button.yokaba-lost-password-submit-btn,
body.woocommerce-account .yokaba-lost-password-form-wrapper input[type="submit"].yokaba-lost-password-submit-btn,
.woocommerce .yokaba-lost-password-form-wrapper button.yokaba-lost-password-submit-btn,
form.lost_reset_password button.yokaba-lost-password-submit-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    flex: 1 1 200px !important;
    background: #1F1B16 !important;
    background-image: none !important;
    background-color: #1F1B16 !important;
    color: #fff !important;
    border: 1px solid #1F1B16 !important;
    padding: 14px 20px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background-color .15s, border-color .15s !important;
    text-align: center !important;
    min-height: 44px !important;
}
body.woocommerce-account .yokaba-lost-password-form-wrapper button.yokaba-lost-password-submit-btn:hover,
.woocommerce .yokaba-lost-password-form-wrapper button.yokaba-lost-password-submit-btn:hover,
form.lost_reset_password button.yokaba-lost-password-submit-btn:hover {
    background: #A88466 !important;
    background-color: #A88466 !important;
    border-color: #A88466 !important;
    color: #fff !important;
}

body.woocommerce-account .yokaba-lost-password-form-wrapper a.yokaba-lost-password-back-btn,
.woocommerce .yokaba-lost-password-form-wrapper a.yokaba-lost-password-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 1 auto !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #6E665C !important;
    border: 1px solid #D9D4CC !important;
    padding: 14px 20px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
}
body.woocommerce-account .yokaba-lost-password-form-wrapper a.yokaba-lost-password-back-btn:hover,
.woocommerce .yokaba-lost-password-form-wrapper a.yokaba-lost-password-back-btn:hover {
    color: #1F1B16 !important;
    border-color: #A88466 !important;
    background: #FAF8F5 !important;
}

/* === HOTFIX 2: button "Passwort speichern" był kwadratem 200x200, prawdopodobnie aspect-ratio/height z theme. Twardy reset wszystkich potencjalnych źródeł i układ kolumnowy. === */
.yokaba-lost-password-form-wrapper .yokaba-lost-password-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
    margin-top: 20px !important;
}
.yokaba-lost-password-form-wrapper .yokaba-lost-password-buttons > button.yokaba-lost-password-submit-btn,
.yokaba-lost-password-form-wrapper .yokaba-lost-password-buttons > a.yokaba-lost-password-submit-btn,
.yokaba-lost-password-form-wrapper .yokaba-lost-password-buttons > a.yokaba-lost-password-back-btn,
.yokaba-lost-password-form-wrapper .yokaba-lost-password-buttons > input[type="submit"].yokaba-lost-password-submit-btn,
form.lost_reset_password .yokaba-lost-password-buttons > button.yokaba-lost-password-submit-btn,
form.woocommerce-ResetPassword .yokaba-lost-password-buttons > button.yokaba-lost-password-submit-btn {
    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    flex: 0 0 auto !important;
    display: block !important;
    padding: 14px 20px !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
    text-align: center !important;
}
