/* PAY.JP モーダルスタイル */

/* モーダルのオーバーレイ */
.payjp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.payjp-modal.is-open {
    display: block;
}

.payjp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* モーダルのコンテンツ */
.payjp-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    width: 90%;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

/* 閉じるボタン */
.payjp-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payjp-modal-close:hover {
    color: #000;
}

/* モーダルのタイトル */
.payjp-modal-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* フォームのスタイル調整 */
.payjp-modal .payjp-form-row {
    margin-bottom: 15px;
}

.payjp-modal .payjp-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.payjp-modal .payjp-form-row input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.payjp-modal .payjp-card-element {
    margin-bottom: 15px;
}

.payjp-modal .payjp-error {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* 送信ボタンのスタイル */
.payjp-modal .ark-block-buttons {
    margin-top: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .payjp-modal-content {
        width: 95%;
        padding: 20px;
        max-height: 95vh;
    }
}
