/* opsBlock — giỏ hàng, thanh toán, tài khoản ở chế độ Flatsome. Chỉ nạp ở 3 trang này.
   Viết theo thành phần: thanh bước → bảng giỏ → cột tổng → form thanh toán → khung đơn hàng → tài khoản. */

/* ---------- Thanh bước (Giỏ hàng › Thanh toán › Hoàn tất) ---------- */
.checkout-breadcrumbs{padding:15px 0;font-size:1.6em;line-height:1.3}
.checkout-breadcrumbs.h2{font-size:1.6em}
.checkout-breadcrumbs a{display:flex;align-items:center;color:#ccc;border-color:#ccc}
.checkout-breadcrumbs a.current,.checkout-breadcrumbs a:hover{color:#111;border-color:#111}
.checkout-breadcrumbs .divider{position:relative;top:2px;margin:0 .5em}
@media (max-width:549px){.checkout-breadcrumbs a.hide-for-small,.checkout-breadcrumbs .divider.hide-for-small{display:none}}

/* ---------- Bảng giỏ hàng & bảng đơn hàng ---------- */
.cart-wrapper,.checkout-sidebar{overflow:visible}
.shop_table .cart_item td{padding-top:15px;padding-bottom:15px}
.shop_table td.product-thumbnail{width:90px;min-width:60px;max-width:90px}
.shop_table th:is(.product-subtotal,.product-total),.shop_table td:is(.product-subtotal,.product-total){text-align:right}
.shop_table tfoot th,.cart_totals table :is(tbody,tfoot) th{line-height:1.05;letter-spacing:normal;text-transform:none}
.shop_table tfoot th{font-size:.85em}
.cart_totals table :is(tbody,tfoot) th{font-size:.9em;font-weight:400}
.shop_table tfoot td,.cart_totals td{text-align:right}
.shop_table .order-total :is(th,td){border-bottom-width:3px}
table.shop_table thead th,.cart_totals table thead th{border-bottom-width:3px}
table.shop_table td.actions{padding-top:15px;padding-left:0;padding-right:0;border-bottom:0;text-align:right}
@media (max-width:549px){
  .cart-wrapper,.checkout-sidebar{overflow:auto;-webkit-overflow-scrolling:touch}
  .shop_table{font-size:.9em;line-height:1.6;margin-bottom:1em}
  .shop_table td{font-size:.9em;line-height:1.3}
  .shop_table th{font-size:.9em;line-height:1.05;letter-spacing:.05em}
  .shop_table thead th:not(.product-name){padding:.5em}
  .shop_table thead th:last-child{padding-right:0}
  .shop_table .product-name{min-width:80px}
  .shop_table :is(th,td):is(.product-price,.product-subtotal){display:none}
  .shop_table :is(th,td).product-quantity,.shop_table .product-name .product-quantity{text-align:right}
  .shop_table td.product-remove{position:relative}
  .cart_totals table,#order_review .shop_table{table-layout:fixed}
  table.shop_table td.product-remove a.remove{position:absolute;top:10px;left:0;font-size:18px!important;line-height:18px!important}
  .shop_table .mobile-product-price{margin:.5em 0}
}

/* ---------- Cột tổng giỏ hàng ---------- */
.cart_totals>h2{display:none}
.wc-proceed-to-checkout{margin:1.5em 0}
.wc-proceed-to-checkout .checkout-button{display:block;min-width:100%;margin-right:0}
.cart-sidebar .coupon .widget-title{margin-bottom:15px;padding-bottom:10px;border-bottom:3px solid #ececec}
ul.woocommerce-shipping-methods{margin-bottom:1.3em}
ul.woocommerce-shipping-methods>li{margin-left:0;margin-bottom:0;list-style:none}
tr.shipping input{margin-top:-2px;margin-bottom:0}
tr.shipping label .amount{margin-left:.2em}
.woocommerce-shipping-destination,.woocommerce-shipping-calculator{margin:.5em 0}
.woocommerce-shipping-destination,.shipping-calculator-button{font-size:.9em;line-height:1.3}
.shipping-calculator-form p>.button{display:block;min-width:100%;margin-right:0}
tr.shipping :is(input:checked,input:hover)+label,tr.shipping label:hover{color:#111}
tr.shipping input:checked+label{font-weight:700}
.shipping-calculator-form{margin-top:5px;padding:15px 15px 10px;border-radius:5px;background-color:rgba(0,0,0,.03)}
.shipping-calculator-form .form-row{clear:both}

/* ---------- Khung có viền (cột phải) ---------- */
.col-inner.has-border{padding:30px;border:2px solid var(--fs-color-primary,var(--c-primary))}
.col-inner.is-well{padding:30px;background:#fff;box-shadow:0 1px 3px -2px rgba(0,0,0,.12),0 1px 1px rgba(0,0,0,.06)}

/* ---------- Form thanh toán ---------- */
.woocommerce-billing-fields{padding-top:15px;border-top:2px solid #ddd}
.woocommerce-billing-fields>h3,#order_review_heading,#ship-to-different-address{margin-bottom:.5em;font-size:1.1em;line-height:1.6;text-transform:uppercase;overflow:hidden}
.woocommerce-billing-fields>h3,#order_review_heading{padding-top:10px}
#ship-to-different-address label{margin-bottom:.4em;font-size:.9em;font-weight:400;line-height:1.6;text-transform:none}
.woocommerce-billing-fields__field-wrapper>.form-row{margin-bottom:.5em}
.form-row-wide{clear:both}
@media (min-width:550px){
  .form-row-first,.form-row-last{float:left;width:48%}
  .form-row-first{margin-right:4%}
}
#shipping_address_2_field>label{white-space:nowrap;opacity:0;overflow:hidden}
@media (max-width:549px){#shipping_address_2_field>label{display:none}}
.woocommerce-input-wrapper .select2-container{margin-bottom:1em}
.woocommerce-input-wrapper .select2-container{text-align:left}
.woocommerce-input-wrapper .select2-container--default .select2-selection--single,.woocommerce-input-wrapper .select2-container--default .select2-selection--single :is(.select2-selection__rendered,.select2-selection__arrow){line-height:2.507}
.woocommerce-input-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered{padding-left:0;padding-right:0}
.woocommerce-input-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow{width:30px;height:2.507em}
.woocommerce-input-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow b{border-top-color:transparent}
form.checkout .woocommerce-form__input-checkbox{margin-top:0;margin-right:8px;margin-bottom:0}

/* ---------- Khung đơn hàng + thanh toán ---------- */
#order_review .shop_table{position:relative}
/* đang cập nhật (blockUI): mờ khối + vòng quay thay lớp phủ trắng */
:is(.cart_totals,.woocommerce-cart-form,#order_review):has(.blockUI){opacity:.5}
:is(.cart_totals,.woocommerce-cart-form,#order_review) .blockUI.blockOverlay{background-color:transparent!important;opacity:.5!important}
:is(.cart_totals,.woocommerce-cart-form,#order_review) .blockUI.blockOverlay:before{content:"";position:absolute;top:50%;left:50%;width:30px;height:30px;margin:-.5em 0 0 -.5em;font-size:2em;line-height:1;text-align:center;border:3px solid rgba(0,0,0,.1);border-left-color:var(--fs-color-primary,var(--c-primary));border-radius:50%;pointer-events:none;animation:ops-spin .6s linear infinite}
.dark :is(.cart_totals,.woocommerce-cart-form,#order_review) .blockUI.blockOverlay:before{border-color:rgba(255,255,255,.1);border-left-color:rgba(255,255,255,.5)}
@keyframes ops-spin{to{transform:rotate(360deg)}}
#payment{position:relative}
#payment .wc_payment_methods>li{margin-left:0;margin-bottom:0;list-style:none}
.payment_box p{margin-bottom:1.3em;font-size:.9em;line-height:1.6}
#place_order{width:100%;min-height:2.5em;margin:0 0 1em;padding:.5em 1.2em;font-size:1.2em;line-height:1.2;letter-spacing:.03em}
.woocommerce-checkout.processing:before{content:"";position:fixed;inset:0;z-index:99;background:rgba(255,255,255,.5)}
.payment-icons .payment-icon:hover{opacity:1}

/* ---------- Tài khoản: đăng nhập / đăng ký ---------- */
.woocommerce-form-login .form-row-wide,.woocommerce-form-register .form-row-wide{clear:both}
.woocommerce-form-register .woocommerce-privacy-policy-text{margin-bottom:1.5em}
.woocommerce-form-login__submit{margin-bottom:0}
