* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

/* Header dùng chung được style bởi modern.css */

.checkout-container {
    width: min(1120px, calc(100% - 32px));
    margin: 40px auto;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.checkout-section {
    background: #111;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.12);
}

.checkout-section h2 {
    margin: 0 0 18px;
    font-size: 22px;
    color: var(--tsa-brand);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #0d0d0d;
    border: 1px solid #444;
    border-radius: 6px;
    color: white;
    font: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--tsa-brand);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.16);
}

fieldset {
    border: 1px solid #333;
    padding: 15px;
    margin: 0 0 20px;
    border-radius: 8px;
}

legend {
    padding: 0 10px;
    color: var(--tsa-brand);
    font-weight: bold;
}

.radio-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 18px;
    color: var(--tsa-text, #1f2933);
}

input[type="radio"] {
    accent-color: var(--tsa-brand);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th,
table td {
    padding: 12px;
    border-bottom: 1px solid #333;
    text-align: left;
    vertical-align: top;
}

table th {
    color: var(--tsa-brand);
}

.summary-lines {
    margin-top: 20px;
}

.summary-lines div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #272727;
}

.summary-lines strong {
    color: var(--tsa-brand);
}

.total-line {
    font-size: 20px;
    border-top: 2px solid var(--tsa-brand);
    margin-top: 10px;
    padding-top: 16px !important;
}

.seller-note {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    color: #ccc;
    font-size: 14px;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px;
    background: #0b0b0b;
}

.seller-note i {
    color: var(--tsa-brand);
    margin-top: 2px;
}

.checkout-status {
    display: none;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid rgba(184, 134, 47, 0.38);
    color: var(--tsa-brand-dark, #6f4f17);
    background: rgba(184, 134, 47, 0.1);
}

.checkout-status.error {
    color: #ffc7c7;
    border-color: rgba(255, 82, 82, 0.44);
    background: rgba(255, 82, 82, 0.14);
}

button {
    width: 100%;
    padding: 15px;
    background: var(--tsa-brand);
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

button:hover {
    background: var(--tsa-brand-dark);
    transform: translateY(-1px);
}

.empty-checkout {
    color: var(--tsa-muted, #667085);
    text-align: center;
    padding: 28px 12px !important;
}

.order-confirmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 48px 24px;
}

.order-confirmation-icon {
    font-size: 48px;
    color: var(--tsa-success, #0f766e);
    margin-bottom: 6px;
}

.order-confirmation h2 {
    margin: 0;
    color: var(--tsa-ink, #111317);
}

.order-confirmation p {
    margin: 0;
    color: var(--tsa-muted, #667085);
    max-width: 480px;
}

.order-confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.order-confirmation-actions a {
    width: auto;
}

@media (max-width: 850px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

