/* Compact commerce is presentation over the original Woo form and fragments. */
[data-tgy-cart-selection-state][hidden],
[data-tgy-cart-selection-status][hidden],
[data-tgy-cart-selection-status] button[hidden],
body.tgy-mobile-ui-v2 .tgy-mobile-cart-state[hidden],
body.tgy-mobile-ui-v2 .tgy-mobile-checkout-account[hidden],
body.tgy-mobile-ui-v2 .tgy-mobile-checkout-optional[hidden],
body.tgy-mobile-ui-v2 .tgy-cart-checkout-notice-status[hidden],
body.tgy-mobile-ui-v2 .tgy-checkout-payment-notice-status[hidden],
body.tgy-mobile-ui-v2 .tgy-checkout-payment-slot[hidden] {
  display: none !important;
}

.tgy-cart-item-select,
.tgy-cart-select-all {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}
.tgy-cart-item-select input,
.tgy-cart-select-all input {
  appearance: none;
  width: 22px;
  min-width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid var(--tgy-border-strong);
  border-radius: 50%;
  background: var(--tgy-canvas);
  padding: 0;
  cursor: pointer;
}
.tgy-cart-item-select input:checked,
.tgy-cart-select-all input:checked,
.tgy-cart-select-all input:indeterminate {
  border-color: var(--tgy-green);
  background-color: var(--tgy-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.tgy-cart-select-all input:indeterminate {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h10' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.tgy-cart-item-select input:focus-visible,
.tgy-cart-select-all input:focus-visible {
  outline: var(--tgy-focus-width) solid var(--tgy-focus-ring);
  outline-offset: var(--tgy-focus-offset);
}
.tgy-cart-item-select input:disabled,
.tgy-cart-select-all input:disabled { opacity: .55; cursor: progress; }
.tgy-cart-selection-toolbar { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.tgy-cart-selection-status:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 8px; font-size: 14px; }
.tgy-cart-selection-status[role="alert"] { color: var(--tgy-price-accent); }
.woocommerce-cart .cart_totals a.checkout-button[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

@media (min-width: 1024px) {
  .woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item:has([data-tgy-cart-select]) { padding-left: 68px; }
  .woocommerce-cart .woocommerce-cart-form tr.cart_item:has([data-tgy-cart-select]) .product-remove { position: static; }
  .woocommerce-cart .woocommerce-cart-form .tgy-cart-item-select { position: absolute; left: 12px; top: 16px; }
  .woocommerce-cart .woocommerce-cart-form tr.cart_item:has([data-tgy-cart-select]) a.remove { position: absolute; top: 8px; right: 8px; }
}

@media (max-width: 1023px) {
  body.tgy-mobile-ui-v2 :is(.tgy-commerce-band, .tgy-commerce-main, .tgy-commerce-layout) { min-width: 0; }
  body.tgy-mobile-ui-v2 .tgy-commerce-band { padding-block: 0 24px; }
  body.tgy-mobile-ui-v2 .tgy-commerce-layout { display: block; }

  /* The compact route header is visual; retain the original page h1 for AT. */
  body.tgy-mobile-ui-v2 .tgy-commerce-head,
  body.tgy-mobile-ui-v2.tgy-mobile-review-ready #order_review_heading,
  body.tgy-mobile-ui-v2 .tgy-mobile-payment-ready > legend,
  body.tgy-mobile-ui-v2.woocommerce-order-received .tgy-order-terms > h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  body.tgy-mobile-ui-v2 .tgy-commerce-head :is(.tgy-kicker, .tgy-commerce-steps) { display: none; }
  body.tgy-mobile-ui-v2 .tgy-commerce-aside {
    position: static;
    margin-top: 12px;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
  body.tgy-mobile-ui-v2 .tgy-commerce-help :is(summary, .tgy-button) {
    min-height: 44px;
    padding-block: 10px;
    font-size: 14px;
  }
  body.tgy-mobile-ui-v2.woocommerce-cart .tgy-commerce-help > .tgy-button { display: none; }

  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form table.shop_table tbody { gap: 0; }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item {
    grid-template-columns: 44px 64px minmax(0, 1fr);
    grid-template-areas: "select thumbnail name" "quantity quantity subtotal";
    grid-template-rows: minmax(64px, auto) 44px;
    gap: 8px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--tgy-border);
    border-radius: 0;
    padding: 12px 0;
  }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item > td {
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: left !important;
    overflow-wrap: anywhere;
  }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form .product-remove {
    position: static;
    display: contents;
  }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form .product-remove a.remove { position: absolute; top: 4px; right: -4px; width: 44px; height: 44px; font-size: 18px; }
  body.tgy-mobile-ui-v2.woocommerce-cart .tgy-cart-item-select { grid-area: select; align-self: start; min-height: 64px; }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form .product-thumbnail {
    display: block !important;
    width: 64px;
    align-self: start;
  }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form .product-thumbnail img {
    width: 64px;
    height: 64px;
    object-fit: contain;
  }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item > td.product-name { align-self: start; padding-right: 40px; }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form .product-name > :is(a, .tgy-mobile-cart-title) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin-bottom: 2px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  body.tgy-mobile-ui-v2 .tgy-mobile-cart-details { min-width: 0; }
  body.tgy-mobile-ui-v2 .tgy-mobile-cart-details > summary { display: flex; align-items: center; gap: 4px; min-height: 44px; margin-top: 0; color: var(--tgy-text-soft); font-size: 13px; cursor: pointer; list-style: none; }
  body.tgy-mobile-ui-v2 .tgy-mobile-cart-details > summary::-webkit-details-marker { display: none; }
  body.tgy-mobile-ui-v2 .tgy-mobile-cart-details > summary::after { content: "⌄"; flex-shrink: 0; font-size: 16px; }
  body.tgy-mobile-ui-v2 .tgy-mobile-cart-details[open] > summary::after { transform: rotate(180deg); }
  body.tgy-mobile-ui-v2 .tgy-mobile-cart-details > summary > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  body.tgy-mobile-ui-v2 .tgy-mobile-cart-full-title { margin: 0 0 8px; font-size: 14px; font-weight: 700; line-height: 1.4; }
  body.tgy-mobile-ui-v2 .tgy-mobile-cart-details > summary:focus-visible { outline: var(--tgy-focus-width) solid var(--tgy-focus-ring); outline-offset: 2px; }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form .product-name dl.variation {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
    gap: 2px 6px;
    font-size: 14px;
    line-height: 1.4;
  }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form .product-name dl.variation :is(dt, dd, p) {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form .product-price {
    grid-area: subtotal;
    display: flex !important;
    justify-content: flex-end;
    align-self: start;
    min-height: 22px;
    font-size: 16px;
    line-height: 1.4;
    color: var(--tgy-price-accent);
    text-align: right !important;
  }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form .product-price::before { display: none; }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form .product-quantity { grid-area: quantity; }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form .product-quantity .quantity {
    grid-template-columns: 44px 24px 44px;
    min-height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form .tgy-cart-quantity-step {
    position: relative;
    z-index: 0;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    font-size: 18px;
  }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form .tgy-cart-quantity-step::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 6px;
    border: 1px solid var(--tgy-border);
    border-radius: 5px;
    background: var(--tgy-surface-mint);
  }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form .product-quantity input.qty {
    width: 24px;
    min-width: 0;
    min-height: 44px;
    border: 0;
    padding-inline: 0;
    font-size: 16px;
  }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form .product-subtotal {
    grid-area: subtotal;
    display: flex !important;
    justify-content: flex-end;
    align-items: baseline;
    align-self: end;
    justify-self: stretch;
    width: auto;
    max-width: none;
    gap: 4px;
    min-height: 18px;
    color: var(--tgy-text-soft);
    font-size: 12px;
    line-height: 1.3;
    text-align: right !important;
  }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form .product-subtotal::before { font-size: 12px; font-weight: 400; text-transform: none; }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form :is(.product-price, .product-subtotal) :is(bdi, .woocommerce-Price-amount) {
    white-space: nowrap;
  }
  body.tgy-mobile-ui-v2.woocommerce-cart .woocommerce-cart-form :is(.product-thumbnail, .product-name, .product-remove, .product-quantity)::before { display: none !important; }
  body.tgy-mobile-ui-v2.woocommerce-cart :is(.cart-collaterals, .cart-collaterals .cart_totals) {
    float: none;
    width: 100%;
    max-width: none;
    margin-top: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    box-shadow: none;
  }
  body.tgy-mobile-ui-v2.woocommerce-cart .tgy-cart-clear-form { display: flex; justify-content: flex-end; margin-top: 4px; }
  body.tgy-mobile-ui-v2.woocommerce-cart .tgy-cart-selection-toolbar > .tgy-cart-clear-button {
    flex-shrink: 0;
    margin: 0 0 0 auto;
    padding-inline: 8px;
  }
  /* Retain authoritative Woo totals/selection data for fragment updates, but
     show the total only in the successfully mounted mobile checkout dock. */
  body.tgy-mobile-ui-v2.tgy-mobile-cart-docked .cart_totals > :is(h2, table),
  body.tgy-mobile-ui-v2.tgy-mobile-cart-docked.tgy-mobile-cart-clear-ready .cart_totals > .wc-proceed-to-checkout,
  body.tgy-mobile-ui-v2.tgy-mobile-cart-docked .tgy-cart-checkout-note,
  body.tgy-mobile-ui-v2.tgy-mobile-cart-notice-ready [data-tgy-cart-checkout-help] {
    display: none;
  }
  body.tgy-mobile-ui-v2.tgy-mobile-cart-docked .cart-collaterals .cart_totals { padding: 0; }
  body.tgy-mobile-ui-v2.woocommerce-cart .tgy-cart-save-status:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  body.tgy-mobile-ui-v2.woocommerce-cart .tgy-cart-clear-button {
    width: auto;
    min-height: 44px;
    border-color: transparent;
    background: transparent;
    color: var(--tgy-text-soft);
    box-shadow: none;
    font-size: 14px;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-cart-dock {
    position: fixed;
    z-index: 80;
    inset: auto 0 var(--tgy-mobile-nav-height, 0px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(112px, 40%);
    align-items: center;
    gap: 4px 12px;
    box-sizing: border-box;
    border-top: 1px solid var(--tgy-border-strong);
    background: var(--tgy-canvas);
    padding: 6px max(12px, env(safe-area-inset-right, 0px)) 6px max(12px, env(safe-area-inset-left, 0px));
    box-shadow: 0 -4px 16px rgb(0 0 0 / 5%);
  }
  body.tgy-mobile-ui-v2 .tgy-mobile-cart-dock-summary {
    display: grid;
    grid-column: 1;
    gap: 2px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  body.tgy-mobile-ui-v2 .tgy-mobile-cart-dock-label { color: var(--tgy-text-soft); font-size: 12px; line-height: 1.3; }
  body.tgy-mobile-ui-v2 .tgy-mobile-cart-dock-total { color: var(--tgy-price-accent); font-size: 19px; line-height: 1.2; }
  body.tgy-mobile-ui-v2 .tgy-cart-checkout-notice { display: grid; gap: 20px; }
  body.tgy-mobile-ui-v2 .tgy-cart-checkout-notice ul { margin: 0; padding-left: 20px; }
  body.tgy-mobile-ui-v2 .tgy-cart-checkout-notice li + li { margin-top: 12px; }
  body.tgy-mobile-ui-v2 .tgy-cart-checkout-notice-status { margin: 0; color: var(--tgy-price-accent); }
  body.tgy-mobile-ui-v2 .tgy-cart-checkout-continue { width: 100%; min-height: 48px; }
  body.tgy-mobile-ui-v2.tgy-mobile-payment-notice-ready [data-tgy-checkout-payment-help] { display: none; }
  body.tgy-mobile-ui-v2 .tgy-checkout-payment-notice { display: grid; gap: 20px; }
  body.tgy-mobile-ui-v2 .tgy-checkout-payment-notice ul { margin: 0; padding-left: 20px; }
  body.tgy-mobile-ui-v2 .tgy-checkout-payment-notice li + li { margin-top: 12px; }
  body.tgy-mobile-ui-v2 .tgy-checkout-payment-notice-status { margin: 0; color: var(--tgy-price-accent); }
  body.tgy-mobile-ui-v2 .tgy-checkout-payment-notice-confirm { width: 100%; min-height: 48px; }
  body.tgy-mobile-ui-v2 .tgy-mobile-cart-dock a.checkout-button {
    --tgy-touch-target: 48px;
    grid-column: 2;
    grid-row: 1;
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 6px;
    padding: 8px;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }
  body.tgy-mobile-ui-v2 .tgy-mobile-cart-dock a.checkout-button[aria-disabled="true"] { opacity: .6; cursor: progress; }

  body.tgy-mobile-ui-v2.woocommerce-checkout :is(form.checkout, #customer_details, #customer_details > .col-1, #customer_details > .col-2, #order_review) {
    display: block;
    float: none;
    width: 100%;
    min-width: 0;
    margin-inline: 0;
  }
  body.tgy-mobile-ui-v2 :is(.tgy-mobile-checkout-account, .tgy-checkout-address-picker, .tgy-checkout-payment-picker:not([hidden])) {
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--tgy-border);
    border-radius: 0;
    background: var(--tgy-canvas);
    padding: 8px 0;
    box-shadow: none;
  }
  body.tgy-mobile-ui-v2 .tgy-mobile-checkout-account { display: flex; min-height: 44px; align-items: baseline; gap: 8px; padding-block: 12px; }
  body.tgy-mobile-ui-v2 .tgy-mobile-checkout-account h2 { flex: 0 0 auto; margin: 0; font-size: 14px; line-height: 1.5; }
  body.tgy-mobile-ui-v2 .tgy-mobile-checkout-account p {
    min-width: 0;
    margin: 0;
    color: var(--tgy-text-soft);
    font-size: 16px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  body.tgy-mobile-ui-v2 :is(.tgy-checkout-address-head h3, .tgy-checkout-payment-picker > legend, #order_review_heading) {
    margin: 0;
    color: var(--tgy-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
  }
  body.tgy-mobile-ui-v2 .tgy-checkout-address-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0 8px;
    margin: 0;
    border: 0;
    padding: 0;
  }
  body.tgy-mobile-ui-v2 .tgy-checkout-address-head > div { display: none; }
  body.tgy-mobile-ui-v2 .tgy-checkout-address-head p,
  body.tgy-mobile-ui-v2 .tgy-mobile-payment-ready:not(.is-mobile-payment-open) > p { display: none; }
  body.tgy-mobile-ui-v2 .tgy-checkout-address-manage { min-height: 44px; margin-left: auto; border: 0; padding: 10px 0; font-size: 14px; line-height: 1.5; }
  body.tgy-mobile-ui-v2 .tgy-checkout-address-empty {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
  }
  body.tgy-mobile-ui-v2 .tgy-checkout-address-empty p { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
  body.tgy-mobile-ui-v2 .tgy-checkout-address-empty a { min-height: 44px; padding-inline: 10px; }
  body.tgy-mobile-ui-v2 .tgy-checkout-return-cart { display: none; }
  body.tgy-mobile-ui-v2 .is-mobile-summary .tgy-checkout-delivery-toggle {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid var(--tgy-border);
    border-radius: 8px;
    background: var(--tgy-canvas);
    padding: 8px 10px;
    box-shadow: none;
    color: var(--tgy-text);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    transform: none;
    transition: border-color 160ms ease, background-color 160ms ease;
  }
  body.tgy-mobile-ui-v2 .tgy-checkout-delivery-toggle-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  body.tgy-mobile-ui-v2 .tgy-checkout-delivery-toggle-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
  body.tgy-mobile-ui-v2 .tgy-checkout-delivery-toggle-head strong { white-space: normal; font-size: inherit; }
  body.tgy-mobile-ui-v2 .tgy-checkout-delivery-toggle-head small { color: var(--tgy-brand-dark); font-size: 12px; }
  body.tgy-mobile-ui-v2 :is(.tgy-checkout-delivery-toggle-secondary, .tgy-checkout-delivery-toggle-phone) { color: var(--tgy-text-soft); white-space: normal; }
  body.tgy-mobile-ui-v2 .tgy-checkout-address-options {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 6px;
    max-height: none;
    min-width: 0;
    min-height: 0;
    margin-top: 8px;
    overflow: visible;
  }
  body.tgy-mobile-ui-v2 .tgy-checkout-address-options[hidden] { display: none !important; }
  body.tgy-mobile-ui-v2 .tgy-checkout-address-options .tgy-checkout-address-option { min-height: 44px; padding: 0; font-size: 16px; line-height: 1.4; }
  body.tgy-mobile-ui-v2 .tgy-checkout-address-options .tgy-checkout-address-card {
    min-height: 44px;
    gap: 2px;
    border-radius: 6px;
    padding: 8px 8px 8px 36px;
  }
  body.tgy-mobile-ui-v2 .tgy-checkout-address-options .tgy-checkout-address-option > input {
    top: 12px;
    left: 8px;
    width: 20px;
    height: 20px;
    margin: 0;
    opacity: 1;
    pointer-events: auto;
    accent-color: var(--tgy-brand);
  }
  body.tgy-mobile-ui-v2 .tgy-checkout-address-options .tgy-checkout-address-card-head { gap: 4px; margin-bottom: 0; }
  body.tgy-mobile-ui-v2 .tgy-checkout-address-options .tgy-checkout-address-option :is(strong, span, small) { font-size: inherit; line-height: inherit; overflow-wrap: anywhere; }
  body.tgy-mobile-ui-v2 .is-mobile-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) fit-content(50%);
    gap: 0 8px;
    align-items: center;
  }
  body.tgy-mobile-ui-v2 .is-mobile-summary :is(.tgy-checkout-address-head, .tgy-checkout-delivery-dropdown) { display: contents; }
  body.tgy-mobile-ui-v2 .is-mobile-summary :is(.tgy-checkout-address-head > div, .tgy-checkout-delivery-toggle-contact, .tgy-checkout-delivery-toggle-secondary) { display: none; }
  body.tgy-mobile-ui-v2 .is-mobile-summary .tgy-checkout-address-manage {
    grid-column: 2;
    grid-row: 1;
    max-width: 100%;
    text-align: end;
    overflow-wrap: anywhere;
  }
  body.tgy-mobile-ui-v2 .is-mobile-summary :is(.tgy-checkout-address-options, .tgy-checkout-delivery-status, .tgy-checkout-address-empty) { grid-column: 1 / -1; }
  body.tgy-mobile-ui-v2 .tgy-checkout-payment-picker:not(.tgy-mobile-payment-ready) > legend { float: left; width: 100%; padding: 0; }
  body.tgy-mobile-ui-v2 .tgy-checkout-payment-picker > p { clear: both; margin: 4px 0 8px; color: var(--tgy-text-soft); font-size: 14px; line-height: 1.4; }
  body.tgy-mobile-ui-v2 .tgy-mobile-payment-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 16px;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: 4px 8px;
    border: 1px solid var(--tgy-border);
    border-radius: 8px;
    background: var(--tgy-canvas);
    padding: 8px 10px;
    box-shadow: none;
    color: var(--tgy-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: border-color 160ms ease, background-color 160ms ease;
  }
  body.tgy-mobile-ui-v2 .tgy-mobile-payment-toggle strong { text-align: right; font-size: inherit; }
  body.tgy-mobile-ui-v2 :is(.tgy-checkout-delivery-toggle, .tgy-mobile-payment-toggle)[aria-expanded="true"] {
    border-color: var(--tgy-brand);
    background: var(--tgy-surface-soft);
  }
  body.tgy-mobile-ui-v2 .tgy-checkout-delivery-toggle-icon { display: none; }
  body.tgy-mobile-ui-v2 :is(.tgy-checkout-delivery-toggle, .tgy-mobile-payment-toggle)::after {
    content: "";
    grid-column: 3;
    grid-row: 1;
    flex: 0 0 auto;
    justify-self: center;
    width: 8px;
    height: 8px;
    margin: -4px 2px 0;
    border-right: 2px solid var(--tgy-brand);
    border-bottom: 2px solid var(--tgy-brand);
    transform: rotate(45deg);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  body.tgy-mobile-ui-v2 :is(.tgy-checkout-delivery-toggle, .tgy-mobile-payment-toggle)[aria-expanded="true"]::after { transform: translateY(4px) rotate(225deg); }
  body.tgy-mobile-ui-v2 .tgy-mobile-payment-ready .tgy-checkout-payment-slot { min-height: 0; margin-top: 8px; }
  @media (prefers-reduced-motion: reduce) {
    body.tgy-mobile-ui-v2 .is-mobile-summary .tgy-checkout-delivery-toggle,
    body.tgy-mobile-ui-v2 .tgy-mobile-payment-toggle,
    body.tgy-mobile-ui-v2 :is(.tgy-checkout-delivery-toggle, .tgy-mobile-payment-toggle)::after {
      transition: none;
      /* Override the shared reduced-motion reset's nonzero duration. */
      transition-duration: 0s !important;
    }
  }
  body.tgy-mobile-ui-v2 .tgy-checkout-payment-slot > ul.wc_payment_methods.payment_methods {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin: 0;
    border: 0;
    padding: 0;
    list-style: none;
  }
  body.tgy-mobile-ui-v2 .tgy-checkout-payment-slot .wc_payment_method {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 0 8px;
    align-items: center;
    border: 1px solid var(--tgy-border);
    border-radius: 6px;
    padding: 0 8px;
  }
  body.tgy-mobile-ui-v2 .tgy-checkout-payment-slot .wc_payment_method:has(input:checked) { border-color: var(--tgy-brand); background: var(--tgy-surface-soft); }
  body.tgy-mobile-ui-v2 .tgy-checkout-payment-slot .wc_payment_method > input.input-radio {
    position: static;
    width: 20px;
    height: 20px;
    margin: 0;
    opacity: 1;
    pointer-events: auto;
    accent-color: var(--tgy-brand);
    transform: none;
  }
  body.tgy-mobile-ui-v2 .tgy-checkout-payment-slot .wc_payment_method > label {
    display: flex;
    min-height: 44px;
    align-items: center;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    font-size: 16px;
    font-weight: 700;
  }
  body.tgy-mobile-ui-v2 .tgy-checkout-payment-slot .wc_payment_method > label::before,
  body.tgy-mobile-ui-v2 .tgy-checkout-payment-slot .wc_payment_method > label::after { display: none; }
  body.tgy-mobile-ui-v2 .tgy-checkout-payment-slot .payment_box { grid-column: 1 / -1; margin: 4px 0 8px; font-size: 14px; line-height: 1.4; }

  body.tgy-mobile-ui-v2 :is(.tgy-mobile-checkout-optional, .tgy-mobile-cart-costs, .tgy-mobile-order-information, .tgy-mobile-order-details) {
    min-width: 0;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--tgy-border);
    border-radius: 0;
    background: var(--tgy-canvas);
    padding: 0;
  }
  body.tgy-mobile-ui-v2 :is(.tgy-mobile-checkout-optional, .tgy-mobile-cart-costs, .tgy-mobile-order-information, .tgy-mobile-order-details) > summary {
    box-sizing: border-box;
    min-height: 44px;
    padding-block: 12px;
    color: var(--tgy-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    overflow-wrap: anywhere;
  }
  body.tgy-mobile-ui-v2 .tgy-mobile-checkout-optional .tgy-checkout-coupon:not([hidden]) { display: block; margin: 0 0 8px; border: 0; padding: 0; }
  body.tgy-mobile-ui-v2 .tgy-checkout-coupon-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  body.tgy-mobile-ui-v2 :is(.tgy-mobile-cart-costs table.shop_table, form.checkout .woocommerce-checkout-review-order-table) { border: 0; border-radius: 0; }
  body.tgy-mobile-ui-v2 :is(.tgy-mobile-cart-costs table.shop_table, form.checkout .woocommerce-checkout-review-order-table) :is(th, td) { padding: 8px 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
  body.tgy-mobile-ui-v2.woocommerce-checkout #order_comments_field { display: block; margin-bottom: 8px; }
  body.tgy-mobile-ui-v2.woocommerce-checkout #order_comments_field textarea { width: 100%; min-height: 88px; }
  body.tgy-mobile-ui-v2.woocommerce-checkout #customer_details > .col-2.is-vacated { display: none; }
  body.tgy-mobile-ui-v2.woocommerce-checkout #payment > .form-row.place-order { display: block; padding: 8px 0 0; }
  body.tgy-mobile-ui-v2.woocommerce-checkout #payment .form-row.place-order .tgy-checkout-consent label { font-size: 14px; line-height: 1.5; }
  body.tgy-mobile-ui-v2.woocommerce-checkout #payment .form-row.place-order :is(.woocommerce-terms-and-conditions-wrapper, .woocommerce-privacy-policy-text p) { margin-block: 0; padding-block: 0; }
  body.tgy-mobile-ui-v2.woocommerce-checkout #payment .form-row.place-order .woocommerce-privacy-policy-text {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    font-size: 14px;
    line-height: 1.5;
  }
  body.tgy-mobile-ui-v2.woocommerce-checkout #payment #place_order.button.alt { --tgy-touch-target: 48px; position: static; float: none; width: 100%; min-height: 48px; margin-top: 12px; white-space: normal; }

  body.tgy-mobile-ui-v2.woocommerce-order-received .woocommerce-order { gap: 12px; }
  body.tgy-mobile-ui-v2.woocommerce-order-received .woocommerce-order > .tgy-order-terms:first-child {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--tgy-border);
    border-radius: 0;
    padding: 12px 0;
  }
  body.tgy-mobile-ui-v2.woocommerce-order-received .tgy-order-terms-grid { display: block; margin: 0 0 8px; }
  body.tgy-mobile-ui-v2.woocommerce-order-received .tgy-order-terms-grid strong { font-size: 14px; }
  body.tgy-mobile-ui-v2.woocommerce-order-received .tgy-order-terms-grid > span {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    min-height: 0;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 16px;
    line-height: 1.4;
  }
  body.tgy-mobile-ui-v2.woocommerce-order-received .tgy-order-terms .woocommerce-order-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 8px !important;
    border: 0;
    border-radius: 0;
  }
  body.tgy-mobile-ui-v2.woocommerce-order-received .tgy-order-terms .woocommerce-order-overview li { grid-column: auto; border: 0; padding: 4px 8px 4px 0; font-size: 14px; }
  body.tgy-mobile-ui-v2.woocommerce-order-received .tgy-order-terms .woocommerce-order-overview__total strong { font-size: 20px; }
  body.tgy-mobile-ui-v2.woocommerce-order-received .tgy-order-terms :is(.tgy-mmg-instructions, .tgy-payment-confirmed) { margin-top: 8px; border-radius: 6px; padding: 8px 12px; font-size: 16px; line-height: 1.45; }
  body.tgy-mobile-ui-v2.woocommerce-order-received .tgy-order-terms .tgy-mmg-instructions ol { margin: 0; padding-left: 18px; }
  body.tgy-mobile-ui-v2.woocommerce-order-received .tgy-order-terms .tgy-mmg-instructions li { margin: 4px 0; }
  body.tgy-mobile-ui-v2.woocommerce-order-received .tgy-order-terms .tgy-order-progress { margin-top: 12px; }
  body.tgy-mobile-ui-v2.woocommerce-order-received .woocommerce-thankyou-order-received { padding: 8px 12px; font-size: 14px; }
  body.tgy-mobile-ui-v2.woocommerce-order-received .woocommerce-table--order-details tfoot :is(th, td) {
    padding-block: 6px;
    font-size: 14px;
    line-height: 1.4;
  }
  body.tgy-mobile-ui-v2.woocommerce-order-received .woocommerce-table--order-details tfoot .tgy-order-total--primary { font-size: inherit; line-height: inherit; }
  body.tgy-mobile-ui-v2.woocommerce-order-received .tgy-order-delivery-list > div { padding-block: 6px; }
  body.tgy-mobile-ui-v2.woocommerce-order-received .tgy-order-delivery-list :is(dt, dd) { line-height: 1.4; }
  body.tgy-mobile-ui-v2.woocommerce-order-received .tgy-order-delivery-list dt { overflow-wrap: anywhere; }
  body.tgy-mobile-ui-v2 .tgy-mobile-order-metadata { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; }
  body.tgy-mobile-ui-v2 .tgy-mobile-order-metadata li {
    display: grid;
    /* Moved overview items must not retain their original two-column span. */
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
    align-items: start;
    gap: 4px 12px;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
  }
  body.tgy-mobile-ui-v2 .tgy-mobile-order-metadata li strong { min-width: 0; white-space: normal; overflow-wrap: anywhere; }

  body.tgy-mobile-ui-v2 :is(.tgy-mobile-checkout-optional, .tgy-mobile-cart-costs, .tgy-mobile-order-information, .tgy-mobile-order-details) > summary:focus-visible,
  body.tgy-mobile-ui-v2 .tgy-mobile-payment-toggle:focus-visible,
  body.tgy-mobile-ui-v2 .tgy-checkout-delivery-toggle:focus-visible,
  body.tgy-mobile-ui-v2 .tgy-mobile-cart-dock a:focus-visible {
    outline: 2px solid var(--tgy-focus-ring);
    outline-offset: 3px;
  }
}
