/* 注文確認ページ専用CSS */

/* ページ全体のレイアウト */
.ptogo-confirm-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* 見出しスタイル */
.uk-heading-line {
    position: relative;
    margin-bottom: 2rem;
}

.uk-heading-line>span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.8rem;
}

/* カードスタイル */
.uk-card {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.uk-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.uk-card-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

/* テーブルスタイル */
.ptogo-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.ptogo-order-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    font-weight: 600;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.ptogo-order-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.ptogo-order-table tbody tr:hover {
    background-color: #f8f9ff;
}

.ptogo-order-table .uk-text-right {
    text-align: right;
}

.ptogo-order-table tfoot th,
.ptogo-order-table tfoot td {
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: 2px solid #dee2e6;
    padding: 12px 8px;
}

.ptogo-order-table .ptogo-total-row {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ptogo-order-table .ptogo-total-row th,
.ptogo-order-table .ptogo-total-row td {
    border-color: rgba(255, 255, 255, 0.2);
}

/* 支払い方法セクション */
.ptogo-payment-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.ptogo-payment-option {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ptogo-payment-option:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.ptogo-payment-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #e6edff 100%);
}

.ptogo-payment-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.ptogo-payment-icon {
    margin-right: 10px;
    width: 24px;
    height: 24px;
}

/* 顧客情報フォーム */
.ptogo-customer-form {
    background: #fafbfc;
    border-radius: 12px;
    padding: 1.5rem;
}

.ptogo-form-group {
    margin-bottom: 1.2rem;
}

.ptogo-form-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
}

.ptogo-form-label .required {
    color: #e74c3c;
    margin-left: 4px;
}

.ptogo-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.ptogo-form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.ptogo-form-input.uk-form-danger {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.ptogo-form-input.uk-form-success {
    border-color: #27ae60;
    background-color: #f2fdf2;
}

.ptogo-error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
}

/* 確認ボタン */
.ptogo-confirm-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.ptogo-confirm-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.ptogo-confirm-button:active:not(:disabled) {
    transform: translateY(-1px);
}

.ptogo-confirm-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ptogo-confirm-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ptogo-confirm-button:hover::before {
    left: 100%;
}

/* ローディングスタイル */
.ptogo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    color: #667eea;
    font-weight: 500;
}

.ptogo-loading .uk-spinner {
    color: #667eea;
}

/* 戻るボタン */
.ptogo-back-button {
    color: #6c757d;
    border: 2px solid #dee2e6;
    background: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ptogo-back-button:hover {
    border-color: #667eea;
    color: #667eea;
    text-decoration: none;
    transform: translateX(-3px);
}

/* アラートスタイル */
.ptogo-alert {
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    border-left: 4px solid;
}

.ptogo-alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.ptogo-alert-danger {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.ptogo-alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .ptogo-confirm-container {
        padding: 0.5rem;
    }

    .uk-heading-line>span {
        font-size: 1.5rem;
    }

    .uk-card-body {
        padding: 1rem;
    }

    .ptogo-order-table {
        font-size: 0.875rem;
    }

    .ptogo-order-table th,
    .ptogo-order-table td {
        padding: 8px 6px;
    }

    .ptogo-payment-section,
    .ptogo-customer-form {
        padding: 1rem;
    }

    .ptogo-confirm-button {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .ptogo-order-table {
        font-size: 0.8rem;
    }

    .ptogo-order-table th,
    .ptogo-order-table td {
        padding: 6px 4px;
    }

    .ptogo-form-input {
        padding: 10px 12px;
    }

    .uk-grid-small>* {
        padding-left: 0.5rem;
    }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {

    .uk-card,
    .ptogo-payment-option,
    .ptogo-form-input,
    .ptogo-confirm-button,
    .ptogo-back-button {
        transition: none;
    }

    .ptogo-confirm-button::before {
        display: none;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .uk-card {
        border: 2px solid #000;
    }

    .ptogo-payment-option {
        border-color: #000;
    }

    .ptogo-form-input {
        border-color: #000;
    }

    .ptogo-confirm-button {
        border: 2px solid #000;
    }
}

/* フォーカス可視性 */
.ptogo-form-input:focus,
.ptogo-confirm-button:focus,
.ptogo-back-button:focus,
.ptogo-payment-option:focus-within {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* プリント用スタイル */
@media print {

    .ptogo-confirm-button,
    .ptogo-back-button,
    .ptogo-loading {
        display: none;
    }

    .uk-card {
        box-shadow: none;
        border: 1px solid #000;
    }

    .ptogo-order-table {
        border-collapse: collapse;
    }

    .ptogo-order-table th,
    .ptogo-order-table td {
        border: 1px solid #000;
    }
}