

#mailchimp-top-bar__email {
    max-width: 250px;
    width: 100%;
}

.mctb-label {
    margin-right: 30px;
    color: #fff;
}

.mctb-button {
    background-color: #000 !important;
    color: #fff;
}

.hello-bar {
    box-sizing: border-box;
    font-size: 17px;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 10000;
    transform: translateY(-100%);
    opacity: 0;
    font-weight: 300;
}

.mctb-label {
    margin-right: 30px;
}

.hello-bar-container {
    padding-top: 5px;
}

.hello-bar-container form {
    margin-bottom: 10px;
}


@media (min-width:641px) {
    .hello-bar-container {
        padding-top: 10px;
    }
}

@media (min-width:800px) {
    .revamped-email-sub .input-email {
        width: 400px;
    }
}

.hello-bar.hello-bar.hello-bar--is-bottom {
    top: auto;
    transform: translateY(100%);
    bottom: 0;
}

.hello-bar.hello-bar.hello-bar--is-visible {
    transform: translateY(0);
    opacity: 1;
}

.hello-bar .hello-bar-container {
    overflow-y: hidden;
    margin-right: 1.5rem;
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hello-bar p.hello-bar-text {
    margin: 0 auto;
    text-align: inherit;
    max-width: 100%;
    line-height: 1;
    white-space: nowrap;
}

.hello-bar p.hello-bar-text .cta {
    text-decoration: none;
    appearance: none;
    background: none;
    display: inline-block;
    vertical-align: middle;
    width: auto;
    border: none;
    padding: 0.3rem 1rem;
    border: 0.3rem solid;
    border-radius: 10rem;
    font: inherit;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1;
    margin-left: 0.5rem;
}

.hello-bar button {
    cursor: pointer;
}

.hello-bar p {
    margin-top: 5px;
    margin-bottom: 15px !important
}

.hello-bar a {
    color: inherit;
    font-weight: bold;
}

.hello-bar .fwp-pencilbar div {
    display: inline-block;
}

.hello-bar p:empty {
    display: none;
}

.hello-bar .hello-bar-text--after {
    position: absolute;
    right: 0;
    z-index: 1;
    top: 0;
    bottom: 0;
    width: 3rem;
}

.hello-bar.hello-bar--is-fixed {
    position: fixed;
}

.hello-bar button.hello-bar-button {
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    line-height: 1;
    appearance: none;
    background: none;
    border: none;
    padding: 0 0.75rem;
    margin: 0;
    width: auto;
    color: inherit;
}

.hello-bar button.hello-bar-button svg {
    height: 1rem;
}

.hello-bar.hello-bar--size-large {
    font-size: 120%;
}

/* .hello-bar.hello-bar--size-large .hello-bar-container {} */

.hello-bar.hello-bar--size-large p.hello-bar-text .cta {
    padding: 0.75rem 1.25rem;
    border: 0.5rem solid;
    margin-left: 0.5rem;
}

.hello-bar.hello-bar--size-large p.hello-bar-text .cta.wiggle {
    animation: hello-bar-wiggle 5s infinite;
}

.hello-bar.hello-bar--size-large button.hello-bar-button svg {
    height: 1.33rem;
}

.hello-bar.hello-bar--is-multiline .hello-bar-container {
    height: auto;
    padding: 0.5rem 0;
}

.hello-bar.hello-bar--is-multiline p.hello-bar-text {
    white-space: normal;
    line-height: inherit;
}

@keyframes hello-bar-wiggle {
    2% {
        transform: translateX(3px) rotate(2deg);
    }

    4% {
        transform: translateX(-3px) rotate(-2deg);
    }

    6% {
        transform: translateX(3px) rotate(2deg);
    }

    8% {
        transform: translateX(-3px) rotate(-2deg);
    }

    10% {
        transform: translateX(2px) rotate(1deg);
    }

    12% {
        transform: translateX(-2px) rotate(-1deg);
    }

    14% {
        transform: translateX(2px) rotate(1deg);
    }

    16% {
        transform: translateX(-2px) rotate(-1deg);
    }

    18% {
        transform: translateX(1px) rotate(0);
    }

    20% {
        transform: translateX(-1px) rotate(0);
    }
}

.hidden {
    display: none !important;
}

/* 
.site-247wallst.single form.fwp-subscribe > div:nth-of-type(1) {
    display: none !important;
} */

.in-content-portfolio-cta {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Notification CTA Styles */
.notification-cta-container {
    margin: 20px 0;
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 2px;
    background: #ffffff;
}

.notification-cta-container .box {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 10px;
    padding: 1.5rem;
    border: none;
    box-shadow: none;
}

.notification-cta-container .columns {
    margin: 0 !important;
    align-items: center !important;
}

.notification-cta-container .column {
    padding: 0.5rem !important;
}

.notification-cta-container .title.is-4 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1.5rem !important;
    font-weight: 700 !important;
    color: #166534 !important;
}

.notification-cta-container .subtitle.is-6 {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    color: #15803d !important;
    margin-bottom: 0 !important;
    margin-top: 0.75rem !important;
}

/* Button styling for notification CTA */
.notification-cta-container .button.is-warning {
    background-color: #fbbf24 !important;
    border-color: #fbbf24 !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.4) !important;
    white-space: nowrap !important;
    min-width: 200px;
}

.notification-cta-container .button.is-warning:hover {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.5) !important;
}

/* Ensure proper text sizing in buttons */
.notification-cta-container .button.is-medium {
    font-size: 1rem !important;
    padding: 0.75em 1.5em !important;
}

/* Free • Instant • No Email text */
.notification-cta-container .is-size-7 {
    font-size: 0.85rem !important;
    color: #15803d !important;
    margin-top: 0.5rem !important;
}

.notification-cta-container.browser-notification-prompt {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 2px solid #22c55e !important;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

.notification-prompt-content {
    max-width: 600px;
    margin: 0 auto;
}

.notification-prompt-content h4 {
    margin: 12px 0 16px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #166534;
}

.notification-prompt-content .email-success-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #166534;
    font-size: 0.9rem;
    display: flex !important;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.notification-prompt-content .email-success-message::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #22c55e;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-prompt-content p {
    margin: 0 0 20px;
    font-size: 0.95rem;
    color: #15803d;
    line-height: 1.4;
}

.notification-prompt-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.notification-prompt-buttons button {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.notification-prompt-buttons .button.is-primary {
    background-color: #3b82f6;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 28px;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
    white-space: nowrap !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row !important;
    text-align: center;
    min-height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-prompt-buttons .button.is-primary span {
    display: inline-block;
    line-height: 1;
    white-space: nowrap !important;
    flex-shrink: 0;
}

.notification-prompt-buttons .button.is-primary.is-fullwidth {
    width: 100%;
    min-width: 100%;
}

.notification-prompt-buttons .button.is-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.notification-prompt-buttons .no-thanks-link {
    color: #6b7280;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    display: inline;
}

.notification-prompt-buttons .no-thanks-link:hover {
    color: #374151;
    text-decoration: underline;
}

/* Fix button text wrapping */
.notification-cta-button {
    white-space: nowrap !important;
    height: auto !important;
    min-height: 3em;
    padding: 0.75em 1.5em !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5em;
}

.notification-cta-button span {
    display: inline-flex;
    align-items: center;
}

.notification-cta-button .icon {
    margin-right: 0 !important;
    flex-shrink: 0;
}

/* Full featured notification CTA box layout fix */
.notification-cta-container .box .columns {
    display: flex;
    flex-wrap: nowrap;
}

.notification-cta-container .box .column.is-8 {
    flex: 1 1 auto;
    max-width: 65%;
}

.notification-cta-container .box .column.is-4 {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 35%;
}

@media (max-width: 1024px) {
    .notification-cta-container .box .columns {
        flex-direction: column;
    }
    
    .notification-cta-container .box .column.is-8,
    .notification-cta-container .box .column.is-4 {
        max-width: 100%;
        width: 100%;
    }
    
    .notification-cta-container .box .column.is-4 {
        margin-top: 1rem;
    }
}

/* Live Ticker Styles */
.notification-live-ticker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 4px 10px;
    background: #fef2f2;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #fecaca;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: #dc2626;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: #dc2626;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 6px rgba(220, 38, 38, 0.6);
}

.ticker-symbol {
    font-weight: 700;
    color: #166534;
    font-size: 0.95rem;
}

.coverage-text {
    color: #15803d;
    font-weight: 500;
    font-size: 0.85rem;
}

/* In browser notification prompt mode */
.browser-notification-prompt .notification-live-ticker {
    background: #fef2f2;
    margin-bottom: 16px;
    border: 1px solid #fecaca;
    display: inline-flex;
}

/* Override any Bulma button styles that might cause wrapping */
.notification-prompt-buttons .button.is-primary,
.notification-prompt-buttons .button.is-primary.is-fullwidth {
    height: auto !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    white-space: nowrap !important;
}

.notification-prompt-buttons .button.is-primary > *,
.notification-prompt-buttons .button.is-primary span {
    white-space: nowrap !important;
    display: inline !important;
}

/* Pulse animation for live dot */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Form loading state */
.fwp-subscribe {
    position: relative;
    overflow: visible;
}

/* Ensure the form container properly contains the spinner */
.revamped-email-sub .fwp-subscribe {
    min-height: 40px;
}

/* Live Email Modal Specific Styles */
/* Target only the live-email-modal and its content */
#live-email-modal > .fixed.top-1\/2 {
    max-width: 600px !important;
    width: calc(100% - 2rem) !important;
}

/* Constrain the container inside our specific modal */
#live-email-modal .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure the revamped-email-sub doesn't expand beyond modal bounds */
#live-email-modal .revamped-email-sub {
    max-width: 100% !important;
}

/* Add margin to modal signup */
#live-email-modal .modal-signup {
    margin-top: 10px;
}

/* Responsive width for live email modal */
@media (min-width: 640px) {
    #live-email-modal > .fixed.top-1\/2 {
        width: 600px !important;
    }
}

.fwp-subscribe.is-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fwp-subscribe .loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -15px;  /* Half of height */
    margin-left: -15px; /* Half of width */
    width: 30px;
    height: 30px;
    border: 3px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
    display: none;
    pointer-events: none;
    opacity: 0.3;
}

.fwp-subscribe.is-loading .loading-spinner {
    display: block;
}

.fwp-subscribe.is-loading .subscribe {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification-prompt-buttons {
        width: 100%;
    }
    
    .notification-prompt-buttons button {
        width: 100%;
        min-width: auto;
    }
    
    .notification-cta-button {
        font-size: 0.9rem !important;
    }
}


/* Pitch Disclosure Styles */
.fwp-pitch-disc {
    margin-top: 12px;
    font-size: 0.75rem;
    line-height: 1.4;
}

.fwp-pitch-disc p {
    margin: 0 0 0.4rem 0;
    font-size: 0.75rem;
}

.fwp-pitch-disc p:last-child {
    margin-bottom: 0;
}

.fwp-pitch-disc a {
    color: #999999;
    text-decoration: underline;
}

.fwp-pitch-disc a:hover {
    color: #777777;
    text-decoration: underline;
}

/* Email Capture Styles moved from Shortcodes.php */
/* CRITICAL: Scope all styles to prevent layout breakage */
/* Reset any inherited styles that might affect layout */
.expandable-email-box,
.slim-email-signup {
    box-sizing: border-box !important;
    overflow: visible !important;
    position: relative !important;
}

/* Slim Email Signup Styles */
.slim-email-signup {
    padding: 0.75rem !important;
    margin-bottom: 1rem;
    border: 1px solid #16a34a;
    border-radius: 0.5rem;
    width: 100%;
    background-color: #f0fdf4;
}

.slim-email-signup h3 {
    margin-bottom: 0.25rem !important;
    line-height: 1.2;
    font-size: 1rem !important;
    font-weight: bold;
    color: #111827;
}

.slim-email-signup p {
    margin-bottom: 0.5rem !important;
    line-height: 1.4;
    font-size: 0.875rem !important;
    color: #374151;
}

.slim-email-signup .slim-email-form {
    margin: 0;
}

/* Target the email capture form inside slim signup */
.slim-email-signup .fwp-email-capture-form,
.slim-email-signup .fwp-subscribe,
.slim-email-signup .slim-signup {
    margin: 0 !important;
    padding: 0 !important;
}

/* Override form field styles in slim signup */
.slim-email-signup .field.has-addons {
    margin-bottom: 0 !important;
    display: flex !important;
    gap: 0.5rem !important;
}

.slim-email-signup .control.is-expanded {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.slim-email-signup .fwp-subscribe input[type="email"],
.slim-email-signup input.input-email,
.slim-email-signup .recipient_email {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    height: 36px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.25rem 0 0 0.25rem !important;
    min-width: 300px !important;
    width: 100% !important;
}

.slim-email-signup .fwp-subscribe button,
.slim-email-signup button.subscribe {
    padding: 0.25rem 0.75rem !important;
    font-size: 0.875rem !important;
    height: 36px !important;
    line-height: 1.2 !important;
    border: none !important;
    border-radius: 0 0.25rem 0.25rem 0 !important;
    cursor: pointer;
    /* Use same color scheme as regular ecap button */
    color: var(--color-background, #ffffff);
    background-color: var(--color-text, #000000);
}

.slim-email-signup .fwp-subscribe button:hover:not(:disabled),
.slim-email-signup button.subscribe:hover:not(:disabled) {
    opacity: 0.8;
}

.slim-email-signup .fwp-subscribe button:disabled,
.slim-email-signup button.subscribe:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Make form elements inline on larger screens */
@media (min-width: 640px) {
    .slim-email-signup .field.has-addons {
        display: flex !important;
    }
    
    .slim-email-signup .control:first-child {
        flex: 1;
    }
    
    .slim-email-signup .fwp-subscribe input[type="email"],
    .slim-email-signup .recipient_email {
        width: 100%;
        min-width: 300px;
    }
}

/* Hide privacy policy in slim mode for cleaner look */
.slim-email-signup .subscribe-legalease {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    margin-top: 0.5rem !important;
}

/* Expandable Email Signup Styles */
.expandable-email-box {
    border: 2px solid #10b981 !important;
    margin-bottom: 1rem !important;
    padding: 0 !important;
    border-radius: 0.5rem;
    width: 100%;
}

.expandable-email-box button.expandable-toggle {
    width: 100% !important;
    padding: 0.5rem 0.75rem !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.expandable-email-box .expandable-toggle-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #059669 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

.expandable-email-box .expandable-toggle-content:hover {
    color: #047857 !important;
}

.expandable-email-box .expandable-content {
    padding: 1rem !important;
    border-top: 1px solid #10b981 !important;
}

.expandable-email-box svg {
    transition: transform 0.2s ease-in-out;
}

/* Make expandable content text smaller */
.expandable-email-box .expandable-body-content {
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    color: #374151;
}

.expandable-email-box .expandable-body-content p {
    margin-bottom: 0.5rem !important;
    font-size: 0.875rem !important;
}

.expandable-email-box .expandable-body-content p:last-child {
    margin-bottom: 0.75rem !important;
}

/* Clean up form styles in expandable */
.expandable-email-box .field.has-addons {
    margin-bottom: 0.75rem !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
}

.expandable-email-box .field.has-addons .control.is-expanded {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.expandable-email-box .recipient_email,
.expandable-email-box input[type="email"] {
    border: 1px solid #d1d5db !important;
    padding: 0.375rem 0.5rem !important;
    font-size: 0.875rem !important;
    height: 36px !important;
    min-width: 400px !important;
    width: 100% !important;
}

.expandable-email-box .control:first-child {
    flex: 1 1 auto !important;
    width: 100% !important;
}

.expandable-email-box button.subscribe {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
    height: 36px !important;
    border: none !important;
    cursor: pointer;
}

/* Hide default Bulma styles that interfere - use > to target only direct children */
.expandable-email-box > .revamped-email-sub,
.slim-email-signup > .revamped-email-sub {
    padding: 0 !important;
    background: transparent !important;
}

/* Override existing form styles */
.expandable-email-box .subscribe-thanks,
.slim-email-signup .subscribe-thanks {
    display: none;
}

.expandable-email-box .hide-on-subscribe.subscribe-thanks,
.slim-email-signup .hide-on-subscribe.subscribe-thanks {
    display: block !important;
}

/* Fix loading spinner positioning */
.expandable-email-box .loading-spinner,
.slim-email-signup .loading-spinner {
    display: none;
}

/* Clean up extra margins */
.slim-email-signup form,
.expandable-email-box form {
    margin: 0;
}

/* Hide catchyah honeypot properly in new styles only */
.expandable-email-box .catchyah,
.slim-email-signup .catchyah {
    position: absolute !important;
    left: -5000px !important;
    width: 1px !important;
}

/* ==========================================================================
   FWP Pitches - Beautiful Modern Email Capture Styles
   ========================================================================== */

/* Base Pitch Container Styles */
.fwpPitch {
    margin: 2rem 0;
}

/* Email Subscription Section */
.fwpPitch .revamped-email-sub {
    padding: 2.5rem;
    position: relative;
}

/* Override container centering */
.fwpPitch .container {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Subscribe Message Styles */
.fwpPitch .subscribe-message h4 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.fwpPitch .subscribe-message p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.875rem;
}

.fwpPitch .subscribe-message p:last-child {
    margin-bottom: 1.5rem;
}

/* Form Styles */
.fwpPitch .fwp-subscribe {
    margin: 0;
    position: relative;
}

/* fwpPitch specific styles now handled by common styles above */


/* Use inverted text color for button */
.fwpPitch .subscribe,
.fwpPitch button.subscribe {
    color: var(--color-background, #ffffff);
    background-color: var(--color-text, #000000);
}

/* For themes without CSS variables, use mix-blend-mode as fallback */
@supports not (color: var(--test)) {
    .fwpPitch .subscribe,
    .fwpPitch button.subscribe {
        color: white;
        background-color: currentColor;
        mix-blend-mode: difference;
    }
}

/* Apply same styling to slim ecap buttons */
@supports not (color: var(--test)) {
    .slim-email-signup .fwp-subscribe button,
    .slim-email-signup button.subscribe {
        color: white;
        background-color: currentColor;
        mix-blend-mode: difference;
    }
}

/* Success Message */
.fwpPitch .subscribe-thanks {
    padding: 1.25rem;
    background: #f0fdf4;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

@media (prefers-color-scheme: dark) {
    .fwpPitch .subscribe-thanks {
        background: #064e3b;
    }
}

/* Legal Disclaimer - Override theme's centering */
.fwpPitch .revamped-email-sub .subscribe-legalease {
    font-size: 0.75rem;
    line-height: 1.5;
    margin: 1rem 0 0 0 !important;
    clear: both;
    text-align: left;
}

.fwpPitch .subscribe-legalease a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.fwpPitch .subscribe-legalease a:hover {
    text-decoration: underline;
}

/* Honeypot Field */
.fwpPitch .catchyah {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    /* Reduce padding on mobile but ensure bottom padding for disclaimer */
    .fwpPitch .revamped-email-sub {
        padding: 1.75rem 1.75rem 2.5rem 1.75rem;
        overflow: visible;
    }
    
    /* Mobile styles for fwpPitch now handled by common styles above */
    
    /* Smaller heading on mobile */
    .fwpPitch .subscribe-message h4 {
        font-size: 1.5rem;
    }
    
    /* Smaller pitch container margin */
    .fwpPitch {
        margin: 1rem 0;
    }
    
    /* Adjust disclaimer spacing and ensure visibility */
    .fwpPitch .revamped-email-sub .subscribe-legalease {
        margin: 5rem 0 1rem 0 !important;
        position: relative;
        z-index: 1;
        display: block !important;
        clear: both;
        width: 100%;
        overflow: visible;
        min-height: 50px;
        text-align: left;
    }
    
    /* Add margin to form bottom to prevent overlap */
    .fwpPitch .fwp-subscribe {
        margin-bottom: 2rem !important;
        position: relative;
    }
    
    /* Ensure the form container doesn't overflow */
    .fwpPitch .field.has-addons {
        overflow: visible;
    }
    
    /* Add extra bottom padding to container */
    .fwpPitch {
        padding-bottom: 1.5rem;
        overflow: visible;
    }
}

/* Very small screens */
@media screen and (max-width: 375px) {
    .fwpPitch .revamped-email-sub {
        padding: 1.25rem;
    }
    
    .fwpPitch .subscribe-message h4 {
        font-size: 1.375rem;
    }
}

/* Ensure pitch content doesn't overflow */
.fwpPitch * {
    box-sizing: border-box;
}

/* Subscription state management */
/* By default, hide-on-subscribe elements are visible */
.fwpPitch .hide-on-subscribe {
    display: block;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* By default, subscribe-thanks is hidden */
.fwpPitch .subscribe-thanks,
.subscribe-thanks {
    display: none;
}

/* ==================================
   Common Email Subscription Form Styles
   These styles apply to ALL email subscription forms,
   including fwpPitch and landing pages
   ================================== */

/* Form width constraint */
.container .fwp-subscribe,
.revamped-email-sub .fwp-subscribe {
    max-width: 640px;
}

/* Form Layout */
.fwp-subscribe .field.has-addons,
.fwpPitch .fwp-subscribe .field.has-addons,
form.fwp-subscribe .field.has-addons {
    display: flex;
    gap: 0 !important;
    align-items: stretch;
    margin-bottom: 0;
}

.fwp-subscribe .control,
.fwpPitch .fwp-subscribe .control {
    margin: 0;
}

/* First control (input) should expand */
.fwp-subscribe .control:first-child,
.fwpPitch .fwp-subscribe .control:first-child {
    flex: 1 1 0%;
}

/* Last control (button) should not expand */
.fwp-subscribe .control:last-child,
.fwpPitch .fwp-subscribe .control:last-child {
    flex: 0 0 auto;
}

/* Honeypot field - hide from users but not from bots */
.fwp-subscribe .catchyah {
    position: absolute;
    left: -5000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Email Input Styles */
.fwp-subscribe .recipient_email,
.fwp-subscribe .input-email,
.fwpPitch .fwp-subscribe .recipient_email,
.fwpPitch .fwp-subscribe .input-email {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 2px solid #e5e7eb;
    border-radius: 8px 0 0 8px;
    border-right: none;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    height: 48px;
}

.fwp-subscribe .recipient_email:hover,
.fwp-subscribe .input-email:hover,
.fwpPitch .fwp-subscribe .recipient_email:hover,
.fwpPitch .fwp-subscribe .input-email:hover {
    border-color: #d1d5db;
}

.fwp-subscribe .recipient_email:focus,
.fwp-subscribe .input-email:focus,
.fwpPitch .fwp-subscribe .recipient_email:focus,
.fwpPitch .fwp-subscribe .input-email:focus {
    border-color: var(--color-green-600, #16a34a);
}

/* Subscribe Button Styles */
.fwp-subscribe .subscribe,
.fwp-subscribe button.subscribe,
.fwp-subscribe .custom-button,
.fwpPitch .fwp-subscribe .subscribe,
.fwpPitch .fwp-subscribe button.subscribe,
.fwpPitch .fwp-subscribe .custom-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--color-green-600, #16a34a);
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-sizing: border-box;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fwp-subscribe .subscribe:hover:not(:disabled),
.fwp-subscribe button.subscribe:hover:not(:disabled),
.fwp-subscribe .custom-button:hover:not(:disabled),
.fwpPitch .fwp-subscribe .subscribe:hover:not(:disabled),
.fwpPitch .fwp-subscribe button.subscribe:hover:not(:disabled),
.fwpPitch .fwp-subscribe .custom-button:hover:not(:disabled) {
    opacity: 0.8;
}

.fwp-subscribe .subscribe:disabled,
.fwp-subscribe button.subscribe:disabled,
.fwp-subscribe .custom-button:disabled,
.fwpPitch .fwp-subscribe .subscribe:disabled,
.fwpPitch .fwp-subscribe button.subscribe:disabled,
.fwpPitch .fwp-subscribe .custom-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Legal Disclaimer Styles */
.fwp-subscribe ~ .subscribe-legalease,
.revamped-email-sub .subscribe-legalease,
.container .subscribe-legalease {
    font-size: 0.5rem;
    line-height: 1.5;
    margin: 1rem auto 0 auto !important;
    clear: both;
    position: relative;
    z-index: 1;
    max-width: 640px;
    text-align: center;
}

/* Override text-align for slim ecap - needs to override all parent rules */
.slim-email-signup .subscribe-legalease,
.slim-email-signup .revamped-email-sub .subscribe-legalease,
.slim-email-signup .container .subscribe-legalease,
.slim-email-signup .fwp-subscribe ~ .subscribe-legalease {
    text-align: left !important;
    color: #6b7280 !important; /* Gray color */
    margin: 1rem 0 0 0 !important; /* Remove auto margins for slim ecap */
}

/* Underline disclaimer links */
.subscribe-legalease a {
    text-decoration: underline;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 639px) {
    /* Stack form elements vertically */
    .fwp-subscribe .field.has-addons,
    .fwpPitch .fwp-subscribe .field.has-addons {
        flex-direction: column;
        gap: 0;
    }
    
    /* Full width controls */
    .fwp-subscribe .control,
    .fwpPitch .fwp-subscribe .control {
        width: 100%;
    }
    
    /* Adjust input border radius for mobile stacking */
    .fwp-subscribe .recipient_email,
    .fwp-subscribe .input-email,
    .fwpPitch .fwp-subscribe .recipient_email,
    .fwpPitch .fwp-subscribe .input-email {
        border-radius: 8px 8px 0 0;
        border-right: 2px solid #e5e7eb;
        border-bottom: none;
        padding: 0.875rem 1rem;
        font-size: 1rem;
        height: 52px;
    }
    
    /* Full width button with adjusted border radius */
    .fwp-subscribe .subscribe,
    .fwp-subscribe button.subscribe,
    .fwp-subscribe .custom-button,
    .fwpPitch .fwp-subscribe .subscribe,
    .fwpPitch .fwp-subscribe button.subscribe,
    .fwpPitch .fwp-subscribe .custom-button {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: 0 0 8px 8px;
        border-left: 2px solid var(--color-green-600, #16a34a);
        border-top: none;
        height: 52px;
    }
    
    /* Adjust disclaimer spacing on mobile to prevent overlap */
    .fwp-subscribe ~ .subscribe-legalease,
    .revamped-email-sub .subscribe-legalease,
    .container .subscribe-legalease {
        margin: 7rem auto 1rem auto !important;
        position: relative;
        z-index: 1;
        display: block !important;
        clear: both;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        padding: 0 1rem;
    }
    
    /* But not for slim ecap - it should use normal spacing */
    .slim-email-signup .subscribe-legalease {
        margin: 1rem 0 0 0 !important;
        text-align: left !important;
    }
}

/* Override any inline styles that might have been set by JavaScript */
.fwpPitch .subscribe-thanks[style*="display: block"] {
    display: block !important;
}

/* For better compatibility with existing JS that sets display: none inline */
.fwpPitch .hide-on-subscribe[style*="display: none"] {
    display: none !important;
}

/* Alternative: If the form or container gets an is-subscribed class */
.fwpPitch.is-subscribed .hide-on-subscribe,
.fwpPitch .is-subscribed .hide-on-subscribe,
.revamped-email-sub.is-subscribed .hide-on-subscribe {
    display: none !important;
}

.fwpPitch.is-subscribed .subscribe-thanks,
.fwpPitch .is-subscribed .subscribe-thanks,
.revamped-email-sub.is-subscribed .subscribe-thanks {
    display: block !important;
}

/* Center legalease only on ecap landing pages */
.page-template-template-ecap-landing .fwpPitch .revamped-email-sub .subscribe-legalease {
    text-align: center;
}

/* Add margin back for forms on ecap landing pages only */
.page-template-template-ecap-landing .container .fwp-subscribe,
.page-template-template-ecap-landing .revamped-email-sub .fwp-subscribe {
    margin: 0 auto;
}

/* ==================================
   Highlight Effect Styles
   For animated text highlighting in pitches
   ================================== */

/* Base highlight effect */
.highlight-effect {
    position: relative;
    display: inline;
    z-index: 1;
    
    /* Default highlight color (yellow) */
    --highlight-color: rgba(255, 235, 59, 0.6);
    --highlight-color-full: rgba(255, 235, 59, 0.8);
    
    /* Variations that can be customized */
    --rotation: 0deg;
    --height-variation: 1;
    --wave-amount: 2px;
}

.highlight-effect::before {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    top: 25%;
    bottom: -5%;
    background: var(--highlight-color);
    transform: rotate(var(--rotation)) scaleY(var(--height-variation));
    transform-origin: left center;
    z-index: -1;
    opacity: 0;
    
    /* Start with width 0 */
    width: 0;
    transition: none;
    
    /* Slightly uneven edges for realistic look */
    border-radius: 3px 4px 3px 2px;
    
    /* Add subtle texture */
    background-image: 
        linear-gradient(
            105deg,
            transparent 0%,
            var(--highlight-color-full) 10%,
            var(--highlight-color) 50%,
            var(--highlight-color-full) 90%,
            transparent 100%
        );
    
    /* Slightly wavy path using clip-path */
    clip-path: polygon(
        0% calc(50% - var(--wave-amount)),
        25% calc(50% + var(--wave-amount)),
        50% calc(50% - var(--wave-amount) * 0.5),
        75% calc(50% + var(--wave-amount) * 0.8),
        100% calc(50% - var(--wave-amount) * 0.3),
        100% 100%,
        0% 100%
    );
}

/* When highlighted class is added */
.highlight-effect.highlighted::before {
    opacity: 1;
    width: calc(100% + 8px);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease-out;
}

/* Color variations */
.highlight-effect.highlight-green {
    --highlight-color: rgba(76, 175, 80, 0.5);
    --highlight-color-full: rgba(76, 175, 80, 0.7);
}

.highlight-effect.highlight-blue {
    --highlight-color: rgba(33, 150, 243, 0.5);
    --highlight-color-full: rgba(33, 150, 243, 0.7);
}

.highlight-effect.highlight-pink {
    --highlight-color: rgba(244, 67, 185, 0.5);
    --highlight-color-full: rgba(244, 67, 185, 0.7);
}

.highlight-effect.highlight-orange {
    --highlight-color: rgba(255, 152, 0, 0.5);
    --highlight-color-full: rgba(255, 152, 0, 0.7);
}

/* Thickness variations */
.highlight-effect.highlight-thick::before {
    top: 15%;
    bottom: -10%;
}

.highlight-effect.highlight-thin::before {
    top: 35%;
    bottom: 5%;
}

/* More dramatic rotation */
.highlight-effect.highlight-slanted {
    --rotation: -2deg;
}

/* Double underline effect */
.highlight-effect.highlight-double::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 60%;
    bottom: 15%;
    background: var(--highlight-color);
    transform: rotate(calc(var(--rotation) * -0.5)) scaleY(0.6);
    transform-origin: left center;
    z-index: -2;
    opacity: 0;
    width: 0;
    border-radius: 2px 3px 2px 1px;
}

.highlight-effect.highlight-double.highlighted::after {
    opacity: 0.6;
    width: calc(100% + 6px);
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
                opacity 0.3s ease-out 0.1s;
}

/* Animated continuous highlight */
.highlight-effect.highlight-animated::before {
    animation: highlight-draw 2s ease-out forwards;
}

@keyframes highlight-draw {
    0% {
        width: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        width: calc(100% + 8px);
        opacity: 1;
    }
}