/* Webinar picker modal (pc-webinar-picker) + inline selector widget (pc-webinar-selector).
   Used by the blog-editor WebinarBanner and the course-category form. */

/* ---- Modal picker ------------------------------------------------------- */

.rd-webinar-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 320px;
}

.rd-webinar-picker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 60vh;
    overflow-y: auto;
}

.rd-webinar-picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px;
    text-align: left;
    background: var(--rd-bg-primary);
    border: var(--rd-borderwidth-border-default) solid var(--rd-gray-200);
    border-radius: var(--rd-borderradius-border-big);
    cursor: pointer;
}

.rd-webinar-picker-item:hover {
    border-color: var(--rd-primary-active);
}

.rd-webinar-picker-item.rd-selected {
    border-color: var(--rd-primary-active);
    background: var(--rd-primary-inactive);
}

.rd-webinar-picker-item-thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 48px;
    border-radius: var(--rd-borderradius-border-md);
    background-color: var(--rd-gray-100);
    background-size: cover;
    background-position: center;
}

.rd-webinar-picker-item-thumb--empty {
    background-color: var(--rd-gray-200);
}

.rd-webinar-picker-item-text {
    flex: 1 1 auto;
    min-width: 0;
}

.rd-webinar-picker-item-title {
    font-weight: 600;
    color: var(--rd-gray-700);
}

.rd-webinar-picker-item-subtitle {
    color: var(--rd-gray-500);
    font-size: 0.85em;
}

.rd-webinar-picker-item-check {
    flex: 0 0 auto;
    opacity: 0;
    color: var(--rd-primary-active);
}

.rd-webinar-picker-item.rd-selected .rd-webinar-picker-item-check {
    opacity: 1;
}

.rd-webinar-picker-empty {
    padding: 16px;
    text-align: center;
    color: var(--rd-gray-500);
}

/* ---- Inline selector widget --------------------------------------------- */

.rd-webinar-select {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rd-webinar-select-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border: var(--rd-borderwidth-border-default) solid var(--rd-gray-200);
    border-radius: var(--rd-borderradius-border-big);
}

.rd-webinar-select-preview-thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 48px;
    border-radius: var(--rd-borderradius-border-md);
    background-color: var(--rd-gray-100);
    background-size: cover;
    background-position: center;
}

.rd-webinar-select-preview-thumb--empty {
    background-color: var(--rd-gray-200);
}

.rd-webinar-select-preview-text {
    flex: 1 1 auto;
    min-width: 0;
}

.rd-webinar-select-preview-title {
    font-weight: 600;
    color: var(--rd-gray-700);
}

.rd-webinar-select-preview-subtitle {
    color: var(--rd-gray-500);
    font-size: 0.85em;
}

.rd-webinar-select-empty {
    color: var(--rd-gray-500);
}

.rd-webinar-select-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}