/* =============================================
   GDPR Cookie Banner  (#vmfr-cookie-banner)
   ============================================= */

#vmfr-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    font-size: 14px;
    line-height: 1.6;
    color: #1a1a1a;
}

#vmfr-cookie-banner[hidden] {
    display: none;
}

/* --- メインバー --- */
.ck-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-top: 3px solid #18655d;
    padding: 16px 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.10);
}

.ck-bar__text {
    flex: 1;
}

.ck-bar__text p {
    margin: 0;
    color: #444;
}

.ck-bar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* --- ボタン --- */
.ck-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    line-height: 1;
}

.ck-btn--primary {
    background: #18655d;
    color: #fff;
    border-color: #18655d;
}
.ck-btn--primary:hover {
    background: #124e48;
    border-color: #124e48;
}

.ck-btn--outline {
    background: transparent;
    color: #18655d;
    border-color: #18655d;
}
.ck-btn--outline:hover {
    background: #eef8f7;
}

.ck-btn--ghost {
    background: transparent;
    color: #666;
    border-color: #ccc;
}
.ck-btn--ghost:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

/* --- 設定パネル --- */
.ck-settings {
    background: #f0f0f0;
    padding: 0 24px;
}

.ck-settings[hidden] {
    display: none;
}

.ck-settings__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- トグル行 --- */
.ck-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 6px;
}

.ck-toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ck-toggle-info strong {
    font-size: 14px;
    color: #1a1a1a;
}

.ck-toggle-info span {
    font-size: 12px;
    color: #777;
}

.ck-toggle-always {
    font-size: 12px;
    font-weight: 600;
    color: #18655d;
    white-space: nowrap;
}

/* --- スイッチ --- */
.ck-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.ck-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.ck-switch__slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.25s;
}

.ck-switch__slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.ck-switch input:checked + .ck-switch__slider {
    background: #18655d;
}

.ck-switch input:checked + .ck-switch__slider::before {
    transform: translateX(20px);
}

.ck-switch input:focus-visible + .ck-switch__slider {
    outline: 2px solid #18655d;
    outline-offset: 2px;
}

/* --- 設定フッター --- */
.ck-settings__footer {
    display: flex;
    justify-content: flex-end;
}

/* =============================================
   外部メディア プレースホルダー
   ============================================= */
.vmfr-media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f0f5f4;
    border: 2px dashed #b0d4cf;
    border-radius: 8px;
    padding: 32px 20px;
    text-align: center;
    min-height: 200px;
    color: #555;
    font-size: 14px;
}

.vmfr-media-placeholder p {
    margin: 0;
}

.vmfr-media-placeholder .ck-btn {
    margin-top: 4px;
}

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 768px) {
    .ck-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .ck-bar__actions {
        flex-direction: column;
        gap: 8px;
    }

    .ck-btn {
        width: 100%;
        justify-content: center;
        padding: 11px 18px;
    }

    .ck-toggle-row {
        flex-wrap: wrap;
        gap: 10px;
    }
}