/* =========================================================================
   CHECKOUT PAGE - 3-COLUMN MNC-STANDARD ARCHITECTURE
   ========================================================================= */
.checkout-page {
    padding: 25px 0;
    background-color: #f9f9f9;
}

.checkout-top-header {
    background: #f7f7f7;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.checkout-top-header h1 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.checkout-top-header .breadcrumb {
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.checkout-3col-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 25px;
}

.checkout-col-base {
    background: transparent;
    padding: 0;
    border: none;
}

.checkout-section-header {
    border-left: 5px solid var(--primary-color);
    display: block;
    padding: 15px;
    background: #f5eef0;
    font-weight: 800;
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.checkout-inner-box {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
}

/* Forms & Inputs base */
.checkout-form-group {
    margin-bottom: 18px;
}
.checkout-form-group.mb-0 { margin-bottom: 0; }
.checkout-form-group.mt-25 { margin-top: 25px; }
.checkout-form-group.mb-25 { margin-bottom: 25px; }

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 18px;
}
.form-row-2col .checkout-form-group {
    margin-bottom: 0;
}

.checkout-label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #000;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.checkout-label .required-star {
    color: var(--primary-color);
}

.checkout-input {
    background: #f7f7f7;
    border: 1px solid #ddd;
    padding: 12px;
    width: 100%;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}
.checkout-input.mb-10 { margin-bottom: 10px; }

select.checkout-input {
    -webkit-appearance: none;
    appearance: none;
}

textarea.checkout-input {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox specific */
.checkout-checkbox-wrap {
    margin-top: 20px;
}

.checkout-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 24px;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

.checkout-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* =========================================================================
   Order Review Column Specifics
   ========================================================================= */
.review-box-outer {
    background: #fff;
    border: 1px solid #eee;
    overflow: hidden;
}

.review-table-header {
    display: grid;
    grid-template-columns: 1fr 110px 80px 60px;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #e0e0e0;
    color: #000;
}
.review-table-header .center { text-align: center; }
.review-table-header .right { text-align: right; }

.review-items-list {
    padding: 15px;
}

.review-item {
    display: grid;
    grid-template-columns: 1fr 110px 80px 60px;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f2f2f2;
}

.review-p-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-p-img {
    width: 60px;
    height: 60px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.review-p-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.review-p-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #333;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
}

.review-p-qty-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.review-qty-btn {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-qty-val {
    width: 40px;
    height: 30px;
    border: 1px solid #ddd;
    text-align: center;
    line-height: 30px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
}

.review-remove-wrap {
    text-align: right;
    margin-top: 0;
}

.review-remove-btn {
    color: #000;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
}

.review-total {
    text-align: right;
    font-weight: 800;
    font-size: 15px;
    color: #333;
}

/* Totals Footer */
.footer-totals {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
    color: #000;
    font-weight: 800;
}
.footer-row.mb-20 { margin-bottom: 20px; }

.footer-row-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #eee;
    padding-top: 20px;
}

.subtotal-val {
    font-weight: 600;
    color: #333;
}

.shipping-options-wrap {
    text-align: right;
}

.shipping-radio-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #666;
}
.shipping-radio-label:last-child { margin-bottom: 0; }
.shipping-radio-label strong { color: #333; }

.total-label {
    font-size: 20px;
    font-weight: 800;
    color: #000;
}

.total-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

/* =========================================================================
   Payments Column Specifics
   ========================================================================= */
.payment-inner-box {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-top: none;
}

.payment-method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.payment-method-label {
    font-weight: 800;
    font-size: 16px;
    color: #000;
    font-family: 'Montserrat', sans-serif;
}

.payment-card-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.payment-card-icons img {
    height: 24px;
    width: auto;
}

.payment-detail-box {
    background: #f0f2f7;
    padding: 25px;
    border-radius: 8px;
    margin-top: 10px;
    position: relative;
}

.payment-pointer-arrow {
    position: absolute;
    top: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #f0f2f7;
}

.payment-instruction {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Override input background for payment box */
.payment-detail-box .checkout-input {
    background: #fff;
}

.privacy-notice {
    margin-top: 25px;
    font-size: 13px;
    line-height: 1.6;
    color: #444;
}

.privacy-notice strong {
    text-decoration: none;
    border-bottom: 1px solid #444;
    cursor: pointer;
}

.btn-place-order-premium {
    margin-top: 25px;
    font-size: 18px;
    padding: 18px;
    border-radius: 8px;
    font-weight: 800;
    background: var(--primary-color);
    color: #fff;
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease;
}

.btn-place-order-premium:hover {
    background: var(--primary-dark);
}

/* Responsive Overrides */
@media (max-width: 1100px) {
    .checkout-3col-container { grid-template-columns: 1fr 1fr; }
    .checkout-col-base:nth-child(3) { grid-column: span 2; }
}

@media (max-width: 768px) {
    .checkout-3col-container { grid-template-columns: 1fr; }
    .checkout-col-base:nth-child(3) { grid-column: span 1; }
    .form-row-2col { grid-template-columns: 1fr; }
    .review-item { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .review-p-qty-wrap { justify-content: center; }
    .review-remove-wrap { margin-top: 15px; }
}
