/* ==========================================================
 * Sundaymuses OTP — Legacy WC fields (preserved)
 * ========================================================== */
.sundaymuses-otp-send-row {
    margin-top: -8px;
    margin-bottom: 20px;
}

.sundaymuses-otp-send-btn {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    background: #0E0E0E !important;
    color: #FFFFFF !important;
    border: none;
    border-radius: 0;
    padding: 14px 28px;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.sundaymuses-otp-send-btn:hover,
.sundaymuses-otp-send-btn:focus {
    background: #BD7B5C !important;
    color: #FFFFFF !important;
}

.sundaymuses-otp-send-btn:disabled {
    background: #C7C2BA !important;
    color: #FFFFFF !important;
    cursor: not-allowed;
}

.sundaymuses-otp-message {
    display: block;
    margin-top: 10px;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.sundaymuses-otp-message.success {
    color: #5A5754;
}

.sundaymuses-otp-message.error {
    color: #BD7B5C;
}

.sundaymuses-otp-code-row {
    margin-bottom: 20px;
}

.sundaymuses-otp-code-row label {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5A5754;
    margin-bottom: 8px;
    display: block;
}

.sundaymuses-otp-code-row input {
    border: none;
    border-bottom: 1px solid #C7C2BA;
    border-radius: 0;
    padding: 12px 0;
    font-size: 15px;
    background: transparent;
    color: #0E0E0E;
    width: 100%;
    outline: none;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    letter-spacing: 0.2em;
    text-align: center;
}

.sundaymuses-otp-code-row input:focus {
    border-bottom-color: #BD7B5C;
}

.sundaymuses-otp-code-row input::placeholder {
    color: #C7C2BA;
    letter-spacing: 0.05em;
}

/* ==========================================================
 * Sundaymuses Auth — Custom Login / Register pages
 * ========================================================== */
.sundaymuses-auth-wrap {
    max-width: 480px;
    margin: 64px auto;
    padding: 48px 40px;
    background: #FFFFFF;
    border: 1px solid #C7C2BA;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    color: #0E0E0E;
}

.sundaymuses-auth-title {
    font-family: 'Archivo', Helvetica, Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0E0E0E;
    margin: 0 0 8px 0;
    line-height: 1.1;
    text-align: center;
}

.sundaymuses-auth-subtitle {
    font-size: 13px;
    color: #5A5754;
    margin: 0 0 32px 0;
    text-align: center;
    letter-spacing: 0.02em;
}

.sundaymuses-auth-form .sundaymuses-form-row {
    margin-bottom: 20px;
}

.sundaymuses-auth-form label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #5A5754;
    margin-bottom: 8px;
}

.sundaymuses-auth-form label .required {
    color: #BD7B5C;
    margin-left: 2px;
}

.sundaymuses-auth-form input[type="email"],
.sundaymuses-auth-form input[type="password"],
.sundaymuses-auth-form input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid #C7C2BA;
    border-radius: 0;
    padding: 12px 0;
    font-size: 15px;
    background: transparent;
    color: #0E0E0E;
    outline: none;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    transition: border-bottom-color 0.2s ease;
}

.sundaymuses-auth-form input[type="email"]:focus,
.sundaymuses-auth-form input[type="password"]:focus,
.sundaymuses-auth-form input[type="text"]:focus {
    border-bottom-color: #BD7B5C;
}

.sundaymuses-auth-form input.invalid {
    border-bottom-color: #BD7B5C;
}

.sundaymuses-form-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #5A5754;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.sundaymuses-math-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sundaymuses-math-question {
    font-family: 'Archivo', Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #0E0E0E;
    background: #F2EFE9;
    padding: 8px 16px;
    border: 1px solid #C7C2BA;
    min-width: 96px;
    text-align: center;
    letter-spacing: 0.05em;
}

.sundaymuses-math-row input {
    flex: 1;
    text-align: center;
    letter-spacing: 0.2em;
}

.sundaymuses-form-actions {
    margin-top: 32px;
    margin-bottom: 16px;
}

.sundaymuses-auth-submit {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    background: #0E0E0E !important;
    color: #FFFFFF !important;
    border: none;
    border-radius: 0;
    padding: 16px 28px;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

a.sundaymuses-auth-submit,
a.sundaymuses-auth-submit:link,
a.sundaymuses-auth-submit:visited,
a.sundaymuses-auth-submit:active,
a.sundaymuses-auth-submit:focus {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.sundaymuses-auth-submit:hover,
.sundaymuses-auth-submit:focus,
a.sundaymuses-auth-submit:hover,
a.sundaymuses-auth-submit:focus {
    background: #BD7B5C !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.sundaymuses-auth-submit:disabled {
    background: #C7C2BA !important;
    color: #FFFFFF !important;
    cursor: not-allowed;
}

.sundaymuses-form-message {
    min-height: 20px;
    padding: 8px 0;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: 0.02em;
}

.sundaymuses-form-message.error {
    color: #BD7B5C;
}

.sundaymuses-form-message.success {
    color: #5A5754;
}

.sundaymuses-field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #BD7B5C;
    letter-spacing: 0.02em;
}

.sundaymuses-auth-foot {
    text-align: center;
    margin: 24px 0 0 0;
    padding-top: 24px;
    border-top: 1px solid #C7C2BA;
    font-size: 13px;
    color: #5A5754;
    letter-spacing: 0.02em;
}

.sundaymuses-auth-foot a {
    color: #0E0E0E;
    text-decoration: none;
    border-bottom: 1px solid #C7C2BA;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.sundaymuses-auth-foot a:hover {
    color: #BD7B5C;
    border-bottom-color: #BD7B5C;
}

.sundaymuses-auth-foot-sep {
    margin: 0 8px;
    color: #C7C2BA;
}

.sundaymuses-auth-notice {
    max-width: 480px;
    margin: 64px auto;
    padding: 32px;
    background: #F2EFE9;
    border: 1px solid #C7C2BA;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #5A5754;
    text-align: center;
    letter-spacing: 0.02em;
}

/* ==========================================================
 * Sundaymuses Auth — Forgot / Reset password additions
 * ========================================================== */
.sundaymuses-form-message-static {
    margin: 0 0 24px 0;
    padding: 14px 16px;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: 0.02em;
    border: 1px solid #C7C2BA;
    background: #F2EFE9;
    color: #5A5754;
}

.sundaymuses-form-message-static.success {
    color: #5A5754;
    border-color: #C7C2BA;
    background: #F2EFE9;
}

.sundaymuses-form-message-static.error {
    color: #BD7B5C;
    border-color: #BD7B5C;
    background: #FFFFFF;
}

.sundaymuses-form-inline-link {
    display: inline-block;
    margin-top: 8px;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #5A5754;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sundaymuses-form-inline-link:hover {
    color: #BD7B5C;
    border-bottom-color: #BD7B5C;
}

/* ==========================================================
 * Hide WC default login/register block on /my-account/ for guests
 * (redirect handles guests, but this is a defensive fallback)
 * ========================================================== */
body.woocommerce-account:not(.logged-in) .woocommerce-form-login,
body.woocommerce-account:not(.logged-in) .woocommerce-form-register,
body.woocommerce-account:not(.logged-in) .u-columns,
body.woocommerce-account:not(.logged-in) .u-column1,
body.woocommerce-account:not(.logged-in) .u-column2 {
    display: none !important;
}

/* ==========================================================
 * Mobile responsive
 * ========================================================== */
@media (max-width: 600px) {
    .sundaymuses-auth-wrap {
        margin: 32px 16px;
        padding: 32px 24px;
    }

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

    .sundaymuses-math-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .sundaymuses-math-question {
        min-width: auto;
    }
}

/* ==========================================================
 * Sundaymuses Auth — Primary button override
 * Scoped to auth wrapper so generic button / .button / a.button
 * elements (even ones injected by WooCommerce or the theme)
 * keep black bg + white text + correct sizing inside the card.
 * ========================================================== */
.sundaymuses-auth-wrap button[type="submit"],
.sundaymuses-auth-wrap button.button,
.sundaymuses-auth-wrap a.button,
.sundaymuses-auth-wrap .button,
.sundaymuses-auth-form button[type="submit"],
.sundaymuses-auth-form button.button,
.sundaymuses-auth-form a.button,
.sundaymuses-auth-form .button {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    background: #0E0E0E !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 16px 28px;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sundaymuses-auth-wrap button[type="submit"]:hover,
.sundaymuses-auth-wrap button[type="submit"]:focus,
.sundaymuses-auth-wrap button.button:hover,
.sundaymuses-auth-wrap button.button:focus,
.sundaymuses-auth-wrap a.button:hover,
.sundaymuses-auth-wrap a.button:focus,
.sundaymuses-auth-wrap .button:hover,
.sundaymuses-auth-wrap .button:focus,
.sundaymuses-auth-form button[type="submit"]:hover,
.sundaymuses-auth-form button[type="submit"]:focus,
.sundaymuses-auth-form button.button:hover,
.sundaymuses-auth-form button.button:focus,
.sundaymuses-auth-form a.button:hover,
.sundaymuses-auth-form a.button:focus,
.sundaymuses-auth-form .button:hover,
.sundaymuses-auth-form .button:focus {
    background: #BD7B5C !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.sundaymuses-auth-wrap a.button,
.sundaymuses-auth-wrap a.button:link,
.sundaymuses-auth-wrap a.button:visited,
.sundaymuses-auth-wrap a.button:active,
.sundaymuses-auth-form a.button,
.sundaymuses-auth-form a.button:link,
.sundaymuses-auth-form a.button:visited,
.sundaymuses-auth-form a.button:active {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/* ==========================================================
 * Sundaymuses Auth — Max-specificity FINAL override
 * (Targets the exact rendered shape:
 *  body > ... > .sundaymuses-auth-wrap > .sundaymuses-form-actions > a.sundaymuses-auth-submit)
 * Wins against any theme/WC anchor color rule. Last block in file.
 * ========================================================== */
html body .sundaymuses-auth-wrap a.sundaymuses-auth-submit,
html body .sundaymuses-auth-wrap a.sundaymuses-auth-submit:link,
html body .sundaymuses-auth-wrap a.sundaymuses-auth-submit:visited,
html body .sundaymuses-auth-wrap a.sundaymuses-auth-submit:active,
html body .sundaymuses-auth-wrap a.sundaymuses-auth-submit:focus,
html body .sundaymuses-auth-wrap button.sundaymuses-auth-submit,
html body .sundaymuses-auth-form button.sundaymuses-auth-submit,
html body .sundaymuses-auth-form a.sundaymuses-auth-submit,
html body .sundaymuses-form-actions a.sundaymuses-auth-submit,
html body .sundaymuses-form-actions button.sundaymuses-auth-submit {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    background: #0E0E0E !important;
    background-color: #0E0E0E !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 16px 28px !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.24em !important;
    font-family: 'Inter', Helvetica, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    transform: none !important;
    box-shadow: none !important;
    transition: background 0.3s ease, background-color 0.3s ease, color 0.3s ease !important;
}

html body .sundaymuses-auth-wrap a.sundaymuses-auth-submit:hover,
html body .sundaymuses-auth-wrap a.sundaymuses-auth-submit:focus,
html body .sundaymuses-auth-wrap button.sundaymuses-auth-submit:hover,
html body .sundaymuses-auth-wrap button.sundaymuses-auth-submit:focus,
html body .sundaymuses-auth-form button.sundaymuses-auth-submit:hover,
html body .sundaymuses-auth-form button.sundaymuses-auth-submit:focus,
html body .sundaymuses-auth-form a.sundaymuses-auth-submit:hover,
html body .sundaymuses-auth-form a.sundaymuses-auth-submit:focus,
html body .sundaymuses-form-actions a.sundaymuses-auth-submit:hover,
html body .sundaymuses-form-actions a.sundaymuses-auth-submit:focus,
html body .sundaymuses-form-actions button.sundaymuses-auth-submit:hover,
html body .sundaymuses-form-actions button.sundaymuses-auth-submit:focus {
    background: #BD7B5C !important;
    background-color: #BD7B5C !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    transform: none !important;
    box-shadow: none !important;
}
