/**
 * Ondacor — Registration Forms CSS
 * Layout 1-coluna editorial · Cormorant Garamond + Manrope · Paleta Ondacor
 * @since 2026-06-23
 */

.ondacor-register-wrapper {
    max-width: 480px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif);
    color: var(--ond-ink, #2A2620);
    background: var(--ond-paper, #FFFEFB);
}

.ondacor-register-wrapper--wholesale {
    max-width: 640px;
}

.ondacor-reg-title {
    font-family: var(--ond-serif, 'Cormorant Garamond', serif);
    font-size: 2.25rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-align: center;
    color: var(--ond-ink, #2A2620);
    margin: 0 0 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ond-rule, #EBE7DF);
}

.ondacor-reg-intro {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--ond-muted, #8A857C);
    text-align: center;
    margin: -1rem 0 2.5rem;
    padding: 0 1rem;
}

.ondacor-reg-section-title {
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ond-muted, #8A857C);
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--ond-rule, #EBE7DF);
}

.ondacor-reg-section-title:first-of-type {
    margin-top: 1rem;
}

.ondacor-reg-field {
    margin-bottom: 1.5rem;
    position: relative;
}

.ondacor-reg-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ond-muted, #8A857C);
    margin-bottom: 0.5rem;
}

.ondacor-reg-field input[type="text"],
.ondacor-reg-field input[type="email"],
.ondacor-reg-field input[type="tel"],
.ondacor-reg-field input[type="password"] {
    width: 100%;
    padding: 0.75rem 0;
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif);
    font-size: 1rem;
    color: var(--ond-ink, #2A2620);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--ond-rule-strong, #D4CFC4);
    border-radius: 0;
    box-shadow: none;
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.ondacor-reg-field input:focus {
    border-bottom-color: var(--ond-accent, #B8956A);
}

.ondacor-reg-field input::placeholder {
    color: var(--ond-muted-soft, #B8B3A8);
    font-style: italic;
}

.ondacor-reg-field input:autofill,
.ondacor-reg-field input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--ond-paper, #FFFEFB) inset;
    -webkit-text-fill-color: var(--ond-ink, #2A2620);
}

.ondacor-reg-field input:invalid:not(:placeholder-shown):not(:focus) {
    border-bottom-color: #B8475A;
}

.ondacor-reg-hint {
    font-size: 0.78rem;
    color: var(--ond-muted, #8A857C);
    margin: 0.5rem 0 0;
    line-height: 1.4;
    font-style: italic;
}

.ondacor-reg-optional {
    font-size: 0.7rem;
    color: var(--ond-muted-soft, #B8B3A8);
    text-transform: none;
    letter-spacing: 0.02em;
    font-style: italic;
    margin-left: 0.4em;
}

.ondacor-reg-grid {
    display: grid;
    gap: 1.5rem;
}

.ondacor-reg-grid--2 {
    grid-template-columns: 1fr 1fr;
}

.ondacor-reg-grid--2 .ondacor-reg-field {
    margin-bottom: 0;
}

@media (max-width: 580px) {
    .ondacor-reg-grid--2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .ondacor-reg-grid--2 .ondacor-reg-field {
        margin-bottom: 0;
    }
}

.ondacor-reg-field--checkbox {
    margin: 2rem 0 2rem;
    padding: 0;
}

.ondacor-reg-field--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--ond-ink, #2A2620);
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 0;
}

.ondacor-reg-field--checkbox input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 0.15em;
    accent-color: var(--ond-accent, #B8956A);
    cursor: pointer;
}

.ondacor-reg-field--checkbox span {
    flex: 1;
    color: var(--ond-muted, #8A857C);
}

.ondacor-reg-field--checkbox a {
    color: var(--ond-accent, #B8956A);
    text-decoration: none;
    border-bottom: 1px solid var(--ond-rule, #EBE7DF);
    transition: border-color 0.2s;
}

.ondacor-reg-field--checkbox a:hover {
    border-bottom-color: var(--ond-accent, #B8956A);
}

.ondacor-reg-submit {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: var(--ond-accent, #B8956A);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.25s ease;
    margin-top: 0.5rem;
    -webkit-appearance: none;
    appearance: none;
}

.ondacor-reg-submit:hover:not(:disabled) {
    background: var(--ond-accent-dark, #8E6F4E);
}

.ondacor-reg-submit:disabled {
    background: var(--ond-muted-soft, #B8B3A8);
    cursor: wait;
    opacity: 0.8;
}

.ondacor-reg-footnote {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: 0.72rem;
    color: var(--ond-muted-soft, #B8B3A8);
    line-height: 1.5;
    font-style: italic;
}

.ondacor-reg-footnote a {
    color: var(--ond-muted, #8A857C);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.ondacor-reg-footnote a:hover {
    border-bottom-color: var(--ond-muted, #8A857C);
}

/* Status / flash messages */
.ondacor-reg-status {
    margin: 0 0 2rem;
    padding: 1.25rem 1.5rem;
    font-size: 0.92rem;
    line-height: 1.5;
    border-left: 3px solid;
    background: var(--ond-warm, #FAF8F4);
}

.ondacor-reg-status--success {
    border-left-color: var(--ond-accent, #B8956A);
    color: var(--ond-ink, #2A2620);
}

.ondacor-reg-status--error {
    border-left-color: #B8475A;
    color: var(--ond-ink, #2A2620);
    background: #FDF5F6;
}

.ondacor-reg-status a {
    color: var(--ond-accent, #B8956A);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

/* Honeypot — invisível para humanos, presente no DOM para bots */
.ondacor-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Garante que o reCAPTCHA badge da Google está escondido (já tens este override no globals, mas reforça) */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Responsive padding */
@media (max-width: 580px) {
    .ondacor-register-wrapper {
        padding: 2rem 1rem;
    }
    .ondacor-reg-title {
        font-size: 1.85rem;
    }
}

/* ============================================================
 * Specificity reinforcement — vence Hello Elementor + WC defaults
 * ============================================================ */

html body .ondacor-register-wrapper button.ondacor-reg-submit,
html body .ondacor-register-wrapper input.ondacor-reg-submit,
html body .ondacor-register-wrapper button[type="submit"].ondacor-reg-submit {
    display: block !important;
    width: 100% !important;
    padding: 1rem 2rem !important;
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #FFFFFF !important;
    background: var(--ond-accent, #B8956A) !important;
    background-color: var(--ond-accent, #B8956A) !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    margin-top: 0.5rem !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: background 0.25s ease !important;
}

html body .ondacor-register-wrapper button.ondacor-reg-submit:hover:not(:disabled),
html body .ondacor-register-wrapper input.ondacor-reg-submit:hover:not(:disabled),
html body .ondacor-register-wrapper button[type="submit"].ondacor-reg-submit:hover:not(:disabled) {
    background: var(--ond-accent-dark, #8E6F4E) !important;
    background-color: var(--ond-accent-dark, #8E6F4E) !important;
    color: #FFFFFF !important;
}

html body .ondacor-register-wrapper button.ondacor-reg-submit:disabled,
html body .ondacor-register-wrapper input.ondacor-reg-submit:disabled {
    background: var(--ond-muted-soft, #B8B3A8) !important;
    background-color: var(--ond-muted-soft, #B8B3A8) !important;
    cursor: wait !important;
    opacity: 0.8 !important;
}

/* Remove "caixa" beige do wrapper — alinha com login acima (mesmo nível visual) */
html body .ondacor-register-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Reforço dos inputs caso o Elementor tente injectar background colorido */
html body .ondacor-register-wrapper .ondacor-reg-field input[type="text"],
html body .ondacor-register-wrapper .ondacor-reg-field input[type="email"],
html body .ondacor-register-wrapper .ondacor-reg-field input[type="tel"],
html body .ondacor-register-wrapper .ondacor-reg-field input[type="password"] {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--ond-rule-strong, #D4CFC4) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body .ondacor-register-wrapper .ondacor-reg-field input:focus {
    border-bottom-color: var(--ond-accent, #B8956A) !important;
    outline: none !important;
}

/* Garante que o título não herda o caramelo de h2 globais */
html body .ondacor-register-wrapper h2.ondacor-reg-title {
    color: var(--ond-ink, #2A2620) !important;
    font-family: var(--ond-serif, 'Cormorant Garamond', serif) !important;
    font-weight: 400 !important;
}

/* ============================================================
 * Spacing — separação clara entre campos e grupos de campos
 * ============================================================ */

/* Grid (NOME+APELIDO, EMAIL+TELEFONE, etc) precisa de margem inferior */
html body .ondacor-register-wrapper .ondacor-reg-grid {
    margin-bottom: 1.75rem !important;
}

/* Reforço entre campos standalone */
html body .ondacor-register-wrapper .ondacor-reg-field {
    margin-bottom: 1.75rem !important;
}

/* Mas grid interno mantém os 2 lado-a-lado sem margem dupla */
html body .ondacor-register-wrapper .ondacor-reg-grid--2 .ondacor-reg-field {
    margin-bottom: 0 !important;
}

/* Section titles com mais respiro acima */
html body .ondacor-register-wrapper .ondacor-reg-section-title {
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
}

html body .ondacor-register-wrapper .ondacor-reg-section-title:first-of-type {
    margin-top: 1.5rem !important;
}

/* Checkbox afastado do último campo (password) */
html body .ondacor-register-wrapper .ondacor-reg-field--checkbox {
    margin-top: 2.25rem !important;
    margin-bottom: 2.25rem !important;
}

/* Hint da password com respiro inferior dentro do field */
html body .ondacor-register-wrapper .ondacor-reg-hint {
    margin-top: 0.6rem !important;
    margin-bottom: 0 !important;
}

/* ============================================================
 * Auth Tabs — selector entre Entrar e Criar Conta
 * ============================================================ */

.ondacor-auth-tabs-wrapper {
    max-width: 520px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.ondacor-auth-tabs__nav {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--ond-rule, #EBE7DF);
    margin-bottom: 2.5rem;
    gap: 0;
}

.ondacor-auth-tabs__tab {
    flex: 1;
    padding: 1.1rem 1rem;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ond-muted-soft, #B8B3A8);
    cursor: pointer;
    margin-bottom: -1px;
    transition: color 0.25s ease, border-color 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
    text-decoration: none;
}

.ondacor-auth-tabs__tab:hover {
    color: var(--ond-muted, #8A857C);
}

.ondacor-auth-tabs__tab[aria-selected="true"] {
    color: var(--ond-ink, #2A2620) !important;
    border-bottom-color: var(--ond-accent, #B8956A) !important;
    font-weight: 600;
}

.ondacor-auth-tabs__tab:focus-visible {
    outline: 2px solid var(--ond-accent, #B8956A);
    outline-offset: 2px;
}

.ondacor-auth-tabs__panel {
    animation: ondacorTabFade 0.3s ease;
}

.ondacor-auth-tabs__panel[hidden] {
    display: none;
}

@keyframes ondacorTabFade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* No interior do tab panel, o wrapper aninhado herda 0 padding lateral */
.ondacor-auth-tabs__panel .ondacor-register-wrapper {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

@media (max-width: 580px) {
    .ondacor-auth-tabs-wrapper {
        padding: 2rem 1rem;
    }
    .ondacor-auth-tabs__tab {
        font-size: 0.72rem;
        padding: 0.9rem 0.5rem;
        letter-spacing: 0.1em;
    }
}

/* ============================================================
 * Auth Tabs — Specificity reinforcement + center alignment
 * Vence Elementor button styles + Hello Elementor defaults
 * ============================================================ */

html body .ondacor-auth-tabs-wrapper {
    max-width: 520px !important;
    margin: 0 auto !important;
    padding: 3rem 1.5rem !important;
    text-align: center !important;
}

html body .ondacor-auth-tabs__nav {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    border-bottom: 1px solid var(--ond-rule, #EBE7DF) !important;
    margin: 0 0 2.5rem 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    background: transparent !important;
    width: 100% !important;
}

html body .ondacor-auth-tabs__nav button.ondacor-auth-tabs__tab,
html body .ondacor-auth-tabs__nav button[role="tab"].ondacor-auth-tabs__tab,
html body button.ondacor-auth-tabs__tab[type="button"] {
    flex: 1 1 50% !important;
    padding: 1.1rem 1rem !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: var(--ond-muted-soft, #B8B3A8) !important;
    cursor: pointer !important;
    margin: 0 0 -1px 0 !important;
    transition: color 0.25s ease, border-color 0.25s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-shadow: none !important;
    min-height: auto !important;
    height: auto !important;
    width: auto !important;
    outline: none !important;
}

html body .ondacor-auth-tabs__nav button.ondacor-auth-tabs__tab:hover {
    color: var(--ond-muted, #8A857C) !important;
    background: transparent !important;
    border-bottom-color: transparent !important;
}

html body .ondacor-auth-tabs__nav button.ondacor-auth-tabs__tab[aria-selected="true"] {
    color: var(--ond-ink, #2A2620) !important;
    border-bottom-color: var(--ond-accent, #B8956A) !important;
    border-bottom-width: 2px !important;
    border-bottom-style: solid !important;
    font-weight: 600 !important;
    background: transparent !important;
}

html body .ondacor-auth-tabs__nav button.ondacor-auth-tabs__tab:focus,
html body .ondacor-auth-tabs__nav button.ondacor-auth-tabs__tab:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

html body .ondacor-auth-tabs__nav button.ondacor-auth-tabs__tab:focus-visible {
    outline: 2px solid var(--ond-accent, #B8956A) !important;
    outline-offset: 2px !important;
}

html body .ondacor-auth-tabs__panel[hidden] {
    display: none !important;
}

html body .ondacor-auth-tabs__panel {
    text-align: center !important;
    animation: ondacorTabFade 0.3s ease;
}

/* Forms dentro do panel — centradas */
html body .ondacor-auth-tabs__panel .ondacor-register-form {
    text-align: left !important;
}

html body .ondacor-auth-tabs__panel .ondacor-register-wrapper {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    text-align: left !important;
}

/* Intro do form wholesale dentro do tab — centra texto */
html body .ondacor-auth-tabs__panel .ondacor-reg-intro {
    text-align: center !important;
}

/* Status messages centradas */
html body .ondacor-auth-tabs__panel .ondacor-reg-status {
    text-align: left !important;
}

/* Footnote sempre centrada */
html body .ondacor-auth-tabs__panel .ondacor-reg-footnote {
    text-align: center !important;
}

/* Submit button responde a specificity tabs panel também */
html body .ondacor-auth-tabs__panel button.ondacor-reg-submit,
html body .ondacor-auth-tabs__panel input.ondacor-reg-submit,
html body .ondacor-auth-tabs__panel button[type="submit"].ondacor-reg-submit {
    display: block !important;
    width: 100% !important;
    padding: 1rem 2rem !important;
    background: var(--ond-accent, #B8956A) !important;
    background-color: var(--ond-accent, #B8956A) !important;
    background-image: none !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: background 0.25s ease !important;
    margin-top: 0.5rem !important;
}

html body .ondacor-auth-tabs__panel button.ondacor-reg-submit:hover:not(:disabled) {
    background: var(--ond-accent-dark, #8E6F4E) !important;
    background-color: var(--ond-accent-dark, #8E6F4E) !important;
}

/* Mobile */
@media (max-width: 580px) {
    html body .ondacor-auth-tabs-wrapper {
        padding: 2rem 1rem !important;
    }
    html body .ondacor-auth-tabs__nav button.ondacor-auth-tabs__tab {
        font-size: 0.72rem !important;
        padding: 0.9rem 0.5rem !important;
        letter-spacing: 0.1em !important;
    }
}

/* ============================================================
 * ONDACOR ACCOUNT — DASHBOARD (estado logado)
 * @since 2026-06-23 (Fase 1)
 * ============================================================ */

html body .ondacor-account-dashboard {
    max-width: 880px !important;
    margin: 0 auto !important;
    padding: 3rem 1.5rem 4rem !important;
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    color: var(--ond-ink, #2A2620) !important;
}

html body .ondacor-account-dashboard__head {
    margin: 0 0 3rem !important;
    padding: 0 0 2rem !important;
    border-bottom: 1px solid var(--ond-rule, #EBE7DF) !important;
}

html body .ondacor-account-dashboard__eyebrow {
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: var(--ond-muted, #8A857C) !important;
    margin: 0 0 1rem !important;
}

html body .ondacor-account-dashboard__title {
    font-family: var(--ond-serif, 'Cormorant Garamond', serif) !important;
    font-size: 2.75rem !important;
    font-weight: 400 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.05 !important;
    color: var(--ond-ink, #2A2620) !important;
    margin: 0 0 1rem !important;
}

html body .ondacor-account-dashboard__intro {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: var(--ond-muted, #8A857C) !important;
    max-width: 52ch !important;
    margin: 0 !important;
}

html body .ondacor-account-dashboard__nav {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    margin: 0 0 3.5rem !important;
}

html body .ondacor-account-dashboard__nav a.ondacor-account-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 2rem 1.75rem !important;
    text-decoration: none !important;
    background: var(--ond-warm, #FAF8F4) !important;
    border: 1px solid var(--ond-rule, #EBE7DF) !important;
    border-left: 2px solid transparent !important;
    box-shadow: none !important;
    transition: border-left-color 0.25s ease, background 0.25s ease, transform 0.25s ease !important;
}

html body .ondacor-account-dashboard__nav a.ondacor-account-card:hover,
html body .ondacor-account-dashboard__nav a.ondacor-account-card:focus-visible {
    background: var(--ond-paper, #FFFEFB) !important;
    border-left-color: var(--ond-accent, #B8956A) !important;
    transform: translateY(-2px) !important;
    outline: none !important;
}

html body .ondacor-account-card .ondacor-account-card__label {
    font-family: var(--ond-serif, 'Cormorant Garamond', serif) !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    color: var(--ond-ink, #2A2620) !important;
}

html body .ondacor-account-card .ondacor-account-card__desc {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    color: var(--ond-muted, #8A857C) !important;
}

html body .ondacor-account-dashboard__foot {
    padding: 2rem 0 0 !important;
    border-top: 1px solid var(--ond-rule, #EBE7DF) !important;
}

html body a.ondacor-account-logout {
    display: inline-block !important;
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    color: var(--ond-muted, #8A857C) !important;
    border-bottom: 1px solid var(--ond-rule, #EBE7DF) !important;
    padding-bottom: 2px !important;
    transition: color 0.2s ease, border-bottom-color 0.2s ease !important;
}

html body a.ondacor-account-logout:hover,
html body a.ondacor-account-logout:focus-visible {
    color: var(--ond-accent, #B8956A) !important;
    border-bottom-color: var(--ond-accent, #B8956A) !important;
    outline: none !important;
}

@media (max-width: 720px) {
    html body .ondacor-account-dashboard {
        padding: 2rem 1rem 3rem !important;
    }
    html body .ondacor-account-dashboard__title {
        font-size: 2.1rem !important;
    }
    html body .ondacor-account-dashboard__nav {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-bottom: 2.5rem !important;
    }
    html body .ondacor-account-dashboard__nav a.ondacor-account-card {
        padding: 1.5rem 1.25rem !important;
    }
}

/* ============================================================
 * ONDACOR ACCOUNT — SUB-ECRÃS WOOCOMMERCE (endpoints)
 * Direcção Aesop: esconde nav lateral, navega por cartões, link voltar.
 * @since 2026-06-23 (Fase 1 — styling)
 * ============================================================ */

html body.woocommerce-account .woocommerce-MyAccount-navigation {
    display: none !important;
}
html body.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
    max-width: 920px !important;
    padding: 3rem 1.5rem 4rem !important;
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    color: var(--ond-ink, #2A2620) !important;
}
html body .ondacor-account-back {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    color: var(--ond-muted, #8A857C) !important;
    margin: 0 0 2.5rem !important;
    padding-bottom: 4px !important;
    border-bottom: 1px solid transparent !important;
    transition: color 0.2s ease, border-bottom-color 0.2s ease !important;
}
html body .ondacor-account-back:hover,
html body .ondacor-account-back:focus-visible {
    color: var(--ond-accent, #B8956A) !important;
    border-bottom-color: var(--ond-accent, #B8956A) !important;
    outline: none !important;
}
html body .ondacor-account-screen-title {
    font-family: var(--ond-serif, 'Cormorant Garamond', serif) !important;
    font-size: 2.25rem !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    color: var(--ond-ink, #2A2620) !important;
    margin: 0 0 2rem !important;
    padding-bottom: 1.5rem !important;
    border-bottom: 1px solid var(--ond-rule, #EBE7DF) !important;
}
html body .woocommerce-MyAccount-content > p:first-of-type {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: var(--ond-muted, #8A857C) !important;
    margin: 0 0 2.5rem !important;
}

/* ENCOMENDAS */
html body .woocommerce-orders-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
    margin: 0 0 2.5rem !important;
    font-size: 0.9rem !important;
}
html body .woocommerce-orders-table thead th {
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: var(--ond-muted, #8A857C) !important;
    text-align: left !important;
    padding: 0 1rem 1rem !important;
    border: none !important;
    border-bottom: 1px solid var(--ond-rule-strong, #D4CFC4) !important;
    background: transparent !important;
}
html body .woocommerce-orders-table tbody td {
    padding: 1.25rem 1rem !important;
    border: none !important;
    border-bottom: 1px solid var(--ond-rule, #EBE7DF) !important;
    background: transparent !important;
    color: var(--ond-ink, #2A2620) !important;
    vertical-align: middle !important;
}
html body .woocommerce-orders-table a {
    color: var(--ond-ink, #2A2620) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--ond-accent, #B8956A) !important;
    padding-bottom: 1px !important;
    transition: color 0.2s ease !important;
}
html body .woocommerce-orders-table a:hover { color: var(--ond-accent, #B8956A) !important; }
html body .woocommerce-orders-table .woocommerce-orders-table__cell-order-status {
    color: var(--ond-muted, #8A857C) !important;
    font-size: 0.85rem !important;
}
html body .woocommerce-orders-table a.button,
html body .woocommerce-orders-table a.woocommerce-button {
    display: inline-block !important;
    background: transparent !important;
    color: var(--ond-ink, #2A2620) !important;
    border: 1px solid var(--ond-rule-strong, #D4CFC4) !important;
    border-radius: 0 !important;
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 0.6rem 1.4rem !important;
    box-shadow: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}
html body .woocommerce-orders-table a.button:hover,
html body .woocommerce-orders-table a.woocommerce-button:hover {
    background: var(--ond-accent, #B8956A) !important;
    color: #fff !important;
    border-color: var(--ond-accent, #B8956A) !important;
}
html body .woocommerce-pagination a,
html body .woocommerce-pagination .button {
    background: transparent !important;
    color: var(--ond-ink, #2A2620) !important;
    border: 1px solid var(--ond-rule-strong, #D4CFC4) !important;
    border-radius: 0 !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 0.7rem 1.5rem !important;
    box-shadow: none !important;
}
html body .woocommerce-pagination a:hover {
    background: var(--ond-accent, #B8956A) !important;
    color: #fff !important;
    border-color: var(--ond-accent, #B8956A) !important;
}

/* MORADAS */
html body .woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem !important;
    margin: 0 !important;
}
html body .woocommerce-Address {
    background: var(--ond-warm, #FAF8F4) !important;
    border: 1px solid var(--ond-rule, #EBE7DF) !important;
    padding: 2rem 1.75rem !important;
}
html body .woocommerce-Address-title h3 {
    font-family: var(--ond-serif, 'Cormorant Garamond', serif) !important;
    font-size: 1.6rem !important;
    font-weight: 400 !important;
    color: var(--ond-ink, #2A2620) !important;
    margin: 0 0 1rem !important;
}
html body .woocommerce-Address-title a,
html body .woocommerce-Address .edit {
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--ond-accent, #B8956A) !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent !important;
}
html body .woocommerce-Address-title a:hover,
html body .woocommerce-Address .edit:hover { border-bottom-color: var(--ond-accent, #B8956A) !important; }
html body .woocommerce-Address address {
    font-style: normal !important;
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    color: var(--ond-ink, #2A2620) !important;
}

/* FORMS (conta + editar morada) — inputs border-bottom editorial */
html body form.woocommerce-form input.input-text,
html body form.woocommerce-form input[type="email"],
html body form.woocommerce-form input[type="password"],
html body form.woocommerce-form input[type="tel"],
html body form.woocommerce-form input[type="text"],
html body .woocommerce-address-fields input.input-text {
    width: 100% !important;
    border: none !important;
    border-bottom: 1px solid var(--ond-rule-strong, #D4CFC4) !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0.6rem 0 !important;
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.95rem !important;
    color: var(--ond-ink, #2A2620) !important;
    box-shadow: none !important;
    transition: border-bottom-color 0.2s ease !important;
}
html body form.woocommerce-form input:focus { outline: none !important; border-bottom-color: var(--ond-accent, #B8956A) !important; }
html body form.woocommerce-form label,
html body .woocommerce-EditAccountForm label {
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    color: var(--ond-muted, #8A857C) !important;
    margin-bottom: 0.4rem !important;
    display: block !important;
}
html body .woocommerce-form-row { margin-bottom: 1.75rem !important; }
html body fieldset {
    border: 1px solid var(--ond-rule, #EBE7DF) !important;
    border-radius: 0 !important;
    padding: 1.5rem 1.75rem 0.5rem !important;
    margin: 2rem 0 !important;
}
html body fieldset legend {
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: var(--ond-muted, #8A857C) !important;
    padding: 0 0.75rem !important;
}
html body form.woocommerce-form em { font-size: 0.8rem !important; color: var(--ond-muted-soft, #B8B3A8) !important; }
html body form.woocommerce-form button[type="submit"],
html body .woocommerce-EditAccountForm button[type="submit"],
html body .woocommerce-address-fields button[type="submit"] {
    display: inline-block !important;
    background: var(--ond-accent, #B8956A) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 0.95rem 2.5rem !important;
    margin-top: 1rem !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background 0.25s ease !important;
}
html body form.woocommerce-form button[type="submit"]:hover,
html body .woocommerce-EditAccountForm button[type="submit"]:hover { background: var(--ond-accent-dark, #8E6F4E) !important; }

@media (max-width: 720px) {
    html body.woocommerce-account .woocommerce-MyAccount-content { padding: 2rem 1rem 3rem !important; }
    html body .woocommerce-Addresses { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
    html body .ondacor-account-screen-title { font-size: 1.85rem !important; }
    html body .woocommerce-orders-table tbody td { padding: 0.75rem 1rem !important; }
}

/* ---- CORRECÇÃO Moradas: forçar grelha e matar floats do WC ---- */
html body .woocommerce-Addresses,
html body .woocommerce-account .woocommerce-Addresses.u-columns,
html body .u-columns.woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem !important;
    width: 100% !important;
    float: none !important;
}
/* os filhos do WC trazem float/width próprios — anular */
html body .woocommerce-Addresses .woocommerce-Address,
html body .woocommerce-Addresses .u-column1,
html body .woocommerce-Addresses .u-column2,
html body .woocommerce-Addresses .col-1,
html body .woocommerce-Addresses .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}
/* clearfix defensivo no contentor */
html body .woocommerce-Addresses::before,
html body .woocommerce-Addresses::after {
    content: none !important;
}

/* ---- Form de EDITAR morada: inputs border-bottom (igual aos outros) ---- */
html body .woocommerce-address-fields input.input-text,
html body .woocommerce-address-fields input[type="text"],
html body .woocommerce-address-fields input[type="tel"],
html body .woocommerce-address-fields .select2-selection,
html body form.edit-account input.input-text {
    border: none !important;
    border-bottom: 1px solid var(--ond-rule-strong, #D4CFC4) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
html body .woocommerce-address-fields input:focus {
    outline: none !important;
    border-bottom-color: var(--ond-accent, #B8956A) !important;
}

/* ============================================================
 * ONDACOR — FORM WHOLESALE (/profissionais/) — Fase 4 [FINAL]
 * Estratégia A1: CSS-only. Veste o form do WWLC (markup gerado
 * por JS, classes estáveis) sem tocar no motor/AJAX/aprovação.
 * Layout em 2 colunas (testado ao vivo no browser).
 * Substitui qualquer bloco wholesale anterior. @since 2026-06-25
 * Ordem dos campos: Nome|Apelido · Empresa · NIF|Certidão ·
 * Morada · Localidade|CodPostal · Telefone|Email ·
 * Utilizador|Password · Termos. Botão e links no fim.
 * ============================================================ */

/* ---- Título da página em Cormorant, centrado (só /profissionais/) ---- */
body.page-id-25422 .entry-title {
    font-family: var(--ond-serif, 'Cormorant Garamond', Georgia, serif) !important;
    font-weight: 500 !important;
    font-size: 2.8rem !important;
    line-height: 1.1 !important;
    color: var(--ond-ink, #2A2620) !important;
    text-align: center !important;
    max-width: 720px !important;
    margin: 3rem auto 2.5rem !important;
}

/* ---- Container + grid de 2 colunas ---- */
html body #wwlc-registration-form {
    max-width: 720px !important;
    margin: 0 auto !important;
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    color: var(--ond-ink, #2A2620) !important;
}
html body #wwlc-registration-form form.wwlc-register {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem 2rem !important;
}
html body #wwlc-registration-form form.wwlc-register .form-row {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
}

/* ---- Ordem dos campos (pares lógicos) ---- */
html body #wwlc-registration-form .first_name        { order: 1 !important; }
html body #wwlc-registration-form .last_name         { order: 2 !important; }
html body #wwlc-registration-form .wwlc_company_name { order: 3 !important; grid-column: 1 / -1 !important; }
html body #wwlc-registration-form .wwlc_cf_nif       { order: 4 !important; }
html body #wwlc-registration-form .wwlc_cf_certperm  { order: 5 !important; }
html body #wwlc-registration-form .wwlc_cf_morada    { order: 6 !important; grid-column: 1 / -1 !important; }
html body #wwlc-registration-form .wwlc_cf_localidade{ order: 7 !important; }
html body #wwlc-registration-form .wwlc_cf_cod_postal{ order: 8 !important; }
html body #wwlc-registration-form .wwlc_phone        { order: 9 !important; }
html body #wwlc-registration-form .email-field-set   { order: 10 !important; }
html body #wwlc-registration-form .wwlc_username     { order: 11 !important; }
html body #wwlc-registration-form .wwlc_password-field-set { order: 12 !important; }
html body #wwlc-registration-form .terms_privacy-field     { order: 13 !important; grid-column: 1 / -1 !important; }

/* Não-campos (botão, links, recaptcha) vão para o fim, largura total */
html body #wwlc-registration-form form.wwlc-register > *:not(.form-row) {
    order: 20 !important;
    grid-column: 1 / -1 !important;
}
/* Auxiliares invisíveis fora do grid (evita gaps fantasma) */
html body #wwlc-registration-form form.wwlc-register > input[type="hidden"],
html body #wwlc-registration-form form.wwlc-register > .honeypot,
html body #wwlc-registration-form form.wwlc-register > p:empty {
    display: none !important;
}

/* ---- Labels ---- */
html body #wwlc-registration-form .form-row label,
html body #wwlc-registration-form label.required_field {
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    color: var(--ond-muted, #8A857C) !important;
    margin: 0 0 0.4rem !important;
    display: block !important;
    text-transform: none !important;
}
html body #wwlc-registration-form .required {
    color: var(--ond-accent, #B8956A) !important;
    border: none !important;
    text-decoration: none !important;
}
html body #wwlc-registration-form .woocommerce-input-wrapper {
    display: block !important;
    width: 100% !important;
}

/* ---- Inputs: linha inferior editorial ---- */
html body #wwlc-registration-form input[type="text"],
html body #wwlc-registration-form input[type="email"],
html body #wwlc-registration-form input[type="password"],
html body #wwlc-registration-form input[type="tel"],
html body #wwlc-registration-form input.input-text,
html body #wwlc-registration-form input.wwlc_form_field:not([type="checkbox"]) {
    width: 100% !important;
    border: none !important;
    border-bottom: 1px solid var(--ond-rule-strong, #D4CFC4) !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0.6rem 0 !important;
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.95rem !important;
    color: var(--ond-ink, #2A2620) !important;
    box-shadow: none !important;
    transition: border-bottom-color 0.2s ease !important;
}
html body #wwlc-registration-form input[type="text"]:focus,
html body #wwlc-registration-form input[type="email"]:focus,
html body #wwlc-registration-form input[type="password"]:focus,
html body #wwlc-registration-form input[type="tel"]:focus,
html body #wwlc-registration-form input.input-text:focus {
    outline: none !important;
    border-bottom-color: var(--ond-accent, #B8956A) !important;
}
html body #wwlc-registration-form input::placeholder {
    color: var(--ond-muted-soft, #B8B3A8) !important;
    opacity: 1 !important;
}

/* ---- Medidor de força da password ---- */
html body #wwlc-registration-form .wwlc-password-strength,
html body #wwlc-registration-form #wwlc-password-strength {
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.04em !important;
    color: var(--ond-muted, #8A857C) !important;
    margin-top: 0.4rem !important;
}

/* ---- Checkbox de termos (não esticar como input) ---- */
html body #wwlc-registration-form .terms_privacy-field input[type="checkbox"],
html body #wwlc-registration-form .terms_privacy-field input.input-checkbox {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
}
html body #wwlc-registration-form .terms_privacy-field label.checkbox {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
    flex-wrap: nowrap !important;
}
html body #wwlc-registration-form .terms_privacy-field p.terms-and-conditions {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    color: var(--ond-muted, #8A857C) !important;
}
/* links dos termos: caramelo, robusto (com ou sem <p> à volta) */
html body #wwlc-registration-form .terms_privacy-field p.terms-and-conditions a,
html body #wwlc-registration-form .terms_privacy-field a {
    color: var(--ond-accent, #B8956A) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
html body #wwlc-registration-form .terms_privacy-field a:hover {
    color: var(--ond-accent-dark, #8E6F4E) !important;
}
html body #wwlc-registration-form .terms_privacy-field,
html body #wwlc-registration-form .terms_privacy-field .woocommerce-input-wrapper {
    border-bottom: none !important;
}

/* ---- Botão Registar (caramelo) + links ---- */
html body #wwlc-registration-form input[type="submit"],
html body #wwlc-registration-form input.button-primary,
html body #wwlc-registration-form .form-control.button.button-primary {
    display: block !important;
    width: auto !important;
    margin: 0.5rem auto 0 !important;
    background: var(--ond-accent, #B8956A) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 0.95rem 2.5rem !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background 0.25s ease !important;
}
html body #wwlc-registration-form input[type="submit"]:hover,
html body #wwlc-registration-form input.button-primary:hover,
html body #wwlc-registration-form .form-control.button.button-primary:hover {
    background: var(--ond-accent-dark, #8E6F4E) !important;
}
html body #wwlc-registration-form .form-controls-section {
    text-align: center !important;
}
html body #wwlc-registration-form .form-controls-section a {
    color: var(--ond-accent, #B8956A) !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
}
html body #wwlc-registration-form .form-controls-section a:hover {
    color: var(--ond-accent-dark, #8E6F4E) !important;
}

/* ---- Mensagens de erro do WWLC ---- */
html body .woocommerce.wwlc-form-error:empty,
html body #wwlc-registration-form .wwlc-form-error:empty {
    display: none !important;
}
html body .woocommerce.wwlc-form-error,
html body #wwlc-registration-form .wwlc-form-error {
    font-family: var(--ond-sans, 'Manrope', system-ui, sans-serif) !important;
    font-size: 0.85rem !important;
    color: #9A3B34 !important;
    background: #FBF3F2 !important;
    border: 1px solid #E8D5D3 !important;
    border-radius: 0 !important;
    padding: 0.9rem 1.2rem !important;
    margin: 0 auto 1.5rem !important;
    max-width: 720px !important;
}

/* ---- Responsivo: 1 coluna em ecrãs estreitos ---- */
@media (max-width: 680px) {
    html body #wwlc-registration-form { max-width: 100% !important; }
    html body #wwlc-registration-form form.wwlc-register {
        grid-template-columns: 1fr !important;
    }
    html body #wwlc-registration-form form.wwlc-register .form-row,
    html body #wwlc-registration-form .wwlc_company_name,
    html body #wwlc-registration-form .wwlc_cf_morada,
    html body #wwlc-registration-form .terms_privacy-field {
        grid-column: 1 / -1 !important;
    }
    body.page-id-25422 .entry-title { font-size: 2.2rem !important; }
}
