/*
  public/css/cart.css
  (All your .cart-layout, .cart-table, .checkout-layout,
   .payment-option, and .qr-code-box styles are here...)
*/

.content-wrapper h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.cart-table-container { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}
.cart-table th {
    font-family: Inter, sans-serif;
    font-style: normal;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #555;
}
.cart-item-image {
    width: 80px; height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}
.cart-table td a { font-weight: bold; color: var(--dark-grey); }
.cart-table td a:hover { color: var(--primary-color); }
.cart-remove-link {
    display: block;
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--primary-color) !important;
    margin-top: 0.25rem;
}
.cart-update-form { display: flex; gap: 0.5rem; }
.cart-quantity-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.cart-update-form .btn { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
.cart-totals {
    background: var(--light-grey);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    height: fit-content;
}
.cart-totals h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 1rem;
}
.totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.totals-row.total {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #ddd;
}
.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}
.checkout-form-container h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.order-summary-container {
    background: var(--light-grey);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    height: fit-content;
}
.order-summary-container h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.order-summary-container .cart-table.mini td { padding: 0.75rem 0; }
.order-summary-container .totals-row.total {
    margin-top: 1rem;
    padding-top: 1rem;
}
.payment-method-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.payment-option {
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.payment-option label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}
.payment-option input[type="radio"] {
    transform: scale(1.2);
    margin-left: 5px;
}
.payment-option input[type="radio"]:checked + label {
    background: #f7f7f7;
    border-left: 4px solid var(--primary-color);
    padding-left: calc(1rem - 4px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.payment-option i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    color: #555;
}
.qr-code-box {
    display: none;
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}
.qr-code-box.active {
    display: block;
}
.qr-code-box h3 {
    font-size: 1.3rem;
    color: var(--dark-grey);
    font-family: Inter, sans-serif;
    font-style: normal;
}
.qr-code-box .qr-code-image {
    width: 200px;
    height: 200px;
    margin: 1rem auto;
    display: block;
    border: 1px solid #eee;
}
.qr-code-box p { font-size: 1.1rem; line-height: 1.5; }
.qr-code-box .payment-warning {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 1rem;
}
@media (max-width: 900px) {
    .cart-layout, .checkout-layout {
        grid-template-columns: 1fr;
    }
    .cart-totals { order: -1; }
    .checkout-layout .order-summary-container { order: -1; margin-bottom: 2rem; }
}

/* === THIS IS THE NEW STYLE ===
  This styles the new button container
*/
.checkout-submit-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-grey);
}
.checkout-submit-container .btn {
    width: 100%;
    max-width: 400px; /* Limit button width on desktop */
    margin: 0 auto; /* Center the button */
    display: block;
    font-size: 1.2rem;
    padding: 1rem;
}