/* =============================================
   JinUmui オプトアウト フォーム
   ============================================= */

.jop-wrap {
    max-width: 560px;
    font-size: 15px;
}

/* 保存完了メッセージ */
.jop-success {
    padding: 10px 16px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
    color: #166534;
    margin-bottom: 20px;
    font-size: 14px;
}

.jop-error {
    color: #c0392b;
    font-size: 14px;
}

/* 各項目 */
.jop-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #e9ecef;
}

.jop-item:first-of-type {
    border-top: 1px solid #e9ecef;
}

.jop-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.jop-item-body {
    flex: 1;
}

.jop-item-label {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}

.jop-item-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

/* コントロール（トグル + ステータス） */
.jop-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/* チェックボックス非表示 */
.jop-checkbox {
    display: none;
}

/* トグルスイッチ */
.jop-slider {
    display: block;
    position: relative;
    width: 52px;
    height: 28px;
    background: #cbd5e1;
    border-radius: 28px;
    cursor: pointer;
    transition: background 0.25s;
}

.jop-slider::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    transition: transform 0.25s;
}

/* チェック時（配信中）*/
.jop-checkbox:checked + .jop-slider {
    background: #22c55e;
}

.jop-checkbox:checked + .jop-slider::after {
    transform: translateX(24px);
}

/* ステータスラベル */
.jop-status {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.jop-on  { color: #16a34a; }
.jop-off { color: #94a3b8; }

/* 注意書き */
.jop-note {
    font-size: 12px;
    color: #94a3b8;
    margin: 20px 0 16px;
    line-height: 1.6;
}

/* 保存ボタン */
.jop-btn-save {
    display: inline-block;
    padding: 11px 32px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.jop-btn-save:hover {
    background: #1d4ed8;
}
