/* Patouna – WooCommerce checkout styled like the Shopify checkout */
:root { --wml-accent: #3d5a7a; --wml-border: #dedede; --wml-text: #1a1a1a; --wml-muted: #707070; --wml-side: #f5f5f5; }
html, body.wml-wc { margin: 0; background: #fff; color: var(--wml-text); font-family: Montserrat, -apple-system, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; }
.wml-wc * { box-sizing: border-box; }
.wml-wc a { color: var(--wml-accent); }
.wml-co-header { border-bottom: 1px solid var(--wml-border); background: #fff; }
.wml-co-header__inner { max-width: 1100px; margin: 0 auto; padding: 18px 20px; display: flex; justify-content: center; }
.wml-co-logo img { display: block; max-width: 300px; width: 100%; height: auto; }
.wml-co-main { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.wml-co-footer { max-width: 1100px; margin: 0 auto; padding: 18px 20px 40px; border-top: 1px solid var(--wml-border); display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; }
.wml-co-footer a { color: var(--wml-accent); text-decoration: underline; }
.wml-wc .entry-title, .wml-wc h1.page-title { display: none; }

/* two-column grid: form left, summary right with grey side panel */
.wml-wc form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 0 56px; position: relative; }
.wml-wc form.checkout::after { content: ""; position: fixed; top: 0; bottom: 0; left: calc(50% + 40px); right: 0; background: var(--wml-side); border-left: 1px solid var(--wml-border); z-index: -1; }
.wml-wc #customer_details, .wml-wc .wml-left { grid-column: 1; padding: 32px 0 40px; }
.wml-wc #order_review_heading { display: none; }
.wml-wc #order_review { grid-column: 2; grid-row: 1 / span 3; padding: 32px 0; position: sticky; top: 0; align-self: start; }
.wml-wc .col2-set .col-1, .wml-wc .col2-set .col-2 { width: 100%; float: none; }
.wml-wc h3 { font-size: 21px; font-weight: 700; margin: 26px 0 12px; }
.wml-wc .woocommerce-billing-fields > h3:first-child { margin-top: 0; }

/* inputs */
.wml-wc .form-row { margin: 0 0 12px; padding: 0; }
.wml-wc .form-row label { font-size: 12px; color: var(--wml-muted); margin-bottom: 4px; display: block; }
.wml-wc .form-row .required { color: var(--wml-muted); }
.wml-wc input.input-text, .wml-wc select, .wml-wc textarea, .wml-wc .select2-container .select2-selection--single {
  width: 100%; height: 48px; border: 1px solid var(--wml-border); border-radius: 6px; padding: 12px 13px; font-size: 14px; background: #fff; color: var(--wml-text); font-family: inherit; }
.wml-wc .select2-container .select2-selection--single .select2-selection__rendered { line-height: 22px; padding: 0; }
.wml-wc .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; }
.wml-wc input.input-text:focus, .wml-wc select:focus { outline: none; border-color: var(--wml-accent); box-shadow: 0 0 0 1px var(--wml-accent); }
.wml-wc .form-row-first, .wml-wc .form-row-last { width: calc(50% - 6px); float: left; }
.wml-wc .form-row-last { margin-left: 12px; }
.wml-wc .form-row-wide { clear: both; }
.wml-wc .woocommerce-additional-fields { display: none; }

/* order summary */
.wml-wc table.shop_table { width: 100%; border-collapse: collapse; border: 0; }
.wml-wc table.shop_table thead { display: none; }
.wml-wc table.shop_table td, .wml-wc table.shop_table th { border: 0; padding: 8px 0; background: transparent; font-weight: 400; }
.wml-wc table.shop_table .cart_item td { padding: 10px 0; vertical-align: middle; }
.wml-wc table.shop_table .product-name { display: flex; align-items: center; gap: 14px; }
.wml-wc table.shop_table .product-name img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--wml-border); background: #fff; flex: 0 0 64px; }
.wml-wc table.shop_table .product-quantity { color: var(--wml-muted); font-weight: 600; margin-left: 4px; }
.wml-wc table.shop_table .product-total { text-align: right; white-space: nowrap; }
.wml-wc .wml-variant { color: var(--wml-muted); font-size: 12px; }
.wml-wc table.shop_table tfoot th { text-align: left; }
.wml-wc table.shop_table tfoot td { text-align: right; }
.wml-wc table.shop_table tr.order-total th, .wml-wc table.shop_table tr.order-total td { font-size: 19px; font-weight: 700; padding-top: 14px; }
.wml-wc .woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; }

/* payment */
.wml-wc #payment { background: transparent; border-radius: 0; }
.wml-wc #payment ul.payment_methods { border: 1px solid var(--wml-border); border-radius: 6px; padding: 0; margin: 0 0 18px; list-style: none; }
.wml-wc #payment ul.payment_methods > li { border-bottom: 1px solid var(--wml-border); padding: 14px 16px; margin: 0; }
.wml-wc #payment ul.payment_methods > li:last-child { border-bottom: 0; }
.wml-wc #payment div.payment_box { background: #f7f7f7; margin: 12px -16px -14px; padding: 16px; border-radius: 0; }
.wml-wc #payment div.payment_box::before { display: none; }
.wml-wc #place_order, .wml-wc .button.alt {
  width: 100%; background: var(--wml-accent) !important; color: #fff !important; border: 0; border-radius: 6px; padding: 17px 20px; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer; }
.wml-wc #place_order:hover { filter: brightness(0.95); }
.wml-wc .woocommerce-terms-and-conditions-wrapper { font-size: 12px; color: var(--wml-muted); }
.wml-wc .woocommerce-form-coupon-toggle .woocommerce-info { background: transparent; border: 0; padding: 0 0 8px; color: var(--wml-muted); font-size: 13px; }
.wml-wc .woocommerce-form-coupon-toggle .woocommerce-info::before { display: none; }
.wml-wc .woocommerce-error, .wml-wc .woocommerce-message, .wml-wc .woocommerce-info { border-radius: 6px; }

/* mobile: single column, summary on top */
@media (max-width: 999px) {
  .wml-wc form.checkout { grid-template-columns: 1fr; }
  .wml-wc form.checkout::after { display: none; }
  .wml-wc #order_review { grid-column: 1; grid-row: 1; position: static; background: var(--wml-side); margin: 0 -20px; padding: 18px 20px; border-bottom: 1px solid var(--wml-border); }
  .wml-wc #customer_details, .wml-wc .wml-left { grid-row: auto; padding-top: 24px; }
  .wml-co-logo img { max-width: 230px; }
}

.wml-wc .wml-thumb { position: relative; flex: 0 0 64px; }
.wml-wc .wml-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--wml-border); background: #fff; display: block; }
.wml-wc .wml-qty { position: absolute; top: -8px; right: -8px; background: #666; color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.wml-wc .wml-name { line-height: 1.35; font-weight: 500; }
.wml-wc #wpadminbar { display: none; } html { margin-top: 0 !important; }
.wml-co-main { position: relative; z-index: 0; } .wml-co-header { position: relative; z-index: 1; }
/* Stripe payment element: no nested grey box */
.wml-wc #payment ul.payment_methods > li.payment_method_stripe > label { display: none; }
.wml-wc #payment ul.payment_methods > li.payment_method_stripe { padding: 0; border: 0; }
.wml-wc #payment ul.payment_methods:has(> li.payment_method_stripe:only-child) { border: 0; }
.wml-wc #payment li.payment_method_stripe div.payment_box { background: transparent; margin: 0; padding: 0; }
.wml-wc #payment li.payment_method_stripe fieldset { border: 0; padding: 0; margin: 0; }
.wml-wc #payment li.payment_method_stripe input[type=radio] { display: none; }

/* spacing between address and payment; full-width order button */
.wml-wc #customer_details { padding-bottom: 0; }
.wml-wc .wml-pay { padding-top: 8px; }
.wml-wc #payment .form-row.place-order { padding: 0; margin: 0; }
.wml-wc #payment .woocommerce-privacy-policy-text p { margin: 4px 0 16px; font-size: 12px; color: var(--wml-muted); }
.wml-wc table.shop_table tfoot td { min-width: 150px; }
.wml-sum-toggle { display: none; }

/* mobile: collapsible order summary like Shopify */
@media (max-width: 999px) {
  .wml-sum-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: calc(100% + 40px); margin: 0 -20px; padding: 16px 20px; background: var(--wml-side); border: 0; border-bottom: 1px solid var(--wml-border); font: inherit; font-size: 14px; color: var(--wml-accent); cursor: pointer; text-align: left; grid-column: 1; grid-row: 1; }
  .wml-sum-toggle .wml-sum-label { display: flex; align-items: center; gap: 6px; }
  .wml-sum-toggle .wml-sum-label svg { width: 12px; height: 12px; transition: transform .2s; }
  .wml-sum-toggle.is-open .wml-sum-label svg { transform: rotate(180deg); }
  .wml-sum-toggle .wml-sum-total { color: var(--wml-text); font-size: 18px; font-weight: 700; }
  .wml-wc #order_review { grid-row: 2; display: none; }
  .wml-wc #order_review.is-open { display: block; }
  .wml-wc table.shop_table tfoot td { min-width: 0; }
}
.wml-wc table.shop_table tfoot tr { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--wml-border); }
.wml-wc table.shop_table tfoot th { flex: 0 0 auto; }
.wml-wc table.shop_table tfoot td { flex: 1 1 auto; min-width: 0 !important; }
.wml-wc table.shop_table, .wml-wc table.shop_table tbody, .wml-wc table.shop_table tfoot { display: block; width: 100%; }
.wml-wc table.shop_table tbody tr { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wml-wc table.shop_table tbody td.product-name { flex: 1 1 auto; min-width: 0; }
.wml-wc table.shop_table tbody td.product-total { flex: 0 0 auto; }
.wml-wc table.shop_table tfoot th, .wml-wc table.shop_table tfoot td, .wml-wc table.shop_table tbody td { border: 0 !important; }
.wml-wc table.shop_table tbody tr:first-child { border-top: 0; }
@media (min-width: 1000px) { .wml-wc #order_review { grid-row: 1 / span 8; } }

/* mobile: no sideways scrolling */
html, body { overflow-x: hidden; overscroll-behavior-x: none; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
fieldset { min-width: 0; max-width: 100%; }
img, iframe { max-width: 100%; }
