/* ============================================
   MINIMAL CHECKOUT PAGE STYLING
   ============================================ */

/* 1. Main Container & Layout */
.woocommerce-checkout,
.woocommerce .woocommerce-checkout {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #2d3748;
    line-height: 1.5;
}

/* 2. Form Layout */
.woocommerce-checkout .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
    float: none;
    width: 100%;
}

/* 3. Section Headers */
.woocommerce-checkout h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 25px 0;
    padding: 0;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 4. Form Fields */
.woocommerce-checkout .form-row {
    margin-bottom: 20px;
    position: relative;
}

.woocommerce-checkout .form-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.woocommerce-checkout .form-row label .required {
    color: #e53e3e;
    margin-left: 2px;
}

.woocommerce-checkout .form-row .optional {
    color: #a0aec0;
    font-size: 12px;
    margin-left: 4px;
    text-transform: none;
}

.woocommerce-checkout .input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #2d3748;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.woocommerce-checkout .input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    outline: none;
    border-color: #4c51bf;
    box-shadow: 0 0 0 1px #4c51bf;
}

.woocommerce-checkout .input-text::placeholder {
    color: #a0aec0;
}

/* 5. Form Row Layout */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: 48%;
    float: left;
    clear: none;
}

.woocommerce-checkout .form-row-first {
    margin-right: 4%;
}

.woocommerce-checkout .form-row-last {
    margin-right: 0;
}

.woocommerce-checkout .form-row-wide {
    width: 100%;
    clear: both;
}

/* 6. Coupon Section */
.woocommerce-form-coupon-toggle .woocommerce-info {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px 20px;
    color: #4a5568;
    margin-bottom: 25px;
    font-size: 14px;
}

.woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon {
    color: #4c51bf;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon:hover {
    border-bottom-color: #4c51bf;
}

.checkout_coupon {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.checkout_coupon .form-row {
    flex: 1;
    margin-bottom: 0;
}

.checkout_coupon .button {
    padding: 12px 24px;
    background: #4c51bf;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.checkout_coupon .button:hover {
    background: #434190;
}

/* 7. Checkbox Styling */
.woocommerce-form__label-for-checkbox.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 14px;
    color: #4a5568;
}

.woocommerce-form__input-checkbox.input-checkbox {
    width: 18px;
    height: 18px;
    margin: 0 12px 0 0;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.woocommerce-form__input-checkbox.input-checkbox:checked {
    background: #4c51bf;
    border-color: #4c51bf;
}

.woocommerce-form__input-checkbox.input-checkbox:checked:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 8. Order Review Section */
#order_review_heading {
    margin: 40px 0 25px 0;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 30px;
}

.woocommerce-checkout-review-order-table thead {
    background: #f7fafc;
}

.woocommerce-checkout-review-order-table th {
    color: #4a5568;
    font-weight: 600;
    text-align: left;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-checkout-review-order-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
}

.woocommerce-checkout-review-order-table tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce-checkout-review-order-table .product-name {
    color: #2d3748;
}

.woocommerce-checkout-review-order-table .product-quantity {
    color: #a0aec0;
    font-weight: normal;
}

.woocommerce-checkout-review-order-table tfoot tr {
    background: #f7fafc;
}

.woocommerce-checkout-review-order-table tfoot th {
    background: none;
    border-bottom: none;
}

.woocommerce-checkout-review-order-table .order-total {
    background: #fff;
    border-top: 2px solid #e2e8f0;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
}

/* 9. Shipping Methods */
.woocommerce-shipping-methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-shipping-methods li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.woocommerce-shipping-methods label {
    margin: 0;
    font-weight: 400;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    padding: 8px 0;
}

.woocommerce-shipping-methods input[type="hidden"] {
    display: none;
}

/* 10. Payment Methods */
.wc_payment_methods {
    list-style: none;
    margin: 0 0 25px 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.wc_payment_method {
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.wc_payment_method:last-child {
    border-bottom: none;
}

.wc_payment_method label {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #2d3748;
    transition: background 0.2s;
}

.wc_payment_method label:hover {
    background: #f7fafc;
}

.wc_payment_method input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 15px;
    position: relative;
    cursor: pointer;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    appearance: none;
}

.wc_payment_method input[type="radio"]:checked {
    border-color: #4c51bf;
    background: #4c51bf;
    box-shadow: inset 0 0 0 3px white;
}

.payment_box {
    padding: 20px;
    background: #f7fafc;
    color: #4a5568;
    line-height: 1.6;
    font-size: 14px;
    border-top: 1px solid #e2e8f0;
}

.payment-methods--logos {
    margin-left: auto;
    display: flex;
    gap: 6px;
    align-items: center;
}

.payment-methods--logos img {
    height: 20px;
    width: auto;
    opacity: 0.7;
}

/* 11. Place Order Button */
.place-order .button.alt {
    width: 100%;
    padding: 16px;
    background: #2d3748;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.place-order .button.alt:hover {
    background: #1a202c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 12. Terms and Conditions */
.woocommerce-terms-and-conditions-wrapper {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
}

.woocommerce-privacy-policy-link {
    color: #4c51bf;
    text-decoration: none;
}

.woocommerce-privacy-policy-link:hover {
    text-decoration: underline;
}

/* 13. Newsletter Checkbox */
.hostinger-reach-optin {
    margin: 20px 0;
    padding: 0;
}

.hostinger-reach-optin label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
}

.hostinger-reach-optin input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

/* 14. Responsive Design */
@media (max-width: 900px) {
    .woocommerce-checkout .col2-set {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .woocommerce-checkout {
        padding: 30px 15px;
    }
    
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100%;
        float: none;
        margin-right: 0;
    }
    
    .checkout_coupon {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .checkout_coupon .button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .woocommerce-checkout {
        padding: 20px 12px;
    }
    
    .woocommerce-checkout h3 {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .payment-methods--logos {
        display: none;
    }
}

/* 15. Form Validation */
.woocommerce-checkout .woocommerce-invalid .input-text,
.woocommerce-checkout .woocommerce-invalid select,
.woocommerce-checkout .woocommerce-invalid textarea {
    border-color: #fc8181;
}

.woocommerce-checkout .woocommerce-validated .input-text,
.woocommerce-checkout .woocommerce-validated select,
.woocommerce-checkout .woocommerce-validated textarea {
    border-color: #68d391;
}

/* 16. Utility Classes */
.woocommerce-checkout .clear {
    clear: both;
}

/* 17. Animations */
.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2,
#order_review {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 18. Stripe Card Field Styling */
.wcpay-upe-element {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    background: #fff;
}

.wcpay-upe-element .__PrivateStripeElement {
    height: auto !important;
}


/* Sale Price Strikethrough */
.price del {
    text-decoration: line-through;
    opacity: 0.7;
    margin-right: 8px;
}

.price del bdi {
    text-decoration: line-through;
}