/* =========================
   Totals (Cart + Checkout)
   ========================= */

/* Non-shipping totals rows */
.woocommerce-checkout .cart-subtotal,
.woocommerce-checkout .tax-total,
.woocommerce-checkout .order-total,
.woocommerce-cart .cart-subtotal,
.woocommerce-cart .tax-total,
.woocommerce-cart .order-total {
    display: flex !important;
    justify-content: space-between !important;
}

/* =========================
   Checkout – Order Review Table
   ========================= */

.shop_table.woocommerce-checkout-review-order-table {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.shop_table.woocommerce-checkout-review-order-table thead tr {
    display: flex !important;
    justify-content: space-between !important;
}

.woocommerce-checkout-review-order > table > tbody > tr {
    display: flex !important;
    justify-content: space-between !important;
    border-bottom: 1px solid var(--neutral-light) !important;
}

#brxe-vbuvtk .shop_table tbody td.product-name,
#brxe-vbuvtk .shop_table tbody td.product-total {
    border: none !important;
}

/* =========================
   Shipping Section (Cart + Checkout)
   ========================= */

.woocommerce-shipping-totals.shipping, .recurring-total.shipping  {
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid var(--neutral-light) !important;
    border-radius: var(--radius) !important;
    padding: 0 10px !important;
    margin-bottom: 20px !important;
    background: white !important;
}

/* If you have a custom shipping notice row, keep its background clear */
.woocommerce-shipping-totals.shipping
.shipping-notice-tr {
    background-color: transparent !important;
}

.woocommerce-shipping-totals.shipping th, .recurring-total.shipping  th {
    display: inline-flex !important;
    padding: 5px 7px !important;
    color: #787878 !important;
    text-transform: initial !important;
    font-weight: 700 !important;
    align-self: start !important;
    margin-top: -16px !important;
    background-color: var(--white);
}

.woocommerce-shipping-methods, .shipping.recurring-total ul {
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: 1px !important;
    color: var(--base-medium) !important;
    gap: 3px !important;
}

.woocommerce-shipping-methods label, .recurring-total.shipping label {
    font-weight: 500 !important;
    font-style: normal !important;
}

.woocommerce-shipping-methods li label, .recurring-total.shipping li label {
    display: inline-flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    margin-bottom: 0 !important;
    padding: 10px 15px !important;
    border: 1px solid var(--neutral-light) !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 5px 8px rgba(0,0,0,0.05);
}

.woocommerce-shipping-methods li label:hover, .recurring-total.shipping li label:hover {
    border-color: var(--primary) !important;
    background: #ffffff !important;
    color: var(--primary) !important;
	cursor: pointer !important;
    box-shadow: none;
}

ul.woocommerce-shipping-methods li input, .recurring-total.shipping li input {
    display: none !important;
}

ul.woocommerce-shipping-methods li input[type="radio"]:checked + label, .recurring-total.shipping li input[type="radio"]:checked + label {
    border: 1px solid var(--primary) !important;
    color: var(--white) !important;
    background: var(--primary) !important;
    box-shadow: none;
}

ul.woocommerce-shipping-methods li:active {
    border-color: var(--primary) !important;
}

/* =========================
	Recurring Adjustments for Subscriptions
   ========================= */

.recurring-total.shipping td {
	padding: 10px 0 !important;
}

.shipping.recurring-total ul li {
	text-indent: 0;
	padding: 0;
}

.shipping.recurring-total ul .amount {
    font-weight: 700;
    flex-grow: 1 !important;
    justify-content: end !important;
    align-items: center !important;
    display: flex !important;
    padding-right: 5px !important;
}

/* =========================
   Shipping Notice Row (Cart + Checkout)
   ========================= */

.shipping-notice-tr {
    display: flex !important;
    width: 100% !important;
    border-radius: 0 0 5px 5px !important;
    border: 1px solid var(--neutral-light) !important;
    border-top: none !important;
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

/* =========================
   Order Duration Row (Custom)
   ========================= */

.order-duration {
    width: 100% !important;
    border-top: 1px solid var(--neutral-light) !important;
    font-weight: 500 !important;
    text-transform: initial !important;
    color: var(--neutral-semi-light) !important;
}

#brxe-vbuvtk .shop_table tfoot th.order-duration {
    padding: 10px 5px 10px 15px !important;
}

/* =========================
   Tablet Tweaks
   ========================= */

@media screen and (min-width: 768px) and (max-width: 926px) {
    .woocommerce-shipping-methods li:nth-child(3) label {
        gap: 40px !important;
    }
}
