/* Base checkout styles */
.matten24-checkout-wrapper {
    font-family: 'Inter', sans-serif;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    background: #f1f1f1;
    padding: 20px;
}

.matten24-checkout-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.matten24-checkout-col-left {
    flex: 1 1 60%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.matten24-checkout-col-right {
    flex: 1 1 35%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.matten24-checkout-section {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.matten24-checkout-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 10px;
}

/* Forms */
.form-row {
    margin-bottom: 15px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-row-half {
    display: flex;
    gap: 15px;
}

.form-row-half .col {
    flex: 1;
}

.radio-group label, .form-row label, .option-label, .legal-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    cursor: pointer;
}

.radio-group input[type="radio"],
.form-row input[type="checkbox"],
.option-label input[type="checkbox"],
.legal-label input[type="checkbox"],
.payment-method-label input[type="radio"] {
    margin-right: 8px;
}

.form-row-note p {
    font-size: 12px;
    color: #666;
    margin: 4px 0;
}

/* Modal */
.matten24-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.matten24-modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    position: relative;
    border-radius: 4px;
}

.matten24-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.matten24-modal-close:hover,
.matten24-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Products Column */
.checkout-product-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.checkout-product-image {
    width: 80px;
    height: 80px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.checkout-product-price {
    font-weight: 600;
}

/* Totals */
.checkout-totals-table {
    margin-bottom: 20px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.totals-grand {
    font-weight: bold;
    font-size: 16px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.totals-tax-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Payment Methods */
.checkout-payment-methods {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-top: 20px;
}

.payment-method-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.payment-method-label.disabled {
    color: #aaa;
}

/* Utilities */
.mt-2 { margin-top: 10px; }
.mt-4 { margin-top: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.btn, .btn-submit {
    background-color: #a70a10;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
}

.btn:hover, .btn-submit:hover {
    background-color: #85080c;
}

@media (max-width: 768px) {
    .matten24-checkout-grid {
        flex-direction: column;
    }
}

/* Success Page Styles */
.matten24-order-success {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.success-header {
    background: #eef9f2;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}

.success-icon {
    font-size: 3rem;
    color: #28a745;
    background: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(40,167,69,0.15);
    border: 2px solid #28a745;
}

.success-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    color: #1e5c2d;
    line-height: 1.3;
}

.order-number-notice, .invoice-number-notice {
    font-size: 1.05rem;
    margin: 5px 0;
    color: #155724;
}

.order-number-notice strong, .invoice-number-notice strong {
    color: #1e5c2d;
    font-weight: 700;
}

.success-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.success-footer p {
    margin-bottom: 20px;
    color: #666;
}