/**
 * YOO Newsletter bridge — coming-soon notify modal (matches YOO Newsletter admin modal look).
 */

/* Clickable CTA — matches .yoopxl-license-cta base style exactly */
.yoopxl-license-cta.yoopxl-cta-coming-soon.yoopxl-cta-notify {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 12px 24px !important;
    border-radius: 9px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    letter-spacing: .2px !important;
    line-height: inherit !important;
    text-decoration: none !important;
    color: #fff !important;
    background: #EEB44E !important;
    border: none !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    box-shadow: 0 2px 10px rgba(238, 180, 78, 0.35) !important;
    transition: background .18s, transform .15s, box-shadow .18s;
    transform: none;
}

.yoopxl-license-cta.yoopxl-cta-coming-soon.yoopxl-cta-notify:hover {
    background: #d99e30 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(238, 180, 78, 0.5) !important;
}

/* Modal (subset of admin-newsletters.css) */
.yoo-nl-bridge-cs-modal.yoo-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
}

.yoo-nl-bridge-cs-modal.yoo-modal.show,
.yoo-nl-bridge-cs-modal.yoo-modal[style*="flex"] {
    display: flex !important;
}

.yoo-nl-bridge-cs-modal .yoo-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    /* no backdrop-filter — breaks checkbox repaint inside modal on Chrome/WebKit */
    z-index: 1;
}

.yoo-nl-bridge-cs-modal .yoo-modal-content {
    position: relative !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 2 !important;
    margin: auto;
    animation: yooNlBridgeCsModalIn 0.28s ease-out;
}

/* Opacity-only — transform on the dialog breaks native checkbox painting in some browsers */
@keyframes yooNlBridgeCsModalIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.yoo-nl-bridge-cs-modal .yoo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.yoo-nl-bridge-cs-modal .yoo-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #5e5e5e;
}

.yoo-nl-bridge-cs-modal .yoo-modal-header .yoo-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 10px;
    font-size: 24px;
    line-height: 1;
    color: #6b7280;
    border-radius: 4px;
}

.yoo-nl-bridge-cs-modal .yoo-modal-header .yoo-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.yoo-nl-bridge-cs-modal .yoo-modal-body {
    padding: 22px 24px 24px;
}

#yoo-nl-bridge-cs-modal-intro {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.55;
    color: #4b5563;
}

#yoo-nl-bridge-cs-modal-intro p:last-child {
    margin-bottom: 0;
}

/* Form rows are <p> — portal .yoo-modal-body p { margin:0 } strips gaps; restore spacing */
.yoo-nl-bridge-cs-modal form .yoo-nl-bridge-cs-field {
    margin: 0 0 18px;
    padding: 0;
}

.yoo-nl-bridge-cs-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.yoo-nl-bridge-cs-field .required {
    color: #dc2626;
}

.yoo-nl-bridge-cs-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.yoo-nl-bridge-cs-input:focus {
    outline: none;
    border-color: #EEB44E;
    box-shadow: 0 0 0 3px rgba(238, 180, 78, 0.25);
}

.yoo-nl-bridge-cs-interest {
    margin: 0 0 18px;
    padding: 0;
}

.yoo-nl-bridge-cs-interest[hidden] {
    display: none !important;
}

.yoo-nl-bridge-cs-interest-heading {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.yoo-nl-bridge-cs-interest-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: flex-start;
}

.yoo-nl-bridge-cs-interest-row {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
}

/* Native input invisible on top of .yoo-nl-bridge-cs-interest-face — tick paints on sibling span (first click OK in modals) */
.yoo-nl-bridge-cs-interest-row .yoo-nl-bridge-cs-interest-input {
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    transform: translateY(-50%);
    flex-shrink: 0;
}

.yoo-nl-bridge-cs-interest-face {
    display: block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    flex-shrink: 0;
    box-sizing: border-box;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    pointer-events: none;
}

.yoo-nl-bridge-cs-interest-input:checked + .yoo-nl-bridge-cs-interest-face {
    background-color: #d99e30;
    border-color: #c99a2e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 12px 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.yoo-nl-bridge-cs-interest-input:focus {
    outline: none;
}

.yoo-nl-bridge-cs-interest-input:focus-visible + .yoo-nl-bridge-cs-interest-face {
    outline: 2px solid rgba(217, 158, 48, 0.55);
    outline-offset: 2px;
}

.yoo-nl-bridge-cs-interest-label-text {
    line-height: 1.35;
}

.yoo-nl-bridge-cs-modal form .yoo-nl-bridge-cs-actions {
    margin-top: 22px;
    margin-bottom: 0;
}

.yoo-nl-bridge-cs-submit {
    display: block;
    width: 100%;
    padding: 12px 24px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: .2px;
    line-height: 1.4;
    text-align: center;
    color: #fff;
    background: #EEB44E;
    border: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: background .18s, box-shadow .18s;
    box-shadow: 0 2px 10px rgba(238, 180, 78, 0.35);
}

.yoo-nl-bridge-cs-submit:hover,
.yoo-nl-bridge-cs-submit:focus-visible {
    background: #d99e30;
    color: #fff;
    box-shadow: 0 4px 16px rgba(238, 180, 78, 0.5);
}

.yoo-nl-bridge-cs-submit:active {
    color: #fff;
}

.yoo-nl-bridge-cs-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.yoo-nl-bridge-cs-msg {
    margin: 0 0 16px;
    padding: 0;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.5;
}

.yoo-nl-bridge-cs-msg[hidden] {
    display: none !important;
}

.yoo-nl-bridge-cs-msg.is-error {
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.25);
    color: #991b1b;
}

/* Success: no box — green check animation + title + line */
.yoo-nl-bridge-cs-msg.is-success {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

.yoo-nl-bridge-cs-success-stack {
    text-align: center;
    padding: 4px 0 0;
}

.yoo-nl-bridge-cs-success-check {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    animation: yooNlBridgeSuccessCheckIn 0.55s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}

@keyframes yooNlBridgeSuccessCheckIn {
    0% {
        transform: scale(0.35);
        opacity: 0;
    }
    70% {
        transform: scale(1.06);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.yoo-nl-bridge-cs-success-check-svg {
    display: block;
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.35));
}

.yoo-nl-bridge-cs-success-title {
    margin: 0 0 8px;
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.yoo-nl-bridge-cs-success-sub {
    margin: 0;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.55;
}

.yoo-nl-bridge-cs-success-stack.is-already .yoo-nl-bridge-cs-notify-bell {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    animation: yooNlBridgeSuccessBellIn 0.45s ease both;
}

@keyframes yooNlBridgeSuccessBellIn {
    from {
        transform: translateY(-8px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.yoo-nl-bridge-cs-notify-bell-svg {
    display: block;
}

/* Note under success copy — icon + text link only (no box / button) */
.yoo-nl-bridge-cs-success-portal-note {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: 16px 0 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 14px;
    line-height: 1.45;
    color: #6b7280;
}

.yoo-nl-bridge-cs-success-portal-note-icon {
    display: flex;
    flex-shrink: 0;
    line-height: 0;
}

.yoo-nl-bridge-cs-success-portal-note-copy {
    text-align: start;
}

.yoo-nl-bridge-cs-success-portal-note-link {
    color: #d99e30;
    font-weight: 600;
    text-decoration: none;
}

.yoo-nl-bridge-cs-success-portal-note-link:hover {
    color: #b8862b;
    text-decoration: none;
}
