/* =========================
   CHECKOUT PAGE
   ========================= */

.woocommerce-checkout .woocommerce {
    width: 100%;
}

.woocommerce-checkout .woocommerce-notices-wrapper {
    margin-bottom: 24px;
}

.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-error {
    margin: 0 0 20px !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle {
    margin-bottom: 20px;
}

.woocommerce-checkout .checkout_coupon {
    margin: 16px 0 24px !important;
    padding: 18px !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 76, 129, 0.05);
}

.woocommerce-checkout .checkout_coupon p {
    margin: 0 0 14px;
}

.woocommerce-checkout .checkout_coupon .form-row-first,
.woocommerce-checkout .checkout_coupon .form-row-last {
    float: none;
    width: 100%;
    margin: 0 0 12px;
}

.woocommerce-checkout .checkout_coupon input.input-text {
    min-height: 48px;
    border: 1px solid #d1dbe8;
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
}

.woocommerce-checkout .checkout_coupon button.button {
    width: 100%;
}

.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
    margin-top: 10px;
}

.woocommerce-checkout #customer_details {
    min-width: 0;
    width: 100%;
}

.woocommerce-checkout #customer_details::after,
.woocommerce-checkout form.checkout::after {
    content: "";
    display: block;
    clear: both;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    float: none;
    width: 100%;
    margin: 0 0 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(15, 76, 129, 0.05);
    box-sizing: border-box;
}

.woocommerce-checkout h3 {
    margin: 0 0 22px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: #163a63;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.woocommerce-checkout .form-row {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.woocommerce-checkout .form-row-wide,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row-wide,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper .form-row-wide {
    grid-column: 1 / -1;
}

.woocommerce-checkout label {
    display: block;
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #243b53;
}

.woocommerce-checkout .required {
    color: #d7263d;
    font-weight: 700;
    text-decoration: none;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid #d1dbe8;
    border-radius: 14px;
    background: #fff;
    padding: 0 16px;
    color: #1f2937;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: none;
}

.woocommerce-checkout textarea {
    min-height: 130px;
    padding: 14px 16px;
    resize: vertical;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: #0f4c81;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.10);
}

.woocommerce-checkout .select2-container {
    width: 100% !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single {
    min-height: 52px;
    border: 1px solid #d1dbe8;
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #fff;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal;
    color: #1f2937;
    padding-left: 0;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 10px;
}

.woocommerce-checkout .woocommerce-invalid input.input-text,
.woocommerce-checkout .woocommerce-invalid select,
.woocommerce-checkout .woocommerce-invalid textarea,
.woocommerce-checkout .woocommerce-invalid .select2-selection {
    border-color: #dc2626 !important;
}

.woocommerce-checkout .woocommerce-validated input.input-text,
.woocommerce-checkout .woocommerce-validated select,
.woocommerce-checkout .woocommerce-validated textarea,
.woocommerce-checkout .woocommerce-validated .select2-selection {
    border-color: #16a34a !important;
}

/* Right order column */
.woocommerce-checkout #order_review_heading {
    margin: 0;
    padding: 24px 24px 0;
    font-size: 22px;
    font-weight: 700;
    color: #163a63;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 12px 30px rgba(15, 76, 129, 0.05);
    box-sizing: border-box;
}

.woocommerce-checkout #order_review {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 0;
    border-radius: 0 0 24px 24px;
    padding: 0 24px 24px;
    box-shadow: 0 12px 30px rgba(15, 76, 129, 0.05);
    box-sizing: border-box;
    width: 100%;
    display: block;
    overflow: visible;
}

.woocommerce-checkout-review-order-table,
.woocommerce-checkout #order_review table.shop_table {
    width: 100% !important;
    border: 0;
    border-collapse: collapse;
    margin: 0 0 20px;
    background: transparent;
    box-shadow: none;
}

.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
    padding: 14px 0;
    border-bottom: 1px solid #e8eef5;
    text-align: left;
    vertical-align: top;
    color: #243b53;
}

.woocommerce-checkout #order_review table.shop_table thead th {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5b6b7a;
    background: transparent;
}

.woocommerce-checkout #order_review table.shop_table tbody td.product-name {
    font-weight: 600;
}

.woocommerce-checkout #order_review table.shop_table tfoot th {
    font-weight: 700;
    color: #163a63;
}

.woocommerce-checkout #order_review table.shop_table tfoot td {
    font-weight: 700;
    color: #111827;
}

.woocommerce-checkout .woocommerce-checkout-payment {
    background: #f8fbff !important;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    padding: 18px;
    margin-top: 18px;
}

.woocommerce-checkout .woocommerce-checkout-payment ul.payment_methods {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 0 14px !important;
}

.woocommerce-checkout .woocommerce-checkout-payment ul.payment_methods li {
    list-style: none;
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    background: #fff;
}

.woocommerce-checkout .woocommerce-checkout-payment ul.payment_methods li:last-child {
    margin-bottom: 0;
}

.woocommerce-checkout .woocommerce-checkout-payment div.payment_box {
    background: #eef6fd !important;
    color: #243b53;
    border-radius: 12px;
    margin-top: 12px !important;
    padding: 14px 16px !important;
}

.woocommerce-checkout .woocommerce-checkout-payment div.payment_box::before {
    display: none;
}

.woocommerce-checkout .place-order {
    padding: 0 !important;
    margin-top: 18px !important;
}

.woocommerce-checkout .place-order .button,
.woocommerce-checkout .place-order #place_order {
    width: 100%;
    min-height: 54px;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #163d69 0%, #0f5ea8 100%) !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    border: 0 !important;
    box-shadow: 0 10px 24px rgba(15, 76, 129, 0.18) !important;
}

.woocommerce-checkout .place-order .button:hover,
.woocommerce-checkout .place-order #place_order:hover {
    background: linear-gradient(135deg, #102f50 0%, #0d4c85 100%) !important;
}

.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .form-row.terms {
    font-size: 14px;
    color: #5b6b7a;
}

.woocommerce-checkout .col2-set,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-additional-fields {
    width: 100%;
}

@media (max-width: 1100px) {
    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
    }

    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        position: static;
    }
}

@media (max-width: 767px) {
    .woocommerce-checkout #customer_details .col-1,
    .woocommerce-checkout #customer_details .col-2,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        padding-left: 18px;
        padding-right: 18px;
    }

    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
    .woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
        grid-template-columns: 1fr;
    }

    .woocommerce-checkout h3,
    .woocommerce-checkout #order_review_heading {
        font-size: 20px;
    }
}