/* HECEA Auth Modal styles
   Mirrors the Tailwind-based markup from the live React site, rebuilt in
   plain CSS so it drops cleanly into any WordPress theme. */

.elementor-element button.hecea-nav-login-btn,
.elementor-element button.hecea-nav-account-btn {
    padding: 6px 14px;
}
.hecea-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
}
.elementor-element button.hecea-nav-login-btn {
    padding: 5px 14px;
}
.hecea-modal-overlay.is-open {
    display: flex;
}
.hecea-modal-box {
    background: #fff;
    border-radius: 16px;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: hecea-pop-in 0.18s ease-out;
}

@keyframes hecea-pop-in {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.hecea-modal-inner {
    padding: 24px;
}

.hecea-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0  0 24px;
    gap: 20px;
}

.hecea-modal-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.hecea-modal-header button.hecea-modal-close {
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
}

.hecea-modal-header button.hecea-modal-close:hover {
    background-color: #f3f4f6;
    color: #6b7280;
}

.hecea-icon-x {
    font-size: 22px;
    display: inline-block;
}

.hecea-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.hecea-alert.hecea-alert-error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.hecea-alert.hecea-alert-success {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.hecea-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hecea-field {
    display: flex;
    flex-direction: column;
}

.hecea-field-inline {
    flex-direction: row;
    justify-content: flex-end;
    margin-top: -0.5rem;
}

.hecea-label {
    margin: 0 0 8px;
}

.hecea-helper-text {
    margin: 0;
}
.hecea-input {
    transition: border-color 0.15s, box-shadow 0.15s;
}

.hecea-input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--hecea-primary-color);
}

.hecea-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hecea-switch-links {
    margin: 4px 0 0;
    text-align: center;
}

.hecea-switch-links p {
    margin: 0;
}

.hecea-switch-links button.hecea-link {
    background: none !important;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--hecea-primary-color) !important;
    font-weight: 600;
    text-decoration: none;
}
.hecea-switch-links button.hecea-link:hover {
    text-decoration: underline;
}
.hecea-switch-links button.hecea-link.hecea-link-teal {
    color: var( --e-global-color-82d5ba8 ) !important;
    margin: 8px 0;
}

.hecea-switch-links button.hecea-link.hecea-link-pink {
    color: var( --e-global-color-accent ) !important;
}

.hecea-link-secondary {
    color: var(--hecea-pink-color);
}

.hecea-link-muted {
    color: #6b7280;
    font-size: 0.875rem;
}

.hecea-plain-text {
    color: #4b5563;
}

/* Trigger buttons (used by the shortcodes) */
.hecea-trigger-btn {
    display: inline-block;
    background-color: var(--hecea-primary-color);
    color: #fff;
    border: 0;
    border-radius: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.hecea-trigger-btn-secondary {
    background-color: var(--hecea-pink-color);
}

/* Header/nav "会员登录" pill button - matches the live site's top-nav style */

/* "Hi FirstName" dropdown - replaces the "会员登录" pill once logged in */
.hecea-nav-account {
    position: relative;
    display: inline-block;
}
.hecea-nav-account-caret {
    transition: transform 0.15s ease;
}

.hecea-nav-account.is-open .hecea-nav-account-caret {
    transform: rotate(180deg);
}

.hecea-nav-account-dropdown {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 9rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    padding: 16px;
    z-index: 99998;
}

.hecea-nav-account-dropdown[hidden] {
    display: none;
}

.hecea-nav-account-logout {
    display: block;
    width: 100%;
    font-weight: 500;
    text-align: left;
}
.hecea-account-widget {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.hecea-nav-account-widget {
    color: inherit;
}

.hecea-account-name {
    font-weight: 600;
}
 @media (max-width: 991px) {
    .elementor-element button.hecea-nav-login-btn {
        padding: 8px 14px;
        width: 100%;
    }
 }