/* Seat items: show a fixed qty text, but keep theme qty controls in DOM (hidden) */

tr.tktas-seat-item .tktas-seat-qty-wrap .quantity {
  display: none !important;
}

tr.tktas-seat-item .tktas-seat-qty-wrap .tktas-fixed-qty {
  display: inline-block;
  min-width: 1.75em;
  text-align: center;
  font-weight: 400;
  line-height: 1.2;
}

/* ============================================
   GLOBAL HOLD TIMER NOTIFICATION
   Shows on all pages when seats are in cart
   ============================================ */
.tktas-hold-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  pointer-events: auto;
}

.tktas-hold-notification-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0b4c84;
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  min-width: 280px;
  max-width: 360px;
  animation: tktas-slide-in 0.3s ease-out;
}

@keyframes tktas-slide-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tktas-hold-notification-content {
  flex: 1;
  min-width: 0;
}

.tktas-hold-notification-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.tktas-hold-notification-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.tktas-hold-notification-time {
  font-weight: 700;
  font-size: 15px;
  color: #fead13;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.tktas-hold-notification.tktas-hold-expired .tktas-hold-notification-time {
  color: #f87171;
}

.tktas-hold-notification.tktas-hold-expired .tktas-hold-notification-inner {
  background: #ef4444;
}

.tktas-hold-notification-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  line-height: 1;
}

.tktas-hold-notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .tktas-hold-notification {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }
  
  .tktas-hold-notification-inner {
    min-width: unset;
    max-width: unset;
    width: 100%;
    padding: 12px 14px;
  }
}

/* If a theme renders qty controls outside Woo's .quantity wrapper, hide common controls */
tr.tktas-seat-item.tktas-seat-qty-patched .motta-qty-button,
tr.tktas-seat-item.tktas-seat-qty-patched .quantity .motta-svg-icon,
tr.tktas-seat-item.tktas-seat-qty-patched .qty_button,
tr.tktas-seat-item.tktas-seat-qty-patched .plus,
tr.tktas-seat-item.tktas-seat-qty-patched .minus {
  display: none !important;
}

tr.tktas-seat-item.tktas-seat-qty-patched input.qty,
tr.tktas-seat-item.tktas-seat-qty-patched input[type="number"].qty {
  display: none !important;
}

tr.tktas-seat-item.tktas-seat-qty-patched .tktas-fixed-qty {
  display: inline-block;
  min-width: 1.75em;
  text-align: center;
  font-weight: 400;
  line-height: 1.2;
}

tr.tktas-seat-item td.product-quantity {
  vertical-align: middle;
}

/* Seat meta layout: label on the left (dt), seats on the right (dd) */
.tktas-seat-item dl.variation,
.tktas-seat-item .variation {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 8px;
  align-items: start;
}

ul.tktas-seat-lines {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: normal;
}

ul.tktas-seat-lines li.tktas-seat-line {
  display: block;
  margin: 0;
  padding: 0;
}

/* Keep label and first line visually aligned */
.tktas-seat-item dl.variation dt,
.tktas-seat-item dl.variation dd,
.tktas-seat-item .variation dt,
.tktas-seat-item .variation dd {
  margin-top: 0 !important;
  margin-left: 0 !important;
}

/* Legacy theme selectors (in case another plugin prints dt/dd) */
dt.variation-Seats,
dt.variation-seats,
.variation-Seats > dt,
.variation-seats > dt {
  color: #0b4c84;
  font-weight: 500;
  margin-right: 6px;
}

/* Some themes insert a stray ":" before/within variation values in mini-carts.
   Remove that only for our seat items so other variations stay untouched. */
.tktas-seat-item dl.variation dd:before,
.tktas-seat-item .variation dd:before {
  content: "" !important;
}

/* Hide mini-cart / popup cart quantity line entirely for seat items.
   (Avoid hiding the main cart table quantity cell which we re-render ourselves.) */
.woocommerce-mini-cart-item.tktas-seat-item .quantity,
.cart-panel .tktas-seat-item .quantity,
.motta-cart-popup .tktas-seat-item .quantity,
.woocommerce-add-to-cart-popup .tktas-seat-item .quantity {
  display: none !important;
}


/* Motta off-canvas mini cart: on tablet sizes, remove qty controls entirely
   (seating products are seat-count-driven and should not expose +/- UI). */
@media (max-width: 1024px) {
  .cart-panel .tktas-seat-item .quantity,
  .cart-panel .tktas-seat-item .motta-qty,
  .cart-panel .tktas-seat-item .motta-quantity,
  .cart-panel .tktas-seat-item .qty,
  .cart-panel .tktas-seat-item .qty_button,
  .cart-panel .tktas-seat-item .plus,
  .cart-panel .tktas-seat-item .minus,
  .cart-panel .tktas-seat-item .motta-qty-button,
  .cart-panel .tktas-seat-item .motta-svg-icon {
    display: none !important;
  }
}


/* Mini-cart quantity should not be bold */
.tktas-mini-qty {
  font-weight: 400 !important;
}


/* Main cart quantity should not be bold */
.tktas-cart-qty {
  font-weight: 400 !important;
}

/* Checkout table: ensure dl.variation displays properly on desktop */
form.checkout table.shop_table tbody td.product-name dl.variation,
.woocommerce-checkout table.shop_table td.product-name dl.variation {
  display: block !important;
  margin-top: 8px;
}

form.checkout table.shop_table tbody td.product-name dl.variation dt,
.woocommerce-checkout table.shop_table td.product-name dl.variation dt {
  display: inline;
  font-weight: 600;
  margin-right: 4px;
}

form.checkout table.shop_table tbody td.product-name dl.variation dd,
.woocommerce-checkout table.shop_table td.product-name dl.variation dd {
  display: inline;
  margin: 0;
  padding: 0;
}

form.checkout table.shop_table tbody td.product-name dl.variation dd p,
.woocommerce-checkout table.shop_table td.product-name dl.variation dd p {
  display: inline;
  margin: 0;
}

/* Seat lines in checkout should stack vertically */
form.checkout table.shop_table ul.tktas-seat-lines,
.woocommerce-checkout table.shop_table ul.tktas-seat-lines {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

form.checkout table.shop_table ul.tktas-seat-lines li,
.woocommerce-checkout table.shop_table ul.tktas-seat-lines li {
  display: block;
  line-height: 1.4;
}

/* =========================================================================
   Motta theme add-to-cart popup: prevent full-page scroll lock
   The Motta popup sets body overflow:hidden which blocks scrolling entirely.
   Constrain the popup panel instead.
   ========================================================================= */
body.motta-popup-open {
  overflow: auto !important;
}
.motta-popup,
.woocommerce-add-to-cart-popup {
  max-height: 60vh !important;
  overflow-y: auto !important;
}
/* Ensure the popup overlay doesn't consume the full viewport */
.motta-popup-overlay,
.woocommerce-add-to-cart-popup-overlay {
  pointer-events: auto;
}

/* =========================================================================
   Cart totals: Donation / fee row alignment
   Ensure the fee amount is right-aligned with Subtotal and Total.
   ========================================================================= */
.cart_totals tr.fee th {
  text-align: left !important;
}
.cart_totals tr.fee td {
  text-align: right !important;
}

/* ── Cart/checkout seat item layout fixes ──────────────────────────────── */

/* Cart page: seat item thumbnail - constrained, centered */
table.shop_table tr.tktas-seat-item td.product-thumbnail,
table.cart tr.tktas-seat-item td.product-thumbnail {
  vertical-align: middle;
  text-align: center;
}
table.shop_table tr.tktas-seat-item td.product-thumbnail img,
table.cart tr.tktas-seat-item td.product-thumbnail img {
  width: 48px !important;
  height: 48px !important;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

/* Checkout order review: keep td.product-name as normal block (NOT flex).
   WC's structure is: <strong class="product-quantity">×N</strong> Name <dl>...</dl>
   The strong floats right by default in most themes — we just normalize it. */
.woocommerce-checkout-review-order table.shop_table tr.tktas-seat-item td.product-name,
#order_review table.shop_table tr.tktas-seat-item td.product-name {
  display: table-cell; /* explicitly NOT flex */
  vertical-align: middle;
}

/* Checkout order review: quantity badge — keep it inline, not floated */
.woocommerce-checkout-review-order table.shop_table tr.tktas-seat-item strong.product-quantity,
#order_review table.shop_table tr.tktas-seat-item strong.product-quantity {
  float: none !important;
  display: inline;
  margin-right: 6px;
}

/* Cart totals: right-align tax (override theme's responsive block display) */
.woocommerce-cart .cart_totals table.shop_table tr.tax-rate td,
.woocommerce .cart_totals .shop_table tr.tax-rate td,
.woocommerce table.shop_table tr[class*="tax-rate"] td {
  text-align: right !important;
}


/* =========================================================================
   Checkout review item layout
   ========================================================================= */
.woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-name,
#order_review table.shop_table tr.cart_item td.product-name {
  padding-top: 14px;
  padding-bottom: 14px;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-name .tktas-review-item,
#order_review table.shop_table tr.cart_item td.product-name .tktas-review-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-name .tktas-review-thumb,
#order_review table.shop_table tr.cart_item td.product-name .tktas-review-thumb {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0;
  flex-shrink: 0;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-name .tktas-review-item-meta,
#order_review table.shop_table tr.cart_item td.product-name .tktas-review-item-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-name .tktas-review-item-title,
#order_review table.shop_table tr.cart_item td.product-name .tktas-review-item-title {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #111827;
  margin-bottom: 4px;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-name .tktas-review-item-title a,
#order_review table.shop_table tr.cart_item td.product-name .tktas-review-item-title a {
  color: inherit;
  text-decoration: none;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-name .tktas-review-qty-badge,
#order_review table.shop_table tr.cart_item td.product-name .tktas-review-qty-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e8f1fb;
  color: #0b4c84;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  float: none !important;
  margin-top: 2px;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-name dl.variation,
#order_review table.shop_table tr.cart_item td.product-name dl.variation {
  margin: 4px 0 0;
  display: grid !important;
  grid-template-columns: max-content 1fr;
  column-gap: 6px;
  row-gap: 1px;
  font-size: 0.8rem;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-name dl.variation dt,
#order_review table.shop_table tr.cart_item td.product-name dl.variation dt {
  display: block;
  font-weight: 600;
  color: #0b4c84;
  margin: 0;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-name dl.variation dd,
#order_review table.shop_table tr.cart_item td.product-name dl.variation dd {
  display: block;
  margin: 0;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-name dl.variation dd p,
#order_review table.shop_table tr.cart_item td.product-name dl.variation dd p {
  display: block;
  margin: 0;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-total,
#order_review table.shop_table tr.cart_item td.product-total {
  white-space: nowrap;
  vertical-align: middle;
  font-weight: 600;
}

@media (max-width: 767px) {
  .woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-name .tktas-review-item,
  #order_review table.shop_table tr.cart_item td.product-name .tktas-review-item {
    gap: 8px;
  }

  .woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-name .tktas-review-thumb,
  #order_review table.shop_table tr.cart_item td.product-name .tktas-review-thumb {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
  }

  .woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-name .tktas-review-qty-badge,
  #order_review table.shop_table tr.cart_item td.product-name .tktas-review-qty-badge {
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
  }
}

/* =========================================================
   Checkout review table: server-rendered Ticketality layout
   ========================================================= */
.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name {
  padding-top: 18px;
  padding-bottom: 18px;
  vertical-align: top;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  gap: 8px;
  align-items: start;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__media,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__media {
  width: 30px;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-thumb,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-thumb {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 8px;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-thumb--placeholder,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-thumb--placeholder {
  background: #eef2f7;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__body,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__body {
  min-width: 0;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__top,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__top {
  display: block;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__title,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__title {
  min-width: 0;
  font-weight: 600;
  line-height: 1.35;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__title a,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__title a {
  color: inherit;
  text-decoration: none;
}


.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-meta,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-meta {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.35;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-meta-label,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-meta-label {
  display: inline-block;
  margin-right: 6px;
  font-weight: 700;
  color: #0b4c84;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-seat-lines,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-seat-lines {
  display: inline-block;
  margin: 0;
  padding: 0;
  list-style: none;
  vertical-align: top;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-seat-lines li,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-seat-lines li {
  margin: 0;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total {
  vertical-align: top;
  white-space: nowrap;
  padding-top: 18px;
  text-align: right;
  font-weight: 700;
}


.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total .tktas-checkout-line-item__qty,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total .tktas-checkout-line-item__qty {
  display: block;
  margin: 0 0 6px;
  white-space: nowrap;
  font-weight: 600;
  color: #667085;
  line-height: 1.1;
  text-align: right;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total .tktas-checkout-line-item__amount,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total .tktas-checkout-line-item__amount {
  display: block;
}

@media (max-width: 767px) {
  .woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item,
  #order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item {
    grid-template-columns: 26px minmax(0,1fr);
    gap: 8px;
  }

  .woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-thumb,
  #order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-thumb {
    width: 26px;
    height: 26px;
  }
}


/* Demo v8 checkout row sizing refinements */
.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name {
  width: auto !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item {
  grid-template-columns: 22px minmax(0,1fr) !important;
  gap: 6px !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__media,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__media {
  width: 22px !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-thumb,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-thumb {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__body,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__body {
  overflow: visible !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__title,
.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__title a,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__title,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__title a {
  display: block !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word !important;
  max-width: none !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total {
  width: 78px !important;
  min-width: 78px !important;
  padding-left: 6px !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total .tktas-checkout-line-item__qty,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total .tktas-checkout-line-item__qty {
  margin-bottom: 2px !important;
}


/* Demo v9 cleanup: remove spacer hacks and tighten checkout row */
form.checkout table.shop_table tbody td.product-name:after,
.woocommerce-checkout-review-order table.shop_table tbody td.product-name:after,
#order_review table.shop_table tbody td.product-name:after {
  content: none !important;
  display: none !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name {
  padding-right: 8px !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total {
  width: 72px !important;
  min-width: 72px !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total .tktas-checkout-line-item__qty,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total .tktas-checkout-line-item__qty {
  letter-spacing: 0;
}


/* Demo v11: final checkout cleanup */
.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name {
  vertical-align: top !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item {
  grid-template-columns: 24px minmax(0,1fr) !important;
  gap: 8px !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__media,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__media {
  width: 24px !important;
  min-width: 24px !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-thumb,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-thumb {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__top,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__top {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  column-gap: 8px !important;
  align-items: start !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__qty-inline,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__qty-inline {
  font-weight: 700 !important;
  white-space: nowrap !important;
  text-align: right !important;
  color: inherit !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total .tktas-checkout-line-item__amount,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total .tktas-checkout-line-item__amount {
  display: block !important;
}

/* Demo v12: premium checkout summary polish */
.woocommerce-checkout-review-order,
#order_review {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

#order_review_heading,
.woocommerce-checkout-review-order-table thead th,
#order_review .shop_table thead th {
  font-weight: 700;
  letter-spacing: 0;
}

.woocommerce-checkout-review-order-table.shop_table,
#order_review table.shop_table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}

.woocommerce-checkout-review-order-table.shop_table th,
.woocommerce-checkout-review-order-table.shop_table td,
#order_review table.shop_table th,
#order_review table.shop_table td {
  padding-top: 14px;
  padding-bottom: 14px;
  vertical-align: top;
  border-top: 0;
}

.woocommerce-checkout-review-order-table tbody tr.cart_item td,
#order_review table.shop_table tbody tr.cart_item td {
  border-bottom: 1px solid #eef2f7;
}

.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td,
#order_review table.shop_table tfoot th,
#order_review table.shop_table tfoot td {
  border-top: 1px solid #dbe4ee;
  padding-top: 16px;
  padding-bottom: 16px;
}

.woocommerce-checkout-review-order-table .product-name,
#order_review table.shop_table .product-name {
  width: 76% !important;
}

.woocommerce-checkout-review-order-table .product-total,
#order_review table.shop_table .product-total {
  width: 24% !important;
  text-align: right;
  white-space: nowrap;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name {
  padding-right: 10px !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total {
  width: 24% !important;
  min-width: 92px !important;
  padding-left: 8px !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__media,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__media {
  width: 28px !important;
  min-width: 28px !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-thumb,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-thumb {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain;
  border-radius: 6px !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__body,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__body {
  min-width: 0;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__top,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__top {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  gap: 8px !important;
  align-items: start !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__title,
.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__title a,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__title,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__title a {
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #101828 !important;
  margin: 0 0 4px 0 !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-meta,
.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-seat-lines,
.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-seat-lines li,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-meta,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-seat-lines,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-seat-lines li {
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: #475467 !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total .tktas-checkout-line-item__qty,
.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__qty-inline,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total .tktas-checkout-line-item__qty,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-name .tktas-checkout-line-item__qty-inline {
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #344054 !important;
  margin-bottom: 4px !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total .tktas-checkout-line-item__amount,
#order_review table.shop_table tr.cart_item.tktas-checkout-row-ready td.product-total .tktas-checkout-line-item__amount {
  text-align: right !important;
  white-space: nowrap !important;
}

.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout-review-order-table tfoot tr.order-total td,
#order_review table.shop_table tfoot tr.order-total th,
#order_review table.shop_table tfoot tr.order-total td {
  font-size: 20px;
  font-weight: 800;
  color: #101828;
}

.tktas-reserve-toast,
.tktas-seat-timer,
.tktas-hold-timer {
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
}

.tktas-reserve-toast .time,
.tktas-seat-timer .time,
.tktas-hold-timer .time {
  font-weight: 800;
}


/* =========================================================================
   Motta add-to-cart popup recommendations: normalize all event images.
   Keep a single consistent thumbnail box so logos and flyers do not render
   at mixed visual sizes inside the popup recommendation row.
   ========================================================================= */
body.motta-popup-open .motta-popup ul.products li.product.tktas-event-product .woocommerce-loop-product__link img,
body.motta-popup-open .motta-popup ul.products li.product.tktas-event-product .product-thumbnail img,
body.motta-popup-open .woocommerce-add-to-cart-popup ul.products li.product.tktas-event-product .woocommerce-loop-product__link img,
body.motta-popup-open .woocommerce-add-to-cart-popup ul.products li.product.tktas-event-product .product-thumbnail img,
body.motta-popup-open .motta-popup ul.products li.product.tktas-event-product img,
body.motta-popup-open .woocommerce-add-to-cart-popup ul.products li.product.tktas-event-product img {
  width: 96px !important;
  height: 96px !important;
  object-fit: contain !important;
  display: block;
  margin: 0 auto;
  background: #fff;
}

body.motta-popup-open .motta-popup ul.products li.product.tktas-event-product .product-thumbnail,
body.motta-popup-open .woocommerce-add-to-cart-popup ul.products li.product.tktas-event-product .product-thumbnail,
body.motta-popup-open .motta-popup ul.products li.product.tktas-event-product .woocommerce-loop-product__link,
body.motta-popup-open .woocommerce-add-to-cart-popup ul.products li.product.tktas-event-product .woocommerce-loop-product__link {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* =========================================================================
   Exact Motta add-to-cart recommendation popup target.
   The popup cards are controlled by the Motta selector below, so normalize
   the image box there directly.
   ========================================================================= */
body.motta-popup-open .modal__notices .motta-product-popup-atc__recommendation ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

body.motta-popup-open .modal__notices .motta-product-popup-atc__recommendation ul.products li.product {
  width: auto !important;
  min-width: 0 !important;
}

body.motta-popup-open .modal__notices .motta-product-popup-atc__recommendation ul.products li.product .product-inner,
body.motta-popup-open .modal__notices .motta-product-popup-atc__recommendation ul.products li.product .woocommerce-loop-product__link,
body.motta-popup-open .modal__notices .motta-product-popup-atc__recommendation ul.products li.product .product-thumbnail {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.motta-popup-open .modal__notices .motta-product-popup-atc__recommendation ul.products li.product .product-thumbnail,
body.motta-popup-open .modal__notices .motta-product-popup-atc__recommendation ul.products li.product .woocommerce-loop-product__link {
  min-height: 96px !important;
}

body.motta-popup-open .modal__notices .motta-product-popup-atc__recommendation ul.products li.product .product-thumbnail img,
body.motta-popup-open .modal__notices .motta-product-popup-atc__recommendation ul.products li.product .woocommerce-loop-product__link img,
body.motta-popup-open .modal__notices .motta-product-popup-atc__recommendation ul.products li.product img {
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  min-height: 96px !important;
  max-width: 96px !important;
  max-height: 96px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: 0 auto !important;
  background: transparent !important;
}

body.motta-popup-open .modal__notices .motta-product-popup-atc__recommendation ul.products li.product.tktas-community-event .product-thumbnail img,
body.motta-popup-open .modal__notices .motta-product-popup-atc__recommendation ul.products li.product.tktas-community-event .woocommerce-loop-product__link img,
body.motta-popup-open .modal__notices .motta-product-popup-atc__recommendation ul.products li.product.tktas-community-event img {
  object-fit: cover !important;
}

@media (max-width: 767px) {
  body.motta-popup-open .modal__notices .motta-product-popup-atc__recommendation ul.products {
    grid-template-columns: 1fr !important;
  }
}
