/**
 * Monetization — Composer Monetize Pill & Panel Styles
 *
 * Collapsible pill trigger, inline settings panel, toggle, capsule selectors,
 * and price input for the activity composer monetization UI.
 *
 * @package    BUZEECI
 * @feature    monetization
 * @version    1.1.0
 * @since      18-03-2026
 */

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Toggle (bzc-toggle-row) — Frontend copy from buzeeci-toggle skill         */
/* ═══════════════════════════════════════════════════════════════════════════ */

.mon-panel .bzc-toggle-row {
    --bzc-tgl-track-off:        #b0b8bc;
    --bzc-tgl-track-off-hover:  #9aa3a8;
    --bzc-tgl-track-on:         rgba(29, 155, 240, 0.5);
    --bzc-tgl-track-on-hover:   rgba(26, 140, 216, 0.5);
    --bzc-tgl-knob-off:         #fff;
    --bzc-tgl-knob-on:          #1d9bf0;
    --bzc-tgl-knob-on-hover:    #1a8cd8;
    --bzc-tgl-text:             #0f1419;
    --bzc-tgl-track-w:          36px;
    --bzc-tgl-track-h:          16px;
    --bzc-tgl-knob-size:        22px;
    --bzc-tgl-slide-distance:   14px;
}

.mon-panel .bzc-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.mon-panel .bzc-toggle-row__label {
    font-size: 14px;
	font-weight: 700;
    color: var(--bzc-tgl-text);
    line-height: 20px;
}

.mon-panel .bzc-toggle-row__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.mon-panel .bzc-toggle-row__track {
    position: relative;
    width: var(--bzc-tgl-track-w);
    height: var(--bzc-tgl-track-h);
    border-radius: calc(var(--bzc-tgl-track-h) / 2);
    background: var(--bzc-tgl-track-off);
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.mon-panel .bzc-toggle-row__track::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: var(--bzc-tgl-knob-size);
    height: var(--bzc-tgl-knob-size);
    border-radius: 50%;
    background: var(--bzc-tgl-knob-off);
    transform: translateY(-50%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: left 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.2s ease,
                box-shadow 0.2s ease;
}

.mon-panel .bzc-toggle-row__input:checked + .bzc-toggle-row__track {
    background: var(--bzc-tgl-track-on);
}

.mon-panel .bzc-toggle-row__input:checked + .bzc-toggle-row__track::after {
    left: var(--bzc-tgl-slide-distance);
    background: var(--bzc-tgl-knob-on);
    box-shadow: 0 1px 4px rgba(29, 155, 240, 0.4);
}

.mon-panel .bzc-toggle-row:hover .bzc-toggle-row__input:not(:checked) + .bzc-toggle-row__track {
    background: var(--bzc-tgl-track-off-hover);
}

.mon-panel .bzc-toggle-row:hover .bzc-toggle-row__input:checked + .bzc-toggle-row__track {
    background: var(--bzc-tgl-track-on-hover);
}

.mon-panel .bzc-toggle-row:hover .bzc-toggle-row__input:checked + .bzc-toggle-row__track::after {
    background: var(--bzc-tgl-knob-on-hover);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Pill Wrapper — Reset BB inherited backgrounds                             */
/* ═══════════════════════════════════════════════════════════════════════════ */

#whats-new-options,
#whats-new-options:hover,
.mon-pill-wrap,
.mon-pill-wrap:hover {
    background-color: transparent !important;
    background: transparent !important;
}

.mon-pill-wrap {
    width: 100%;
    padding: 0 16px 5px;
}

/* ── Pill Trigger ─────────────────────────────────────────────────────────── */

.mon-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid #cfd9de;
    border-radius: 999px;
    background: #ffffff;
    color: #536471;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 150ms, color 150ms, border-color 150ms;
    line-height: 1.3;
    white-space: nowrap;
}

.mon-pill:hover {
    background: #f7f9f9;
    border-color: #b0bec5;
}

.mon-pill__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.mon-pill__text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mon-pill__chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

/* ── Pill: Expanded ───────────────────────────────────────────────────────── */

.mon-pill--expanded {
    border-color: #1d9bf0;
    color: #1d9bf0;
}

.mon-pill--expanded .mon-pill__chevron {
    transform: rotate(180deg);
}

/* ── Pill: Active (monetization ON) ───────────────────────────────────────── */

.mon-pill--active {
    background: rgba(29, 155, 240, 0.08);
    border-color: rgba(29, 155, 240, 0.4);
    color: #1d9bf0;
}

.mon-pill--active:hover {
    background: rgba(29, 155, 240, 0.12);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Panel (inline expanding section)                                          */
/* ═══════════════════════════════════════════════════════════════════════════ */

.mon-panel {
    width: 100%;
    margin-top: 8px;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Row Layout                                                                */
/* ═══════════════════════════════════════════════════════════════════════════ */

.mon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.mon-row__label {
    font-size: 14px;
    font-weight: 700;
	color: rgb(15, 20, 25);
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;
}

.mon-row__desc {
    font-size: 12px;
    color: #536471;
    line-height: 1.3;
    margin-top: 2px;
}

.mon-row__text {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Options & Sub-option Wrappers                                             */
/* ═══════════════════════════════════════════════════════════════════════════ */

.mon-options {
    
}

.mon-sub {
    padding-left: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Capsule Selector                                                          */
/* ═══════════════════════════════════════════════════════════════════════════ */

.capsule {
    display: inline-flex;
    border: 1px solid #cfd9de;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}

.capsule__opt {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #536471;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 150ms, color 150ms;
    line-height: 1.1;
    white-space: nowrap;
}

.capsule__opt + .capsule__opt {
    border-left: 1px solid #cfd9de;
}

.capsule__opt:hover:not(.capsule__opt--active) {
    background: rgba(29, 155, 240, 0.04);
    color: #0f1419;
}

.capsule__opt--active {
    background: #1d9bf0;
    color: #ffffff;
}

.capsule__opt--active:hover {
    background: #1a8cd8;
}

.capsule__opt--disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

/* ── Capsule icons ────────────────────────────────────────────────────────── */

.capsule__opt-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Price Input                                                               */
/* ═══════════════════════════════════════════════════════════════════════════ */

.mon-price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.mon-price__input {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid #cfd9de;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #0f1419;
    text-align: right;
    outline: none;
    transition: border-color 200ms;
    -moz-appearance: textfield;
}

.mon-price__input::-webkit-outer-spin-button,
.mon-price__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mon-price__input:focus {
    border-color: #1d9bf0;
    box-shadow: 0 0 0 1px #1d9bf0;
}

.mon-price__suffix {
    font-size: 13px;
    color: #8899a6;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Responsive                                                                */
/* ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .mon-pill__text {
        max-width: 140px;
    }

    .capsule__opt {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Preview Lines Stepper                                                     */
/* ═══════════════════════════════════════════════════════════════════════════ */

.bzc-stepper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.bzc-stepper__btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #cfd9de;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #0f1419;
    background: transparent;
    user-select: none;
    transition: background 0.15s, border-color 0.15s;
}

.bzc-stepper__btn:hover {
    background: #f7f9f9;
    border-color: #1d9bf0;
    color: #1d9bf0;
}

.bzc-stepper__value {
    font-size: 14px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
    color: #0f1419;
}
