/* Coach Ops add-on upsell modal (Phase F). Rendered into a native <dialog>
   (#cpOpsUpsellModalDialog) opened via showModal(); ::backdrop dims the page.
   Layout: 1 primary CTA + 1 text link (Hick's Law). Tokens from
   styles/base/variables.css — no invented tokens. Mirrors gw5 modal. */

.cp-ops-upsell__dialog {
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    color: var(--text-primary);
    max-width: 100vw;
    max-height: 100vh;
}
/* Center the panel via a full-viewport flex container on the OPEN dialog.
   The app's global reset (reset.css `margin: 0`) kills the native <dialog>
   UA `margin: auto`, so the dialog would otherwise pin to the top-left.
   Scoped to [open] so the closed dialog stays display:none (UA default). */
.cp-ops-upsell__dialog[open] {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cp-ops-upsell__dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}
.cp-ops-upsell__dialog[hidden] { display: none; }

.cp-ops-upsell__panel {
    position: relative;
    box-sizing: border-box;
    width: min(440px, calc(100vw - 32px));
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 32px 28px 24px;
    text-align: center;
}

.cp-ops-upsell__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--radius-full);
}
.cp-ops-upsell__close:hover { color: var(--text-primary); background: var(--bg-elevated); }
.cp-ops-upsell__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cp-ops-upsell__heading {
    margin: 4px 0 10px;
    font-size: 1.35rem;
    line-height: 1.25;
    color: var(--text-primary);
}
.cp-ops-upsell__body {
    margin: 0 0 22px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.cp-ops-upsell__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.cp-ops-upsell__btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 18px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.cp-ops-upsell__btn--primary {
    background: var(--accent);
    color: var(--text-on-accent);
}
.cp-ops-upsell__btn--primary:hover { background: var(--accent-hover); }
.cp-ops-upsell__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cp-ops-upsell__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cp-ops-upsell__link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cp-ops-upsell__link:hover { color: var(--text-primary); }
.cp-ops-upsell__link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
