/* =========================================================================
   CLEANED FOR ONYX FORMS V1
   Base form/input/button styles moved to /assets/css/templates/dionysus/onyx_forms.css
   Module-specific card/layout/interaction styles remain here.
   ========================================================================= */

/* =========================================================================
   /assets/css/templates/dionysus/invoicing.css
   ONYX 2.1 - Solicitud de factura / CFDI México
   ========================================================================= */

#ez-module-invoicing,
#ez-module-invoicing * {
    box-sizing: border-box;
}

.ez-module-invoicing[hidden] {
    display: none;
}

.ez-module-invoicing {
    width: 100%;
    padding: 1rem 20px 0;
    margin: 35px 0;
}

.ez-invoice-card {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    text-align: left;
    text-decoration: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius-xl, 24px);
    border: 1px solid rgba(var(--ez-pal-secondary-rgb, var(--accent_secondary-rgb)), 0.24);
    background: linear-gradient(135deg, rgba(var(--ez-pal-secondary-rgb, var(--accent_secondary-rgb)), 0.12) 0%, rgba(var(--ez-theme-bg-soft-rgb, var(--bg_soft-rgb)), 0.62) 100%);
    color: var(--ez-theme-text-main, var(--text_main));
    box-shadow: var(--shadow-soft, 0 14px 40px rgba(0, 0, 0, 0.16));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ez-invoice-card:hover,
.ez-invoice-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(var(--ez-pal-secondary-rgb, var(--accent_secondary-rgb)), 0.46);
    box-shadow: 0 18px 52px rgba(var(--ez-pal-secondary-rgb, var(--accent_secondary-rgb)), 0.16);
    outline: none;
}

.ez-invoice-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--ez-pal-neutral-light, #fff);
    background: var(--ez-theme-accent-secondary, var(--accent_secondary));
    box-shadow: 0 10px 28px rgba(var(--ez-pal-secondary-rgb, var(--accent_secondary-rgb)), 0.28);
}

.ez-invoice-icon.material-symbols-rounded {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 1.15em;
    min-height: 1.15em;
    font-family: "Material Symbols Rounded";
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    font-variation-settings: "FILL" 1, "wght" 650, "GRAD" 0, "opsz" 24;
}

.ez-invoice-card-icon-symbol {
    font-size: 26px;
}

.ez-invoice-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 5px;
}

.ez-invoice-eyebrow {
    display: none;
}

.ez-invoice-title {
    margin: 0;
    color: var(--ez-theme-text-main, var(--text_main));
    font-size: clamp(1.02rem, 3vw, 1.24rem);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.ez-invoice-desc {
    margin: 0;
    color: var(--ez-theme-text-muted, var(--text_muted));
    font-size: 0.88rem;
    line-height: 1.45;
}

.ez-invoice-card-action {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--ez-theme-text-main, var(--text_main));
    background: rgba(var(--ez-theme-bg-main-rgb, var(--bg_main-rgb)), 0.34);
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, var(--text_main-rgb)), 0.12);
    transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.ez-invoice-card:hover .ez-invoice-card-action,
.ez-invoice-card:focus-visible .ez-invoice-card-action {
    transform: scale(1.06);
    color: var(--ez-pal-neutral-light, #fff);
    background: var(--ez-theme-accent-secondary, var(--accent_secondary));
    border-color: var(--ez-theme-accent-secondary, var(--accent_secondary));
}

.ez-invoice-card-action-symbol {
    font-size: 26px;
}

@media (max-width: 640px) {
    .ez-module-invoicing {
        padding-inline: 16px;
    }

    .ez-invoice-card {
        padding: 16px;
        gap: 12px;
    }

    .ez-invoice-card-icon {
        width: 44px;
        height: 44px;
    }

    .ez-invoice-card-action {
        width: 40px;
        height: 40px;
    }
}





.ez-invoice-modal[hidden] {
    display: none;
}

.ez-invoice-modal-panel {
    max-width: 650px;
}

.ez-invoice-modal-body {
    display: grid;
    gap: 18px;
}





.ez-invoice-section-title {
    grid-column: 1 / -1;
    margin: 10px 0 0;
    color: var(--modal-text-main);
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: -0.02em;
}























.ez-invoice-success {
    width: 100%;
    max-width: 100%;
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
    padding: clamp(20px, 5vw, 30px) clamp(18px, 5vw, 28px);
    border-radius: 28px;
    color: var(--modal-text-main, var(--ez-theme-text-main));
    background:
        radial-gradient(circle at top left, rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.18), transparent 42%),
        rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.58);
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.12);
    box-shadow: 0 18px 42px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.18);
    overflow: hidden;
}

.ez-invoice-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ez-pal-neutral-light, #ffffff);
    background:
        linear-gradient(135deg, var(--ez-theme-accent-primary, var(--ez-pal-secondary)), var(--ez-theme-accent-secondary, var(--ez-pal-primary)));
    box-shadow: 0 12px 30px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.28);
    font-size: 34px;
    line-height: 1;
    font-variation-settings: 'FILL' 1, 'wght' 760, 'GRAD' 0, 'opsz' 32;
}

.ez-invoice-success h3,
.ez-invoice-success p {
    margin: 0;
}

.ez-invoice-success h3 {
    max-width: 22rem;
    color: var(--modal-text-main, var(--ez-theme-text-main));
    font-size: clamp(1.35rem, 5vw, 1.8rem);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.ez-invoice-success p {
    max-width: 31rem;
    color: var(--modal-text-muted, var(--ez-theme-text-muted));
    font-size: clamp(0.98rem, 3.6vw, 1.12rem);
    line-height: 1.58;
}

.ez-invoice-success .ez-invoice-submit-btn {
    width: 100%;
    max-width: 100%;
    min-height: 56px;
    margin-top: 4px;
    border-radius: 20px;
    color: var(--ez-pal-neutral-light, #ffffff);
    background:
        linear-gradient(135deg, var(--ez-theme-accent-primary, var(--ez-pal-secondary)), var(--ez-theme-accent-secondary, var(--ez-pal-primary)));
    box-shadow: 0 16px 36px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.30);
}

.ez-invoice-success .ez-invoice-submit-btn:hover,
.ez-invoice-success .ez-invoice-submit-btn:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 20px 44px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.38);
    outline: none;
}

html[data-theme="light"] .ez-invoice-success,
[data-theme="light"] .ez-invoice-success {
    background:
        radial-gradient(circle at top left, rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.12), transparent 42%),
        rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.92);
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10);
    box-shadow: 0 16px 38px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10);
}

@media (max-width: 640px) {
    .ez-invoice-success {
        padding: 22px 18px;
        border-radius: 26px;
    }

    .ez-invoice-success-icon {
        width: 58px;
        height: 58px;
        font-size: 31px;
    }

    .ez-invoice-success .ez-invoice-submit-btn {
        min-height: 54px;
    }
}

@media (max-width: 640px) {
    
}


/* =========================================================================
   INVOICING V1 MOBILE / OVERFLOW HARDENING
   ========================================================================= */

.ez-invoice-modal,
.ez-invoice-modal * {
    box-sizing: border-box;
}

.ez-invoice-modal {
    overflow-x: hidden;
}

.ez-invoice-modal-panel {
    width: min(650px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    overflow-x: hidden;
}

.ez-invoice-modal-body {
    max-width: 100%;
    overflow-x: hidden;
}









@media (max-width: 760px) {
    

    .ez-invoice-modal-panel {
        width: 100vw;
        max-width: 100vw;
        border-radius: 24px 24px 0 0;
    }

    .ez-invoice-modal-body {
        padding-left: 16px;
        padding-right: 16px;
    }
}
