/* HOG Storefront: cart, checkout, account and order confirmation (standard WooCommerce markup). */

/* Steps */
.steps { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 16px; padding: 0; list-style: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 11px; }
.steps .is-current { color: var(--ink); }
.steps .is-current .step-number { border-color: var(--purple); background: var(--purple); color: var(--white); }
.steps .is-done .step-number { border-color: var(--purple); color: var(--purple); }
.steps li a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.page-wide h1 { font-size: clamp(30px, 3.3vw, 46px); }

/* Notices */
body.hog-flow .woocommerce-message, body.hog-flow .woocommerce-info, body.hog-flow .woocommerce-error { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--lilac); color: var(--ink); font-size: 14px; list-style: none; }
body.hog-flow .woocommerce-message::before, body.hog-flow .woocommerce-info::before, body.hog-flow .woocommerce-error::before { content: none; }
body.hog-flow .woocommerce-message { border-color: var(--green); background: #f0f7f2; }
body.hog-flow .woocommerce-error { border-color: var(--red); background: #fdf3f5; }
body.hog-flow .woocommerce-error ul { margin: 0; padding: 0; list-style: none; }
body.hog-flow .woocommerce-error li { margin: 3px 0; }

/* Buttons */
body.hog-flow .woocommerce a.button, body.hog-flow .woocommerce button.button, body.hog-flow .woocommerce input.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin: 0; padding: 0 18px; border: 1px solid #d8cdd6; border-radius: 8px; background: var(--white); color: var(--purple); font-size: 14px; font-weight: 600; line-height: 1.25; }
body.hog-flow .woocommerce a.button:hover, body.hog-flow .woocommerce button.button:hover, body.hog-flow .woocommerce input.button:hover { border-color: var(--purple); background: var(--lilac); color: var(--purple); }
body.hog-flow .woocommerce .button:disabled, body.hog-flow .woocommerce .button:disabled[disabled] { padding: 0 18px; opacity: .45; }
body.hog-flow .woocommerce .button.alt, body.hog-flow .woocommerce a.checkout-button.button, body.hog-flow .woocommerce #payment #place_order, body.hog-flow .woocommerce .return-to-shop a.button { border: 0; background: var(--yellow); color: var(--on-yellow); font-weight: 600; }
body.hog-flow .woocommerce .button.alt:hover, body.hog-flow .woocommerce a.checkout-button.button:hover, body.hog-flow .woocommerce #payment #place_order:hover, body.hog-flow .woocommerce .return-to-shop a.button:hover { background: var(--yellow-hover); color: var(--on-yellow); }

/* Fields */
body.hog-flow .woocommerce form .form-row { margin: 0 0 14px; padding: 0; }
body.hog-flow .woocommerce form .form-row label { margin-bottom: 5px; font-size: 13px; font-weight: 600; }
body.hog-flow .woocommerce input.input-text, body.hog-flow .woocommerce select, body.hog-flow .woocommerce textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background-color: var(--white); line-height: 1.4; }
body.hog-flow .woocommerce textarea { min-height: 88px; }
body.hog-flow .woocommerce input.input-text:focus, body.hog-flow .woocommerce select:focus, body.hog-flow .woocommerce textarea:focus { border-color: var(--purple); outline: 3px solid rgba(146, 39, 144, .18); outline-offset: 0; }
body.hog-flow .woocommerce table.cart td.actions .coupon input.input-text:focus-visible { outline: 3px solid #b35cb3; outline-offset: 1px; }
body.hog-flow .woocommerce .form-row.woocommerce-invalid input.input-text, body.hog-flow .woocommerce .form-row.woocommerce-invalid select, body.hog-flow .woocommerce .form-row.woocommerce-invalid .select2-selection { border-color: var(--red); }
body.hog-flow .woocommerce .password-input { display: block; width: 100%; }
body.hog-flow .select2-container .select2-selection--single { height: 48px; border: 1px solid var(--line-strong); border-radius: 8px; }
body.hog-flow .select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: 12px; line-height: 46px; }
body.hog-flow .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 6px; }
body.hog-flow .woocommerce fieldset { margin: 0 0 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }

/* Tables */
body.hog-flow .woocommerce table.shop_table { width: 100%; margin: 0 0 16px; border: 0; border-radius: 0; border-collapse: collapse; }
body.hog-flow .woocommerce table.shop_table th, body.hog-flow .woocommerce table.shop_table td { padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
body.hog-flow .woocommerce table.shop_table tr > :last-child:not(:first-child) { padding-left: 14px; text-align: right; }

/* Cart */
body.hog-flow .woocommerce table.cart thead { display: none; }
body.hog-flow .woocommerce table.cart, body.hog-flow .woocommerce table.cart tbody { display: block; }
body.hog-flow .woocommerce table.cart tr.cart_item { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "thumb name remove" "thumb price price" "thumb quantity subtotal"; column-gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
body.hog-flow .woocommerce table.cart tr.cart_item td { display: block; width: auto; min-width: 0; padding: 0; border: 0; background: none; text-align: left; }
body.hog-flow .woocommerce table.cart tr.cart_item td::before { content: none; }
body.hog-flow .woocommerce table.cart td.product-thumbnail { grid-area: thumb; display: block; }
body.hog-flow .woocommerce table.cart td.product-thumbnail img { display: block; width: 84px; height: 84px; border: 1px solid #f0ebe9; border-radius: 8px; background: #faf8f6; object-fit: contain; }
body.hog-flow .woocommerce table.cart td.product-name { grid-area: name; font-size: 14px; font-weight: 600; line-height: 1.4; }
body.hog-flow .woocommerce table.cart td.product-name a { color: var(--ink); text-decoration: none; }
body.hog-flow .woocommerce table.cart td.product-name a:hover { text-decoration: underline; }
body.hog-flow .woocommerce table.cart td.product-name dl { margin: 4px 0 0; color: var(--muted); font-size: 12px; font-weight: 500; }
body.hog-flow .woocommerce table.cart td.product-price { grid-area: price; margin-top: 3px; color: var(--muted); font-size: 13px; }
body.hog-flow .woocommerce table.cart td.product-quantity { grid-area: quantity; align-self: end; margin-top: 10px; }
body.hog-flow .woocommerce table.cart td.product-quantity input.qty { width: 44px; height: 44px; min-height: 44px; padding: 0 6px; text-align: center; }
body.hog-flow .woocommerce table.cart tr.cart_item td.product-subtotal { grid-area: subtotal; align-self: end; padding-bottom: 12px; font-weight: 600; text-align: right; white-space: nowrap; }
body.hog-flow .woocommerce table.cart td.product-remove { grid-area: remove; justify-self: end; }
body.hog-flow .woocommerce table.cart td.product-remove a.remove { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -10px -10px 0 0; border-radius: 8px; background: none; color: var(--muted) !important; font-size: 24px; font-weight: 400; }
body.hog-flow .woocommerce table.cart td.product-remove a.remove:hover { background: var(--lilac); color: var(--red) !important; }
body.hog-flow .woocommerce table.cart tr:not(.cart_item) { display: block; }
body.hog-flow .woocommerce table.cart td.actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 16px 0 0; border: 0; }
body.hog-flow .woocommerce table.cart td.actions::after, body.hog-flow .woocommerce table.cart td.actions::before { content: none; }
body.hog-flow .woocommerce table.cart td.actions .coupon { display: flex; flex: 1 1 260px; gap: 8px; max-width: 380px; margin: 0; padding: 0; }
body.hog-flow .woocommerce table.cart td.actions .coupon input.input-text { flex: 1; float: none; width: auto; min-width: 0; margin: 0; }
body.hog-flow .woocommerce table.cart td.actions .coupon .button { flex: none; width: auto; float: none; }
body.hog-flow .woocommerce table.cart td.actions > .button { width: auto; margin-left: auto; float: none; }
body.hog-flow .woocommerce .cart-collaterals .cart_totals { float: none; width: 100%; padding: 20px; border-radius: 16px; background: var(--lilac); }
body.hog-flow .woocommerce .cart_totals h2 { font-size: 20px; }
body.hog-flow .woocommerce .cart_totals table.shop_table th { width: 34%; font-size: 13px; }
body.hog-flow .woocommerce .cart_totals tr.order-total td, body.hog-flow .woocommerce .cart_totals tr.order-total th { border: 0; font-size: 18px; }
body.hog-flow .woocommerce .cart_totals .wc-proceed-to-checkout { padding: 4px 0 0; }
body.hog-flow .woocommerce .cart_totals a.checkout-button { width: 100%; min-height: 54px; margin: 0; font-size: 16px; }
body.hog-flow .woocommerce .shipping-calculator-form .button { width: 100%; }
body.hog-flow .woocommerce ul#shipping_method { margin: 0; padding: 0; list-style: none; }
/* Delivery options: full-width rows that are easy to tap, matching the payment choices. */
body.hog-flow .woocommerce table.shop_table tr > td.hog-shipping { padding-right: 0; padding-left: 0; text-align: left !important; }
body.hog-flow .woocommerce table.shop_table td.hog-shipping::before { content: none; }
.hog-shipping-title { display: block; margin-bottom: 8px; font-weight: 600; }
body.hog-flow .woocommerce ul#shipping_method li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; margin: 0 0 8px; padding: 0 14px; border: 1px solid var(--line-field); border-radius: 8px; background: var(--white); line-height: 1.5; text-indent: 0; }
/* HOG Delivery removes this spacing on the checkout summary with !important. */
body.hog-flow .woocommerce #order_review ul#shipping_method li { margin: 0 0 8px !important; padding: 0 14px !important; }
body.hog-flow .woocommerce ul#shipping_method li:has(> input:checked) { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
body.hog-flow .woocommerce ul#shipping_method li > input { flex: none; float: none; width: 18px; height: 18px; margin: 0; accent-color: var(--purple); }
body.hog-flow .woocommerce ul#shipping_method li > label { display: block; flex: 1; min-width: 0; min-height: 44px; margin: 0; padding: 12px 0; cursor: pointer; }
.order-help { margin: 16px 0 0; border: 0; }
.continue-shopping { margin: 8px 0 0; text-align: center; }
body.hog-flow .woocommerce .password-input .show-password-input { display: flex; align-items: center; justify-content: center; top: 2px; right: 2px; width: 44px; height: 44px; padding: 0; transform: none; }
body.hog-flow .woocommerce .password-input input.input-text { padding-right: 50px; }
body.hog-flow .woocommerce .woocommerce-form-coupon-toggle .showcoupon { display: inline-block; padding: 12px 0; }
body.hog-flow .woocommerce .shipping-calculator-button { display: inline-flex; align-items: center; min-height: 44px; }
body.hog-flow .woocommerce .shipping-calculator-button::after { content: none; }
body.hog-flow .woocommerce .return-to-shop, body.hog-flow .woocommerce .wc-empty-cart-message { text-align: center; }

/* Checkout */
body.hog-flow .woocommerce form.checkout .col2-set .col-1, body.hog-flow .woocommerce form.checkout .col2-set .col-2 { float: none; width: 100%; }
body.hog-flow .woocommerce form.checkout h3 { margin: 6px 0 14px; font-size: 19px; }
body.hog-flow .woocommerce #ship-to-different-address label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
body.hog-flow .woocommerce form .woocommerce-form__label-for-checkbox input { width: 20px; height: 20px; margin: 0; accent-color: var(--purple); }
.order-column { margin-top: 12px; }
body.hog-flow .order-column > h3 { margin-top: 0; }
body.hog-flow .woocommerce #order_review { padding: 4px 18px 18px; border-radius: 16px; background: var(--lilac); }
body.hog-flow .woocommerce #order_review table.shop_table { font-size: 14px; }
body.hog-flow .woocommerce #order_review tr.order-total th, body.hog-flow .woocommerce #order_review tr.order-total td { font-size: 18px; }
body.hog-flow .woocommerce #payment { border-radius: 0; background: none; }
body.hog-flow .woocommerce #payment ul.payment_methods { display: grid; gap: 8px; margin: 0; padding: 0 0 14px; border: 0; list-style: none; }
body.hog-flow .woocommerce #payment ul.payment_methods::before, body.hog-flow .woocommerce #payment ul.payment_methods::after { content: none; }
body.hog-flow .woocommerce #payment ul.payment_methods li.wc_payment_method { padding: 4px 14px; border: 1px solid var(--line-field); border-radius: 8px; background: var(--white); line-height: 1.5; }
body.hog-flow .woocommerce #payment ul.payment_methods li.wc_payment_method:has(> input:checked) { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
body.hog-flow .woocommerce #payment ul.payment_methods li.wc_payment_method > input { width: 18px; height: 18px; margin: 0 10px 0 0; vertical-align: middle; accent-color: var(--purple); }
body.hog-flow .woocommerce #payment ul.payment_methods li.wc_payment_method > label { display: inline-block; min-height: 44px; padding: 12px 0; font-weight: 600; vertical-align: middle; }
body.hog-flow .woocommerce #payment ul.payment_methods li img { max-width: 100%; max-height: 26px; vertical-align: middle; }
body.hog-flow .woocommerce #payment div.payment_box { margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: var(--wash); color: var(--muted); font-size: 13px; }
body.hog-flow .woocommerce #payment div.payment_box::before { content: none; }
body.hog-flow .woocommerce #payment div.form-row.place-order { margin: 0; padding: 0; }
body.hog-flow .woocommerce .woocommerce-privacy-policy-text, body.hog-flow .woocommerce .woocommerce-terms-and-conditions-wrapper { color: var(--muted); font-size: 12px; }
body.hog-flow .woocommerce .woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox { position: relative; display: block; min-height: 48px; margin: 0; padding: 12px 0 12px 34px; color: var(--ink); font-size: 14px; line-height: 1.55; cursor: pointer; }
body.hog-flow .woocommerce .woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox input { position: absolute; top: 13px; left: 0; width: 22px; height: 22px; margin: 0; accent-color: var(--purple); }
body.hog-flow .woocommerce #payment #place_order { float: none; width: 100%; min-height: 54px; font-size: 16px; }
body.hog-flow .woocommerce form.checkout_coupon, body.hog-flow .woocommerce form.login { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }

/* Order confirmation */
body.hog-flow .woocommerce ul.order_details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
body.hog-flow .woocommerce ul.order_details::before, body.hog-flow .woocommerce ul.order_details::after { content: none; }
body.hog-flow .woocommerce ul.order_details li { float: none; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; }
body.hog-flow .woocommerce ul.order_details li strong { display: block; overflow-wrap: anywhere; }
body.hog-flow .woocommerce-thankyou-order-received { font-size: 18px; font-weight: 600; }
body.hog-flow .woocommerce .woocommerce-order-details h2, body.hog-flow .woocommerce .woocommerce-customer-details h2 { font-size: 20px; }
body.hog-flow .woocommerce .woocommerce-customer-details address { padding: 14px; border: 1px solid var(--line); border-radius: 8px; font-style: normal; overflow-wrap: anywhere; }

body.hog-flow .woocommerce .woocommerce-thankyou-order-failed-actions { display: flex; flex-wrap: wrap; gap: 10px; max-width: 420px; }
body.hog-flow .woocommerce .woocommerce-thankyou-order-failed-actions .button { display: inline-flex; flex: 1 1 100%; align-items: center; justify-content: center; min-height: 48px; margin: 0; }
body.hog-flow .woocommerce .woocommerce-thankyou-order-failed-actions .button:first-child { min-height: 54px; border: 0; background: var(--yellow); color: var(--on-yellow); font-size: 16px; font-weight: 600; }
body.hog-flow .woocommerce .woocommerce-thankyou-order-failed-actions .button:first-child:hover { background: var(--yellow-hover); }

/* Payment hand-off: the gateway's own button on the "pay for order" step */
body.hog-flow .woocommerce .pay-button-wrapper { display: flex; flex-direction: column; align-items: stretch; gap: 10px; max-width: 420px; }
body.hog-flow .woocommerce .pay-button-wrapper br { display: none; }
body.hog-flow .woocommerce .pay-button-wrapper .payhere-button, body.hog-flow .woocommerce #darazbnpl_payment_form input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; width: 100%; max-width: 420px; min-height: 54px; margin: 0 0 8px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--yellow); color: var(--on-yellow); font-size: 16px; font-weight: 600; cursor: pointer; }
body.hog-flow .woocommerce .pay-button-wrapper .payhere-button:hover, body.hog-flow .woocommerce #darazbnpl_payment_form input[type="submit"]:hover { background: var(--yellow-hover); color: var(--on-yellow); }
/* PayHere shows guests a "Login to Continue" link, although paying does not need an account. */
body.hog-flow .woocommerce .pay-button-wrapper .payhere-button-alt { display: none; }
body.hog-flow .woocommerce .pay-button-wrapper label.checkbox { display: flex; align-items: center; gap: 10px; min-height: 44px; }

/* Account */
body.hog-flow .woocommerce .u-columns, body.hog-flow .woocommerce > form.login, body.hog-flow .woocommerce > form.lost_reset_password, body.hog-flow .woocommerce > h2, body.hog-flow .woocommerce > form.lost_reset_password ~ * { max-width: 460px; margin-inline: auto; }
body.hog-flow .woocommerce-account .woocommerce-MyAccount-navigation, body.hog-flow .woocommerce .woocommerce-MyAccount-navigation { float: none; width: 100%; margin-bottom: 18px; }
body.hog-flow .woocommerce .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 4px 0; list-style: none; }
body.hog-flow .woocommerce .woocommerce-MyAccount-navigation li a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-field); border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
body.hog-flow .woocommerce .woocommerce-MyAccount-navigation li.is-active a { border-color: var(--purple); background: var(--purple); color: var(--white); }
body.hog-flow .woocommerce .woocommerce-MyAccount-content { float: none; width: 100%; overflow-x: auto; }

@media (max-width: 599px) {
	body.hog-flow .woocommerce form .form-row-first, body.hog-flow .woocommerce form .form-row-last { float: none; width: 100%; }
}

@media (min-width: 900px) {
	body.woocommerce-cart.hog-flow .entry-content > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 40px; align-items: start; }
	body.woocommerce-cart.hog-flow .entry-content > .woocommerce > * { grid-column: 1 / -1; }
	body.woocommerce-cart.hog-flow .entry-content > .woocommerce > .woocommerce-cart-form { grid-column: 1; }
	body.woocommerce-cart.hog-flow .entry-content > .woocommerce > .cart-collaterals { grid-column: 2; }
	body.hog-flow .woocommerce form.checkout:has(> .order-column) { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 48px; align-items: start; }
	body.hog-flow .woocommerce form.checkout:has(> .order-column) > * { grid-column: 1 / -1; }
	body.hog-flow .woocommerce form.checkout:has(> .order-column) > #customer_details { grid-column: 1; }
	body.hog-flow .woocommerce form.checkout > .order-column { grid-column: 2; margin-top: 0; }
	body.hog-flow .woocommerce .woocommerce-MyAccount-content, body.hog-flow .woocommerce .woocommerce-MyAccount-navigation { float: left; }
	body.hog-flow .woocommerce .woocommerce-MyAccount-navigation { width: 220px; }
	body.hog-flow .woocommerce .woocommerce-MyAccount-navigation ul { display: grid; }
	body.hog-flow .woocommerce .woocommerce-MyAccount-navigation li a { border-radius: 8px; }
	body.hog-flow .woocommerce .woocommerce-MyAccount-content { float: right; width: calc(100% - 256px); }
}

/* WooCommerce's small-screen rules use !important and zebra rows; these restate the layout above. */
body.hog-flow .woocommerce table.cart tr.cart_item td.product-name, body.hog-flow .woocommerce table.cart tr.cart_item td.product-price, body.hog-flow .woocommerce table.cart tr.cart_item td.product-quantity { text-align: left !important; }
body.hog-flow .woocommerce table.cart tr.cart_item td.product-subtotal { text-align: right !important; }
body.hog-flow .woocommerce table.shop_table_responsive tr td, body.hog-flow .woocommerce table.shop_table_responsive tr:nth-child(2n) td { background: none; }
body.hog-flow .woocommerce table.cart td.actions .coupon { box-sizing: border-box; width: 100%; }
body.hog-flow .woocommerce table.cart td.actions .coupon .button { white-space: nowrap; }
body.hog-flow .woocommerce form .form-row textarea { border: 1px solid var(--line-strong); }
body.hog-flow .woocommerce form .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 0 14px; vertical-align: middle; }
body.hog-flow .woocommerce .return-to-shop { margin-top: 20px; }
body.hog-flow .woocommerce .select2-container .select2-selection--single .select2-selection__rendered { height: 46px; padding-top: 0; padding-bottom: 0; }

body.hog-flow .woocommerce .woocommerce-MyAccount-content :is(.woocommerce-message, .woocommerce-info) { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
body.hog-flow .woocommerce .woocommerce-MyAccount-content :is(.woocommerce-message, .woocommerce-info) .button { order: 2; float: none; }
@media (max-width: 768px) {
	body.hog-flow .woocommerce table.woocommerce-orders-table tbody th.woocommerce-orders-table__cell { display: flex; justify-content: space-between; }
	body.hog-flow .woocommerce table.woocommerce-orders-table tbody th.woocommerce-orders-table__cell::before { content: attr(data-title) ": "; }
	body.hog-flow .woocommerce table.woocommerce-orders-table tbody td.woocommerce-orders-table__cell { padding-left: 0; padding-right: 0; }
}

/* A refused coupon: WooCommerce puts the message inside the coupon row, so it needs a line of its own. */
body.hog-flow .woocommerce table.cart td.actions .coupon { flex-wrap: wrap; }
body.hog-flow .woocommerce table.cart td.actions .coupon::before, body.hog-flow .woocommerce table.cart td.actions .coupon::after { content: none; }
body.hog-flow .woocommerce table.cart td.actions .coupon input.input-text { flex: 1 1 150px; }
body.hog-flow .woocommerce table.cart td.actions .coupon .coupon-error-notice { flex: 0 0 100%; margin: 0; }

/* Order summary: keep product names readable when a delivery note makes the table wider. */
body.hog-flow .woocommerce #order_review table.shop_table .product-name { width: 64%; }
body.hog-flow .woocommerce #order_review table.shop_table .product-total { white-space: nowrap; }

/* Third-party and account links that were hard to tap. */
body.hog-flow .showthyaga { display: inline-block; padding: 12px 0; cursor: pointer; }
body.hog-flow .woocommerce table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a { display: inline-block; padding: 4px 0; }

/* All three checkout steps on one line on common phones. */
@media (max-width: 479px) {
	.steps { column-gap: 10px; font-size: 11.5px; }
	.steps li { gap: 5px; }
}

/* Very narrow phones: the line total moves under the quantity buttons. */
@media (max-width: 420px) {
	body.hog-flow .woocommerce table.cart tr.cart_item { grid-template-areas: "thumb name remove" "thumb price price" "thumb quantity quantity" "thumb subtotal subtotal"; }
}

/* V4.2 design: headings and order summary card */
.page-head { margin-bottom: 20px; }
.page-head h1 { margin-bottom: 10px; }
.page-head > p:last-child:not(.eyebrow) { max-width: 46em; margin: 0; color: var(--muted); }
body.hog-flow .woocommerce .cart-collaterals .cart_totals { box-sizing: border-box; padding: 22px; border: 1px solid #e8dfe5; background: var(--white); }
body.hog-flow .woocommerce table.cart td.product-name { font-size: 15px; }
body.hog-flow .woocommerce table.cart tr.cart_item { grid-template-columns: 95px minmax(0, 1fr) auto; }
body.hog-flow .woocommerce table.cart td.product-thumbnail img { width: 95px; height: 95px; }
body.hog-flow .woocommerce table.cart td.product-remove a.remove { width: auto; min-width: 44px; margin: -12px 0 0; padding: 0; color: var(--purple) !important; font-size: 12px; font-weight: 600; line-height: 1.3; text-decoration: underline; text-underline-offset: 3px; }
body.hog-flow .woocommerce table.cart td.product-remove a.remove:hover { background: none; color: var(--plum) !important; }

/* Checkout sections as cards */
body.hog-flow .woocommerce form.checkout .woocommerce-billing-fields, body.hog-flow .woocommerce form.checkout .woocommerce-shipping-fields, body.hog-flow .woocommerce form.checkout .woocommerce-additional-fields { margin-bottom: 18px; padding: 20px 18px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
body.hog-flow .woocommerce form.checkout .woocommerce-shipping-fields:empty, body.hog-flow .woocommerce form.checkout .woocommerce-additional-fields:empty { display: none; }
body.hog-flow .woocommerce form.checkout .woocommerce-additional-fields h3 { margin-top: 0; }
body.hog-flow .woocommerce #order_review { border: 1px solid #e8dfe5; background: var(--white); }

/* Sign in beside a photograph */
.auth-layout { display: grid; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.auth-visual { position: relative; min-height: 190px; background: #ebdfe8; }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: rgba(49, 17, 45, .62); }
.auth-visual > div { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; padding: 22px; color: var(--white); }
.auth-visual .eyebrow { margin-bottom: 6px; color: var(--yellow); }
.auth-visual-title { max-width: 14em; margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.auth-visual-text { display: none; }
.auth-forms { min-width: 0; padding: 28px 20px 32px; }
.auth-forms h1 { margin-bottom: 10px; }
.auth-intro { margin-bottom: 22px; color: var(--muted); }
body.hog-flow .woocommerce .auth-forms .u-columns, body.hog-flow .woocommerce .auth-forms > form.login, body.hog-flow .woocommerce .auth-forms > form.lost_reset_password, body.hog-flow .woocommerce .auth-forms > h2, body.hog-flow .woocommerce .auth-forms > form.lost_reset_password ~ * { max-width: none; margin-inline: 0; }
body.hog-flow .woocommerce .auth-forms form.login, body.hog-flow .woocommerce .auth-forms form.register { margin: 0; padding: 0; border: 0; }
body.hog-flow .woocommerce .auth-forms .col2-set .col-1, body.hog-flow .woocommerce .auth-forms .col2-set .col-2 { float: none; width: 100%; }
body.hog-flow .woocommerce .auth-forms h2 { font-size: 22px; }
/* One form at a time. The page heading names it, so the form's own heading is not repeated. */
body.hog-flow .woocommerce .auth-signin .col-2, body.hog-flow .woocommerce .auth-create .col-1 { display: none; }
body.hog-flow .woocommerce .auth-forms .col2-set h2 { display: none; }
.auth-switch { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.auth-switch a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 4px; font-weight: 600; text-decoration: underline; }
body.hog-flow .woocommerce .auth-forms .woocommerce-form-login__submit, body.hog-flow .woocommerce .auth-forms .woocommerce-form-register__submit, body.hog-flow .woocommerce .auth-forms form.lost_reset_password button.button { width: 100%; margin: 4px 0 0; border: 0; background: var(--yellow); color: var(--on-yellow); font-weight: 600; }
body.hog-flow .woocommerce .auth-forms .woocommerce-form-login__rememberme { display: flex; margin: 0 0 6px; }

/* Account side menu and shortcut cards */
.account-help { display: none; }
body.hog-flow .woocommerce .woocommerce-MyAccount-navigation li a { gap: 10px; }
.woocommerce-MyAccount-navigation li a::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.woocommerce-MyAccount-navigation li { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h7v7H4zM13 4h7v7h-7zM4 13h7v7H4zM13 13h7v7h-7z' fill='none' stroke='%23000' stroke-width='1.800'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--orders { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 8h14l-1.200 12H6.200L5 8Zm4 1V6a3 3 0 0 1 6 0v3' fill='none' stroke='%23000' stroke-width='1.800'/%3E%3C/svg%3E") !important; }
.woocommerce-MyAccount-navigation-link--edit-address { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10 5 4h14l2 6M5 10v10h14V10M3 10h18M9 20v-6h6v6' fill='none' stroke='%23000' stroke-width='1.800'/%3E%3C/svg%3E") !important; }
.woocommerce-MyAccount-navigation-link--hogc-wishlist { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.800 4.800a5.400 5.400 0 0 0-7.600 0L12 6l-1.200-1.200a5.400 5.400 0 0 0-7.600 7.600l8.800 8.700 8.800-8.700a5.400 5.400 0 0 0 0-7.600Z' fill='none' stroke='%23000' stroke-width='1.800'/%3E%3C/svg%3E") !important; }
.woocommerce-MyAccount-navigation-link--edit-account { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='%23000' stroke-width='1.800'/%3E%3Cpath d='M4 21c.6-4.200 3.700-6.500 8-6.500s7.400 2.300 8 6.500' fill='none' stroke='%23000' stroke-width='1.800'/%3E%3C/svg%3E") !important; }
.woocommerce-MyAccount-navigation-link--hogc-password { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' fill='none' stroke='%23000' stroke-width='1.800'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3' fill='none' stroke='%23000' stroke-width='1.800'/%3E%3C/svg%3E") !important; }
.woocommerce-MyAccount-navigation-link--wc-smart-coupons { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8a2 2 0 0 0 0 4v0a2 2 0 0 1 0 4v2h18v-2a2 2 0 0 1 0-4v0a2 2 0 0 0 0-4V6H3v2Z' fill='none' stroke='%23000' stroke-width='1.800'/%3E%3Cpath d='M14 6v12' fill='none' stroke='%23000' stroke-width='1.800' stroke-dasharray='2 2'/%3E%3C/svg%3E") !important; }
.woocommerce-MyAccount-navigation-link--customer-logout { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 5H5v14h5M14 8l5 4-5 4M19 12H9' fill='none' stroke='%23000' stroke-width='1.800'/%3E%3C/svg%3E") !important; }
body.hog-flow .hogc-panel h2 { margin: 0 0 12px; font-size: 24px; }
body.hog-flow .hogc-panel { border: 0; border-radius: 12px; background: var(--lilac); padding: 24px 20px; }
body.hog-flow .woocommerce .hogc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.hog-flow .hogc-tiles a { min-height: 127px; gap: 6px; }
body.hog-flow .hogc-tiles a:hover { border-color: #9f6f9b; background: #fdf9fc; }
body.hog-flow .hogc-tiles strong { color: var(--ink); }
body.hog-flow .hogc-tiles a::before { content: ""; width: 25px; height: 25px; margin-bottom: 4px; background: var(--purple); -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.hogc-tile-your-orders { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 8h14l-1.200 12H6.200L5 8Zm4 1V6a3 3 0 0 1 6 0v3' fill='none' stroke='%23000' stroke-width='1.600'/%3E%3C/svg%3E"); }
.hogc-tile-addresses { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10 5 4h14l2 6M5 10v10h14V10M3 10h18M9 20v-6h6v6' fill='none' stroke='%23000' stroke-width='1.600'/%3E%3C/svg%3E"); }
.hogc-tile-wishlist { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.800 4.800a5.400 5.400 0 0 0-7.600 0L12 6l-1.200-1.200a5.400 5.400 0 0 0-7.600 7.600l8.800 8.700 8.800-8.700a5.400 5.400 0 0 0 0-7.600Z' fill='none' stroke='%23000' stroke-width='1.600'/%3E%3C/svg%3E"); }
.hogc-tile-account-details { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='%23000' stroke-width='1.600'/%3E%3Cpath d='M4 21c.6-4.200 3.700-6.500 8-6.500s7.400 2.300 8 6.500' fill='none' stroke='%23000' stroke-width='1.600'/%3E%3C/svg%3E"); }
.hogc-tile-help { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v12H9l-5 4V5Z' fill='none' stroke='%23000' stroke-width='1.600'/%3E%3C/svg%3E"); }

/* Phones: the account menu is one row that scrolls sideways, as drawn. */
@media (max-width: 899px) {
	body.hog-flow .woocommerce .woocommerce-MyAccount-navigation ul { flex-wrap: nowrap; overflow-x: auto; padding: 4px 4px 12px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
	body.hog-flow .woocommerce .woocommerce-MyAccount-navigation li { flex: none; }
}

@media (min-width: 700px) {
	.auth-layout { grid-template-columns: 1fr 1fr; min-height: 590px; }
	.auth-visual { min-height: 560px; }
	.auth-visual > div { padding: 38px; }
	.auth-visual-title { font-size: 33px; }
	.auth-visual-text { display: block; max-width: 24em; margin: 10px 0 0; color: #f4e5f1; }
	.auth-forms { display: flex; flex-direction: column; justify-content: center; padding: 50px clamp(25px, 5vw, 72px); }
}

@media (min-width: 900px) {
	body.woocommerce-cart.hog-flow .entry-content > .woocommerce { grid-template-columns: minmax(0, 1fr) 350px; column-gap: 50px; }
	body.woocommerce-cart.hog-flow .entry-content > .woocommerce > .cart-collaterals { position: sticky; top: 24px; }
	.account-side { float: left; width: 240px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; box-sizing: border-box; }
	body.hog-flow .woocommerce .account-side .woocommerce-MyAccount-navigation { float: none; width: 100%; margin: 0; }
	body.hog-flow .woocommerce .account-side .woocommerce-MyAccount-navigation li a { border: 0; }
	body.hog-flow .woocommerce .account-side .woocommerce-MyAccount-navigation li a:hover { background: var(--lilac); color: var(--purple); }
	body.hog-flow .woocommerce .account-side .woocommerce-MyAccount-navigation li.is-active a { background: var(--lilac); color: var(--purple); }
	.account-help { display: block; margin-top: 12px; padding: 16px 10px 6px; border-top: 1px solid var(--line); font-size: 13px; }
	.account-help p { margin: 6px 0; color: var(--muted); font-size: 12px; }
	.account-help a { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: 12px; font-weight: 600; }
	.account-help .account-help-hours { margin: 6px 0 0; line-height: 1.5; }
	body.hog-flow .woocommerce .woocommerce-MyAccount-content { width: calc(100% - 278px); }
	body.hog-flow .woocommerce .hogc-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}


/* Payment choices: radio, name and logo on one row (a wide logo drops under the name), details underneath. */
body.hog-flow .woocommerce #payment ul.payment_methods li.wc_payment_method { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; }
body.hog-flow .woocommerce #payment ul.payment_methods li.wc_payment_method > input { grid-column: 1; grid-row: 1; align-self: start; margin: 12px 0 0; }
body.hog-flow .woocommerce #payment ul.payment_methods li.wc_payment_method > label { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-width: 0; padding: 8px 0; }
body.hog-flow .woocommerce #payment ul.payment_methods li.wc_payment_method > div.payment_box { grid-column: 1 / -1; }
body.hog-flow .woocommerce #payment ul.payment_methods li.wc_payment_method > label img { width: auto; max-width: 100%; height: 26px; margin: 0; }

/* Bag page: the coupon box and Update bag read clearly, and the greyed state says "nothing to update yet". */
body.hog-flow .woocommerce table.cart td.actions .coupon input.input-text { min-height: 48px; border: 1.5px solid #9b8d99; background: var(--white); color: var(--ink); font-size: 15px; }
body.hog-flow .woocommerce table.cart td.actions .coupon input.input-text::placeholder { color: #6b606a; opacity: 1; }
body.hog-flow .woocommerce table.cart td.actions .coupon .button { min-height: 48px; padding: 0 20px; border-color: var(--purple); background: var(--purple); color: var(--white); font-size: 14px; }
body.hog-flow .woocommerce table.cart td.actions .coupon .button:hover { border-color: var(--plum); background: var(--plum); color: var(--white); }
body.hog-flow .woocommerce table.cart td.actions > button.button[name="update_cart"] { min-height: 48px; padding: 0 20px; border: 1.5px solid var(--purple); background: var(--white); color: var(--purple); font-size: 14px; }
body.hog-flow .woocommerce table.cart td.actions > button.button[name="update_cart"]:hover { background: var(--lilac); }
body.hog-flow .woocommerce table.cart td.actions > button.button[name="update_cart"]:disabled, body.hog-flow .woocommerce table.cart td.actions > button.button[name="update_cart"][disabled] { border: 1.5px solid #d8cdd6; background: #f3eff2; color: #5f555d; opacity: 1; cursor: default; }
@media (max-width: 479px) {
	body.hog-flow .woocommerce table.cart td.actions > button.button[name="update_cart"] { width: 100%; margin-left: 0; }
}

/* Checkout: the instalment lines the payment plugins print above the payment list, as one tidy panel.
   Mintpay's own "MINT20" cashback line is hidden until HOG confirm they want that code promoted. */
body.hog-flow .woocommerce-checkout-review-order .koko-checkout-price-installment { margin: 14px 0 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--lilac); color: var(--ink) !important; font-size: 14px !important; line-height: 1.45 !important; }
body.hog-flow .woocommerce-checkout-review-order .koko-checkout-price-installment .pay-name { font-weight: 600; }
body.hog-flow .woocommerce-checkout-review-order .mintpay-checkout-promo { display: none !important; }
body.hog-flow .woocommerce-checkout-review-order .hog-mintpay-line { margin: 0 0 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--lilac); color: var(--ink); font-size: 14px; line-height: 1.45; }
body.hog-flow .woocommerce-checkout-review-order .koko-checkout-price-installment + .hog-mintpay-line { margin-top: -4px; }
body.hog-flow .woocommerce-checkout-review-order .hog-mintpay-line .pay-name { font-weight: 600; }

/* Payment list: logos in place of names (Koko, Mintpay, PayHere); one panel for the two instalment lines. */
body.hog-flow .woocommerce #payment ul.payment_methods li.wc_payment_method > label img.pay-logo-payhere { height: 30px; width: auto; }
body.hog-flow .woocommerce #payment ul.payment_methods li.wc_payment_method > label { min-height: 44px; }
body.hog-flow .woocommerce #payment div.payment_box { margin: 0 0 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.4; }
body.hog-flow .woocommerce-checkout-review-order .koko-checkout-price-installment { margin-bottom: 0; padding: 12px 14px 4px !important; border-bottom-left-radius: 0; border-bottom-right-radius: 0; text-align: left; }
body.hog-flow .woocommerce-checkout-review-order .hog-mintpay-line { margin-top: 0; padding: 0 14px 12px; border-top-left-radius: 0; border-top-right-radius: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
body.hog-flow .woocommerce-checkout-review-order .koko-checkout-price-installment + .hog-mintpay-line { margin-top: 0; }
body.hog-flow .woocommerce-checkout-review-order .hog-mintpay-line img { display: block; width: auto; height: 22px; }
body.hog-flow .woocommerce-checkout-review-order .koko-checkout-price-installment, body.hog-flow .woocommerce-checkout-review-order .hog-mintpay-line { text-wrap: balance; }

/* My HOG: greeting in the title block; the order card carries the delivery estimate. */
.page-head .page-greeting { margin: 0 0 6px; color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1.3; }
.page-head:has(.page-greeting) h1 { margin-bottom: 6px; }
body.hog-flow .hogc-eta { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 10px 0 14px; color: var(--muted); font-size: 14px; }
body.hog-flow .hogc-eta strong { color: var(--ink); }
body.hog-flow .hog-saved .section-head h2 { font-size: 24px; }
@media (min-width: 900px) {
	body.hog-flow .woocommerce .hogc-tiles, body.hog-flow .hogc-tiles { display: none !important; }
	.page-head .page-greeting { font-size: 22px; }
}
@media (max-width: 599px) {
	body.hog-flow .hogc-panel { padding: 20px 16px; }
	body.hog-flow .hogc-panel .button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; }
	body.hog-flow .hogc-eta { flex-direction: column; gap: 0; }
	body.hog-flow .hog-saved { margin-top: 32px; }
}


/* Weight cap on WooCommerce table heads, required marks and currency symbols. */
body.hog-flow .woocommerce th, body.hog-flow .woocommerce .required, body.hog-flow .woocommerce abbr.required, body.hog-flow .woocommerce .woocommerce-Price-currencySymbol, body.hog-flow .woocommerce .woocommerce-Price-amount { font-weight: 600; }

/* Account: WooCommerce's own weights and small links, brought to the site's. */
body.hog-flow .woocommerce .woocommerce-MyAccount-content :is(mark, th, td, strong, b) { font-weight: 600; }
body.hog-flow .woocommerce .woocommerce-orders-table__cell-order-number a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
