.post-12 .entry-header .entry-title,
.woocommerce-checkout .primary-navigation,
.woocommerce-checkout .header-icons,
.woocommerce-checkout .footer-row.footer-row-1,
.woocommerce-checkout .footer-row.footer-row-2,
.woocommerce-checkout .footer-bottom-widget {
    display: none;
  }
/* Checkout Page 70/30 Layout */
.woocommerce-checkout .wlo-checkout-layout {
  display: flex;
  flex-wrap: wrap; /* Allow stacking on smaller screens */
  margin-left: -15px; /* Adjust gutters as needed */
  margin-right: -15px;
  /* align-items: flex-start; */ /* Uncomment if columns have different heights */
}

.woocommerce-checkout .wlo-checkout-main {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

.woocommerce-checkout .wlo-checkout-sidebar {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin-top: 30px; /* Space when stacked */
}

/* Apply columns AND sticky positioning on larger screens */
@media (min-width: 992px) { /* Adjust breakpoint as needed */
  .woocommerce-checkout .wlo-checkout-main {
	flex: 0 0 50%; /* Don't grow, don't shrink, basis 70% */
	max-width: 50%;
	padding-right: 30px; /* Add extra padding between columns */
  }
  .woocommerce-checkout .wlo-checkout-sidebar {
	flex: 0 0 40%; /* Don't grow, don't shrink, basis 30% */
	max-width: 40%;
	margin-top: 0;
	position: sticky;
	/* Adjust based on header height + desired spacing */
	top: 20px;
	align-self: flex-start; /* Keep sidebar aligned to top */
  }
}

/* Checkout Form Field Styling (within .wlo-checkout-main) */
.woocommerce-checkout .wlo-checkout-main .form-row {
    padding: 0; /* Reset default WC padding */
    margin-bottom: 15px; /* Consistent spacing below rows */
}

/* Standard Input Fields */
.woocommerce-checkout .wlo-checkout-main .input-text,
.woocommerce-checkout .wlo-checkout-main input[type="text"],
.woocommerce-checkout .wlo-checkout-main input[type="email"],
.woocommerce-checkout .wlo-checkout-main input[type="tel"],
.woocommerce-checkout .wlo-checkout-main input[type="password"],
.woocommerce-checkout .wlo-checkout-main input[type="number"],
.woocommerce-checkout .wlo-checkout-main textarea,
.woocommerce-checkout .wlo-checkout-main .select2-container .select2-selection--single {
    display: block;
    width: 100%;
    padding: 10px 15px; /* Adjust padding */
    font-size: 1em;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none; /* Remove default system appearance */
    border-radius: 6px; /* Consistent border radius */
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    box-shadow: none; /* Remove default WC shadows */
    height: auto; /* Reset default height for select2 */
}

/* Select2 Arrow for consistency */
.woocommerce-checkout .wlo-checkout-main .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + 20px + 2px); /* Match input height */
    right: 10px;
}
.woocommerce-checkout .wlo-checkout-main .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    border-width: 5px 4px 0 4px;
}
.woocommerce-checkout .wlo-checkout-main .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #888 transparent;
    border-width: 0 4px 5px 4px;
}

/* Apply focus styles */
.woocommerce-checkout .wlo-checkout-main .input-text:focus,
.woocommerce-checkout .wlo-checkout-main input[type="text"]:focus,
.woocommerce-checkout .wlo-checkout-main input[type="email"]:focus,
.woocommerce-checkout .wlo-checkout-main input[type="tel"]:focus,
.woocommerce-checkout .wlo-checkout-main input[type="password"]:focus,
.woocommerce-checkout .wlo-checkout-main input[type="number"]:focus,
.woocommerce-checkout .wlo-checkout-main textarea:focus,
.woocommerce-checkout .wlo-checkout-main .select2-container--open .select2-selection--single {
    border-color: #86b7fe; /* Example focus color */
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* Example focus glow */
}

/* Textarea height */
.woocommerce-checkout .wlo-checkout-main textarea {
    min-height: calc(1.5em + 20px + 2px); /* Match input height */
}

/* Styling for form labels */
.woocommerce-checkout .wlo-checkout-main .form-row label {
    display: block;
    margin-bottom: 5px; /* Space below label */
    font-weight: 600;
    color: #495057;
}
.woocommerce-checkout .wlo-checkout-main .form-row label .required {
    color: #dc3545; /* Red asterisk */
    font-weight: normal; /* Don't double-bold */
    padding-left: 2px;
}

/* Adjustments for half-width fields (form-row-first, form-row-last) */
.woocommerce-checkout .wlo-checkout-main .form-row-first,
.woocommerce-checkout .wlo-checkout-main .form-row-last {
    width: 48%; /* Default WC width is often slightly off */
    overflow: visible;
    /* Add clear: both if floats are still causing issues below */
}
.woocommerce-checkout .wlo-checkout-main .form-row-first {
    float: left;
}
.woocommerce-checkout .wlo-checkout-main .form-row-last {
    float: right;
}
/* Clear floats after rows with floated elements */
.woocommerce-checkout .wlo-checkout-main #customer_details .col-1::after,
.woocommerce-checkout .wlo-checkout-main #customer_details .col-2::after,
.woocommerce-checkout .wlo-checkout-main .woocommerce-billing-fields__field-wrapper::after,
.woocommerce-checkout .wlo-checkout-main .woocommerce-shipping-fields__field-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* Specific field adjustments if needed */
.woocommerce-checkout .wlo-checkout-main #billing_country_field .select2-container,
.woocommerce-checkout .wlo-checkout-main #shipping_country_field .select2-container {
    width: 100% !important;
}

/* Order Review Styling (ensure it fits sidebar) */
.woocommerce-checkout .wlo-checkout-sidebar #order_review {
    background-color: #f8f9fa; /* Optional background for review */
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.woocommerce-checkout .wlo-checkout-sidebar #order_review_heading {
    font-size: 1.5em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

/* Adjust table styling within order review if needed */
.woocommerce-checkout .wlo-checkout-sidebar table.shop_table {
   border: none;
   border-radius: 0;
   background-color: transparent;
   width: 100%;
}

.woocommerce-checkout .wlo-checkout-sidebar table.shop_table th,
.woocommerce-checkout .wlo-checkout-sidebar table.shop_table td {
    border: none;
    padding: 8px 0;
}
.woocommerce-checkout .wlo-checkout-sidebar table.shop_table tfoot th {
    font-weight: 600;
    text-align: left;
}
.woocommerce-checkout .wlo-checkout-sidebar table.shop_table tfoot td {
    text-align: right;
    font-weight: 600;
}
.woocommerce-checkout .wlo-checkout-sidebar table.shop_table tfoot .order-total th,
.woocommerce-checkout .wlo-checkout-sidebar table.shop_table tfoot .order-total td {
    font-size: 1.1em;
    font-weight: bold;
    border-top: 1px solid #dee2e6;
    color: #212529;
}

/* Payment Methods styling */
.woocommerce-checkout .wlo-checkout-sidebar #payment {
    background-color: transparent; /* Remove default WC background */
    border-radius: 0;
    padding: 0;
    margin-top: 20px;
}
.woocommerce-checkout .wlo-checkout-sidebar #payment ul.payment_methods {
    padding: 0;
    border: none;
}
.woocommerce-checkout .wlo-checkout-sidebar #payment li.wc_payment_method {
    background-color: #fff; /* White background for each method */
    margin-bottom: 10px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}
.woocommerce-checkout .wlo-checkout-sidebar #payment div.payment_box {
    background-color: #f8f9fa; /* Slightly different background for box */
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    box-shadow: none;
}
.woocommerce-checkout .wlo-checkout-sidebar #payment div.payment_box::before {
    border-bottom-color: #f8f9fa; /* Match box background */
}

/* Place Order Button */
.woocommerce-checkout .wlo-checkout-sidebar .place-order {
    margin-top: 20px;
    padding: 0;
}
.woocommerce-checkout .wlo-checkout-sidebar .place-order .button {
   /* Inherit button styles from cart or define here */
   background-color: #E1723A;
   color: #fff;
   border: none;
   border-radius: 50px;
   padding: 18px 20px 18px 25px; /* Slightly adjust padding if icon makes it feel cramped */
   font-size: 1.1em;
   font-weight: 600;
   text-align: center;
   display: block;
   width: 100%;
   transition: background-color 0.2s ease;
}

.woocommerce-checkout .wlo-checkout-sidebar .place-order .button:hover {
    background-color: #AD582C;
}

/* Remove the ::before rule entirely */
/*
.woocommerce-checkout .wlo-checkout-sidebar .place-order .button::before {
   content: '';
   margin: 0;
   display: none;
}
*/

/* Style the icon inside the button */
.woocommerce-checkout .wlo-checkout-sidebar .place-order .button i.fa-lock {
    margin-right: 8px; /* Space between icon and text */
    /* Add other icon styles if needed */
}

/* --- Checkout Page: Stack Billing & Shipping in Main Column --- */

/* Target the container that usually holds the two columns */
.woocommerce-checkout .wlo-checkout-main #customer_details.col2-set {
    width: 100%; /* Override any fixed width */
    float: none; /* Remove float if applied */
    margin: 0; /* Reset margins */
}

/* Force col-1 (Billing) to be full width */
.woocommerce-checkout .wlo-checkout-main #customer_details .col-1 {
    float: none; /* Remove the float */
    width: 100%; /* Take full width */
    max-width: 100%; /* Ensure it takes full width */
    margin-bottom: 20px; /* Add space below billing before shipping */
    padding: 0; /* Reset WC default padding if needed */
}

/* Force col-2 (Shipping) to be full width */
.woocommerce-checkout .wlo-checkout-main #customer_details .col-2 {
    float: none; /* Remove the float */
    width: 100%; /* Take full width */
    max-width: 100%; /* Ensure it takes full width */
    padding: 0; /* Reset WC default padding if needed */
    margin: 0; /* Reset margins */
}

/* Clear floats just in case anything inside col-1/col-2 was floated */
.woocommerce-checkout .wlo-checkout-main #customer_details .col-1::after,
.woocommerce-checkout .wlo-checkout-main #customer_details .col-2::after {
    content: "";
    display: table;
    clear: both;
}

/* --- End Stack Billing & Shipping --- */

/* --- Checkout Order Review Thumbnail Styling --- */

/* Container for thumbnail + details within the product cell */
.woocommerce-checkout .wlo-checkout-sidebar .woocommerce-checkout-review-order-table .product-name .wlo-checkout-product-info {
    display: flex;
    align-items: center; /* Vertically align thumbnail and text */
    padding: 5px 0; /* Add some vertical padding to the row */
}

/* Thumbnail Wrapper */
.woocommerce-checkout .wlo-checkout-sidebar .woocommerce-checkout-review-order-table .product-name .wlo-checkout-product-thumbnail {
    flex: 0 0 50px; /* Fixed width for thumbnail */
    max-width: 50px;
    margin-right: 10px; /* Space between thumbnail and details */
}

.woocommerce-checkout .wlo-checkout-sidebar .woocommerce-checkout-review-order-table .product-name .wlo-checkout-product-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

/* Product Details Wrapper (Name, Qty, Meta) */
.woocommerce-checkout .wlo-checkout-sidebar .woocommerce-checkout-review-order-table .product-name .wlo-checkout-product-details {
    flex: 1 1 auto; /* Allow details to take remaining space */
    font-size: 0.95em; /* Slightly adjust font size if needed */
    line-height: 1.4;
}

.woocommerce-checkout .wlo-checkout-sidebar .woocommerce-checkout-review-order-table .product-name .wlo-checkout-product-name {
    font-weight: 600; /* Make product name slightly bolder */
    color: #333;
}

/* Adjust quantity display if needed */
.woocommerce-checkout .wlo-checkout-sidebar .woocommerce-checkout-review-order-table .product-name .product-quantity {
    /* Styles for quantity, e.g., font-size: 0.9em; */
}

/* Adjust variation/meta data display */
.woocommerce-checkout .wlo-checkout-sidebar .woocommerce-checkout-review-order-table .product-name .wc-item-meta {
    font-size: 0.85em;
    color: #666;
    margin-top: 3px;
    padding-left: 0; /* Reset default padding */
    list-style: none;
}
.woocommerce-checkout .wlo-checkout-sidebar .woocommerce-checkout-review-order-table .product-name .wc-item-meta li {
    margin-bottom: 2px;
}

/* --- End Order Review Thumbnail Styling --- */

/* --- Checkout Order Review Item Separator (Applied to TD) --- */

/* Target the table cells within each cart item row */
.woocommerce-checkout .wlo-checkout-sidebar .woocommerce-checkout-review-order-table tbody tr.cart_item td {
    border-bottom: 1px solid #dee2e6; /* Add bottom border to each cell */
}

.woocommerce-logo-upload.form-row {
    border: 1px solid #dee2e6;
    border-radius: 8px; 
    padding: 20px !important;
}
/* Optional: Remove border from the cells in the very last item row if desired */
.woocommerce-checkout .wlo-checkout-sidebar .woocommerce-checkout-review-order-table tbody tr.cart_item:last-child td {
   /* border-bottom: none; */ /* Uncomment this line to remove border from last item's cells */
}

/* Ensure padding is sufficient */
.woocommerce-checkout .wlo-checkout-sidebar .woocommerce-checkout-review-order-table tbody td {
     padding-top: 10px;
     padding-bottom: 10px;
}

/* If the table has border-collapse: collapse, ensure cell borders are still visible */
.woocommerce-checkout .wlo-checkout-sidebar .woocommerce-checkout-review-order-table {
   /* border-collapse: separate; */ /* Uncomment ONLY if you suspect collapsing issues */
   /* border-spacing: 0; */      /* Ensure no spacing if using separate */
}

/* --- Checkout Logo Upload Styling --- */

/* Container for the logo upload row */
.woocommerce-checkout .wlo-checkout-main .woocommerce-logo-upload.form-row {
    border: 1px solid #e9ecef;      /* Optional border around the section */
    border-radius: 8px;             /* Rounded corners */
    padding: 20px;                  /* Padding inside */
    background-color: #f8f9fa;      /* Light background */
    margin-bottom: 20px;            /* Space below */
}