/* Tailvale checkout 1 trang (mau: Gossby / 9prints) */
body.woocommerce-checkout .woocommerce-form-login-toggle,
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout form.checkout_coupon,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout #ship-to-different-address,
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout .woocommerce-account-fields,
body.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout #billing_country_field,
body.woocommerce-checkout #billing_first_name_field,
body.woocommerce-checkout #billing_last_name_field,
body.woocommerce-checkout .woocommerce-privacy-policy-text,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row.validate-required,
body.woocommerce-checkout table.shop_table thead { display: none !important; }

/* khung 2 cot: trai = lien he + dia chi + thanh toan, phai = tom tat don */
body.woocommerce-checkout form.checkout { display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-rows: auto auto 1fr auto; column-gap: 48px; align-items: start; max-width: 1080px; margin: 0 auto; }
body.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / 4; width: 100% !important; float: none !important; }
body.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; float: none !important; width: 100% !important; margin: 0 0 12px !important; }
body.woocommerce-checkout #order_review { display: contents; }
body.woocommerce-checkout table.shop_table { grid-column: 2; grid-row: 2; width: 100% !important; margin: 0 !important; background: #fff; border: 1px solid #e5e7eb !important; border-radius: 12px; overflow: hidden; border-collapse: separate; }
body.woocommerce-checkout .tv-promo { grid-column: 1; grid-row: 4; }
body.woocommerce-checkout #payment { grid-column: 1; grid-row: 5; margin-top: 8px; }
body.woocommerce-checkout .col2-set .col-1, body.woocommerce-checkout .col2-set .col-2 { width: 100% !important; float: none !important; }

/* tieu de muc */
body.woocommerce-checkout h3.tv-sec, body.woocommerce-checkout #order_review_heading { font-size: 20px !important; font-weight: 700; margin: 22px 0 12px !important; color: #0b1f44; }
body.woocommerce-checkout #customer_details h3.tv-sec:first-child, body.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper > h3.tv-sec:first-child { margin-top: 0 !important; }

/* o nhap */
body.woocommerce-checkout .form-row { margin: 0 0 12px !important; padding: 0 !important; }
body.woocommerce-checkout .form-row > label { font-size: 13px !important; margin: 0 0 4px !important; line-height: 1.2 !important; color: #374151; }
body.woocommerce-checkout .form-row input.input-text, body.woocommerce-checkout .form-row select, body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .select2-container .select2-selection--single { min-height: 48px !important; padding: 12px 14px !important; font-size: 16px !important; border: 1px solid #d1d5db !important; border-radius: 8px !important; background: #fff; box-sizing: border-box; width: 100%; }
body.woocommerce-checkout .form-row input:focus, body.woocommerce-checkout .form-row select:focus { border-color: #0b1f44 !important; outline: none; box-shadow: 0 0 0 2px rgba(11,31,68,.12); }
body.woocommerce-checkout #billing_state_field { float: left !important; width: calc(50% - 6px) !important; clear: left !important; }
body.woocommerce-checkout #billing_postcode_field { float: right !important; width: calc(50% - 6px) !important; clear: none !important; }
body.woocommerce-checkout .tv-country { clear: both; font-size: 14px; color: #374151; margin: 0 0 8px; }

/* o dan dia chi */
.tv-paste-box { border: 1px dashed #9ca3af; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; background: #f9fafb; }
.tv-paste-box summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #0b1f44; }
.tv-paste-box textarea { width: 100%; margin: 10px 0 8px; padding: 10px 12px; font-size: 15px; border: 1px solid #d1d5db; border-radius: 8px; box-sizing: border-box; }
.tv-btn-sec { background: #0b1f44; color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; font-size: 15px; cursor: pointer; }
.tv-paste-msg { margin-top: 8px; font-size: 13px; color: #166534; }
.tv-paste-msg.tv-warn, .tv-promo-msg.tv-warn { color: #b91c1c; }

/* ma giam gia */
.tv-promo { margin: 4px 0 6px; border-top: 1px solid #e5e7eb; padding-top: 12px; }
.tv-promo summary { cursor: pointer; font-size: 15px; font-weight: 600; color: #0b1f44; }
.tv-promo-row { display: flex; gap: 8px; margin-top: 10px; }
.tv-promo-input { flex: 1; min-height: 46px; padding: 10px 14px; font-size: 16px; border: 1px solid #d1d5db; border-radius: 8px; }
.tv-promo-apply { white-space: nowrap; }
.tv-promo-msg { font-size: 13px; margin-top: 6px; color: #166534; }

/* bang tom tat */
body.woocommerce-checkout table.shop_table td, body.woocommerce-checkout table.shop_table th { padding: 10px 14px !important; font-size: 14px !important; border-color: #eef0f3 !important; }

/* thanh toan */
body.woocommerce-checkout #payment { background: transparent !important; padding: 0 !important; border: 0 !important; }
body.woocommerce-checkout #payment ul.payment_methods { padding: 0 !important; border: 0 !important; margin: 0 0 12px !important; }
body.woocommerce-checkout #payment ul.payment_methods > li { border: 1px solid #d1d5db; border-radius: 10px; padding: 14px 16px !important; margin: 0 0 10px !important; background: #fff; list-style: none; }
body.woocommerce-checkout #payment ul.payment_methods > li:has(input:checked) { border-color: #0b1f44; box-shadow: 0 0 0 1px #0b1f44; }
body.woocommerce-checkout #payment ul.payment_methods > li > label { font-weight: 700; font-size: 16px; color: #0b1f44; }
body.woocommerce-checkout #payment div.payment_box { background: #f3f6fb !important; border-radius: 8px; padding: 10px 12px !important; margin: 10px 0 0 !important; font-size: 14px; }
body.woocommerce-checkout #payment div.payment_box::before { display: none !important; }
body.woocommerce-checkout #place_order { width: 100%; min-height: 54px; font-size: 18px !important; font-weight: 700; border-radius: 10px; background: #f43f5e !important; color: #fff !important; }
.tv-agree { font-size: 13px; color: #4b5563; margin: 10px 0 0; }
.tv-agree a { text-decoration: underline; }
.tv-secure { font-size: 12px; color: #6b7280; margin-top: 6px; }

/* Buy it now (trang san pham) */
.tv-buy-now { display: block; width: 100%; margin-top: 10px !important; background: #0b1f44 !important; color: #fff !important; border-radius: 8px; min-height: 48px; font-weight: 700; }

@media (max-width: 800px) {
  body.woocommerce-checkout form.checkout { display: block !important; max-width: 100%; }
  body.woocommerce-checkout #order_review { display: block; }
  body.woocommerce-checkout table.shop_table { margin: 0 0 14px !important; }
}

/* o State (select2) cung chieu cao voi cac o khac */
body.woocommerce-checkout .form-row input.input-text { height: 50px !important; }
body.woocommerce-checkout .select2-container .select2-selection--single { height: 50px !important; min-height: 50px !important; padding: 0 14px !important; display: flex !important; align-items: center; }
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0 !important; line-height: 1.2 !important; font-size: 16px; }
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 50px !important; top: 0 !important; right: 10px !important; }

/* thanh toan: bo o chon, hien san 2 nut Pay with PayPal + Debit or Credit Card */
body.woocommerce-checkout #payment ul.payment_methods { display: none !important; }
body.woocommerce-checkout #payment { margin-top: 0 !important; }
body.woocommerce-checkout .ppc-button-wrapper { grid-column: 1; width: 100%; }
body.woocommerce-checkout .ppc-button-wrapper:has(#ppc-button-ppcp-gateway-v6) { grid-row: 6; }
body.woocommerce-checkout .ppc-button-wrapper:has(#ppc-button-ppcp-card-button-gateway-v6) { grid-row: 7; margin-top: 10px; }
body.woocommerce-checkout #ppc-button-ppcp-gateway-v6 { display: flex !important; }
body.woocommerce-checkout #ppc-button-ppcp-card-button-gateway-v6 { display: block !important; }
body.woocommerce-checkout #payment .form-row.place-order { padding: 0 !important; margin: 0 !important; }
.tv-paynote { grid-column: 1; font-size: 12px; color: #6b7280; margin: 8px 0 0; text-align: center; }
body.woocommerce-checkout #ppc-button-ppcp-card-button-gateway-v6 { margin-top: 12px !important; }

/* desktop: nut card nam ngay duoi nut PayPal (cot trai) */
body.woocommerce-checkout #ppc-button-ppcp-card-button-gateway-v6 { grid-column: 1 !important; grid-row: 7 !important; width: 100%; margin-top: 12px !important; }
body.woocommerce-checkout .ppc-button-wrapper:has(#ppc-button-ppcp-gateway-v6) { grid-column: 1 !important; grid-row: 6 !important; }
