/**
 * RPR Webinar Hub — Frontend Styles
 *
 * All selectors scoped to .rpr-wh to prevent Avada/theme conflicts.
 * No !important unless absolutely necessary.
 * Minimal footprint — only loaded on pages with the shortcode.
 */

/* ─── Container ───────────────────────────────────────────────────────────── */
.rpr-wh {
    font-family: inherit;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    box-sizing: border-box;
}

.rpr-wh *, .rpr-wh *::before, .rpr-wh *::after {
    box-sizing: border-box;
}

/* ─── Card wrapper ────────────────────────────────────────────────────────── */
/* ─── Card ────────────────────────────────────────────────────────────────── */
.rpr-wh__card {
    background: transparent;
    border-radius: 8px;
    padding: 28px 24px;
    border: none;
    color: inherit;
}

/* Opt-in boxed appearance for standalone embeds */
.rpr-wh[data-theme="boxed"] .rpr-wh__card {
    background: #f7f8fa;
    border: 1px solid #e2e5ea;
}

.rpr-wh[data-theme="dark"] .rpr-wh__card {
    background: #1a2332;
    border-color: #2d3a4a;
    color: #e2e5ea;
}

/* ─── Header ──────────────────────────────────────────────────────────────── */
.rpr-wh__header {
    margin-bottom: 20px;
}

.rpr-wh__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #1a365d;
}

.rpr-wh[data-theme="dark"] .rpr-wh__title {
    color: #fff;
}

/* ─── Form Fields ─────────────────────────────────────────────────────────── */
.rpr-wh__field {
    margin-bottom: 16px;
}

.rpr-wh__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a365d;
}

.rpr-wh__label .rpr-wh__required {
    color: var(--rpr-wh-accent, #e88024);
    margin-left: 2px;
}

.rpr-wh__input {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9375rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #333;
    transition: border-color 0.15s ease;
    font-family: inherit;
}

.rpr-wh__input:focus {
    outline: none;
    border-color: var(--rpr-wh-accent, #e88024);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.rpr-wh__input--error {
    border-color: #dc2626;
}

.rpr-wh__error-text {
    color: #dc2626;
    font-size: 0.8125rem;
    margin-top: 4px;
}

/* Honeypot (must be visually hidden but still in DOM) */
.rpr-wh__hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    tab-index: -1;
}

/* ─── Radio Toggle (Live / On Demand) ─────────────────────────────────────── */
.rpr-wh__toggle-group {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
}

.rpr-wh__toggle-label {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #666;
    transition: all 0.15s ease;
    user-select: none;
}

.rpr-wh__toggle-label:first-of-type {
    border-radius: 6px 0 0 6px;
}

.rpr-wh__toggle-label:last-of-type {
    border-radius: 0 6px 6px 0;
    border-left: none;
}

.rpr-wh__toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rpr-wh__toggle-input:checked + .rpr-wh__toggle-label {
    background: var(--rpr-wh-accent, #e88024);
    color: #fff;
    border-color: var(--rpr-wh-accent, #e88024);
}

/* ─── Timezone Pills ──────────────────────────────────────────────────────── */
.rpr-wh__tz-group {
    margin-bottom: 16px;
}

.rpr-wh__tz-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.rpr-wh__tz-pill {
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.rpr-wh__tz-pill:hover {
    border-color: var(--rpr-wh-accent, #e88024);
    color: var(--rpr-wh-accent, #e88024);
}

.rpr-wh__tz-pill--active {
    background: var(--rpr-wh-accent, #e88024);
    color: #fff;
    border-color: var(--rpr-wh-accent, #e88024);
}

/* ─── Session Radio List ──────────────────────────────────────────────────── */
.rpr-wh__sessions {
    margin-bottom: 16px;
}

.rpr-wh__session-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 6px;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fff;
}

.rpr-wh__session-option:hover {
    border-color: var(--rpr-wh-accent, #e88024);
}

.rpr-wh__session-option--selected {
    border-color: var(--rpr-wh-accent, #e88024);
    background: rgba(255, 102, 0, 0.04);
}

.rpr-wh__session-radio {
    accent-color: var(--rpr-wh-accent, #e88024);
}

.rpr-wh__session-text {
    font-size: 0.9375rem;
}

/* ─── Submit Button ───────────────────────────────────────────────────────── */
.rpr-wh__submit {
    width: 100%;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--rpr-wh-accent, #e88024);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    font-family: inherit;
}

.rpr-wh__submit:hover {
    filter: brightness(1.1);
}

.rpr-wh__submit:active {
    transform: scale(0.98);
}

.rpr-wh__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.rpr-wh__submit--loading {
    position: relative;
    color: transparent;
}

.rpr-wh__submit--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rpr-wh-spin 0.6s linear infinite;
}

@keyframes rpr-wh-spin {
    to { transform: rotate(360deg); }
}

/* ─── Lookup Link & Panel ─────────────────────────────────────────────────── */
.rpr-wh__lookup {
    text-align: center;
    margin-top: 12px;
    font-size: 0.8125rem;
    color: #666;
}

.rpr-wh__lookup a {
    color: var(--rpr-wh-accent, #e88024);
    text-decoration: none;
    font-weight: 500;
}

.rpr-wh__lookup a:hover {
    text-decoration: underline;
}

/* Expandable lookup panel */
.rpr-wh__lookup-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease 0.05s;
}

.rpr-wh__lookup-panel--open {
    max-height: 400px;
    opacity: 1;
}

.rpr-wh__lookup-inner {
    padding: 16px 0 4px;
}

.rpr-wh__lookup-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.rpr-wh__lookup-row .rpr-wh__input {
    flex: 1;
}

.rpr-wh__lookup-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--rpr-wh-accent, #e88024);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.15s ease;
    font-family: inherit;
}

.rpr-wh__lookup-btn:hover {
    filter: brightness(1.1);
}

.rpr-wh__lookup-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Lookup result messages */
.rpr-wh__lookup-result {
    margin-top: 12px;
}

.rpr-wh__lookup-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.4;
}

.rpr-wh__lookup-msg i {
    flex-shrink: 0;
    margin-top: 2px;
}

.rpr-wh__lookup-msg--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.rpr-wh__lookup-msg--success i {
    color: #059669;
}

.rpr-wh__lookup-msg--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.rpr-wh__lookup-msg--error i {
    color: #dc2626;
}

/* On-demand fallback after lookup */
.rpr-wh__lookup-fallback {
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    text-align: center;
}

.rpr-wh__lookup-fallback-text {
    font-size: 0.8125rem;
    color: #666;
    margin: 0 0 8px;
}

/* ─── Messages ────────────────────────────────────────────────────────────── */
.rpr-wh__message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.rpr-wh__message--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.rpr-wh__message--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ─── Animated Sections (Live/On Demand switch) ───────────────────────────── */
.rpr-wh__live-section,
.rpr-wh__ondemand-section {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

.rpr-wh__section--hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.rpr-wh__section--visible {
    max-height: 500px;
    opacity: 1;
}

.rpr-wh__ondemand-note {
    color: #666;
    font-size: 0.9375rem;
    margin: 8px 0 16px;
}

.rpr-wh__appcues-desc {
    color: #666;
    font-size: 0.875rem;
    margin: 4px 0 12px;
}

.rpr-wh__welcome-icon {
    color: var(--rpr-wh-accent, #e88024);
}

.rpr-wh__video-fallback-text {
    margin: 0 0 8px;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ─── Post-Registration Portal ────────────────────────────────────────────── */
.rpr-wh__portal {
    animation: rpr-wh-fade-in 0.3s ease;
}

@keyframes rpr-wh-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rpr-wh__portal-welcome {
    font-size: 1.125rem;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 4px;
}

.rpr-wh__portal-subtitle {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

/* Session details card */
.rpr-wh__session-detail {
    background: #fff;
    border: 1px solid #e2e5ea;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.rpr-wh__session-detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.9375rem;
}

.rpr-wh__session-detail-row i.fa-solid,
.rpr-wh__session-detail-row i.fa-regular {
    width: 18px;
    text-align: center;
    color: var(--rpr-wh-accent, #e88024);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.rpr-wh__session-detail-row:last-child {
    margin-bottom: 0;
}

/* Action buttons row */
.rpr-wh__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.rpr-wh__action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    border: none;
}

.rpr-wh__action-btn--primary {
    background: var(--rpr-wh-accent, #e88024);
    color: #fff;
}

.rpr-wh__action-btn--primary:hover {
    filter: brightness(1.1);
    color: #fff;
    text-decoration: none;
}

.rpr-wh__action-btn--secondary {
    background: #fff;
    color: #333;
    border: 1px solid #d1d5db;
}

.rpr-wh__action-btn--secondary:hover {
    border-color: var(--rpr-wh-accent, #e88024);
    color: var(--rpr-wh-accent, #e88024);
    text-decoration: none;
}

/* Divider */
.rpr-wh__divider {
    border: none;
    border-top: 1px solid #e2e5ea;
    margin: 16px 0;
}

/* ─── Resources List ──────────────────────────────────────────────────────── */
.rpr-wh__resources-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a365d;
}

.rpr-wh__resources-title i {
    color: var(--rpr-wh-accent, #e88024);
    font-size: 0.875rem;
}

.rpr-wh__resource-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rpr-wh__resource-item {
    margin-bottom: 6px;
}

.rpr-wh__resource-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.15s ease;
}

.rpr-wh__resource-link:hover {
    border-color: var(--rpr-wh-accent, #e88024);
    color: var(--rpr-wh-accent, #e88024);
    text-decoration: none;
}

.rpr-wh__resource-icon {
    font-size: 0.9375rem;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    color: var(--rpr-wh-accent, #e88024);
}

.rpr-wh__resource-arrow {
    margin-left: auto;
    color: #999;
    font-size: 0.875rem;
}

/* ─── Video Player (Slide-Out) ────────────────────────────────────────────── */
.rpr-wh__video-player {
    margin-bottom: 16px;
    transition: margin 0.4s ease;
}

/* Stage: the container that slides open */
.rpr-wh__video-stage {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease 0.1s;
}

.rpr-wh__video-stage--open {
    max-height: 800px;
    opacity: 1;
}

/* Toolbar above the video */
.rpr-wh__video-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 0 6px;
}

.rpr-wh__video-expand,
.rpr-wh__video-collapse {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.8rem;
    color: #555;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}

.rpr-wh__video-expand:hover,
.rpr-wh__video-collapse:hover {
    background: #f3f4f6;
    color: #111;
}

/* Exit expanded button - hidden by default, shown only in expanded mode */
.rpr-wh__video-exit-expanded {
    display: none;
}

/* ─── Video Expanded View (In-Place) ────────────────────────────────────── */
/* 
 * Instead of moving the iframe to a lightbox (which resets video position),
 * we expand the stage in-place using fixed positioning. The iframe never
 * leaves the DOM, so playback position is preserved.
 * 
 * The dark backdrop is part of the stage itself (not a separate element)
 * to avoid z-index stacking context issues with parent containers.
 */

/* Expanded state: covers entire viewport with dark background */
.rpr-wh__video-stage--expanded {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    z-index: 999999;
    overflow: hidden !important;
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.92);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
    box-sizing: border-box;
    transform: none;
    margin: 0;
}

.rpr-wh__video-stage--expanded .rpr-wh__video-toolbar {
    position: absolute;
    top: 16px;
    right: 20px;
    padding: 0;
    z-index: 10;
}

.rpr-wh__video-stage--expanded .rpr-wh__video-expand,
.rpr-wh__video-stage--expanded .rpr-wh__video-collapse {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.rpr-wh__video-stage--expanded .rpr-wh__video-expand:hover,
.rpr-wh__video-stage--expanded .rpr-wh__video-collapse:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Big X button - only visible when expanded */
.rpr-wh__video-stage--expanded .rpr-wh__video-exit-expanded {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}

.rpr-wh__video-stage--expanded .rpr-wh__video-exit-expanded:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.rpr-wh__video-stage--expanded .rpr-wh__video-wrap {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    height: auto;
    padding-bottom: 0;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.rpr-wh__video-stage--expanded .rpr-wh__video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rpr-wh__video-stage--expanded .rpr-wh__video-fallback {
    color: #ccc;
    margin-top: 16px;
}

.rpr-wh__video-stage--expanded .rpr-wh__video-fallback a {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ─── Video Lightbox (Legacy - kept for reference) ─────────────────────────────────────── */
.rpr-wh__lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rpr-wh__lightbox--open {
    opacity: 1;
}

.rpr-wh__lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.rpr-wh__lightbox-content {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    z-index: 1;
}

.rpr-wh__lightbox-close {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.8125rem;
    color: #fff;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s;
    font-family: inherit;
}

.rpr-wh__lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.rpr-wh__lightbox-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.rpr-wh__lightbox-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 16:9 responsive wrapper */
.rpr-wh__video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.rpr-wh__video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ─── Switch Account ──────────────────────────────────────────────────────── */
.rpr-wh__switch {
    text-align: center;
    margin-top: 16px;
    font-size: 0.8125rem;
    color: #999;
}

.rpr-wh__switch a {
    color: #999;
    text-decoration: underline;
}

/* ─── Dark Background Mode ───────────────────────────────────────────────── */
/* Use shortcode: [rpr_webinar_hub ... bg="dark"]                             */
/* Flips all text, borders, and surfaces for dark containers                  */

.rpr-wh[data-bg="dark"] {
    color: #f0f0f0;
}

/* ── Title & Labels ── */
.rpr-wh[data-bg="dark"] .rpr-wh__title {
    color: #fff;
}

.rpr-wh[data-bg="dark"] .rpr-wh__label {
    color: #fff;
}

/* Select elements */
.rpr-wh[data-bg="dark"] select {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

.rpr-wh[data-bg="dark"] select:focus {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.18);
}

/* ── Form Inputs ── */
.rpr-wh[data-bg="dark"] .rpr-wh__input {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

.rpr-wh[data-bg="dark"] .rpr-wh__input::placeholder {
    color: rgba(255,255,255,0.5);
}

.rpr-wh[data-bg="dark"] .rpr-wh__input:focus {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.18);
}

/* ── Toggle (Live / On Demand) ── */
.rpr-wh[data-bg="dark"] .rpr-wh__toggle-label {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.8);
}

.rpr-wh[data-bg="dark"] .rpr-wh__toggle-input:checked + .rpr-wh__toggle-label {
    background: var(--rpr-wh-accent, #e88024);
    color: #fff;
    border-color: var(--rpr-wh-accent, #e88024);
}

/* ── Timezone Pills ── */
.rpr-wh[data-bg="dark"] .rpr-wh__tz-pill {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.8);
}

.rpr-wh[data-bg="dark"] .rpr-wh__tz-pill:hover {
    border-color: #fff;
    color: #fff;
}

.rpr-wh[data-bg="dark"] .rpr-wh__tz-pill--active {
    background: var(--rpr-wh-accent, #e88024);
    border-color: var(--rpr-wh-accent, #e88024);
    color: #fff;
}

/* ── Session Radio Options ── */
.rpr-wh[data-bg="dark"] .rpr-wh__session-option {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.rpr-wh[data-bg="dark"] .rpr-wh__session-option:hover {
    border-color: rgba(255,255,255,0.5);
}

.rpr-wh[data-bg="dark"] .rpr-wh__session-option--selected {
    border-color: var(--rpr-wh-accent, #e88024);
    background: rgba(255,255,255,0.12);
}

.rpr-wh[data-bg="dark"] .rpr-wh__session-text {
    color: #f0f0f0;
}

/* ── On Demand Note ── */
.rpr-wh[data-bg="dark"] .rpr-wh__ondemand-note {
    color: rgba(255,255,255,0.8);
}

/* ── AppCues Description ── */
.rpr-wh[data-bg="dark"] .rpr-wh__appcues-desc {
    color: rgba(255,255,255,0.8);
}

/* ── Welcome Icon ── */
.rpr-wh[data-bg="dark"] .rpr-wh__welcome-icon {
    color: #fff;
}

/* ── Lookup Link ── */
.rpr-wh[data-bg="dark"] .rpr-wh__lookup {
    color: rgba(255,255,255,0.7);
}

.rpr-wh[data-bg="dark"] .rpr-wh__lookup a {
    color: #fff;
}

/* ── Lookup Panel ── */
.rpr-wh[data-bg="dark"] .rpr-wh__lookup-msg--success {
    background: rgba(5, 150, 105, 0.2);
    border-color: rgba(5, 150, 105, 0.3);
    color: #a7f3d0;
}

.rpr-wh[data-bg="dark"] .rpr-wh__lookup-msg--success i {
    color: #6ee7b7;
}

.rpr-wh[data-bg="dark"] .rpr-wh__lookup-msg--error {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.3);
    color: #fecaca;
}

.rpr-wh[data-bg="dark"] .rpr-wh__lookup-msg--error i {
    color: #f87171;
}

.rpr-wh[data-bg="dark"] .rpr-wh__lookup-fallback {
    background: rgba(255, 255, 255, 0.08);
}

.rpr-wh[data-bg="dark"] .rpr-wh__lookup-fallback-text {
    color: rgba(255, 255, 255, 0.8);
}

/* ── Portal (post-registration) ── */
.rpr-wh[data-bg="dark"] .rpr-wh__portal-welcome {
    color: #fff;
}

.rpr-wh[data-bg="dark"] .rpr-wh__portal-welcome i {
    color: #fff;
}

.rpr-wh[data-bg="dark"] .rpr-wh__portal-subtitle {
    color: rgba(255,255,255,0.8);
}

.rpr-wh[data-bg="dark"] .rpr-wh__session-detail {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.rpr-wh[data-bg="dark"] .rpr-wh__session-detail-row {
    color: #f0f0f0;
}

.rpr-wh[data-bg="dark"] .rpr-wh__session-detail-row i {
    color: #fff;
}

.rpr-wh[data-bg="dark"] .rpr-wh__divider {
    border-top-color: rgba(255,255,255,0.2);
}

/* ── Resources ── */
.rpr-wh[data-bg="dark"] .rpr-wh__resources-title {
    color: #fff;
}

.rpr-wh[data-bg="dark"] .rpr-wh__resources-title i {
    color: #fff;
}

.rpr-wh[data-bg="dark"] .rpr-wh__resource-link {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #f0f0f0;
}

.rpr-wh[data-bg="dark"] .rpr-wh__resource-link:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

.rpr-wh[data-bg="dark"] .rpr-wh__resource-icon {
    color: #fff;
}

.rpr-wh[data-bg="dark"] .rpr-wh__resource-arrow {
    color: rgba(255,255,255,0.6);
}

/* ── Buttons ── */
.rpr-wh[data-bg="dark"] .rpr-wh__action-btn--secondary {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.rpr-wh[data-bg="dark"] .rpr-wh__action-btn--secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
}

/* ── Switch Account ── */
.rpr-wh[data-bg="dark"] .rpr-wh__switch {
    color: rgba(255,255,255,0.7);
}

.rpr-wh[data-bg="dark"] .rpr-wh__switch a {
    color: rgba(255,255,255,0.9);
}

/* ── Video Toolbar ── */
.rpr-wh[data-bg="dark"] .rpr-wh__video-expand,
.rpr-wh[data-bg="dark"] .rpr-wh__video-collapse {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
}

.rpr-wh[data-bg="dark"] .rpr-wh__video-expand:hover,
.rpr-wh[data-bg="dark"] .rpr-wh__video-collapse:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.rpr-wh[data-bg="dark"] .rpr-wh__video-fallback-text {
    color: rgba(255,255,255,0.7);
}

/* ── Messages ── */
.rpr-wh[data-bg="dark"] .rpr-wh__success-msg {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.rpr-wh[data-bg="dark"] .rpr-wh__message {
    color: #fff;
}

.rpr-wh[data-bg="dark"] .rpr-wh__message--success {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.rpr-wh[data-bg="dark"] .rpr-wh__message--error {
    background: rgba(220,38,38,0.2);
    border-color: rgba(220,38,38,0.4);
    color: #fecaca;
}

.rpr-wh[data-bg="dark"] .rpr-wh__error-text {
    color: #fecaca;
}

/* ── Skeleton ── */
.rpr-wh[data-bg="dark"] .rpr-wh__skeleton-line {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
}

/* ─── Loading Skeleton ────────────────────────────────────────────────────── */
.rpr-wh__skeleton {
    padding: 4px 0;
}

.rpr-wh__skeleton-header {
    margin-bottom: 20px;
}

.rpr-wh__skeleton-line {
    background: linear-gradient(90deg, #e2e5ea 25%, #f0f1f3 50%, #e2e5ea 75%);
    background-size: 200% 100%;
    animation: rpr-wh-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
}

.rpr-wh__skeleton-line--title {
    height: 24px;
    width: 60%;
}

.rpr-wh__skeleton-line--label {
    height: 14px;
    width: 30%;
}

.rpr-wh__skeleton-line--input {
    height: 40px;
    width: 100%;
    margin-bottom: 16px;
}

.rpr-wh__skeleton-button {
    height: 44px;
    width: 100%;
    background: linear-gradient(90deg, #e2e5ea 25%, #f0f1f3 50%, #e2e5ea 75%);
    background-size: 200% 100%;
    animation: rpr-wh-shimmer 1.5s infinite;
    border-radius: 6px;
    margin-top: 8px;
}

@keyframes rpr-wh-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── Preview Mode ────────────────────────────────────────────────────────── */
.rpr-wh__preview-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    margin: -4px -4px 16px -4px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
}

.rpr-wh__preview-banner i {
    opacity: 0.9;
}

.rpr-wh__preview-exit {
    color: #fff;
    text-decoration: underline;
    font-weight: 400;
    opacity: 0.9;
    transition: opacity 0.15s ease;
}

.rpr-wh__preview-exit:hover {
    opacity: 1;
    color: #fff;
}

.rpr-wh__preview-register {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.rpr-wh__portal-empty {
    text-align: center;
    padding: 32px 16px;
    color: #6b7280;
}

.rpr-wh__portal-empty i {
    font-size: 2.5rem;
    opacity: 0.5;
    margin-bottom: 12px;
}

.rpr-wh__portal-empty p {
    margin: 0;
    font-size: 0.95rem;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .rpr-wh__card {
        padding: 20px 16px;
    }

    .rpr-wh__tz-pills {
        gap: 4px;
    }

    .rpr-wh__tz-pill {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .rpr-wh__actions {
        flex-direction: column;
    }

    .rpr-wh__action-btn {
        justify-content: center;
    }
}

/* ─── All Sessions Mode (Form) ────────────────────────────────────────────── */
.rpr-wh__sessions--all-mode {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.rpr-wh__sessions--all-mode .rpr-wh__label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1f2937;
}

.rpr-wh__session-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rpr-wh__session-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
}

.rpr-wh__session-icon {
    flex-shrink: 0;
}

.rpr-wh__session-more {
    margin-top: 8px;
}

.rpr-wh__session-more-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px 0;
}

.rpr-wh__session-more-btn:hover {
    text-decoration: underline;
}

.rpr-wh__sessions-note {
    margin: 12px 0 0;
    font-size: 0.8rem;
    color: #6b7280;
}

/* ─── Multi-Session Portal ────────────────────────────────────────────────── */
.rpr-wh__actions--compact {
    margin: 12px 0;
}

.rpr-wh__multi-sessions {
    margin-top: 16px;
}

.rpr-wh__multi-session-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}

.rpr-wh__multi-session-date {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.rpr-wh__multi-session-icon {
    flex-shrink: 0;
}

.rpr-wh__multi-session-text {
    font-weight: 500;
    color: #1f2937;
}

.rpr-wh__multi-session-duration {
    font-size: 0.8rem;
    color: #6b7280;
    margin-left: auto;
}

.rpr-wh__multi-session-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rpr-wh__multi-session-pending {
    font-size: 0.8rem;
    color: #9ca3af;
    font-style: italic;
}

.rpr-wh__multi-session-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0;
}

.rpr-wh__action-btn--small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.rpr-wh__cancelled-note {
    margin-top: 16px;
    padding: 10px 12px;
    background: #fef3c7;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #92400e;
}

.rpr-wh__cancelled-note i {
    margin-right: 6px;
}

@media (max-width: 480px) {
    .rpr-wh__multi-session-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rpr-wh__multi-session-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ─── No Sessions State ───────────────────────────────────────────────────── */
.rpr-wh__sessions--empty {
    text-align: center;
}

.rpr-wh__no-sessions {
    padding: 24px 16px;
    color: #6b7280;
}

.rpr-wh__no-sessions i {
    font-size: 2.5rem;
    opacity: 0.5;
    margin-bottom: 12px;
    display: block;
}

.rpr-wh__no-sessions p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.rpr-wh__submit--disabled {
    background: #d1d5db !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.rpr-wh__submit--disabled:hover {
    background: #d1d5db !important;
}
