/**
 * Buy vouchers page (/gutscheine-kaufen/)
 * Fixed card rows so title / text / code / price / button align across every card.
 */

.ss-voucher-code-copy {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ss-voucher-code-copy:hover {
  background: rgba(0, 84, 163, 0.12) !important;
  border-color: rgba(0, 84, 163, 0.28) !important;
}

.ss-voucher-code-copy:focus-visible {
  outline: 2px solid rgba(0, 84, 163, 0.45);
  outline-offset: 2px;
}

.ss-voucher-code-copy.is-copied {
  background: rgba(22, 163, 74, 0.12) !important;
  border-color: rgba(22, 163, 74, 0.35) !important;
  color: #15803d !important;
}

body.ss-buy-vouchers-page .site-content .ast-container,
body.ss-buy-vouchers-page #main .ast-container {
  max-width: 1600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box !important;
}

@media (min-width: 576px) {
  body.ss-buy-vouchers-page .site-content .ast-container,
  body.ss-buy-vouchers-page #main .ast-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

body.ss-buy-vouchers-page #content.site-content,
body.ss-buy-vouchers-page .site-content {
  padding-top: 24px !important;
}

/* Shortcode provides the page title — hide duplicate theme heading */
body.ss-buy-vouchers-page .entry-header,
body.ss-buy-vouchers-page .entry-content > .wp-block-post-title,
body.ss-buy-vouchers-page .entry-content > h1:not([class*="ss-mock-buy-vouchers"]) {
  display: none !important;
}

body.ss-buy-vouchers-page .entry-content {
  margin-top: 0 !important;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-page {
  --ss-vch-blue: var(--ss-blue-color, #0054a3);
  max-width: 1600px;
  width: 100%;
  margin: 0 auto 48px;
  padding: 0 0 40px;
  box-sizing: border-box;
}

body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Match overview location-vouchers grid (5 → 3 → 2 → 1) */
body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-grid.ss-products-grid:not(.ss-gift-voucher-slider),
body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-grid--buy_page {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: stretch !important;
}

@media (max-width: 1280px) {
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-grid.ss-products-grid:not(.ss-gift-voucher-slider),
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-grid--buy_page {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-grid.ss-products-grid:not(.ss-gift-voucher-slider),
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-grid--buy_page {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-grid.ss-products-grid:not(.ss-gift-voucher-slider),
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-grid--buy_page {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-header {
  margin: 0 0 24px;
  padding: 0;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-title {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ss-vch-blue);
  line-height: 1.25;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-intro {
  margin: 0;
  font-size: 0.98rem;
  color: #4b5563;
  line-height: 1.45;
  max-width: 70ch;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 32px auto;
  row-gap: 10px;
  height: auto;
  min-height: 0;
  padding: 22px 20px 18px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 0 !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
  overflow: hidden;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card:has(.ss-mock-buy-vouchers-card-text:not(.is-empty)) {
  grid-template-rows: minmax(2.6em, auto) minmax(4.5em, auto) 32px auto;
  height: 100%;
  min-height: 100%;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card:has(.ss-mock-buy-vouchers-card-code.is-empty) {
  grid-template-rows: auto auto;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card:has(.ss-mock-buy-vouchers-card-text:not(.is-empty)):has(.ss-mock-buy-vouchers-card-code.is-empty) {
  grid-template-rows: minmax(2.6em, auto) minmax(4.5em, auto) auto;
  height: 100%;
  min-height: 100%;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ss-vch-blue);
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card-muted {
  background: #f9fafb;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  align-self: start;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card-text {
  margin: 0;
  font-size: 0.75rem;
  color: #4b5563;
  line-height: 1.35;
  align-self: start;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  max-height: calc(0.75rem * 1.35 * 2);
  cursor: help;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card-text.is-empty,
body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card-code.is-empty {
  display: none;
}

/* Keep rows aligned only when another card in the grid has a description */
body.ss-buy-vouchers-page .ss-mock-buy-vouchers-grid:has(.ss-mock-buy-vouchers-card-text:not(.is-empty)) .ss-mock-buy-vouchers-card-text.is-empty {
  display: block;
  visibility: hidden;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-grid:has(.ss-mock-buy-vouchers-card-text:not(.is-empty)) .ss-mock-buy-vouchers-card:has(.ss-mock-buy-vouchers-card-text.is-empty) {
  grid-template-rows: minmax(2.6em, auto) minmax(4.5em, auto) 32px auto;
  height: 100%;
  min-height: 100%;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-grid:has(.ss-mock-buy-vouchers-card-code:not(.is-empty)) .ss-mock-buy-vouchers-card-code.is-empty {
  display: block;
  visibility: hidden;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card-code {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  align-self: start;
  min-height: 32px;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card-code-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card-code-value {
  display: inline-block;
  padding: 4px 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ss-vch-blue);
  background: rgba(0, 84, 163, 0.07);
  border: 1px solid rgba(0, 84, 163, 0.16);
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card-foot {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  display: grid;
  grid-template-rows: auto 44px;
  row-gap: 12px;
  align-self: end;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card-price {
  margin: 0;
  min-height: 1.35em;
  display: flex;
  align-items: flex-end;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-price-main {
  display: block;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ss-vch-blue);
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-button,
body.ss-buy-vouchers-page .ss-mock-buy-vouchers-button.button {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 16px;
  border-radius: 0 !important;
  border: 2px solid var(--ss-vch-blue) !important;
  color: var(--ss-vch-blue) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  align-self: end;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-button:hover:not(:disabled),
body.ss-buy-vouchers-page .ss-mock-buy-vouchers-button.button:hover:not(:disabled) {
  background: var(--ss-vch-blue) !important;
  border-color: var(--ss-vch-blue) !important;
  color: #ffffff !important;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-button:focus-visible:not(:disabled) {
  outline: 3px solid rgba(0, 84, 163, 0.25);
  outline-offset: 2px;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-empty {
  margin: 12px 0 0;
  padding: 28px 22px;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  border-radius: 0 !important;
  color: #4b5563;
  background: #f8fafc;
  text-align: center;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-empty-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-empty-text {
  margin: 0 auto 18px;
  max-width: 34rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4b5563;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--ss-vch-blue, #0054a3) !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 2px solid var(--ss-vch-blue, #0054a3);
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-empty-cta:hover,
body.ss-buy-vouchers-page .ss-mock-buy-vouchers-empty-cta:focus-visible {
  filter: brightness(1.05);
  color: #ffffff !important;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-empty-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--ss-vch-blue, #0054a3) !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-empty-admin {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.85rem;
  line-height: 1.45;
  color: #6b7280;
  text-align: left;
}

body.ss-buy-vouchers-page .ss-mock-buy-vouchers-empty a {
  color: var(--ss-vch-blue);
  font-weight: 600;
}

@media (max-width: 1024px) {
  body.ss-buy-vouchers-page .ss-mock-buy-vouchers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.ss-buy-vouchers-page #content.site-content,
  body.ss-buy-vouchers-page .site-content {
    padding-top: 0 !important;
  }

  body.ss-buy-vouchers-page .entry-content {
    padding: 0 16px !important;
    margin: 0 !important;
  }

  body.ss-buy-vouchers-page .site-content .ast-container,
  body.ss-buy-vouchers-page #main .ast-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.ss-buy-vouchers-page .ss-mock-buy-vouchers-page {
    padding: 8px 0 32px !important;
    margin-bottom: 32px;
  }

  body.ss-buy-vouchers-page .ss-mock-buy-vouchers-header {
    margin: 0 0 18px !important;
  }

  /* Beat global mobile h1/h2/p !important rules in class-ss-frontend.php */
  body.ss-buy-vouchers-page .ss-mock-buy-vouchers-title {
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
    margin: 0 0 10px !important;
  }

  body.ss-buy-vouchers-page .ss-mock-buy-vouchers-intro {
    font-size: 0.875rem !important;
    line-height: 1.45 !important;
    margin: 0 !important;
  }

  body.ss-buy-vouchers-page .ss-mock-buy-vouchers-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-content,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-product-content {
    padding-top: 14px !important;
  }

  body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card {
    grid-template-rows: auto auto auto auto;
    padding: 14px 14px 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  }

  body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card-text.is-empty,
  body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card-code.is-empty {
    display: none;
  }

  body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card-title {
    font-size: 0.98rem !important;
    line-height: 1.25 !important;
  }

  body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card-text {
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
  }

  body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card-code-label {
    font-size: 0.72rem !important;
  }

  body.ss-buy-vouchers-page .ss-mock-buy-vouchers-card-code-value {
    font-size: 0.82rem !important;
  }

  body.ss-buy-vouchers-page .ss-mock-buy-vouchers-price-main {
    font-size: 1.02rem !important;
  }

  body.ss-buy-vouchers-page .ss-mock-buy-vouchers-button,
  body.ss-buy-vouchers-page .ss-mock-buy-vouchers-button.button {
    font-size: 0.82rem !important;
    line-height: 1.15 !important;
    height: auto;
    min-height: 44px;
    padding: 12px 14px;
    white-space: normal;
    text-wrap: balance;
  }

  body.ss-buy-vouchers-page .ss-mock-buy-vouchers-empty,
  body.ss-buy-vouchers-page .ss-mock-buy-vouchers-empty p {
    font-size: 0.875rem !important;
    line-height: 1.45 !important;
  }
}

/* ── Gift voucher products: same layout as SkyLoop booking products ── */
.ss-buy-vouchers-gift-section,
.ss-cart-gift-product-crosssell,
.ss-step2-gift-product-upsell {
  max-width: 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: clip;
}

.ss-gift-voucher-product-grid.ss-products-grid:not(.ss-gift-voucher-slider) {
  display: grid !important;
  /* minmax(0, 1fr) prevents track min-content from blowing past container (overflow-x) */
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin: 20px 0 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: stretch !important;
  min-height: 0 !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow-x: clip;
}

/*
 * Gift cards match overview activity / entry-fee cards
 * (.ss-activity-card / .ss-entry-fee-card): clean column, 200px media, body gap 12.
 */
.ss-gift-voucher-product-grid .ss-product-card:not(.ss-gift-voucher-product-card--mini),
.ss-gift-voucher-product-card.ss-product-card:not(.ss-gift-voucher-product-card--mini) {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: none !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 200px !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  cursor: default !important;
  overflow: hidden !important;
  padding: 0 !important;
  text-align: left !important;
}

/* Mini base shell (off-canvas): no 200px min / 100% height stretch */
.ss-gift-voucher-product-card--mini.ss-product-card {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  padding: 0 !important;
}

/* Media = activity-card__media (200px full width cover) — full cards only */
.ss-gift-voucher-product-grid:not(.ss-gift-voucher-slider--mini) .ss-product-image,
.ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-image,
.ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-image--placeholder {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 200px !important;
  min-height: 200px !important;
  max-height: 200px !important;
  margin: 0 0 6px 0 !important;
  aspect-ratio: auto !important;
  text-align: center !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  position: relative !important;
  background: #e8eef5 !important;
}

/* Image badges hidden like activity-card__badges on overview */
.ss-gift-voucher-image-badge {
  display: none !important;
}

/* WooCommerce’s injected “view cart” link — our button already covers that */
.ss-gift-voucher-product-card a.added_to_cart,
.ss-gift-voucher-product-grid a.added_to_cart,
.ss-gift-voucher-product-content a.added_to_cart,
.ss-product-content > a.added_to_cart.wc-forward {
  display: none !important;
}

.ss-gift-voucher-product-grid .ss-product-image img,
.ss-gift-voucher-product-grid .ss-product-image picture,
.ss-gift-voucher-product-grid .ss-product-image source,
.ss-gift-voucher-product-card .ss-product-image img,
.ss-gift-voucher-product-card .ss-product-image picture {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  transition: none !important;
}

.ss-gift-voucher-product-grid .ss-product-image picture,
.ss-gift-voucher-product-card .ss-product-image picture {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

/* Body = activity-card__body (full gift cards). Mini uses dedicated off-canvas rules. */
.ss-gift-voucher-product-grid:not(.ss-gift-voucher-slider--mini) .ss-product-content,
.ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  /* Tight stack for title/desc/price — CTA uses margin-top:auto below */
  gap: 4px !important;
  min-height: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Title = overview activity / product card title tokens */
.ss-gift-voucher-product-grid .ss-product-name,
.ss-gift-voucher-product-card .ss-product-name {
  font-size: var(--ss-type-card-title, 1.2rem) !important;
  font-weight: 600 !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  color: #17428c !important;
  line-height: 1.15 !important;
  flex-shrink: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere;
}

/*
 * Desktop only: reserve fixed title (2 lines) + description (2 lines) rows
 * so title / description / price align across cards in a row
 * (step-2 trio + buy-vouchers gift grid).
 */
@media (min-width: 769px) {
  .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-content,
  .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-content,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-content,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-content,
  .ss-gift-voucher-slider .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-content {
    display: flex !important;
    flex-direction: column !important;
    grid-template-rows: none !important;
    row-gap: 4px !important;
    column-gap: 0 !important;
    gap: 4px !important;
    align-content: stretch !important;
    align-items: stretch !important;
  }

  .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-name,
  .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-name,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-name,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-name,
  .ss-gift-voucher-slider .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-name {
    grid-row: 1 !important;
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    line-height: 1.15 !important;
    font-size: var(--ss-type-card-title, 1.2rem) !important;
    font-weight: 600 !important;
    align-self: start !important;
  }

  /* Overview vouchers: hide empty description slot entirely (no reserved height) */
  body .ss-booking-container .ss-location-vouchers .ss-gift-voucher-product-card .ss-product-description.is-empty,
  body .ss-booking-container .ss-location-vouchers .ss-product-description.is-empty {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-description,
  .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-description,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-description,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-description,
  .ss-gift-voucher-slider .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-description {
    grid-row: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    flex: none !important;
    /* Exact 2-line slot so every card’s price starts on the same y */
    min-height: calc(0.75rem * 1.35 * 2) !important;
    height: calc(0.75rem * 1.35 * 2) !important;
    max-height: calc(0.75rem * 1.35 * 2) !important;
    margin: 0 !important;
    margin-top: 0 !important;
    line-height: 1.35 !important;
    font-size: 0.75rem !important;
    align-self: start !important;
  }

  .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-description.is-empty,
  .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-description.is-empty,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-description.is-empty,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-description.is-empty,
  .ss-gift-voucher-slider .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-description.is-empty {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    min-height: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-price,
  .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-price,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-price,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-price,
  .ss-gift-voucher-slider .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-price {
    grid-row: 3 !important;
    margin: 0 !important;
    margin-top: 0 !important;
    min-height: 1.4em !important;
    line-height: 1.4 !important;
    align-self: start !important;
    flex-shrink: 0 !important;
  }

  .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-content > .ss-btn,
  .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-content > .ss-gift-voucher-product-button,
  .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-content > .ss-btn,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-content > .ss-btn,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-content > .ss-btn,
  .ss-gift-voucher-slider .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-content > .ss-btn {
    grid-row: 4 !important;
    align-self: end !important;
    margin-top: 8px !important;
  }
}

.ss-gift-voucher-product-grid .ss-product-name a.ss-gift-voucher-product-title-link,
.ss-gift-voucher-product-grid a.ss-gift-voucher-product-title-link,
.ss-gift-voucher-product-card .ss-product-name a.ss-gift-voucher-product-title-link {
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.ss-gift-voucher-product-grid .ss-product-name a.ss-gift-voucher-product-title-link:hover,
.ss-gift-voucher-product-grid .ss-product-name a.ss-gift-voucher-product-title-link:focus,
.ss-gift-voucher-product-card .ss-product-name a.ss-gift-voucher-product-title-link:hover,
.ss-gift-voucher-product-card .ss-product-name a.ss-gift-voucher-product-title-link:focus {
  text-decoration: underline !important;
  color: inherit !important;
  /* No outline/border flash on title focus */
  outline: none !important;
  box-shadow: none !important;
}

/*
 * Deep-link / title-focus selection: check on image only
 * (no card outline / border — matches booking product select treatment).
 */
.ss-gift-voucher-product-card.is-selected,
.ss-gift-voucher-product-card.is-focused {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  animation: none !important;
}

.ss-gift-voucher-product-card.is-selected .ss-product-image,
.ss-gift-voucher-product-card.is-focused .ss-product-image,
.ss-gift-voucher-product-card.is-selected .ss-product-image--placeholder,
.ss-gift-voucher-product-card.is-focused .ss-product-image--placeholder {
  position: relative !important;
}

.ss-gift-voucher-product-card.is-selected .ss-product-image::after,
.ss-gift-voucher-product-card.is-focused .ss-product-image::after,
.ss-gift-voucher-product-card.is-selected .ss-product-image--placeholder::after,
.ss-gift-voucher-product-card.is-focused .ss-product-image--placeholder::after {
  content: "" !important;
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  z-index: 5 !important;
  pointer-events: none !important;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM10.2426 14.4142L17.3137 7.34315L18.7279 8.75736L10.2426 17.2426L6 13L7.41421 11.5858L10.2426 14.4142Z' fill='%2317428c'/%3E%3C/svg%3E") !important;
  background-size: 22px 22px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  animation: ss-gift-check-pop 0.35s ease-out;
}

@keyframes ss-gift-check-pop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Compact check for off-canvas mini cards */
.ss-gift-voucher-product-card--mini.is-selected .ss-product-image::after,
.ss-gift-voucher-product-card--mini.is-focused .ss-product-image::after,
.ss-offcanvas-gift-upsell .ss-gift-voucher-product-card.is-selected .ss-product-image::after,
.ss-offcanvas-gift-upsell .ss-gift-voucher-product-card.is-focused .ss-product-image::after {
  top: 4px !important;
  left: 4px !important;
  width: 22px !important;
  height: 22px !important;
  background-size: 16px 16px !important;
}

/* Remove legacy pulse outline animation */
@keyframes ss-gift-card-pulse {
  0%,
  100%,
  50% {
    box-shadow: none;
  }
}

/* Description = activity-card__description (compact 2-line clamp; full text on hover tooltip) */
.ss-gift-voucher-product-grid .ss-product-description,
.ss-gift-voucher-product-card .ss-product-description {
  color: #666666 !important;
  margin: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  /* Don’t grow and open a void under the title — CTA uses margin-top:auto */
  flex: 0 1 auto !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  line-height: 1.35 !important;
  font-size: 0.75rem !important;
  overflow: hidden !important;
  min-height: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  max-height: calc(0.75rem * 1.35 * 2) !important;
  cursor: help;
}

/* Title → description: keep flush (overrides theme/booking margins) */
.ss-gift-voucher-product-card .ss-product-name + .ss-product-description,
.ss-gift-voucher-product-grid .ss-product-name + .ss-product-description {
  margin-top: 2px !important;
}

.ss-gift-voucher-product-grid .ss-product-description p,
.ss-gift-voucher-product-card .ss-product-description p {
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  display: inline !important;
}

/* Price ≈ entry-fee subtitle (tint keeps gift identity) */
.ss-gift-voucher-product-grid .ss-product-price,
.ss-gift-voucher-product-grid .ss-product-price .amount,
.ss-gift-voucher-product-grid .ss-product-price .woocommerce-Price-amount,
.ss-gift-voucher-product-card .ss-product-price,
.ss-gift-voucher-product-card .ss-product-price .amount,
.ss-gift-voucher-product-card .ss-product-price .woocommerce-Price-amount {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--ss-activity-primary, #17428c) !important;
  margin: 4px 0 0 0 !important;
  flex-shrink: 0 !important;
  max-width: 100% !important;
  line-height: 1.6 !important;
}

/* CTA = activity body .ss-btn */
/* Global gift CTA margin-top:auto — exclude off-canvas mini */
.ss-gift-voucher-product-grid:not(.ss-gift-voucher-slider--mini) .ss-product-content .ss-btn,
.ss-gift-voucher-product-grid:not(.ss-gift-voucher-slider--mini) button.ss-gift-voucher-product-button,
.ss-gift-voucher-product-grid:not(.ss-gift-voucher-slider--mini) a.ss-gift-voucher-product-button,
.ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-content .ss-btn,
.ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) button.ss-gift-voucher-product-button {
  width: 100% !important;
  max-width: 100% !important;
  background-color: var(--ss-activity-primary, #17428c) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 12px 20px !important;
  font-weight: 700 !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease, background-color 0.2s ease !important;
  margin-top: auto !important;
  flex-shrink: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  display: block !important;
  box-sizing: border-box !important;
  line-height: 1.5 !important;
  font-size: 16px !important;
  transform: none !important;
  font-family: inherit !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.ss-gift-voucher-product-grid .ss-product-content .ss-btn.is-loading,
.ss-gift-voucher-product-grid button.ss-gift-voucher-product-button.is-loading,
.ss-gift-voucher-product-grid a.ss-gift-voucher-product-button.is-loading {
  opacity: 0.7 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

.ss-gift-voucher-product-grid .ss-product-content .ss-btn.is-added,
.ss-gift-voucher-product-grid button.ss-gift-voucher-product-button.is-added,
.ss-gift-voucher-product-grid a.ss-gift-voucher-product-button.is-added {
  background-color: var(--ss-activity-primary, #0f2f66) !important;
}

.ss-gift-voucher-product-grid .ss-product-content .ss-btn:hover,
.ss-gift-voucher-product-grid button.ss-gift-voucher-product-button:hover,
.ss-gift-voucher-product-grid button.ss-gift-voucher-product-button:focus,
.ss-gift-voucher-product-grid a.ss-gift-voucher-product-button:hover,
.ss-gift-voucher-product-grid a.ss-gift-voucher-product-button:focus {
  opacity: 0.9 !important;
  transform: none !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.ss-step2-gift-product-upsell {
  margin: 1.5rem 0 2rem;
}

.ss-step2-gift-product-upsell h3 {
  margin: 0 0 0.35rem;
}

.ss-cart-gift-product-crosssell {
  margin: 0 0 24px;
}

/* Buy page shell */
body.ss-buy-vouchers-page,
body.ss-buy-vouchers-page .site-content,
body.ss-buy-vouchers-page .entry-content,
body.ss-buy-vouchers-page .ss-mock-buy-vouchers-page {
  overflow-x: clip;
  max-width: 100%;
}

body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-grid {
  margin-top: 0 !important;
}

/* Image → deep-link to voucher page (cart / mini / booking / buy) */
.ss-gift-voucher-product-image-link {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer !important;
}

.ss-gift-voucher-product-image-link img,
.ss-gift-voucher-product-image-link picture,
.ss-gift-voucher-product-image-link source {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.ss-gift-voucher-product-image-link--placeholder {
  background: transparent;
}

.ss-product-image .ss-gift-voucher-image-badge {
  z-index: 2;
  pointer-events: none;
}

/* ── Single-product carousel (cart / booking gift upsells) ── */
/* Slider node also has .ss-products-grid — must beat display:grid !important */
.ss-gift-voucher-slider,
.ss-gift-voucher-slider.ss-products-grid,
.ss-gift-voucher-slider.ss-gift-voucher-product-grid,
.ss-cart-gift-product-crosssell .ss-gift-voucher-slider,
.ss-step2-gift-product-upsell .ss-gift-voucher-slider {
  position: relative;
  overflow: hidden;
  margin: 0 0 8px;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  row-gap: 12px;
  column-gap: 0 !important;
  gap: 12px 0 !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0 !important;
  box-sizing: border-box;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  align-items: stretch !important;
  /* Prevent wide flip-tracks from stretching grid ancestors */
  contain: inline-size;
  /* Horizontal drag; vertical scroll still allowed */
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

[data-ss-voucher-slider].is-dragging,
.ss-gift-voucher-slider.is-dragging {
  cursor: grabbing;
}

[data-ss-voucher-slider] .ss-gift-voucher-slider-track,
[data-ss-voucher-slider] .ss-cart-voucher-slider-track,
.ss-gift-voucher-slider .ss-gift-voucher-slider-track,
.ss-gift-voucher-slider .ss-cart-voucher-slider-track {
  touch-action: pan-y;
  cursor: inherit;
  will-change: transform;
}

/* Keep buttons / dots clickable feel */
[data-ss-voucher-slider] button,
[data-ss-voucher-slider] .ss-gift-voucher-product-button,
[data-ss-voucher-slider] .ss-gift-voucher-slider-dot,
[data-ss-voucher-slider] .ss-cart-voucher-slider-dot {
  cursor: pointer;
  touch-action: manipulation;
}

.ss-gift-voucher-slider .ss-gift-voucher-slider-track,
.ss-gift-voucher-slider .ss-cart-voucher-slider-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  transition: transform 0.35s ease;
  will-change: transform;
  /* Width set in JS (px) so translate3d works; keep content-sized, not capped at 100%. */
  width: auto;
  max-width: none !important;
  gap: 0 !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.ss-gift-voucher-slider .ss-gift-voucher-slide,
.ss-gift-voucher-slider .ss-cart-voucher-slide {
  /* Fallback before JS measures; JS overwrites flex-basis/width in px. */
  min-width: 100%;
  max-width: none;
  width: 100%;
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 0;
  flex-shrink: 0 !important;
  align-self: stretch !important;
  height: auto;
  min-height: 0;
}

/* Slider/cart/step2: same 200px media as activity cards (base already set; reinforce) */
.ss-gift-voucher-slider .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-image,
.ss-gift-voucher-slider .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-image--placeholder,
.ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-image,
.ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-image,
body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-image,
body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-image {
  width: 100% !important;
  max-width: 100% !important;
  height: 200px !important;
  min-height: 200px !important;
  max-height: 200px !important;
  margin: 0 0 15px 0 !important;
  aspect-ratio: auto !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  background: #e8eef5 !important;
}

.ss-gift-voucher-slider .ss-gift-voucher-product-card .ss-product-image img,
.ss-gift-voucher-slider .ss-gift-voucher-product-card .ss-product-image picture,
.ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-image img,
.ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-image img,
body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-image img,
body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-image img,
.ss-gift-voucher-product-grid .ss-gift-voucher-product-card .ss-product-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  border-radius: 0 !important;
}

/* Cards fill slide height after JS equalizes — full gift cards only (NOT off-canvas mini). */
.ss-gift-voucher-slider:not(.ss-gift-voucher-slider--mini) .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini),
.ss-cart-gift-product-crosssell .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) {
  height: 100% !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
}

.ss-gift-voucher-slider:not(.ss-gift-voucher-slider--mini) .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-content,
.ss-cart-gift-product-crosssell .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-content {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  gap: 4px !important;
}

/* Push CTA to bottom — full cards only (mini off-canvas must stay compact). */
.ss-gift-voucher-slider:not(.ss-gift-voucher-slider--mini) .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-gift-voucher-product-button,
.ss-gift-voucher-slider:not(.ss-gift-voucher-slider--mini) .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-content .ss-btn,
.ss-cart-gift-product-crosssell .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-gift-voucher-product-button {
  margin-top: auto !important;
}

/* Clamp description so multi-line cards don’t balloon one slide.
 * Desktop fixed row heights (title/desc/price alignment) live in the
 * @media (min-width: 769px) block above — avoid undoing those here. */
.ss-gift-voucher-slider:not(.ss-gift-voucher-slider--mini) .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-description {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  flex: 0 1 auto !important;
  margin-top: 2px !important;
  font-size: 0.75rem !important;
  line-height: 1.35 !important;
  max-height: calc(0.75rem * 1.35 * 2) !important;
}

.ss-gift-voucher-slider:not(.ss-gift-voucher-slider--mini) .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-name {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
  line-height: 1.25 !important;
}

.ss-gift-voucher-slider:not(.ss-gift-voucher-slider--mini) .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-price {
  min-height: 1.4em !important;
  flex-shrink: 0 !important;
}

/* 2 product cards per slide — pair without trio (full/booking only stretches by height) */
.ss-gift-voucher-slide--pair:not(.ss-gift-voucher-slide--trio) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
  height: 100% !important;
}

/* 3 product cards per slide (booking desktop) — mini dock overrides height below */
.ss-gift-voucher-slide--trio {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
  height: 100% !important;
  flex-direction: unset !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Mini-cart / off-canvas / cart mini: 3-up on desktop, 2-up on mobile (see MQ below) */
.ss-cart-gift-dock .ss-gift-voucher-slide--pair,
.ss-mini-cart-gift-upsell .ss-gift-voucher-slide--pair,
.ss-gift-voucher-slider--mini .ss-gift-voucher-slide--pair,
.ss-cart-gift-product-crosssell .ss-gift-voucher-slide--pair,
.ss-cart-gift-dock .ss-gift-voucher-slide--trio,
.ss-mini-cart-gift-upsell .ss-gift-voucher-slide--trio,
.ss-gift-voucher-slider--mini .ss-gift-voucher-slide--trio,
.ss-cart-gift-product-crosssell .ss-gift-voucher-slide--trio,
.ss-offcanvas-gift-upsell .ss-gift-voucher-slide--pair,
.ss-offcanvas-gift-upsell .ss-gift-voucher-slide--trio {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  flex-direction: unset !important;
  /* Do not force min/max width 100% — JS sets flex-basis px per slide; % of track breaks slides */
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-items: start !important;
  align-content: start !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.ss-gift-voucher-slide--pair > .ss-gift-voucher-product-card,
.ss-gift-voucher-slide--pair > .ss-product-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
}

.ss-gift-voucher-slider .ss-gift-voucher-product-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.ss-gift-voucher-slider-dots,
.ss-gift-voucher-slider .ss-cart-voucher-slider-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 0;
  width: 100%;
}

.ss-gift-voucher-slider-dot,
.ss-gift-voucher-slider .ss-cart-voucher-slider-dot,
.ss-cart-voucher-slider-dot,
button.ss-gift-voucher-slider-dot,
button.ss-cart-voucher-slider-dot {
  width: 8px !important;
  height: 8px !important;
  min-width: 8px !important;
  min-height: 8px !important;
  border-radius: 999px !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: #94a3b8 !important;
  background-color: #94a3b8 !important;
  color: transparent !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  cursor: pointer !important;
  flex: 0 0 auto !important;
  transition: background 0.2s ease, width 0.2s ease !important;
  opacity: 1 !important;
}

.ss-gift-voucher-slider-dot.is-active,
.ss-gift-voucher-slider-dot[aria-current="true"],
.ss-gift-voucher-slider .ss-cart-voucher-slider-dot.is-active,
.ss-gift-voucher-slider .ss-cart-voucher-slider-dot[aria-current="true"],
.ss-cart-voucher-slider-dot.is-active,
.ss-cart-voucher-slider-dot[aria-current="true"],
button.ss-gift-voucher-slider-dot.is-active,
button.ss-cart-voucher-slider-dot.is-active,
button.ss-gift-voucher-slider-dot[aria-current="true"],
button.ss-cart-voucher-slider-dot[aria-current="true"] {
  width: 18px !important;
  min-width: 18px !important;
  background: var(--ss-primary-color, #17428c) !important;
  background-color: var(--ss-primary-color, #17428c) !important;
  opacity: 1 !important;
}

body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-slider-dot.is-active,
body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-slider-dot[aria-current="true"],
body .ss-booking-container .ss-step2-gift-product-upsell .ss-cart-voucher-slider-dot.is-active,
body .ss-booking-container .ss-step2-gift-product-upsell .ss-cart-voucher-slider-dot[aria-current="true"] {
  background: var(--ss-primary-color, #e3000f) !important;
  background-color: var(--ss-primary-color, #e3000f) !important;
}

.ss-mini-cart-gift-upsell .ss-gift-voucher-slider-dot.is-active,
.ss-mini-cart-gift-upsell .ss-cart-voucher-slider-dot.is-active,
.ss-mini-cart-gift-upsell .ss-gift-voucher-slider-dot[aria-current="true"],
.ss-mini-cart-gift-upsell .ss-cart-voucher-slider-dot[aria-current="true"] {
  background: var(--ss-activity-primary, #17428c) !important;
  background-color: var(--ss-activity-primary, #17428c) !important;
  width: 20px !important;
  min-width: 20px !important;
}

/* Booking step-2 gift carousel: isolate from ticket .ss-products-grid rules */
body .ss-booking-container .ss-step2-gift-product-upsell {
  min-height: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip !important;
  box-sizing: border-box !important;
}

body .ss-booking-container .ss-gift-voucher-slider,
body .ss-booking-container .ss-gift-voucher-slider.ss-products-grid,
body .ss-booking-container .ss-gift-voucher-slider.ss-gift-voucher-product-grid,
body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-slider,
body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-slider.ss-products-grid,
body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-slider.ss-gift-voucher-product-grid {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  gap: 12px 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0;
  margin-right: 0;
  margin-top: 12px !important;
  overflow: hidden !important;
  /* Keep long tracks from expanding the booking left column */
  contain: inline-size !important;
  box-sizing: border-box !important;
}

body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-slider-track,
body .ss-booking-container .ss-step2-gift-product-upsell .ss-cart-voucher-slider-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  max-width: none !important;
  min-width: 0 !important;
  grid-column: auto !important;
  /* Absolute isolation: track width is visual-only and cannot inflate parent min-content */
  position: relative !important;
  box-sizing: border-box !important;
}

body .ss-booking-container .ss-gift-voucher-slide--pair:not(.ss-gift-voucher-slide--trio) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

/* Step-2 desktop gift carousel: 3 per slide (matches Ticketoptionen density) */
body .ss-booking-container .ss-gift-voucher-slide--trio,
body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-slide--trio {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

/* Gift cards in step-2: same shell as overview activity/entry-fee cards */
body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card.ss-product-card {
  height: 100% !important;
  min-height: 200px !important;
  cursor: default !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-content {
  gap: 4px !important;
}

body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-name {
  margin: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.25 !important;
}

/* Booking container default .ss-product-description is 0.95rem/block — force gift 2-line size */
body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-description,
body .ss-booking-container .ss-gift-voucher-product-card .ss-product-description {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  font-size: 0.75rem !important;
  line-height: 1.35 !important;
  max-height: calc(0.75rem * 1.35 * 2) !important;
  flex: 0 1 auto !important;
  color: #666666 !important;
}

body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-image,
body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-image--placeholder {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 200px !important;
  min-height: 200px !important;
  max-height: 200px !important;
  aspect-ratio: auto !important;
  margin: 0 0 15px 0 !important;
  text-align: center !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  position: relative !important;
  background: #e8eef5 !important;
}

body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
}

@media (max-width: 768px) {
  /* Step-2 gifts: 1 horizontal card / slide (readable CTA), not cramped 2-up mini */
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-slide--pair,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-slide--trio,
  body .ss-booking-container .ss-booking-gift-slider .ss-gift-voucher-slide--pair,
  body .ss-booking-container .ss-booking-gift-slider .ss-gift-voucher-slide--trio {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-slide:not(.ss-gift-voucher-slide--pair):not(.ss-gift-voucher-slide--trio),
  body .ss-booking-container .ss-booking-gift-slider .ss-gift-voucher-slide:not(.ss-gift-voucher-slide--pair):not(.ss-gift-voucher-slide--trio) {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card.ss-product-card,
  body .ss-booking-container .ss-booking-gift-slider .ss-gift-voucher-product-card.ss-product-card {
    display: flex !important;
    height: auto !important;
    min-height: 128px !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border: 2px solid #e0e0e0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-image,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-image--placeholder,
  body .ss-booking-container .ss-booking-gift-slider .ss-gift-voucher-product-card .ss-product-image,
  body .ss-booking-container .ss-booking-gift-slider .ss-gift-voucher-product-card .ss-product-image--placeholder {
    width: 108px !important;
    min-width: 108px !important;
    max-width: 108px !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    flex: 0 0 108px !important;
    align-self: stretch !important;
  }

  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-image img,
  body .ss-booking-container .ss-booking-gift-slider .ss-gift-voucher-product-card .ss-product-image img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
  }

  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-gift-voucher-image-badge,
  body .ss-booking-container .ss-booking-gift-slider .ss-gift-voucher-product-card .ss-gift-voucher-image-badge {
    display: none !important;
  }

  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-content,
  body .ss-booking-container .ss-booking-gift-slider .ss-gift-voucher-product-card .ss-product-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    gap: 4px !important;
    padding: 10px 12px !important;
    padding-top: 12px !important;
    min-height: 0 !important;
    height: auto !important;
    min-width: 0 !important;
    overflow: visible !important;
    justify-content: flex-start !important;
  }

  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-description,
  body .ss-booking-container .ss-booking-gift-slider .ss-gift-voucher-product-card .ss-product-description {
    display: none !important;
  }

  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-name,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-name a,
  body .ss-booking-container .ss-booking-gift-slider .ss-gift-voucher-product-card .ss-product-name,
  body .ss-booking-container .ss-booking-gift-slider .ss-gift-voucher-product-card .ss-product-name a {
    font-size: 0.9375rem !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    margin: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
  }

  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-price,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-price .amount,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-price .woocommerce-Price-amount,
  body .ss-booking-container .ss-booking-gift-slider .ss-gift-voucher-product-card .ss-product-price,
  body .ss-booking-container .ss-booking-gift-slider .ss-gift-voucher-product-card .ss-product-price .amount {
    font-size: 0.8125rem !important;
    line-height: 1.35 !important;
    margin: 0 !important;
  }

  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-price .ss-price-note,
  body .ss-booking-container .ss-booking-gift-slider .ss-gift-voucher-product-card .ss-product-price .ss-price-note,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-price .woocommerce-price-suffix,
  body .ss-booking-container .ss-booking-gift-slider .ss-gift-voucher-product-card .ss-product-price .woocommerce-price-suffix {
    display: none !important;
  }

  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-gift-voucher-product-button,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-content .ss-btn,
  body .ss-booking-container .ss-booking-gift-slider .ss-gift-voucher-product-card .ss-gift-voucher-product-button,
  body .ss-booking-container .ss-booking-gift-slider .ss-gift-voucher-product-card .ss-product-content .ss-btn {
    width: auto !important;
    max-width: 100% !important;
    align-self: flex-start !important;
    font-size: 0.8125rem !important;
    padding: 8px 14px !important;
    line-height: 1.25 !important;
    margin-top: auto !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }
}

body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-grid .ss-product-name,
body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-title-link {
  color: #333333 !important;
}

body .ss-booking-container .ss-step2-gift-product-upsell .ss-product-price,
body .ss-booking-container .ss-step2-gift-product-upsell .ss-product-price .amount,
body .ss-booking-container .ss-step2-gift-product-upsell .ss-product-price .woocommerce-Price-amount {
  color: var(--ss-primary-color, #e3000f) !important;
}

body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-button,
body .ss-booking-container .ss-step2-gift-product-upsell button.ss-btn.ss-btn-primary.ss-gift-voucher-product-button,
body .ss-booking-container .ss-step2-gift-product-upsell .ss-product-content .ss-btn {
  background-color: var(--ss-primary-color, #e3000f) !important;
  background: var(--ss-primary-color, #e3000f) !important;
  border-color: var(--ss-primary-color, #e3000f) !important;
  color: #ffffff !important;
}

body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-button.is-added,
body .ss-booking-container .ss-step2-gift-product-upsell button.ss-gift-voucher-product-button.is-added {
  filter: brightness(0.9);
}

body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-image-badge {
  background: var(--ss-primary-color, #e3000f) !important;
}

body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-slider-dot.is-active,
body .ss-booking-container .ss-step2-gift-product-upsell .ss-cart-voucher-slider-dot.is-active {
  background: var(--ss-primary-color, #e3000f) !important;
}
/* Cart page collaterals: 3-up row (desktop) like offcanvas — not one oversized card */
.ss-cart-gift-product-crosssell .ss-gift-voucher-slide--trio,
.ss-gift-voucher-product-grid--cart .ss-gift-voucher-slide--trio {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.ss-cart-gift-product-crosssell .ss-gift-voucher-slide--pair:not(.ss-gift-voucher-slide--trio),
.ss-gift-voucher-product-grid--cart .ss-gift-voucher-slide--pair:not(.ss-gift-voucher-slide--trio) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
}

/* Compact media + offcanvas/mini font scale on cart multi-col vouchers */
body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-slide--trio .ss-product-image,
body.woocommerce-cart .ss-gift-voucher-product-grid--cart .ss-gift-voucher-slide--trio .ss-product-image,
body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-slide--trio .ss-product-image--placeholder,
body.woocommerce-cart .ss-gift-voucher-product-grid--cart .ss-gift-voucher-slide--trio .ss-product-image--placeholder {
  height: 88px !important;
  min-height: 88px !important;
  max-height: 88px !important;
  margin-bottom: 0 !important;
}

/* Hide description on cart (match offcanvas mini cards) */
body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-description,
body.woocommerce-cart .ss-gift-voucher-product-grid--cart .ss-gift-voucher-product-card .ss-product-description {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

/* Match offcanvas gift card type scale: title 0.72 / price 0.78 / CTA 0.62 */
body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-content,
body.woocommerce-cart .ss-gift-voucher-product-grid--cart .ss-gift-voucher-product-card .ss-product-content {
  display: flex !important;
  flex-direction: column !important;
  padding: 6px 4px 6px !important;
  gap: 3px !important;
  justify-content: flex-start !important;
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  grid-template-rows: none !important;
  grid-template-columns: none !important;
  overflow: hidden !important;
}

body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-name,
body.woocommerce-cart .ss-gift-voucher-product-grid--cart .ss-gift-voucher-product-card .ss-product-name,
body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-name a,
body.woocommerce-cart .ss-gift-voucher-product-grid--cart .ss-gift-voucher-product-card .ss-product-name a {
  font-size: 0.72rem !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #333333 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  grid-row: auto !important;
}

body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-price,
body.woocommerce-cart .ss-gift-voucher-product-grid--cart .ss-gift-voucher-product-card .ss-product-price,
body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-price .amount,
body.woocommerce-cart .ss-gift-voucher-product-grid--cart .ss-gift-voucher-product-card .ss-product-price .amount,
body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-price .woocommerce-Price-amount,
body.woocommerce-cart .ss-gift-voucher-product-grid--cart .ss-gift-voucher-product-card .ss-product-price .woocommerce-Price-amount {
  font-size: 0.78rem !important;
  margin: 0 !important;
  max-width: 100% !important;
  line-height: 1.25 !important;
  min-height: 0 !important;
  height: auto !important;
  flex: 0 0 auto !important;
  grid-row: auto !important;
}

body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-price .woocommerce-price-suffix,
body.woocommerce-cart .ss-gift-voucher-product-grid--cart .ss-gift-voucher-product-card .ss-product-price .woocommerce-price-suffix {
  display: none !important;
}

body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-gift-voucher-product-button,
body.woocommerce-cart .ss-gift-voucher-product-grid--cart .ss-gift-voucher-product-card .ss-gift-voucher-product-button,
body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card button.ss-btn.ss-gift-voucher-product-button,
body.woocommerce-cart .ss-gift-voucher-product-grid--cart .ss-gift-voucher-product-card button.ss-btn.ss-gift-voucher-product-button,
body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-content .ss-btn,
body.woocommerce-cart .ss-gift-voucher-product-grid--cart .ss-gift-voucher-product-card .ss-product-content .ss-btn {
  width: 100% !important;
  max-width: 100% !important;
  padding: 5px 4px !important;
  font-size: 0.62rem !important;
  margin-top: 4px !important;
  margin-bottom: 0 !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  white-space: normal !important;
  word-break: break-word !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  align-self: stretch !important;
  grid-row: auto !important;
}

/* No large 2-line reserved title slot on cart (mini-type cards) */
@media (min-width: 769px) {
  body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-content,
  body.woocommerce-cart .ss-gift-voucher-product-grid--cart .ss-gift-voucher-product-card .ss-product-content {
    display: flex !important;
    flex-direction: column !important;
    grid-template-rows: none !important;
    gap: 3px !important;
  }

  body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-name,
  body.woocommerce-cart .ss-gift-voucher-product-grid--cart .ss-gift-voucher-product-card .ss-product-name {
    grid-row: auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    font-size: 0.72rem !important;
  }

  body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-price,
  body.woocommerce-cart .ss-gift-voucher-product-grid--cart .ss-gift-voucher-product-card .ss-product-price {
    grid-row: auto !important;
    font-size: 0.78rem !important;
  }
}

/* Cart collaterals: full-width carousel host */
.ss-cart-gift-product-crosssell .ss-gift-voucher-slider {
  max-width: 100%;
}

@media (max-width: 1024px) {
  .ss-gift-voucher-product-grid.ss-products-grid:not(.ss-gift-voucher-slider) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .ss-gift-voucher-product-grid.ss-products-grid:not(.ss-gift-voucher-slider) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    margin-top: 8px !important;
    min-height: 0 !important;
  }

  /* 1 product / slide for full booking sliders only — mini/cart/offcanvas/step2 keep 2-up grid */
  .ss-gift-voucher-slider:not(.ss-gift-voucher-slider--mini):not(.ss-cart-gift-slider--mini-type):not(.ss-booking-gift-slider--mobile-mini) .ss-gift-voucher-slide,
  .ss-gift-voucher-slider:not(.ss-gift-voucher-slider--mini):not(.ss-cart-gift-slider--mini-type):not(.ss-booking-gift-slider--mobile-mini) .ss-cart-voucher-slide {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
  }

  /* Mini + cart: 2 cards side-by-side per slide (booking step-2 is 1-up horizontal — see earlier MQ) */
  .ss-gift-voucher-slider--mini .ss-gift-voucher-slide--pair,
  .ss-gift-voucher-slider--mini .ss-gift-voucher-slide--trio,
  .ss-cart-gift-slider--mini-type .ss-gift-voucher-slide--pair,
  .ss-cart-gift-slider--mini-type .ss-gift-voucher-slide--trio,
  .ss-cart-gift-product-crosssell .ss-gift-voucher-slide--pair,
  .ss-cart-gift-product-crosssell .ss-gift-voucher-slide--trio,
  .ss-gift-voucher-product-grid--cart .ss-gift-voucher-slide--pair,
  .ss-gift-voucher-product-grid--cart .ss-gift-voucher-slide--trio,
  body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-slide--pair,
  body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-slide--trio,
  body.woocommerce-cart .ss-gift-voucher-product-grid--cart .ss-gift-voucher-slide--pair,
  body.woocommerce-cart .ss-gift-voucher-product-grid--cart .ss-gift-voucher-slide--trio {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    flex-direction: unset !important;
  }

  /* Mini cards stay vertical (never cart-item horizontal thumbs) */
  .ss-gift-voucher-slider--mini .ss-gift-voucher-product-card,
  .ss-cart-gift-slider--mini-type .ss-gift-voucher-product-card,
  .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card,
  .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card.ss-product-card,
  .ss-gift-voucher-product-grid--cart .ss-gift-voucher-product-card,
  body.woocommerce-cart .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .ss-gift-voucher-slider--mini .ss-gift-voucher-product-card .ss-product-image,
  .ss-gift-voucher-slider--mini .ss-gift-voucher-product-card .ss-product-image--placeholder,
  .ss-cart-gift-slider--mini-type .ss-gift-voucher-product-card .ss-product-image,
  .ss-cart-gift-slider--mini-type .ss-gift-voucher-product-card .ss-product-image--placeholder,
  .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-image,
  .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-image--placeholder,
  .ss-gift-voucher-product-grid--cart .ss-gift-voucher-product-card .ss-product-image,
  .ss-gift-voucher-product-grid--cart .ss-gift-voucher-product-card .ss-product-image--placeholder {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    align-self: auto !important;
  }

  .ss-gift-voucher-slider--mini .ss-gift-voucher-product-card .ss-product-image img,
  .ss-cart-gift-slider--mini-type .ss-gift-voucher-product-card .ss-product-image img,
  .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-image img,
  .ss-gift-voucher-product-grid--cart .ss-gift-voucher-product-card .ss-product-image img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
  }

  /* Hide Wertgutschein badge on mobile — overlaps small image thumb */
  .ss-gift-voucher-image-badge,
  .ss-step2-gift-product-upsell .ss-gift-voucher-image-badge,
  .ss-cart-gift-product-crosssell .ss-gift-voucher-image-badge,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-image-badge,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-image-badge {
    display: none !important;
  }

  /*
   * Mobile: match overview activity/entry-fee horizontal cards
   * (108px media left). Booking step-2 gifts use the same horizontal 1-up layout.
   */
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card.ss-product-card,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-grid .ss-gift-voucher-product-card.ss-product-card {
    flex-direction: row !important;
    align-items: stretch !important;
    min-height: 0 !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-image,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-image--placeholder {
    width: 108px !important;
    min-width: 108px !important;
    max-width: 108px !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    flex: 0 0 108px !important;
    align-self: stretch !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #e8eef5 !important;
    position: relative !important;
  }

  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-image img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    display: block !important;
  }

  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 10px 12px !important;
    gap: 3px !important;
    justify-content: flex-start !important;
  }

  /* Match step-2 product font sizes exactly — buy page only (step-2 gifts use mini sizes above) */
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-name,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-name a,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-title-link {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
    color: #333333 !important;
  }

  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-description {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
    max-height: calc(0.75rem * 1.35 * 2) !important;
    margin: 0 !important;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
    flex: 0 1 auto !important;
    overflow: hidden !important;
    white-space: normal !important;
    word-break: break-word !important;
    color: #666666 !important;
  }

  .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-description p,
  .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-description p,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-description p {
    display: inline !important;
    margin: 0 !important;
  }

  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-price,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-price * {
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: break-word !important;
  }

  /* Price color: match product cards (location primary on booking; brand blue on buy/cart) */
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-price,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-price .amount,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-price .woocommerce-Price-amount {
    color: var(--ss-primary-color, #e3000f) !important;
  }

  .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-price,
  .ss-cart-gift-product-crosssell .ss-gift-voucher-product-card .ss-product-price .amount,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-price,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-price .amount {
    color: var(--ss-activity-primary, #17428c) !important;
  }

  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-gift-voucher-product-button,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-content .ss-btn {
    width: auto !important;
    max-width: 100% !important;
    align-self: flex-start !important;
    padding: 8px 14px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
    white-space: nowrap !important;
  }

  /* Booking CTA uses location primary like Auswählen — keep on mini buttons too */
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-gift-voucher-product-button,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-content .ss-btn {
    background-color: var(--ss-primary-color, #e3000f) !important;
    background: var(--ss-primary-color, #e3000f) !important;
    border-color: var(--ss-primary-color, #e3000f) !important;
    color: #ffffff !important;
  }
}

/*
 * Buy page ≥641px: vertical cards like overview (undo ≤768 horizontal).
 * Horizontal list rows only below 640px — same as activities-stage.
 */
@media (min-width: 641px) {
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card.ss-product-card,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-grid .ss-gift-voucher-product-card.ss-product-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: 200px !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-image,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-image--placeholder {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    margin: 0 0 6px 0 !important;
    flex: 0 0 auto !important;
    align-self: auto !important;
  }

  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-image img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    gap: 4px !important;
    padding: 0 !important;
    padding-top: 0 !important;
    min-width: 0 !important;
    height: auto !important;
  }

  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-description.is-empty {
    display: none !important;
  }

  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-gift-voucher-product-button,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-content .ss-btn {
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    margin-top: auto !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
  }
}

/* Booking multi-col grid only when not a carousel */
body .ss-booking-container .ss-gift-voucher-product-grid.ss-products-grid:not(.ss-gift-voucher-slider) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 1024px) {
  body .ss-booking-container .ss-gift-voucher-product-grid.ss-products-grid:not(.ss-gift-voucher-slider) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  body .ss-booking-container .ss-gift-voucher-product-grid.ss-products-grid:not(.ss-gift-voucher-slider) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ── Off-canvas gift upsell (scoped shell: .ss-offcanvas-gift-upsell) ───────
 * All mini-cart gift carousel styles stay under this outer class so general
 * gift-product / step-2 rules do not change off-canvas layout.
 * --------------------------------------------------------------------------- */
.ss-offcanvas-gift-upsell,
.ss-cart-gift-dock .ss-mini-cart-gift-upsell,
.ss-cart-modal .ss-mini-cart-gift-upsell,
.ss-cart-body .ss-mini-cart-gift-upsell {
  margin: 0;
  padding: 12px 0 8px;
  border: none;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

.ss-offcanvas-gift-upsell__head,
.ss-offcanvas-gift-upsell .ss-mini-cart-gift-upsell__head {
  margin: 0 0 10px;
}

.ss-offcanvas-gift-upsell__eyebrow,
.ss-offcanvas-gift-upsell .ss-mini-cart-gift-upsell__eyebrow {
  margin: 0 0 2px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: none !important;
  color: var(--ss-activity-primary, #17428c) !important;
  line-height: 1.2 !important;
}

.ss-offcanvas-gift-upsell__title,
.ss-offcanvas-gift-upsell .ss-mini-cart-gift-upsell__title {
  margin: 0 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
}

.ss-offcanvas-gift-upsell .ss-gift-voucher-slider,
.ss-offcanvas-gift-upsell .ss-gift-voucher-slider--mini,
.ss-offcanvas-gift-upsell .ss-gift-voucher-product-grid {
  margin: 0 !important;
  row-gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  /* Never inherit buy-page / step-2 3-col grid shell */
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
}

.ss-offcanvas-gift-upsell .ss-gift-voucher-slider-track,
.ss-offcanvas-gift-upsell .ss-cart-voucher-slider-track {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.ss-offcanvas-gift-upsell .ss-gift-voucher-slide,
.ss-offcanvas-gift-upsell .ss-cart-voucher-slide {
  min-width: 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  flex: 0 0 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.ss-offcanvas-gift-upsell .ss-gift-voucher-image-badge {
  display: none !important;
}

/* Compact card shell — only inside off-canvas outer.
 * height:auto (NOT 100%): stretch + flex margin-top:auto on the CTA was
 * creating a huge empty band between title and price after refresh/equalize. */
.ss-offcanvas-gift-upsell .ss-gift-voucher-product-card,
.ss-offcanvas-gift-upsell .ss-gift-voucher-product-card--mini.ss-product-card,
.ss-offcanvas-gift-upsell .ss-product-card.ss-gift-voucher-product-card {
  flex-direction: column !important;
  align-items: stretch !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  gap: 0 !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(23, 66, 140, 0.06) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.ss-offcanvas-gift-upsell .ss-gift-voucher-slide,
.ss-offcanvas-gift-upsell .ss-cart-voucher-slide {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-items: start !important;
  align-content: start !important;
}

.ss-offcanvas-gift-upsell .ss-gift-voucher-slider-track,
.ss-offcanvas-gift-upsell .ss-cart-voucher-slider-track {
  height: auto !important;
  min-height: 0 !important;
}

/*
 * Compact media — fixed short height (not 1:1 / not 200px step-2 media).
 * Scoped only under .ss-offcanvas-gift-upsell so other contexts keep their own media.
 */
.ss-offcanvas-gift-upsell .ss-gift-voucher-product-card .ss-product-image,
.ss-offcanvas-gift-upsell .ss-gift-voucher-product-card .ss-product-image--placeholder,
.ss-offcanvas-gift-upsell .ss-gift-voucher-product-card--mini .ss-product-image,
.ss-offcanvas-gift-upsell .ss-gift-voucher-product-card--mini .ss-product-image--placeholder {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  /* Override generic gift 200px / 1:1 rules */
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  background: #e8eef5 !important;
}

.ss-offcanvas-gift-upsell .ss-gift-voucher-product-card .ss-product-image picture,
.ss-offcanvas-gift-upsell .ss-product-image picture {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.ss-offcanvas-gift-upsell .ss-gift-voucher-product-card .ss-product-image img,
.ss-offcanvas-gift-upsell .ss-gift-voucher-product-card .ss-product-image picture img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-radius: 0 !important;
}

.ss-offcanvas-gift-upsell .ss-product-content {
  display: flex !important;
  flex-direction: column !important;
  padding: 6px 7px 6px !important;
  gap: 3px !important;
  justify-content: flex-start !important;
  /* Do not grow — growing opens the white gap between title / price / CTA */
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
  grid-template-rows: none !important;
  grid-template-columns: none !important;
}

.ss-offcanvas-gift-upsell .ss-product-name,
.ss-offcanvas-gift-upsell .ss-product-name a {
  font-size: 0.72rem !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #333333 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: 0 0 auto !important;
}

.ss-offcanvas-gift-upsell .ss-product-description {
  display: none !important; /* mini_cart never shows body copy */
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

.ss-offcanvas-gift-upsell .ss-product-price,
.ss-offcanvas-gift-upsell .ss-product-price .amount,
.ss-offcanvas-gift-upsell .ss-product-price .woocommerce-Price-amount {
  font-size: 0.78rem !important;
  margin: 0 !important;
  max-width: 100% !important;
  line-height: 1.25 !important;
  min-height: 0 !important;
  height: auto !important;
  flex: 0 0 auto !important;
}

.ss-offcanvas-gift-upsell .ss-product-price .woocommerce-price-suffix {
  display: none !important;
}

.ss-offcanvas-gift-upsell .ss-gift-voucher-product-button,
.ss-offcanvas-gift-upsell .ss-product-content .ss-btn,
.ss-offcanvas-gift-upsell .ss-product-content > .ss-btn {
  width: 100% !important;
  max-width: 100% !important;
  padding: 5px 4px !important;
  font-size: 0.62rem !important;
  /* NOT margin-top:auto — that was the white gap after stretch/equalize */
  margin-top: 4px !important;
  margin-bottom: 0 !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  word-break: break-word !important;
  box-sizing: border-box !important;
  grid-row: auto !important;
  flex: 0 0 auto !important;
  align-self: stretch !important;
}

.ss-offcanvas-gift-upsell a.added_to_cart {
  display: none !important;
}

/* Desktop off-canvas: 3-up trio */
@media (min-width: 769px) {
  .ss-offcanvas-gift-upsell .ss-gift-voucher-slide--trio {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .ss-offcanvas-gift-upsell .ss-gift-voucher-slide--pair:not(.ss-gift-voucher-slide--trio) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .ss-offcanvas-gift-upsell .ss-product-image,
  .ss-offcanvas-gift-upsell .ss-product-image--placeholder {
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    aspect-ratio: auto !important;
  }
}

/* Mobile off-canvas: 2 cards / slide */
@media (max-width: 768px) {
  .ss-offcanvas-gift-upsell .ss-gift-voucher-slide--pair,
  .ss-offcanvas-gift-upsell .ss-gift-voucher-slide--trio {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
  }

  .ss-offcanvas-gift-upsell .ss-gift-voucher-slide:not(.ss-gift-voucher-slide--pair):not(.ss-gift-voucher-slide--trio),
  .ss-offcanvas-gift-upsell .ss-cart-voucher-slide:not(.ss-gift-voucher-slide--pair):not(.ss-gift-voucher-slide--trio) {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
  }

  .ss-offcanvas-gift-upsell .ss-gift-voucher-product-card {
    height: auto !important;
  }

  .ss-offcanvas-gift-upsell .ss-product-image,
  .ss-offcanvas-gift-upsell .ss-product-image--placeholder {
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    aspect-ratio: auto !important;
  }

  .ss-offcanvas-gift-upsell .ss-product-content {
    padding: 6px 6px 7px !important;
  }

  .ss-offcanvas-gift-upsell .ss-product-name,
  .ss-offcanvas-gift-upsell .ss-product-name a {
    font-size: 0.75rem !important;
  }

  .ss-offcanvas-gift-upsell .ss-gift-voucher-product-button,
  .ss-offcanvas-gift-upsell .ss-product-content .ss-btn {
    font-size: 0.65rem !important;
    padding: 6px 4px !important;
  }
}

/* High-specificity kill-switch: generic 200px / 1:1 gift media never hits off-canvas */
.ss-offcanvas-gift-upsell .ss-gift-voucher-product-card .ss-product-image,
.ss-offcanvas-gift-upsell .ss-gift-voucher-product-card .ss-product-image--placeholder,
body .ss-cart-modal .ss-offcanvas-gift-upsell .ss-product-image,
body .ss-cart-body .ss-offcanvas-gift-upsell .ss-product-image {
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
}

/* Kill global gift min-height:200px + stretch that caused big empty mid-card area */
body .ss-cart-modal .ss-offcanvas-gift-upsell .ss-gift-voucher-product-card,
body .ss-cart-body .ss-offcanvas-gift-upsell .ss-gift-voucher-product-card,
body .ss-offcanvas-gift-upsell .ss-gift-voucher-product-card.ss-product-card {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
}

body .ss-cart-modal .ss-offcanvas-gift-upsell .ss-product-content .ss-btn,
body .ss-cart-body .ss-offcanvas-gift-upsell .ss-gift-voucher-product-button,
body .ss-offcanvas-gift-upsell .ss-gift-voucher-product-card .ss-product-content .ss-btn {
  margin-top: 4px !important;
}

@media (max-width: 768px) {
  body .ss-cart-modal .ss-offcanvas-gift-upsell .ss-product-image,
  body .ss-cart-body .ss-offcanvas-gift-upsell .ss-product-image {
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
  }
}

/* Tooltip cursor when voucher title/description is truncated */
.ss-gift-voucher-product-card [data-ss-truncated="true"],
.ss-offcanvas-gift-upsell [data-ss-truncated="true"] {
  cursor: help;
}

/* Gift tooltip sits above off-canvas cart */
.ss-gift-voucher-tooltip.ss-activity-card-tooltip,
.ss-activity-card-tooltip.ss-gift-voucher-tooltip {
  position: fixed;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.95);
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.45;
  border-radius: 6px;
  pointer-events: none;
  z-index: 1000500;
  max-width: min(320px, calc(100vw - 24px));
  min-width: 0;
  white-space: normal;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  word-wrap: break-word;
  transform: translateX(-50%);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.ss-gift-voucher-tooltip.ss-activity-card-tooltip--visible,
.ss-activity-card-tooltip.ss-gift-voucher-tooltip.ss-activity-card-tooltip--visible {
  visibility: visible;
  opacity: 1;
}

.ss-gift-voucher-tooltip.ss-activity-card-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 2px;
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.95);
}

.ss-gift-voucher-tooltip.ss-tooltip-below::after {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 2px;
  border-top-color: transparent;
  border-bottom-color: rgba(0, 0, 0, 0.95);
}

/* ---------------------------------------------------------------------------
 * Desktop gift cards: lock title / description / price rows so they align
 * across cards (step-2 carousel + buy vouchers page grid).
 * Explicitly exclude .ss-offcanvas-gift-upsell (mini cart has its own media shell).
 * --------------------------------------------------------------------------- */
@media (min-width: 769px) {
  .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-content,
  .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-content,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-content,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-content,
  .ss-gift-voucher-slider:not(.ss-gift-voucher-slider--mini) .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows:
      auto
      auto
      auto
      minmax(0, 1fr) !important;
    row-gap: 4px !important;
    column-gap: 0 !important;
    gap: 4px 0 !important;
    align-content: stretch !important;
    align-items: stretch !important;
  }

  .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-name,
  .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-name,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-name,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-name,
  .ss-gift-voucher-slider:not(.ss-gift-voucher-slider--mini) .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-name {
    grid-row: 1 !important;
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    font-size: 1.2rem !important;
    line-height: 1.15 !important;
  }

  .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-description,
  .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-description,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-description,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-description,
  .ss-gift-voucher-slider:not(.ss-gift-voucher-slider--mini) .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-description {
    grid-row: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    flex: none !important;
    height: calc(0.75rem * 1.35 * 2) !important;
    min-height: calc(0.75rem * 1.35 * 2) !important;
    max-height: calc(0.75rem * 1.35 * 2) !important;
    margin: 0 !important;
    margin-top: 0 !important;
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
  }

  .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-description.is-empty,
  .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-description.is-empty,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-description.is-empty,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-description.is-empty,
  .ss-gift-voucher-slider:not(.ss-gift-voucher-slider--mini) .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-description.is-empty {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-price,
  .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-price,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-price,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-price,
  .ss-gift-voucher-slider:not(.ss-gift-voucher-slider--mini) .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-price {
    grid-row: 3 !important;
    margin: 0 !important;
    min-height: 1.4em !important;
    line-height: 1.4 !important;
  }

  .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-content > .ss-btn,
  .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-content > .ss-gift-voucher-product-button,
  .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-content > .ss-btn,
  body .ss-booking-container .ss-step2-gift-product-upsell .ss-gift-voucher-product-card .ss-product-content > .ss-btn,
  body.ss-buy-vouchers-page .ss-buy-vouchers-gift-section .ss-gift-voucher-product-card .ss-product-content > .ss-btn,
  .ss-gift-voucher-slider:not(.ss-gift-voucher-slider--mini) .ss-gift-voucher-product-card:not(.ss-gift-voucher-product-card--mini) .ss-product-content > .ss-btn {
    grid-row: 4 !important;
    align-self: end !important;
    margin-top: 8px !important;
  }

  /* Belt-and-braces: off-canvas outer never picks up step-2 row locks / stretch */
  .ss-offcanvas-gift-upsell .ss-product-content {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-grow: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    grid-template-rows: none !important;
  }

  .ss-offcanvas-gift-upsell .ss-gift-voucher-product-card,
  .ss-offcanvas-gift-upsell .ss-product-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .ss-offcanvas-gift-upsell .ss-product-name,
  .ss-offcanvas-gift-upsell .ss-product-description,
  .ss-offcanvas-gift-upsell .ss-product-price {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    grid-row: auto !important;
  }

  .ss-offcanvas-gift-upsell .ss-product-content > .ss-btn,
  .ss-offcanvas-gift-upsell .ss-gift-voucher-product-button {
    margin-top: 4px !important;
    grid-row: auto !important;
  }

  .ss-offcanvas-gift-upsell .ss-product-image,
  .ss-offcanvas-gift-upsell .ss-product-image--placeholder {
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    aspect-ratio: auto !important;
  }
}

/* Mobile: collapse empty description slots (desktop keeps the reserved row). */
@media (max-width: 768px) {
  .ss-gift-voucher-product-card .ss-product-description.is-empty {
    display: none !important;
  }
}

/*
 * FINAL off-canvas lock (highest priority in this file).
 * DevTools: .ss-product-content was ~179px tall with a hollow middle because
 * general slider rules used flex:1 + margin-top:auto + height:100%.
 * Scope: .ss-offcanvas-gift-upsell / .ss-mini-cart-gift-upsell / mini slider class.
 */
body .ss-cart-modal .ss-offcanvas-gift-upsell .ss-gift-voucher-slider--mini .ss-gift-voucher-product-card,
body .ss-cart-modal .ss-mini-cart-gift-upsell .ss-gift-voucher-product-card,
body .ss-cart-body .ss-offcanvas-gift-upsell .ss-gift-voucher-product-card,
body .ss-cart-body .ss-mini-cart-gift-upsell .ss-gift-voucher-product-card,
body .ss-cart-gift-dock .ss-gift-voucher-product-card--mini,
.ss-offcanvas-gift-upsell .ss-gift-voucher-slider .ss-gift-voucher-product-card,
.ss-gift-voucher-slider--mini .ss-gift-voucher-product-card--mini {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-self: start !important;
}

body .ss-cart-modal .ss-offcanvas-gift-upsell .ss-product-content,
body .ss-cart-modal .ss-mini-cart-gift-upsell .ss-product-content,
body .ss-cart-body .ss-offcanvas-gift-upsell .ss-product-content,
body .ss-cart-body .ss-mini-cart-gift-upsell .ss-product-content,
body .ss-cart-gift-dock .ss-gift-voucher-product-card--mini .ss-product-content,
.ss-offcanvas-gift-upsell .ss-gift-voucher-slider .ss-gift-voucher-product-card .ss-product-content,
.ss-gift-voucher-slider--mini .ss-gift-voucher-product-card .ss-product-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  flex-basis: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  justify-content: flex-start !important;
  align-content: flex-start !important;
  gap: 3px !important;
  padding: 6px 7px !important;
  margin: 0 !important;
  grid-template-rows: none !important;
  grid-template-columns: none !important;
}

body .ss-cart-modal .ss-offcanvas-gift-upsell .ss-product-name,
body .ss-cart-modal .ss-mini-cart-gift-upsell .ss-product-name,
body .ss-cart-body .ss-offcanvas-gift-upsell .ss-product-name,
.ss-gift-voucher-slider--mini .ss-product-name,
body .ss-cart-modal .ss-offcanvas-gift-upsell .ss-product-price,
body .ss-cart-modal .ss-mini-cart-gift-upsell .ss-product-price,
body .ss-cart-body .ss-offcanvas-gift-upsell .ss-product-price,
.ss-gift-voucher-slider--mini .ss-product-price {
  margin: 0 !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

body .ss-cart-modal .ss-offcanvas-gift-upsell .ss-product-content .ss-btn,
body .ss-cart-modal .ss-mini-cart-gift-upsell .ss-product-content .ss-btn,
body .ss-cart-body .ss-offcanvas-gift-upsell .ss-gift-voucher-product-button,
body .ss-cart-body .ss-mini-cart-gift-upsell .ss-gift-voucher-product-button,
.ss-gift-voucher-slider--mini .ss-gift-voucher-product-button,
.ss-gift-voucher-slider--mini .ss-product-content .ss-btn {
  margin-top: 4px !important;
  margin-bottom: 0 !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
}

body .ss-cart-modal .ss-offcanvas-gift-upsell .ss-gift-voucher-slide--trio,
body .ss-cart-modal .ss-mini-cart-gift-upsell .ss-gift-voucher-slide--trio,
body .ss-cart-gift-dock .ss-gift-voucher-slide--trio,
.ss-gift-voucher-slider--mini .ss-gift-voucher-slide--trio,
body .ss-cart-modal .ss-offcanvas-gift-upsell .ss-gift-voucher-slide--pair,
body .ss-cart-gift-dock .ss-gift-voucher-slide--pair,
.ss-gift-voucher-slider--mini .ss-gift-voucher-slide--pair {
  height: auto !important;
  min-height: 0 !important;
  align-items: start !important;
  align-content: start !important;
}

body .ss-cart-modal .ss-offcanvas-gift-upsell .ss-product-image,
body .ss-cart-modal .ss-mini-cart-gift-upsell .ss-product-image,
body .ss-cart-body .ss-offcanvas-gift-upsell .ss-product-image,
body .ss-cart-gift-dock .ss-gift-voucher-product-card--mini .ss-product-image,
.ss-gift-voucher-slider--mini .ss-product-image {
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

@media (max-width: 768px) {
  body .ss-cart-modal .ss-offcanvas-gift-upsell .ss-product-image,
  body .ss-cart-modal .ss-mini-cart-gift-upsell .ss-product-image,
  body .ss-cart-body .ss-offcanvas-gift-upsell .ss-product-image,
  .ss-gift-voucher-slider--mini .ss-product-image {
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
  }
}


