/**
 * CF7 Confirm Lightbox - Styles
 */

/* スクロールロック */
body.cf7cl-body-lock {
    overflow: hidden;
}

/* オーバーレイ */
.cf7cl-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.cf7cl-overlay.cf7cl-active {
    display: flex;
}

/* モーダル */
.cf7cl-modal {
    background: #fff;
    width: 100%;
    max-width: 600px;
    margin: auto;
    padding: 40px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: cf7cl-fadeIn 0.25s ease-out;
}

@keyframes cf7cl-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 閉じるボタン */
.cf7cl-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.cf7cl-close:hover {
    color: #333;
}

/* タイトル */
.cf7cl-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    padding: 0;
    border: none;
    line-height: 1.4;
}

/* メッセージ */
.cf7cl-message {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

/* 確認テーブル */
.cf7cl-confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 32px 0;
}

.cf7cl-confirm-table th,
.cf7cl-confirm-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.cf7cl-confirm-table th {
    width: 35%;
    font-weight: 600;
    color: #333;
    background: #fafafa;
    white-space: nowrap;
}

.cf7cl-confirm-table td {
    color: #555;
    word-break: break-word;
}

.cf7cl-confirm-table tr:last-child th,
.cf7cl-confirm-table tr:last-child td {
    border-bottom: none;
}

/* アクションボタン */
.cf7cl-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.cf7cl-btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
    min-width: 140px;
    text-align: center;
}

.cf7cl-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 送信ボタン */
.cf7cl-btn-submit {
    background: #2563eb;
    color: #fff;
}

.cf7cl-btn-submit:hover:not(:disabled) {
    background: #1d4ed8;
}

/* キャンセルボタン */
.cf7cl-btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.cf7cl-btn-cancel:hover:not(:disabled) {
    background: #e5e7eb;
}

/* レスポンシブ */
@media screen and (max-width: 600px) {
    .cf7cl-overlay {
        padding: 20px 12px;
    }

    .cf7cl-modal {
        padding: 24px 20px;
    }

    .cf7cl-title {
        font-size: 18px;
    }

    .cf7cl-confirm-table th,
    .cf7cl-confirm-table td {
        display: block;
        width: 100%;
        padding: 8px 12px;
    }

    .cf7cl-confirm-table th {
        border-bottom: none;
        padding-bottom: 2px;
    }

    .cf7cl-confirm-table td {
        padding-top: 2px;
    }

    .cf7cl-actions {
        flex-direction: column-reverse;
    }

    .cf7cl-btn {
        width: 100%;
    }
}
