/* V2 compact catalog and shared product-image triggers. Commerce state is unchanged. */
.tgy-mobile-catalog-price,
.tgy-mobile-route-eta,
.tgy-home-title-compact,
.tgy-shop-title-count,
.tgy-home-information-toggle,
.tgy-mobile-home-help,
.tgy-mobile-home-shortcuts {
  display: none;
}

.tgy-home-brand,
.tgy-home-brand-copy {
  display: contents;
}
.tgy-hero-carousel-pages {
  display: contents;
}

.tgy-main-image-preview {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  place-items: center;
  cursor: zoom-in;
}

.tgy-main-image-preview:focus-visible {
  outline: 3px solid var(--tgy-focus-ring, #176b5c);
  outline-offset: -4px;
}

@media (max-width: 1023px) {
  body.home.tgy-mobile-ui-v2 > main {
    display: flex;
    flex-direction: column;
  }
  body.home.tgy-mobile-ui-v2 > main > section {
    flex: 0 0 auto;
  }
  body.home.tgy-mobile-ui-v2 > main > .tgy-home-values {
    /* Keep the two help areas together at the end of short and long pages. */
    margin-top: auto;
  }
  body.home.tgy-mobile-ui-v2 > .tgy-site-footer {
    margin-top: 0;
  }
  body.tgy-mobile-ui-v2 .tgy-home-product-grid > .tgy-home-product--mobile-only {
    display: block;
  }
  body.tgy-mobile-ui-v2 .tgy-product-grid :is(.tgy-mini-rates, .tgy-product-lowest-price) {
    display: none;
  }
  body.tgy-mobile-ui-v2 .tgy-mobile-catalog-price {
    display: block;
    line-height: 1.3;
  }
  body.tgy-mobile-ui-v2 .tgy-mobile-catalog-price strong {
    color: var(--tgy-price-accent);
    font-size: 16px;
    overflow-wrap: anywhere;
  }
  body.tgy-mobile-ui-v2 .tgy-hero {
    background: var(--tgy-canvas, #fff);
  }

  body.tgy-mobile-ui-v2 .tgy-hero-inner {
    width: calc(100% - 24px);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 12px 0 4px;
  }

  body.tgy-mobile-ui-v2 .tgy-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  body.tgy-mobile-ui-v2 .tgy-hero-copy > :is(p, .tgy-hero-actions),
  body.tgy-mobile-ui-v2 .tgy-hero-copy > .tgy-section-kicker,
  body.tgy-mobile-ui-v2 .tgy-hero-trust {
    display: none;
  }

  body.tgy-mobile-ui-v2 .tgy-home-brand {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
  }
  body.tgy-mobile-ui-v2 .tgy-home-brand-copy {
    display: contents;
  }
  body.tgy-mobile-ui-v2 .tgy-home-brand h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  body.tgy-mobile-ui-v2 .tgy-hero-visual {
    display: block;
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
  }
  body.tgy-mobile-ui-v2 .tgy-hero-carousel {
    --tgy-hero-image-size: clamp(210px, 60vw, 260px);

    height: auto;
    min-height: 0;
    border: 1px solid var(--tgy-border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
  }
  body.tgy-mobile-ui-v2 .tgy-hero-carousel-track {
    height: auto;
    touch-action: pan-y pinch-zoom;
  }
  body.tgy-mobile-ui-v2 .tgy-hero-carousel .tgy-hero-slide {
    display: grid;
    height: auto;
    min-height: 0;
    grid-template-rows: var(--tgy-hero-image-size) auto;
    background: #fff;
  }
  body.tgy-mobile-ui-v2 .tgy-hero-carousel .tgy-product-stage-link {
    display: grid;
    min-width: 0;
    min-height: 0;
    place-items: center;
  }
  body.tgy-mobile-ui-v2 .tgy-hero-carousel .tgy-product-stage--hero {
    /* Give portrait, square and landscape uploads one stable image canvas. */
    width: min(100%, var(--tgy-hero-image-size));
    height: var(--tgy-hero-image-size);
    max-height: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    background: #fff;
    box-shadow: none;
    transform: none;
  }
  body.tgy-mobile-ui-v2 .tgy-hero-carousel .tgy-product-stage--hero .tgy-hero-product-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 8px;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: normal;
    transform: none;
  }
  body.tgy-mobile-ui-v2 .tgy-hero-carousel .tgy-feature-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    min-height: 56px;
    padding: 8px 12px;
    border-top: 0;
  }
  body.tgy-mobile-ui-v2 .tgy-hero-carousel .tgy-feature-title {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
  }
  body.tgy-mobile-ui-v2 .tgy-hero-carousel .tgy-mobile-catalog-price {
    flex: 0 0 auto;
    max-width: 48%;
    text-align: right;
  }
  body.tgy-mobile-ui-v2 .tgy-hero-carousel .tgy-product-lowest-price {
    display: none;
  }
  body.tgy-mobile-ui-v2 .tgy-hero-carousel-dots {
    /* Keep keyboard and screen-reader controls without a permanent mobile row. */
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
  body.tgy-mobile-ui-v2 .tgy-hero-carousel-dots:focus-within {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    max-width: none;
    gap: 8px;
    padding: 0 8px;
    background: var(--tgy-canvas);
    overflow: visible;
    clip-path: none;
    pointer-events: none;
  }
  body.tgy-mobile-ui-v2 .tgy-hero-carousel-pages {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border-radius: 24px;
    background: transparent;
    scrollbar-width: none;
    pointer-events: auto;
  }
  body.tgy-mobile-ui-v2 .tgy-hero-carousel-pages::-webkit-scrollbar {
    display: none;
  }
  body.tgy-mobile-ui-v2 .tgy-hero-carousel-toggle {
    pointer-events: auto;
  }
  body.tgy-mobile-ui-v2 .tgy-hero-carousel [data-tgy-hero-dot]:focus-visible {
    outline-color: var(--tgy-focus-ring);
  }
  .tgy-no-js body.tgy-mobile-ui-v2 .tgy-hero-carousel-dots {
    display: none;
  }
  body.tgy-mobile-ui-v2 .tgy-mobile-home-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  body.tgy-mobile-ui-v2 .tgy-home-shortcut {
    display: grid;
    align-content: center;
    min-height: 72px;
    gap: 4px;
    border: 1px solid #d8e7df;
    border-radius: 12px;
    padding: 10px 12px;
    background: #edf5ef;
    color: var(--tgy-ink);
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  body.tgy-mobile-ui-v2 .tgy-home-shortcut--shipping {
    border-color: #e9dfcf;
    background: #f7f1e6;
  }
  body.tgy-mobile-ui-v2 .tgy-home-shortcut strong {
    font-size: 15px;
  }
  body.tgy-mobile-ui-v2 .tgy-home-shortcut > span {
    font-size: 14px;
    color: var(--tgy-text-soft);
  }
  body.tgy-mobile-ui-v2 .tgy-home-shortcut:focus-visible {
    outline: 3px solid var(--tgy-focus-ring);
    outline-offset: 3px;
  }

  body.tgy-mobile-ui-v2 .tgy-product-search {
    order: -1;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  body.tgy-mobile-ui-v2 .tgy-search-control {
    min-height: 48px;
    padding: 4px;
    gap: 8px;
  }

  body.tgy-mobile-ui-v2 .tgy-search-control button {
    padding-inline: 16px;
  }

  body.tgy-mobile-ui-v2 .tgy-catalog-filter-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 4px 0;
    scrollbar-width: thin;
  }

  body.tgy-mobile-ui-v2 .tgy-catalog-filter-chip {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 32px;
    max-width: 100%;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--tgy-border, #d9e4e1);
    border-radius: 6px;
    padding: 5px 10px;
    color: var(--tgy-brand, #176b5c);
    background: var(--tgy-canvas, #fff);
    font-size: 12px;
    font-weight: 750;
    line-height: 18px;
    white-space: nowrap;
  }

  body.tgy-mobile-ui-v2 .tgy-catalog-filter-chip > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.tgy-mobile-ui-v2 .tgy-catalog-filter-chip small {
    flex-shrink: 0;
    min-width: 18px;
    height: 18px;
    padding-inline: 4px;
    font-size: 10px;
    line-height: 1;
  }

  body.tgy-mobile-ui-v2 .tgy-catalog-filter-chip.is-active {
    color: var(--tgy-on-brand, #fff);
    background: var(--tgy-brand, #176b5c);
    border-color: var(--tgy-brand, #176b5c);
  }

  body.tgy-mobile-ui-v2 :is(.tgy-home-products, .tgy-search-results-section, .tgy-shop-results) {
    padding-block: 12px;
  }

  body.tgy-mobile-ui-v2 .tgy-home-products .tgy-home-title-full {
    display: none;
  }

  body.tgy-mobile-ui-v2 .tgy-home-title-compact {
    display: inline;
  }

  body.tgy-mobile-ui-v2 :is(.tgy-home-products, .tgy-search-results-section) .tgy-section-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  body.tgy-mobile-ui-v2 .tgy-home-products .tgy-section-head > div {
    min-width: 0;
  }

  body.tgy-mobile-ui-v2 .tgy-home-products .tgy-section-link {
    flex: 0 0 auto;
    max-width: 48%;
    min-height: 44px;
    align-content: center;
    font-size: 14px;
  }

  body.tgy-mobile-ui-v2 .tgy-home-products .tgy-section-kicker,
  body.tgy-mobile-ui-v2 .tgy-search-results-section .tgy-section-head > p {
    display: none;
  }

  body.tgy-mobile-ui-v2 :is(.tgy-home-products, .tgy-search-results-section) .tgy-section-head h2 {
    font-size: 20px;
    line-height: 1.3;
  }

  body.tgy-mobile-ui-v2 .tgy-product-grid,
  body.tgy-mobile-ui-v2 .tgy-product-grid.catalog,
  body.tgy-mobile-ui-v2 .tgy-home-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.tgy-mobile-ui-v2 .tgy-product-grid .tgy-product-card {
    min-width: 0;
    border-radius: 10px;
    box-shadow: none;
    transform: none;
  }

  body.tgy-mobile-ui-v2 .tgy-product-grid .tgy-product-image {
    aspect-ratio: 1 / 1;
  }

  body.tgy-mobile-ui-v2 .tgy-product-grid .tgy-product-photo {
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    transform: none;
  }

  body.tgy-mobile-ui-v2 .tgy-product-grid .tgy-product-body {
    min-height: 0;
    gap: 0;
    padding: 8px;
  }

  body.tgy-mobile-ui-v2 .tgy-product-grid .tgy-product-body h3 {
    display: block;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-line-clamp: unset;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
  }

  body.tgy-mobile-ui-v2 .tgy-product-grid .tgy-mini-rates {
    grid-template-columns: minmax(0, 1fr);
    margin-top: auto;
    padding-top: 8px;
    gap: 8px;
  }

  body.tgy-mobile-ui-v2 .tgy-product-grid .tgy-mini-rates span {
    border: 0;
    padding: 0;
    background: transparent;
  }

  body.tgy-mobile-ui-v2 .tgy-product-grid :is(.tgy-mini-rates strong, .tgy-product-lowest-price strong),
  body.tgy-mobile-ui-v2 .tgy-feature-content .tgy-product-lowest-price strong {
    color: var(--tgy-price-accent, #b64c1a);
    font-size: 16px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  body.tgy-mobile-ui-v2 .tgy-home-values {
    border-top: 0;
    padding-block: 0;
    background: var(--tgy-header);
    color: #dce8eb;
  }

  body.tgy-mobile-ui-v2 .tgy-home-information-toggle {
    display: block;
  }

  body.tgy-mobile-ui-v2 .tgy-home-information-toggle summary {
    --tgy-touch-target: 44px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 16px;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    box-sizing: border-box;
    padding-block: 8px;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    list-style: none;
    cursor: pointer;
    overflow-wrap: anywhere;
  }

  body.tgy-mobile-ui-v2 .tgy-home-information-toggle summary::-webkit-details-marker {
    display: none;
  }

  body.tgy-mobile-ui-v2 .tgy-home-information-toggle summary::after {
    content: "";
    grid-column: 2;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentcolor;
    border-bottom: 2px solid currentcolor;
    transform: rotate(45deg);
  }

  body.tgy-mobile-ui-v2 .tgy-home-information-toggle[open] summary::after {
    transform: rotate(225deg);
  }

  body.tgy-mobile-ui-v2 .tgy-home-information-toggle summary:focus-visible {
    outline: 2px solid currentcolor;
    outline-offset: -2px;
  }

  body.tgy-mobile-ui-v2 .tgy-home-information-toggle:not([open]) + .tgy-home-information {
    display: none;
  }

  body.tgy-mobile-ui-v2 .tgy-shop-header {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
    border: 0;
    padding: 0;
  }

  body.tgy-mobile-ui-v2 .tgy-shop-header .tgy-page-intro :is(.tgy-page-intro__eyebrow, p) {
    display: none;
  }

  body.tgy-mobile-ui-v2 .tgy-shop-header .tgy-page-intro {
    gap: 0;
  }

  body.woocommerce-shop.tgy-mobile-ui-v2 .tgy-shop-header .tgy-page-intro {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body.tgy-mobile-ui-v2 .tgy-shop-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
  }

  body.tgy-mobile-ui-v2 .tgy-shop-title-count {
    display: inline;
    color: var(--tgy-text-soft, #425c54);
    font-size: 14px;
    line-height: 1.4;
  }

  body.tgy-mobile-ui-v2 .tgy-catalog-result-count:not(.has-search),
  body.tgy-mobile-ui-v2 .tgy-catalog-count-total {
    display: none;
  }

  body.tgy-mobile-ui-v2 .tgy-catalog-result-count.has-search {
    gap: 8px;
    margin-bottom: 8px;
    padding: 0;
  }

  body.tgy-mobile-ui-v2 .tgy-shop-header h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
  }

  body.tgy-mobile-ui-v2 :is(.tgy-shop-tools, .tgy-shop-search) {
    width: 100%;
    min-width: 0;
  }

  body.tgy-mobile-ui-v2 .tgy-shop-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.tgy-mobile-ui-v2 .tgy-shop-search input {
    min-width: 0;
  }

  body.tgy-mobile-ui-v2 .tgy-catalog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  body.tgy-mobile-ui-v2 .tgy-catalog-sidebar {
    position: static;
    min-width: 0;
    border: 0;
    padding: 0;
  }

  body.tgy-mobile-ui-v2 .tgy-catalog-sidebar h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body.tgy-mobile-ui-v2 .tgy-empty-search {
    grid-column: 1 / -1;
  }

  body.tgy-mobile-ui-v2 .tgy-product-detail--commerce {
    padding-block: 8px 24px;
  }

  body.tgy-mobile-ui-v2.tgy-mobile-secondary .tgy-product-reviews-back {
    display: none;
  }

  body.tgy-mobile-ui-v2 .tgy-container.tgy-product-commerce-layout {
    width: calc(100% - 24px);
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.tgy-mobile-ui-v2 .tgy-product-commerce-layout > :is(.tgy-product-commerce-main, .tgy-product-commerce-aside) {
    grid-column: 1;
    min-width: 0;
  }

  body.tgy-mobile-ui-v2 .tgy-product-commerce-layout > .tgy-product-commerce-main:not(.tgy-product-commerce-main--details) {
    grid-row: 1;
  }

  body.tgy-mobile-ui-v2 .tgy-product-commerce-layout > .tgy-product-commerce-aside {
    grid-row: 2;
  }

  body.tgy-mobile-ui-v2 .tgy-product-commerce-layout > .tgy-product-commerce-main--details {
    grid-row: 3;
  }

  body.tgy-mobile-ui-v2 .tgy-product-summary--sticky {
    position: static;
    max-height: none;
    padding: 0;
  }

  body.tgy-mobile-ui-v2 .tgy-product-summary .tgy-product-summary-title {
    font-size: 18px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  body.tgy-mobile-ui-v2 .tgy-product-summary-head {
    gap: 4px;
    margin-bottom: 8px;
  }

  body.tgy-mobile-ui-v2 .tgy-product-summary-brand {
    display: none;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-product-enhanced > .tgy-detail-rates,
  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-managed:not(.tgy-mobile-purchase-open) {
    display: none;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-product-price,
  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-live-price-card strong {
    display: block;
    color: var(--tgy-price-accent, #b64c1a);
    font-weight: 850;
    line-height: 1.2;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-product-price {
    margin-bottom: 8px;
    font-size: 22px;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-live-price-card strong {
    font-size: 26px;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-selected-options {
    display: grid;
    width: 100%;
    min-height: 48px;
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 12px;
    align-items: center;
    border: 2px solid var(--tgy-brand, #176b5c);
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--tgy-surface-mint, #edf5ef);
    color: var(--tgy-text, #19352d);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: pointer;
  }

  body.tgy-mobile-ui-v2 [data-tgy-mobile-selected] {
    grid-area: 1 / 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-selected-options .dashicons {
    grid-area: 1 / 2;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: var(--tgy-on-brand, #fff);
    background: var(--tgy-brand, #176b5c);
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-product-actions:not([hidden]) {
    position: fixed;
    inset: auto 0 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 52px repeat(2, minmax(0, 1fr));
    gap: 8px;
    border-top: 1px solid var(--tgy-border, #d9e4e1);
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: var(--tgy-canvas, #fff);
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-product-actions button,
  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-confirm {
    --tgy-touch-target: 48px;
    min-height: 48px;
    border: 1px solid var(--tgy-brand, #176b5c);
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--tgy-brand, #176b5c);
    color: var(--tgy-on-brand, #fff);
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    cursor: pointer;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-product-actions button {
    min-width: 0;
    padding: 6px;
    font-size: 15px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-product-support {
    display: flex;
    min-width: 44px;
    min-height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 8px;
    color: var(--tgy-brand, #176b5c);
    background: var(--tgy-surface-mint, #edf5ef);
    text-decoration: none;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-product-support .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-product-support-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-product-actions [data-tgy-mobile-purchase="cart"] {
    color: var(--tgy-brand, #176b5c);
    background: var(--tgy-canvas, #fff);
  }

  body.tgy-mobile-ui-v2 :is(.tgy-mobile-product-actions button, .tgy-mobile-purchase-confirm):disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }

  body.tgy-mobile-ui-v2 :is(.tgy-mobile-selected-options, .tgy-mobile-product-actions button, .tgy-mobile-product-support, .tgy-mobile-purchase-confirm):focus-visible {
    outline: 3px solid var(--tgy-focus-ring, #176b5c);
    outline-offset: 3px;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    gap: 0;
    margin: 0;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open > .tgy-live-price-card {
    display: flex;
    flex: 0 0 auto;
    min-height: 64px;
    align-items: center;
    box-sizing: border-box;
    padding-block: 16px;
    gap: 0;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open > .tgy-order-divider {
    flex: 0 0 1px;
    margin: 0;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-panel:has(.tgy-mobile-purchase-open) {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: calc(var(--tgy-mobile-viewport-height, 100dvh) * 0.8);
    overflow: hidden;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-panel:has(.tgy-mobile-purchase-open) > header {
    flex: 0 0 auto;
  }

  body.tgy-mobile-ui-v2.tgy-mobile-keyboard-open .tgy-mobile-panel:has(.tgy-mobile-purchase-open) {
    height: calc(var(--tgy-mobile-viewport-height, 100dvh) - 16px);
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-panel-content:has(.tgy-mobile-purchase-open) {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding-top: 0;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-direct-order-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    padding: 12px 0 0;
    gap: 12px;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-direct-order-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    align-content: start;
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding: 0 4px 4px 0;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-direct-order-bottom {
    flex: 0 0 auto;
    gap: 8px;
    padding-top: 8px;
  }
  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-direct-order-actions button {
    --tgy-touch-target: 48px;
    min-height: 48px;
    font-size: 16px;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-direct-order-grid--quantity {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-quantity-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-quantity-control {
    --tgy-touch-target: 44px;

    flex: 0 0 148px;
    width: 148px;
    grid-template-columns: 44px minmax(44px, 1fr) 44px;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-direct-order-actions {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-direct-order-actions .tgy-add-to-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Keep the original localized/dynamic text as the accessible name. */
    font-size: 0;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-add-to-cart-button::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background: currentcolor;
    mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M3 3h2l3 13h11l2-9H6" fill="none" stroke="white" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/%3E%3Ccircle cx="9" cy="20" r="1.6" fill="white"/%3E%3Ccircle cx="18" cy="20" r="1.6" fill="white"/%3E%3C/svg%3E') center / contain no-repeat;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-add-to-cart-button.loading::before {
    box-sizing: border-box;
    border: 2px solid currentcolor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    background: transparent;
    mask: none;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-add-to-cart-button.loading::after {
    content: none;
  }
  body.tgy-mobile-ui-v2 :is(.tgy-option-label, .tgy-quantity-label, .tgy-main-image-count),
  body.tgy-mobile-ui-v2 .tgy-route-chip [data-tgy-route-status] {
    font-size: 14px;
    line-height: 1.35;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-error {
    margin: 0;
    color: var(--tgy-danger);
    font-size: 16px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-error[hidden] {
    display: none;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open :is(.tgy-option-buttons, .tgy-route-options) {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open :is(.tgy-option-chip, .tgy-route-chip) {
    max-width: 100%;
    min-height: 48px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-option-chip strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-route-chip {
    width: fit-content;
    inline-size: fit-content;
    min-width: 44px;
    align-items: flex-start;
    gap: 4px;
    padding: 12px;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-mobile-route-eta,
  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-route-chip:not([aria-disabled="true"]) [data-tgy-route-status] {
    display: none;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-route-guidance {
    display: none;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-pending .tgy-direct-order-actions {
    display: none;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-confirm:not([hidden]) {
    display: block;
    width: 100%;
  }

  body.tgy-mobile-ui-v2 .tgy-product-tabs {
    display: flex;
    gap: 0;
    overflow: visible;
  }

  body.tgy-mobile-ui-v2 .tgy-product-tabs a {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    position: relative;
    min-height: 44px;
    border-bottom: 0;
    padding-inline: 8px;
    font-size: 13px;
    font-weight: 650;
    line-height: 20px;
    justify-content: center;
    text-align: center;
    overflow-wrap: anywhere;
  }

  body.tgy-mobile-ui-v2 .tgy-product-tabs a:not([href="#tgy-product-details"]) ~ a:not([href="#tgy-product-details"])::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    height: 14px;
    border-inline-start: 1px solid var(--tgy-border-strong);
    transform: translateY(-50%);
  }

  body.tgy-mobile-ui-v2 .tgy-product-tabs a[href="#tgy-product-details"],
  body.tgy-mobile-ui-v2 .tgy-product-tabs:not(:has(a:not([href="#tgy-product-details"]))) {
    display: none;
  }

  body.tgy-mobile-ui-v2 .tgy-main-image-viewport {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    touch-action: pan-y pinch-zoom;
  }

  body.tgy-mobile-ui-v2 .tgy-main-image-slide {
    min-width: 0;
    min-height: 0;
  }

  body.tgy-mobile-ui-v2 .tgy-main-image-slide img {
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    object-position: center;
  }

  body.tgy-mobile-ui-v2 .tgy-main-image-count {
    right: 12px;
    bottom: 8px;
  }

  body.tgy-mobile-ui-v2 .tgy-product-gallery {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  body.tgy-mobile-ui-v2 .tgy-product-gallery :is(.tgy-product-brand, .tgy-gallery-note) {
    display: none;
  }

  body.tgy-mobile-ui-v2 .tgy-product-public-information:not([hidden]) {
    display: block;
    min-width: 0;
    border-block: 1px solid var(--tgy-border);
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  body.tgy-mobile-ui-v2 .tgy-product-public-information > summary {
    min-height: 44px;
    box-sizing: border-box;
    padding-block: 12px;
    color: var(--tgy-brand, #176b5c);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    cursor: pointer;
  }

  body.tgy-mobile-ui-v2 .tgy-product-public-information > summary:focus-visible {
    outline: 3px solid var(--tgy-focus-ring, #176b5c);
    outline-offset: 3px;
  }

  body.tgy-mobile-ui-v2 .tgy-product-public-information-content {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding-bottom: 16px;
  }

  body.tgy-mobile-ui-v2 .tgy-product-public-information-content :is(p, dl, dd) {
    margin: 0;
  }

  body.tgy-mobile-ui-v2 .tgy-product-public-information-content dl > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 12px;
    padding-block: 8px;
  }

  body.tgy-mobile-ui-v2 .tgy-product-public-description {
    display: grid;
    gap: 12px;
    overflow-x: auto;
  }

  body.tgy-mobile-ui-v2 .tgy-product-info-panel#tgy-product-rules .tgy-rules-grid :is(strong, p) {
    font-size: 12px;
    line-height: 18px;
  }

  body.tgy-mobile-ui-v2 .tgy-product-info-panel--reviews .tgy-info-heading {
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 4px;
  }

  body.tgy-mobile-ui-v2 .tgy-product-info-panel--reviews .tgy-info-heading h2 {
    font-size: 14px;
    line-height: 20px;
  }

  body.tgy-mobile-ui-v2 .tgy-review-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "meta" "rating" "copy" "images";
    gap: 6px;
    padding-block: 12px;
  }

  body.tgy-mobile-ui-v2 .tgy-review-card :is(p, strong) {
    font-size: 13px;
    line-height: 1.5;
  }

  body.tgy-mobile-ui-v2 .tgy-service-promises {
    flex-wrap: wrap;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-product-overview > .tgy-service-promises {
    margin: 0 0 8px;
  }
}

@media (max-width: 1023px) and (max-height: 500px) {
  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-direct-order-form {
    gap: 8px;
    padding-top: 8px;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open > .tgy-live-price-card {
    min-height: 48px;
    padding-block: 8px;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-direct-order-bottom {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    align-items: end;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-mobile-purchase-error {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open :is(.tgy-direct-order-actions, .tgy-mobile-purchase-confirm) {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 600px) and (max-height: 500px) {
  body.tgy-mobile-ui-v2 .tgy-mobile-panel:has(.tgy-mobile-purchase-open) {
    height: calc(var(--tgy-mobile-viewport-height, 100dvh) - 16px);
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-direct-order-bottom {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open :is(.tgy-direct-order-actions, .tgy-mobile-purchase-confirm) {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-add-to-cart-button.loading::before {
    animation: tgy-cart-icon-progress 800ms linear infinite;
  }
}

@media (max-width: 1023px) and (forced-colors: active) {
  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-add-to-cart-button::before {
    background: ButtonText;
    forced-color-adjust: none;
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-purchase-open .tgy-add-to-cart-button.loading::before {
    border-color: ButtonText;
    border-inline-end-color: transparent;
    background: transparent;
  }
}

@keyframes tgy-cart-icon-progress {
  to { transform: rotate(360deg); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.tgy-mobile-ui-v2 .tgy-product-grid,
  body.tgy-mobile-ui-v2 .tgy-product-grid.catalog,
  body.tgy-mobile-ui-v2 .tgy-home-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.tgy-mobile-ui-v2 .tgy-mobile-product-actions:not([hidden]) {
    padding-inline: max(24px, calc((100% - 720px) / 2));
  }
}
