#modal-ticket {
   font-size: 16px;
 }

#modal-ticket hgroup, #modal-ticket .modal-container{
   border-radius: 12px;
}

#modal-ticket section {
   border: 0;
   box-shadow: none;
   padding: 0;
}

#modal-ticket section[data-role='hero'] figure {
   width: 100%;
   height: 100%;
}

#modal-ticket section[data-role='hero'] img{
   width: 100%;
   height: 100%;
   object-fit: cover;
   border-radius: 8px;
}

#modal-ticket section[data-role='primary-details']{
   font-size: 24px;
}

#modal-ticket section[data-role='hero'] {
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
}

#modal-ticket section[data-role='hero'] figure.caption-overlay {
  width: 100%;
  position: relative;
  background: #f1f5f8;
}

#modal-ticket section[data-role='hero'] figure.caption-overlay, #modal-ticket section[data-role='hero'] .skeleton {
   aspect-ratio: 2.4 / 1;
}

#modal-ticket section[data-role='hero'] img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  max-height: unset;
}

#modal-ticket section[data-role='hero'] figure[data-media='map'] img {
   object-fit: contain;
   scale: 1.05;
}

#modal-ticket section {
   margin: 0 !important;
   border: none !important;
   box-shadow: none !important;
   padding: 0;
}

#modal-ticket .use-omni figure{
   margin: 0;
   padding: 0;
   display: block;
}

#modal-ticket .use-omni figure figcaption {
   padding: calc(var(--spacing) * 0.5);
   color: var(--color-muted);
   font-weight: 500;
}

#modal-ticket .use-omni figure.caption-overlay{
   position: relative;
}

#modal-ticket .use-omni figure.caption-overlay figcaption{
   position: absolute;
   background: rgba(0, 0, 0, 0.6);
   color: white;
   margin: unset;
   padding: 8px;
}



#modal-ticket .use-omni figure.caption-overlay figcaption[data-position="se"]{
   bottom: 0;
   right: 0;
}


#modal-ticket figure.caption-overlay figcaption {
  position: absolute;

  width: auto;
  max-width: 70%;
  padding: 10px 18px 9px 10px;
  font-size: 0.8em;
  font-weight: 500;
  background: rgba(8,18,40,0.70);
  color: #fff;
  border-radius: 8px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.11);
}



#modal-ticket section[data-role='primary-details'] > [data-role="seats"] {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}


#modal-ticket section[data-role='primary-details'] span {
  font-weight: 400;
  color: var(--color-60);
  margin-left: 0.35em;
  font-size: 1em;
}

#modal-ticket section[data-role='checkout'] select, #modal-ticket section[data-role='checkout'] span {
  width: 100%;
  padding: 12px 16px;
  border-radius: 7px;
  border: 1px solid #E5E8EF;
  background: #f7fafd;
  font-size: 1em;
  font-family: inherit;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: border-color 0.2s;
}

#modal-ticket section[data-role='checkout'] span {
   margin-bottom: 0;
}

#modal-ticket section[data-role='checkout'] select:focus {
  border-color: #0067ce;
  outline: none;
}

#modal-ticket section[data-role='checkout'] [data-role='go-to-checkout'] {
  display: block;
  width: 100%;
  background: #0067ce;
  color: #fff;
  font-size: 1.07em;
  font-weight: 500;
  border: none;
  border-radius: 7px;
  padding: 0.92em 0;
  text-align: center;
  cursor: pointer;
  margin-bottom: 12px;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  text-decoration: none;
  transition: background 0.2s;
}

#modal-ticket section[data-role='checkout'] [data-role='go-to-checkout']:hover {
  background: #005bb5;
}

#modal-ticket section[data-role='details'] {

  font-size: 1.02em;
  color: var(--color-primary);
}

#modal-ticket [data-list] {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

#modal-ticket [data-list] lh,
#modal-ticket .cmp-inline-title {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--color-primary);
  font-size: 1em;
  margin-bottom: 0.32em;
  letter-spacing: -0.01em;
  position: relative;
  gap: 0.4em;
}

#modal-ticket [data-list]:not([data-list='previewFeatured']) li {
  font-size: 0.95em;
  color: var(--color-70);
  padding: 0.14em 0;
  line-height: 1.38;
  padding-left: 2em;
}

#modal-ticket .has-icon[data-icon='seats']::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.34em;
  width: 1.05em;
  height: 1.05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M15 5v7H9V5zm0-2H9a2 2 0 0 0-2 2v9h10V5a2 2 0 0 0-2-2m7 7h-3v3h3zM5 10H2v3h3zm15 5H4v6h2v-4h12v4h2z'/%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
}

/* Map Location Notice block — tinted so the caveat reads as a callout rather than
   another list. Same negative-margin/padding trick as ul[data-list='marquee']: the tint
   bleeds to the modal's edges instead of stopping at the content column, which is what
   makes it read as a band rather than a floating box. #fffcf1 matches te.1's own long-
   section notice (views/ticket-listing/section-seatscore.php:6). */
#modal-ticket ul[data-list='map-notice'] {
   padding: 12px 24px;
   margin: 0 -24px;
   background: #fffcf1;
}

/* Map Location Notice — the map-accuracy caveat (long section / multi-view). Its own
   section rather than an attributes bullet: it is a caveat about what you are buying, and
   in the bullet list it read as one more feature. te.1 gave it a dedicated block for the
   same reason (views/ticket-listing/section-seatscore.php:6-11). */
#modal-ticket .has-icon[data-icon='map-location']::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.34em;
  width: 1.05em;
  height: 1.05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 1024 1024'%3E%3Cpath fill='%23000' d='M800 416a288 288 0 1 0-576 0c0 118.1 94.5 272.1 288 456.6C705.5 688 800 534 800 416M512 960Q160 640 160 416a352 352 0 0 1 704 0q0 224-352 544'/%3E%3Cpath fill='%23000' d='M512 448a64 64 0 1 0 0-128a64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256a128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-69 0H235.4l-76.8 192h707z'/%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
}

/* Trade-Offs — seats icon with a strike line (mirrors te.1's seats-strike). */
#modal-ticket .has-icon[data-icon='seats-strike']::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.34em;
  width: 1.05em;
  height: 1.05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M15 5v7H9V5zm0-2H9a2 2 0 0 0-2 2v9h10V5a2 2 0 0 0-2-2m7 7h-3v3h3zM5 10H2v3h3zm15 5H4v6h2v-4h12v4h2z'/%3E%3Cpath stroke='%23000' stroke-width='2' stroke-linecap='round' d='M3 3L21 21'/%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
}

/* Section/Row Details — 4-square grid. */
#modal-ticket .has-icon[data-icon='section']::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.34em;
  width: 1.05em;
  height: 1.05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4.5 11h5c.83 0 1.5-.67 1.5-1.5v-5c0-.83-.67-1.5-1.5-1.5h-5C3.67 3 3 3.67 3 4.5v5c0 .83.67 1.5 1.5 1.5M5 5h4v4H5zm14.5-2h-5c-.83 0-1.5.67-1.5 1.5v5c0 .83.67 1.5 1.5 1.5h5c.83 0 1.5-.67 1.5-1.5v-5c0-.83-.67-1.5-1.5-1.5M19 9h-4V5h4zM4.5 21h5c.83 0 1.5-.67 1.5-1.5v-5c0-.83-.67-1.5-1.5-1.5h-5c-.83 0-1.5.67-1.5 1.5v5c0 .83.67 1.5 1.5 1.5m.5-6h4v4H5zm14.5-2h-5c-.83 0-1.5.67-1.5 1.5v5c0 .83.67 1.5 1.5 1.5h5c.83 0 1.5-.67 1.5-1.5v-5c0-.83-.67-1.5-1.5-1.5m-.5 6h-4v-4h4z'/%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
}

/* Delivery — mobile ticket (phone). */
#modal-ticket .has-icon[data-icon='delivery']::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.34em;
  width: 1.05em;
  height: 1.05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M10 19h4'/%3E%3C/g%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
}

/* 100% Buyer Guarantee — shield with check. */
#modal-ticket .has-icon[data-icon='guarantee']::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.34em;
  width: 1.05em;
  height: 1.05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4-3 7.5-7 9c-4-1.5-7-5-7-9V6z'/%3E%3Cpath d='M9 12l2 2l4-4'/%3E%3C/g%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
}

#modal-ticket .has-icon[data-icon='calendar']::before {
   content: "";
   display: inline-block;
   vertical-align: middle;
   margin-right: 0.34em;
   width: 1.05em;
   height: 1.05em;
   background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M19 3h-1V1h-2v2H8V1H6v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.11 0 2-.89 2-2V5a2 2 0 0 0-2-2m0 16H5V9h14zm0-12H5V5h14z'/%3E%3C/svg%3E") no-repeat center center;
   background-size: contain;
}

#modal-ticket .has-icon[data-icon='more']::before {
   content: "";
   display: inline-block;
   vertical-align: middle;
   margin-right: 0.34em;
   width: 1.05em;
   height: 1.05em;
   background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5 10c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2m14 0c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2m-7 0c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2'/%3E%3C/svg%3E") no-repeat center center;
   background-size: contain;
}

#modal-ticket .has-icon[data-icon='notes']::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.34em;
  width: 1.05em;
  height: 1.05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2zm4 2h6m-6 4h6m-6 4h4'/%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
}

#modal-ticket .has-icon[data-icon='zone']::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.34em;
  width: 1.05em;
  height: 1.05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linejoin='round' stroke-miterlimit='10' stroke-width='1.5'%3E%3Cpath d='M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12s4.477 10 10 10Z'/%3E%3Cpath d='M12 18a6 6 0 1 0 0-12a6 6 0 0 0 0 12Z'/%3E%3Cpath d='M12 14a2 2 0 1 0 0-4a2 2 0 0 0 0 4Z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
}

#modal-ticket .has-icon[data-icon='quantity']::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.34em;
  width: 1.14em;
  height: 1.14em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'  viewBox='0 0 15 15'%3E%3Cpath fill='%23000' d='M5 8.9c1.44 0 2.68.252 3.575.855C9.502 10.38 10 11.343 10 12.6a.501.501 0 0 1-1 0c0-.958-.358-1.596-.983-2.017C7.359 10.141 6.35 9.9 5 9.9s-2.36.241-3.017.684C1.358 11.005 1 11.643 1 12.601a.501.501 0 0 1-1 0c0-1.258.497-2.221 1.424-2.846C2.319 9.152 3.56 8.9 5 8.9m4.975 0c1.439 0 2.68.252 3.575.855c.927.625 1.425 1.588 1.425 2.846a.5.5 0 0 1-1 0c0-.958-.358-1.596-.984-2.017c-.518-.349-1.253-.57-2.202-.65a4.5 4.5 0 0 0-.87-1.033zM5 1.85a3.151 3.151 0 0 1 0 6.3a3.15 3.15 0 1 1 0-6.3m4.975 0a3.15 3.15 0 0 1 0 6.3c-.524 0-1.016-.13-1.45-.356a4.5 4.5 0 0 0 .534-.852a2.15 2.15 0 1 0 0-3.887a4.5 4.5 0 0 0-.535-.85a3.1 3.1 0 0 1 1.45-.355M5 2.85a2.151 2.151 0 0 0 0 4.3a2.15 2.15 0 0 0 0-4.3'/%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
}

#modal-ticket section[data-role='primary-details'] {
   display: flex;
   flex-direction: column;
   gap: 0.35em;
}

#modal-ticket section[data-role='primary-details'] [data-role="price"] {
   display: inline-flex;
   align-items: baseline;
   font-size: 18px;
   font-weight: 500;
   color: var(--color-primary);
   gap: 0.32em;
}

#modal-ticket section[data-role='primary-details'] span {
   font-size: 0.97em;
   font-weight: 400;
   color: var(--color-60);
   margin: 0;
}

#modal-ticket main > section {
   margin-bottom: 1.5em !important;
}

#modal-ticket main > section[data-role='hero'] {
   margin-bottom: 0.8em !important;
}

#modal-ticket section[data-role='checkout'] {
   display: flex;
   align-items: center;
   gap: 14px;

   max-width: 320px;
   margin: 0 auto;
}

#modal-ticket section[data-role='checkout'] select {
   flex: 1 0 50%;
   margin-bottom: 0;
   min-width: 110px;
   max-width: 55%;
}

#modal-ticket section[data-role='checkout'] [data-role='go-to-checkout'] {
   flex: 1 0 50%;
   margin: 0;
   min-width: 96px;
   max-width: 40%;
   padding: 12px 0;
}

#modal-ticket section[data-role='details'] {
   margin-bottom: 1.1em;
}

#modal-ticket main > section:last-child {
   margin-bottom: 0 !important;
}

#modal-ticket .cmodal button.is-close{
    background: white;
    border-radius: 8px;
}

#modal-ticket button.is-close{
    top: 12px;
}

@media (max-width: 600px) {
   .cmodal#modal-ticket .modal-container {
     width: 100%;
     max-width: 100%;
     left: 0;
     top: 0;
     min-height: 100vh;
     min-height: 100dvh;
     border-radius: 0;
     transform: none;
     scrollbar-gutter: stable;
     overflow-x: hidden;
   }

   #modal-ticket section[data-role='hero'] figure.caption-overlay, #modal-ticket section[data-role='hero'] .skeleton {
      aspect-ratio: 1.6 / 1;
   }
}

#modal-ticket .has-icon[data-icon='price']::before {
   content: "";
   display: inline-block;
   vertical-align: middle;
   margin-right: 0.34em;
   width: 1.14em;
   height: 1.14em;
   background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z'/%3E%3Ccircle cx='7.5' cy='7.5' r='.5' fill='%23000'/%3E%3C/g%3E%3C/svg%3E") no-repeat center center;
   background-size: contain;
}

#modal-ticket .has-icon[data-icon='trust-reviews']::before {
   content: "";
   display: inline-block;
   vertical-align: middle;
   margin-right: 0.34em;
   width: 1.14em;
   height: 1.14em;
   background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%230067ce' d='m16 8l1.912 3.703l4.088.594L19 15l1 4l-4-2.25L12 19l1-4l-3-2.703l4.2-.594z'/%3E%3Cpath fill='%230067ce' d='M17.736 30L16 29l4-7h6a1.997 1.997 0 0 0 2-2V8a1.997 1.997 0 0 0-2-2H6a1.997 1.997 0 0 0-2 2v12a1.997 1.997 0 0 0 2 2h9v2H6a4 4 0 0 1-4-4V8a4 4 0 0 1 4-4h20a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4h-4.835Z'/%3E%3C/svg%3E") no-repeat center center;
   background-size: contain;
}

#modal-ticket ul[data-list='marquee']{
   padding: 12px 24px;
   margin: 0px -24px;
   background: linear-gradient(to right, rgb(253 233 239) 0%, rgba(0, 103, 206, 0.01) 100%);
}

#modal-ticket ul[data-list='marquee'] lh{
   color: var(--marqueeColor);
   font-weight: 600;
}

#modal-ticket ul[data-list='marquee'] li:first-of-type{
    margin-bottom: 1em;
}
/* Only reserve that gap once the explainer is expanded — collapsed sits flush. */
#modal-ticket ul[data-list='marquee'] li:first-of-type:has(.marquee-details:not([open])){
    margin-bottom: 0;
}

#modal-ticket .has-icon[data-icon='marquee']::before {
   content: "";
   display: inline-block;
   vertical-align: middle;
   margin-right: 0.34em;
   width: 1.14em;
   height: 1.14em;
   background: var(--marqueeIcon);
   background-size: contain;
}

/* Marquee vars + gradient text live only in the theme slates (ti.2 / te.1 / te.2),
   which te.3 doesn't load — so the modal was missing its icon + colored text.
   Define them here (scoped to the modal) so marquee renders correctly everywhere. */
#modal-ticket {
   --marqueeColor: #ea4991;
   --marqueeIcon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ea4991' d='m9 4l2.5 5.5L17 12l-5.5 2.5L9 20l-2.5-5.5L1 12l5.5-2.5zm0 4.83L8 11l-2.17 1L8 13l1 2.17L10 13l2.17-1L10 11zM19 9l-1.26-2.74L15 5l2.74-1.25L19 1l1.25 2.75L23 5l-2.75 1.26zm0 14l-1.26-2.74L15 19l2.74-1.25L19 15l1.25 2.75L23 19l-2.75 1.26z'/%3E%3C/svg%3E");
}
#modal-ticket .text-feature {
   background: linear-gradient(90deg, #840ac9 0%, #d60eb2 30%, #fa0b81 50%, #fa0b81 100%);
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
   color: #fa0b81;
   font-weight: bold;
}
/* Collapsible marquee explainer — native <details>, keeps the block compact. */
#modal-ticket ul[data-list='marquee'] .marquee-details { margin-top: 0; }
#modal-ticket ul[data-list='marquee'] .marquee-details > summary {
   cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
}
#modal-ticket ul[data-list='marquee'] .marquee-details > summary::-webkit-details-marker { display: none; }
#modal-ticket ul[data-list='marquee'] .marquee-details > summary i { color: var(--marqueeColor, #ea4991); transition: transform .15s; }
#modal-ticket ul[data-list='marquee'] .marquee-details[open] > summary i { transform: rotate(180deg); }
#modal-ticket ul[data-list='marquee'] .marquee-details .marquee-more { display: block; margin-top: 4px; color: var(--color-70); font-weight: 400; }

#modal-ticket hgroup .is-header{
    font-size: 0.8em;
    font-weight: normal;
    color: var(--color-60);
}

#modal-ticket hgroup{
    line-height: 54px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Edge-to-edge helper: break a modal section out of <main>'s inline padding so its
   background reaches the screen edges, while padding-inline keeps its CONTENT aligned
   with the rest of the modal. Add class="modal-bleed" to any section that should bleed
   (MLB banner, Google trust block) instead of hand-rolling negative-margin math per
   section. The literal matches main's actual padding-inline (#modal-ticket.cmodal main:
   clamp(16px,3vw,24px)). Descendant combinator so it also covers a bleed section nested
   inside another (e.g. the trust block relocated into Details for pageId "te"). */
#modal-ticket main section.modal-bleed {
   margin-inline: calc(-1 * clamp(16px, 3vw, 24px)) !important;
   padding-inline: clamp(16px, 3vw, 24px);
}

/* MLB "Authorized Marketplace" banner — sits directly under the hero, edge-to-edge
   (class="modal-bleed"). Strip height follows the 42x32 logo; margin-top nets out the
   hero's 0.8em bottom margin so the banner sits flush beneath the photo. */
#modal-ticket section[data-role='mlb-banner'] {
   display: flex;
   align-items: center;
   gap: 8px;
   height: 36px;
   background: #041E43;
   color: #fff;
   margin-top: -0.8em !important;   /* net out hero's margin-bottom (0.8em) */
}
#modal-ticket section[data-role='mlb-banner'] img {
   flex: 0 0 auto;
   width: auto;
   height: 14px;
   display: block;
}
#modal-ticket section[data-role='mlb-banner'] span {
   font-size: 12px;
   line-height: 1;
}

#modal-ticket section[data-role='trust']{
   background: linear-gradient(
      to right,
      rgba(0, 103, 206, 0.1) 0%,
      rgba(0, 103, 206, 0.01) 100%
    );
    padding: 12px;
    font-size: 1.02em;
    border-radius: 0 !important;
    position: relative;
}

#modal-ticket section[data-role='trust'] lh{
   color: #0067CE;
   font-weight: 500;
}

#modal-ticket section[data-role='trust'] ul{
   margin: 0;
}

#modal-ticket section[data-role='trust'] ul li{
   padding-right: 3em !important;
   font-size: 0.85em !important;
}

#modal-ticket section[data-role='trust'] .google-badge{
   position: absolute;
   bottom: 0.5em;
   right: 1.2em;
   height: 4vw;
   max-height: 2.4em;
   min-height: 1.4em;
}

#modal-ticket ul[data-list='footer']{
   text-align: right;
}

#modal-ticket ul[data-list='footer'] a{
   color: var(--color-primary);
}

#modal-ticket [data-role='deal']{
   font-size: 0.68em;
}

#modal-ticket [data-role='deal'] span{
   background: green;
   color: white !important;
   border-radius: 4px;
   padding: 2px 4px;
   font-size: 0.68em !important;
}

#modal-ticket [data-role='deal'] strong{
   color: green;
   font-weight: normal;
}

/* --- 2. Gallery Frame and Swiping Container --- */
#modal-ticket [data-role='gallery-frame'] {
   position: relative;
   overflow: hidden; 

}

/* 💥 EDIT: Navigation buttons are hidden by default, visible on frame hover */
#modal-ticket [data-role='gallery-frame']:hover button[data-action] {
   opacity: 1;
}

#modal-ticket [data-role='gallery-list'] {
   display: flex; 
   transition: transform 0.3s ease-in-out;
   width: 100%; 
   height: 100%; 
}

#modal-ticket [data-role='gallery-list'] figure {
   flex-shrink: 0; 
   width: 100%; 
   height: 100%; 
   margin: 0;
   position: relative;
   display: flex; 
}

#modal-ticket [data-role='gallery-list'] img {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover; 
}

/* Photo Caption */
#modal-ticket [data-role='gallery-list'] figcaption {
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0; 
   background: rgba(0, 0, 0, 0.6);
   color: white;
   padding: 8px 15px;
   font-size: 0.9em;
}


/* --- 3. Navigation Buttons (Hidden/Visible/Styled) --- */
#modal-ticket [data-role='gallery-frame'] button[data-action] {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   
   /* 💥 EDIT: Initial button style (White BG @ 70% opacity, Black arrow text) */
   background: rgba(255, 255, 255, 0.85); 
   color: var(--color-primary); 
   
   border: none;
   cursor: pointer;
   z-index: 10;
   font-size: 1.3em;
   line-height: 1;
   
   /* 💥 EDIT: Hidden by default and transition for fade effect */
   opacity: 0;
   transition: opacity 0.3s, background 0.2s; 
   
   border-radius: 50%;
   width: 32px;
   height: 32px;
}

/* 💥 EDIT: Button hover state (100% white BG) */
#modal-ticket [data-role='gallery-frame'] button[data-action]:hover {
   background: rgba(255, 255, 255, 1);
}

#modal-ticket [data-role='gallery-frame'] button[data-action='prev'] {
   left: 10px;
}

#modal-ticket [data-role='gallery-frame'] button[data-action='next'] {
   right: 10px;
}

/* --- 4. Navigation Dots (5-Dot Viewport Logic) --- */

#modal-ticket [data-role='gallery-dots-viewport'] {
   /* Set max visible width (5 dots * 16px total width per dot = 80px) */
   width: 80px; 
   height: 16px; 
   overflow: hidden; /* Clips dots outside the viewport */
   position: absolute; 
   bottom: 10px; /* Position pagination at the bottom */
   left: 50%; 
   transform: translateX(-50%); /* Centers the viewport itself */
   z-index: 10;
}

#modal-ticket [data-role='gallery-dots'] {
   display: flex;
   gap: 8px; /* Space between dots */
   position: absolute; /* Allows for X-axis positioning */
   top: 0;
   
   /* FIX: Centers the ENTIRE list of dots */
   left: 50%; 
   transform: translateX(-50%); 
   transition: transform 0.2s ease-in-out; 
}

#modal-ticket [data-role='gallery-dots'] span {
   display: block;
   width: 8px;
   height: 8px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.6);
   cursor: pointer;
   transition: background 0.2s, transform 0.2s;
   flex-shrink: 0; 
}

#modal-ticket [data-role='gallery-dots'] span.active {
   background: white;
   transform: scale(1.2);
}

/* --- 5. Seating Chart Overlay --- */
#modal-ticket [data-role='gallery-overlay'] {
   position: absolute;
   /* EDIT: Moved slightly closer to the corner */
   bottom: 12px;
   right: 12px;
   z-index: 15; 
   opacity: 1;
   visibility: visible;
   transition: opacity 0.3s, visibility 0.3s;
   
   /* EDIT: Sizing using percentages and min/max */
   width: 16%;
   min-width: 56px;
   max-width: 84px;
}

#modal-ticket [data-role='gallery-overlay'].overlay-active {
   opacity: 0;
   visibility: hidden;
}

#modal-ticket [data-role='gallery-overlay'] [data-overlay-target] {
   display: block;
   width: 100%; 
   aspect-ratio: 1.2 / 1;
   background: #DDD;
   border-radius: 5px;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
   cursor: pointer;
   overflow: hidden;
}

#modal-ticket [data-role='gallery-overlay'] [data-overlay-target] img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}


#modal-ticket [data-role='hero'] figcaption{
   top: 4px;
   left: unset;
   bottom: unset;
   right: 4px;
   border-radius: 8px;
}

#modal-ticket select{
   appearance: auto;
}

#modal-ticket.cmodal main{
   padding-inline: clamp(16px, 3vw, 24px);
}

/* ── Tabs: Details | Compare ─────────────────────────────────────────────── */
#modal-ticket nav[data-role='ticket-tabs'] {
   display: flex;
   gap: 4px;
   border-bottom: 1px solid #E5E8EF;
   margin-bottom: 1.1em;
}

#modal-ticket [data-role='ticket-tab'] {
   appearance: none;
   background: none;
   border: 0;
   border-bottom: 2px solid transparent;
   padding: 10px 14px;
   font: inherit;
   font-size: 0.95em;
   font-weight: 500;
   color: var(--color-60);
   cursor: pointer;
   display: inline-flex;
   align-items: center;
   gap: 6px;
   margin-bottom: -1px;
   transition: color 0.15s, border-color 0.15s;
}

#modal-ticket [data-role='ticket-tab']:hover {
   color: var(--color-primary);
}

#modal-ticket [data-role='ticket-tab'].is-active {
   color: #0067ce;
   border-bottom-color: #0067ce;
}

/* Compare tab working indicator → becomes a count pill */
#modal-ticket [data-role='compare-indicator'] {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-width: 20px;
   height: 20px;
   padding: 0 6px;
   border-radius: 10px;
   background: #eef2f7;
   color: var(--color-60);
   font-size: 0.78em;
   font-weight: 600;
   line-height: 1;
}

#modal-ticket [data-role='compare-indicator'].is-ready {
   background: #0067ce;
   color: #fff;
}

#modal-ticket [data-role='compare-indicator'].is-zero {
   background: #eef2f7;
   color: var(--color-50);
}

/* Spinner (tab indicator + hint + panel status) */
#modal-ticket .compare-hint-spinner {
   display: inline-block;
   width: 12px;
   height: 12px;
   border: 2px solid rgba(0, 103, 206, 0.25);
   border-top-color: #0067ce;
   border-radius: 50%;
   vertical-align: -1px;
   animation: compareSpin 0.7s linear infinite;
}

@keyframes compareSpin { to { transform: rotate(360deg); } }

#modal-ticket [data-role='ticket-panel'][hidden] { display: none; }

/* ── Detail-tab "Looking for better options" hint block ──────────────────── */
#modal-ticket ul[data-list='compare-hint'] {
   padding: 12px 24px;
   margin: 0 -24px;
   background: linear-gradient(to right, rgba(0, 103, 206, 0.07) 0%, rgba(0, 103, 206, 0.01) 100%);
}

#modal-ticket ul[data-list='compare-hint'] lh {
   color: #0067ce;
   font-weight: 600;
}

#modal-ticket .has-icon[data-icon='compare']::before {
   content: "";
   display: inline-block;
   vertical-align: middle;
   margin-right: 0.34em;
   width: 1.05em;
   height: 1.05em;
   background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 6h13M3 6l3-3M3 6l3 3m15 9H8m13 0l-3-3m3 3l-3 3'/%3E%3C/svg%3E") no-repeat center center;
   background-size: contain;
}

#modal-ticket .compare-hint-link {
   color: #0067ce;
   font-weight: 600;
   cursor: pointer;
   font: inherit;
   font-weight: 600;
}

#modal-ticket .compare-hint-link:hover { text-decoration: underline; }

/* ── Compare panel ───────────────────────────────────────────────────────── */
#modal-ticket [data-role='compare-status'] {
   font-size: 0.95em;
   color: var(--color-60);
   margin-bottom: 1.1em;
   line-height: 1.4;
}

#modal-ticket [data-role='compare-status'].is-none {
   background: linear-gradient(to right, rgba(16, 158, 86, 0.10) 0%, rgba(16, 158, 86, 0.01) 100%);
   color: var(--color-primary);
   padding: 14px 16px;
   border-radius: 8px;
}

#modal-ticket [data-role='compare-cards'] {
   display: grid;
   gap: 16px;
   align-items: stretch; /* every card in a row matches the tallest */
}

@media (min-width: 720px) {
   #modal-ticket [data-role='compare-cards'] {
      grid-template-columns: 1fr 1fr;
   }
}

/* ── Compare card (app-style) ────────────────────────────────────────────── */
#modal-ticket .compare-card {
   border: 1px solid #E5E8EF;
   border-radius: 12px;
   overflow: hidden;
   background: #fff;
   display: flex;
   flex-direction: column;
   height: 100%; /* fill the stretched grid cell so CTAs align at the bottom */
}

#modal-ticket .compare-card-tagrow {
   padding: 10px 12px 0;
}

#modal-ticket .compare-card-tag {
   display: inline-block;
   padding: 3px 9px;
   border-radius: 999px;
   font-size: 0.74em;
   font-weight: 600;
   letter-spacing: 0.01em;
   background: #eef2f7;
   color: var(--color-60);
}

#modal-ticket .compare-card-tag.is-better-deal,
#modal-ticket .compare-card-tag.is-budget { background: #e3f5ec; color: #0d8a4e; }
#modal-ticket .compare-card-tag.is-better-seats { background: #e6f0fb; color: #0067ce; }
#modal-ticket .compare-card-tag.is-upgrade { background: #efe8fb; color: #6b3fd1; }
#modal-ticket .compare-card-tag.is-marquee { background: #fde9ef; color: var(--marqueeColor, #d6336c); }

#modal-ticket .compare-card-media {
   position: relative;
   width: 100%;
   margin-top: 10px;
   aspect-ratio: 1.9 / 1;
   background: #f1f5f8;
   overflow: hidden;
}

#modal-ticket .compare-card-img {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: none;
   cursor: pointer;
}

#modal-ticket .compare-card-img.is-active { display: block; }
#modal-ticket .compare-card-img.is-map { object-fit: contain; }

/* Seat View / Map toggle */
#modal-ticket .compare-card-media-tabs {
   position: absolute;
   bottom: 8px;
   left: 50%;
   transform: translateX(-50%);
   display: flex;
   gap: 2px;
   padding: 2px;
   border-radius: 999px;
   background: rgba(8, 18, 40, 0.6);
   z-index: 2;
}

#modal-ticket .compare-card-media-tab {
   appearance: none;
   border: 0;
   background: transparent;
   color: #fff;
   font: inherit;
   font-size: 0.74em;
   font-weight: 600;
   padding: 3px 11px;
   border-radius: 999px;
   cursor: pointer;
   line-height: 1.4;
}

#modal-ticket .compare-card-media-tab.is-active {
   background: #fff;
   color: var(--color-primary);
}

#modal-ticket .compare-card-body {
   padding: 12px;
   display: flex;
   flex-direction: column;
   gap: 6px;
   flex: 1 1 auto; /* grow so actions can pin to the bottom */
}

#modal-ticket .compare-card-deal {
   display: flex;
   align-items: center;
   gap: 6px;
   font-size: 0.82em;
   font-weight: 600;
}

#modal-ticket .compare-card-deal-score {
   background: green;
   color: #fff;
   border-radius: 4px;
   padding: 1px 5px;
   font-size: 0.92em;
}

#modal-ticket .compare-card-deal-label { color: green; }

#modal-ticket .compare-card-loc {
   font-weight: 600;
   font-size: 1.02em;
   color: var(--color-primary);
   letter-spacing: -0.01em;
}

#modal-ticket .compare-card-pricerow {
   display: inline-flex;
   align-items: baseline;
   gap: 0.3em;
}

#modal-ticket .compare-card-price { font-size: 1.2em; font-weight: 600; color: var(--color-primary); }
#modal-ticket .compare-card-each { font-size: 0.85em; color: var(--color-60); }

#modal-ticket .compare-card-score {
   font-size: 0.85em;
   color: var(--color-60);
}

#modal-ticket .compare-card-score-val { font-weight: 600; color: var(--color-primary); }

/* vs. your ticket summary */
#modal-ticket .compare-card-summary {
   margin-top: 4px;
   padding-top: 8px;
   border-top: 1px solid #eef2f7;
   display: flex;
   flex-direction: column;
   gap: 3px;
}

#modal-ticket .compare-card-summary-title {
   font-size: 0.72em;
   text-transform: uppercase;
   letter-spacing: 0.04em;
   color: var(--color-50);
   margin-bottom: 2px;
}

#modal-ticket .compare-card-row {
   display: flex;
   justify-content: space-between;
   align-items: baseline;
   font-size: 0.86em;
}

#modal-ticket .compare-card-row-label { color: var(--color-60); }

#modal-ticket .compare-tone { font-weight: 600; }
/* Diff tones — MATCH THE APP (rateyourseats-app CompareTickets.module.css:378-386).
   TWO tones only: positive (better for the buyer) is green, everything else — worse OR
   similar — is neutral navy. There is deliberately NO red/amber "bad" state: an
   alternative that costs more usually costs more BECAUSE it's a better seat, and
   colouring that red reads as "bad ticket" instead of "trade-off". */
#modal-ticket .compare-tone.is-positive { color: #198c19; font-weight: 700; }
#modal-ticket .compare-tone.is-neutral  { color: rgba(0, 36, 72, 0.7); font-weight: 600; }
/* Legacy threshold tones — no longer emitted by compareDiff(). Kept only so any older
   markup still in flight renders sanely; both collapse to the neutral treatment. */
#modal-ticket .compare-tone.is-great,
#modal-ticket .compare-tone.is-good { color: #198c19; font-weight: 700; }
#modal-ticket .compare-tone.is-soft-bad,
#modal-ticket .compare-tone.is-bad { color: rgba(0, 36, 72, 0.7); font-weight: 600; }

#modal-ticket .compare-card-actions {
   margin-top: auto; /* pin to the bottom of the (equal-height) card */
   padding-top: 10px;
   display: flex;
   flex-direction: column;
   gap: 8px;
}

#modal-ticket .compare-card-qty select,
#modal-ticket .compare-card-qty span {
   display: block;
   width: 100%;
   padding: 9px 12px;
   border-radius: 7px;
   border: 1px solid #E5E8EF;
   background: #f7fafd;
   font: inherit;
   font-size: 0.86em;
   font-weight: 500;
   color: var(--color-primary);
   appearance: auto;
}

#modal-ticket .compare-card-qty span {
   text-align: center;
   color: var(--color-60);
}

#modal-ticket .compare-card-btns {
   display: flex;
   gap: 8px;
}

#modal-ticket .compare-card-view,
#modal-ticket .compare-card-checkout {
   appearance: none;
   border: 1px solid #E5E8EF;
   background: #f7fafd;
   border-radius: 7px;
   padding: 9px 10px;
   font: inherit;
   font-size: 0.86em;
   font-weight: 500;
   color: var(--color-primary);
   cursor: pointer;
   flex: 1 0 0;
   transition: background 0.15s, border-color 0.15s;
}

#modal-ticket .compare-card-view:hover { background: #eef2f7; }

#modal-ticket .compare-card-checkout {
   background: #0067ce;
   border-color: #0067ce;
   color: #fff;
   flex: 1.4 0 0;
}

#modal-ticket .compare-card-checkout:hover { background: #005bb5; }

/* ============================================================
   Smart Compare — sliding table (te.1 pattern, DS tokens) + rankings
   ============================================================ */

/* Inline (Overview tab) default comparison section */
#modal-ticket section[data-role='otherTickets'].cmp-inline {
   background: #f6f8fb;
   border-top: 1px solid var(--outline-color);
   border-bottom: 1px solid var(--outline-color);
   padding-block: 14px;
   margin-bottom: 1.4em;
}
#modal-ticket .cmp-inline-head {
   display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 0.6em;
}
#modal-ticket .cmp-inline-title { margin-bottom: 0; }
#modal-ticket .cmp-inline-foot { margin-top: 10px; text-align: center; }
#modal-ticket .cmp-seeall { color: #0067ce; font-weight: 600; cursor: pointer; font: inherit; font-size: 0.9em; white-space: nowrap; }
#modal-ticket .cmp-seeall:hover { text-decoration: underline; }

/* Sliding table: pinned base column + horizontally scrolling comparison columns */
#modal-ticket .cmp-table {
   position: relative;
   /* THE fix for the Compare TAB. Its host [data-role='compare-cards'] is a GRID
      (2 columns >=720px) left over from the legacy compare-card layout, which is still
      used by the older renderCompare path — so the grid stays and the TABLE spans it.
        grid-column: 1/-1  -> full width instead of one half-width track.
        min-width: 0       -> a grid item defaults to min-width:auto, so the track grew to
                              fit the scroller's content instead of letting it scroll.
                              That is why the table OVERFLOWED the modal rather than
                              scrolling: the last column sat off-screen and unreachable
                              and the one before it clipped at the edge.
      Harmless in the inline (block) host, where there is no grid to span. */
   grid-column: 1 / -1;
   min-width: 0;
}
#modal-ticket .cmp-scroll {
   display: flex;
   overflow-x: auto;
   -webkit-overflow-scrolling: touch;
   scrollbar-width: thin;
   padding-bottom: 6px;
   /* Trailing space so the last column clears the right edge instead of being clipped.
      Current Chrome/Safari honour a scroll container's inline-end padding in the scroll
      range, so this is enough on the browsers te.3 targets. */
   padding-right: clamp(16px, 3vw, 24px);
}

#modal-ticket .cmp-col {
   /* 38% of the scroller, capped at 180px. flex-basis 38% + max-width does the capping —
      a flex item honours max-width against its basis. */
   flex: 0 0 48%; max-width: 180px;
   display: flex; flex-direction: column;
   background: #fff;
   border: 1px solid var(--outline-color);
   border-left-width: 0;
}
#modal-ticket .cmp-col.is-base {
   position: sticky; left: 0; z-index: 3;
   border-left-width: 1px;
   box-shadow: 3px 0 8px rgba(0,0,0,0.06);
}
/* A click anywhere in a comparison column opens that ticket. */
#modal-ticket .cmp-col[data-alt-id] { cursor: pointer; }
#modal-ticket .cmp-col.is-base .cmp-head { background: var(--color-primary); border-bottom-color: var(--color-primary); }
#modal-ticket .cmp-yours { display: block; width: 100%; font-size: 0.74em; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .04em; text-align: center; }

#modal-ticket .cmp-head { min-height: 30px; display: flex; align-items: center; justify-content: center; padding: 4px 6px; border-bottom: 1px solid var(--outline-color); }
#modal-ticket .cmp-tag {
   display: inline-block; padding: 2px 8px; border-radius: 999px;
   font-size: 0.68em; font-weight: 600; line-height: 1.3; text-align: center;
   background: #eef2f7; color: var(--color-60);
}
#modal-ticket .cmp-tag.is-better-deal, #modal-ticket .cmp-tag.is-budget { background: #e3f5ec; color: #0d8a4e; }
#modal-ticket .cmp-tag.is-better-seats { background: #e6f0fb; color: #0067ce; }
#modal-ticket .cmp-tag.is-upgrade { background: #efe8fb; color: #6b3fd1; }
#modal-ticket .cmp-tag.is-marquee { background: #fde9ef; color: var(--marqueeColor, #d6336c); }

/* Media sits on the section's own bg with an 8px gutter, from this box's own padding.
   `position: relative` MUST stay — .cmp-mtabs (the Photo/Map pills) is absolutely
   positioned against it. */
#modal-ticket .cmp-media { position: relative; width: 100%; height: 160px; padding: 8px; background: #f6f8fb; overflow: hidden; }
/* The compare media is a FIXED 160px box, so the global `.cmodal img { max-height: 50vw }`
   cap must not apply here — on a narrow phone 50vw is well under 160px, which letterboxed
   the image inside its own frame. */
#modal-ticket .cmp-media img { max-height: none; }
/* Normal flow, NOT absolute. The images used to be `position:absolute; inset:8px` so the
   seat-view and the map could stack in one box — but they're toggled with display
   none/block, so only one is ever in flow and the stacking was never needed. It also
   overflowed: `height:100%` resolved against the padding box (the full 160px) while
   `inset` pinned the image 8px down, making it 168px tall in a 160px box. In flow,
   width/height 100% simply fills the padded content box and the gutter comes from the
   padding — nothing to fight. */
#modal-ticket .cmp-img { width: 100%; height: 100%; border-radius: 6px; object-fit: cover; display: none; cursor: pointer; }
#modal-ticket .cmp-img.is-active { display: block; }
#modal-ticket .cmp-mtabs { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(8,18,40,0.6); z-index: 2; }
#modal-ticket .cmp-mtab { appearance: none; border: 0; background: transparent; color: #fff; font: inherit; font-size: 0.64em; font-weight: 600; padding: 2px 8px; border-radius: 999px; cursor: pointer; }
#modal-ticket .cmp-mtab.is-active { background: #fff; color: var(--color-primary); }

/* Title block — shares the media's bg. "These Seats" (bold) over the sec/row. On a
   COMPARISON column the whole block is brand-coloured to read as a link. */
#modal-ticket .cmp-title { padding: 8px; padding-top: 0; background: #f6f8fb; }
#modal-ticket .cmp-title-main { font-weight: 700; font-size: 0.9em; color: var(--color-primary); line-height: 1.25; }
#modal-ticket .cmp-title.is-link .cmp-title-main,
#modal-ticket .cmp-title.is-link .cmp-loc { color: #0067ce; }
/* ONE line, ellipsed. The sec/row string is variable length ("Sec 428, Row 8" vs
   "Sec 130, Row WC12"), and a column that wrapped to two lines pushed its price/deal/seat
   rows down out of step with its neighbours — the rows only read as a comparison when
   they line up across columns. min-width:0 lets it actually shrink inside the flex column. */
#modal-ticket .cmp-loc {
   padding: 0; font-weight: 400; font-size: 0.82em; color: var(--color-70); line-height: 1.2;
   min-width: 0;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

/* Price / deal / seatscore — each divided so the columns read across easily. */
#modal-ticket .cmp-price { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 8px; border-top: 1px solid var(--outline-color); }
#modal-ticket .cmp-price-main { font-size: 1.05em; font-weight: 700; color: var(--color-primary); }
#modal-ticket .cmp-price-main span { font-size: 0.62em; font-weight: 400; color: var(--color-60); margin-left: 1px; }
#modal-ticket .cmp-qty { display: inline-flex; align-items: center; gap: 3px; font-size: 0.76em; color: var(--color-60); white-space: nowrap; }
/* Marquee flag inside a compare column — icon + brief, then the description. */
#modal-ticket .cmp-marquee { padding: 6px 8px 0; }
#modal-ticket .cmp-marquee-hd { display: flex; align-items: center; gap: 4px; font-size: 0.82em; line-height: 1.2; }
#modal-ticket .cmp-marquee-hd [data-is='icon'] { width: 1.1em; height: 1.1em; flex: 0 0 auto; background: #fa0b81; }
#modal-ticket .cmp-marquee-desc { margin-top: 2px; font-size: 0.74em; line-height: 1.3; color: var(--color-70, #556); }
#modal-ticket .cmp-stat { min-height: 24px; padding: 8px; border-top: 1px solid var(--outline-color); font-size: 0.78em; color: var(--color-primary); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
#modal-ticket .cmp-stat.cmp-muted { color: var(--color-50); }
#modal-ticket .cmp-stat-sub { color: var(--color-60); font-weight: 500; }
#modal-ticket .cmp-star { color: #FF6600; }
/* Deal badge — matches the list pattern (.tl-deal): colored pill + white number in a colored chip. */
#modal-ticket .cmp-deal {
   display: inline-flex; align-items: center; gap: 5px;
   padding: 2px 8px 2px 2px; border-radius: 6px;
   background: var(--deal-bg, #F0FDF0); color: var(--deal-accent, #008000);
   font-size: 0.78em; font-weight: 600; white-space: nowrap;
}
#modal-ticket .cmp-deal-num {
   display: inline-flex; align-items: center; justify-content: center;
   min-width: 18px; padding: 1px 5px; border-radius: 5px;
   background: var(--deal-accent, #008000); color: #fff; font-weight: 700; font-size: 0.95em;
}
/* ============================================================
   DEAL BADGE TIERS — SINGLE SOURCE OF TRUTH
   ------------------------------------------------------------
   These eight rules are the ONLY place deal-tier colours are defined. Every deal
   badge consumes them through --deal-accent / --deal-bg:
     .cmp-deal  compare table   (ticketsManager.js _compareColHTML)
     .tl-deal   te.3 ticket list (themes/te.3/lib/styles/src/tickets.css)
   tickets.css used to carry a second, identical copy; the two drifted the moment
   one was re-tuned, so the list and the compare table showed the same tier in
   different colours. If another badge is added, add its selector HERE — do not
   copy the palette again.

   This file is the right home because it is the shared one: te.3, best-seats and
   seating-areas all load it, while tickets.css is te.3-only.

   Bands mirror TicketHelpers.getDealRatingLabel() (ticketsManager.js:2061-2082):
   >=95 / >=90 / >=80 / >=70 / >=50 / >=35 / >=20 / else.
   Colour-picked in _lab/KH/deal-badge-tuner/ and signed off 2026-07-20.

   Literal hex on purpose — no color-mix() derivation. It used to compute the greens
   and derive the warm backgrounds from their own accent, which meant changing an
   accent silently moved its background, AND color-mix() is Safari 16.2+ while te.3
   supports iOS 15.8 (see the defs.css fallback note) — on those devices three tiers
   collapsed to the same green. Re-tune with the lab page, don't hand-edit. */
.tl-deal[data-tier='amazing'],
#modal-ticket .cmp-deal[data-tier='amazing']       { --deal-accent: #008000; --deal-bg: #F0FDF0; }
.tl-deal[data-tier='excellent'],
#modal-ticket .cmp-deal[data-tier='excellent']     { --deal-accent: #128912; --deal-bg: #F0FDF0; }
.tl-deal[data-tier='great'],
#modal-ticket .cmp-deal[data-tier='great']         { --deal-accent: #269326; --deal-bg: #F0FDF0; }
.tl-deal[data-tier='very-good'],
#modal-ticket .cmp-deal[data-tier='very-good']     { --deal-accent: #40A040; --deal-bg: #F0FDF0; }
.tl-deal[data-tier='good'],
#modal-ticket .cmp-deal[data-tier='good']          { --deal-accent: #80A716; --deal-bg: #EDF3E7; }
.tl-deal[data-tier='fair'],
#modal-ticket .cmp-deal[data-tier='fair']          { --deal-accent: #A5A800; --deal-bg: #F3F1DD; }
.tl-deal[data-tier='below-average'],
#modal-ticket .cmp-deal[data-tier='below-average'] { --deal-accent: #B38300; --deal-bg: #F5EFDB; }
.tl-deal[data-tier='poor'],
#modal-ticket .cmp-deal[data-tier='poor']          { --deal-accent: #B05F1C; --deal-bg: #F7EFE8; }

/* expandable diffs — hidden until the table is expanded */
#modal-ticket .cmp-diffs { display: none; padding: 6px 8px; border-top: 1px dashed var(--outline-color); margin-top: 4px; }
#modal-ticket .cmp-table.is-expanded .cmp-diffs { display: block; }
#modal-ticket .cmp-diffs-title { font-size: 0.72em; letter-spacing: .01em; color: var(--color-50); margin-bottom: 3px; }
#modal-ticket .cmp-diff { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.76em; gap: 6px; }
#modal-ticket .cmp-diff-k { color: var(--color-60); }
#modal-ticket .cmp-feat { margin-top: 5px; display: flex; flex-direction: column; gap: 2px; }
#modal-ticket .cmp-feat span { font-size: 0.72em; line-height: 1.25; }
#modal-ticket .cmp-feat-add span { color: #0d8a4e; }
#modal-ticket .cmp-feat-drop span { color: var(--color-60); }
#modal-ticket .cmp-feat-con span { color: #b8791f; }

/* Full-width View (no checkout button here). */
#modal-ticket .cmp-actions { margin-top: auto; display: flex; padding: 8px; }
#modal-ticket .cmp-view { flex: 1 0 0; width: 100%; appearance: none; border: 1px solid var(--outline-color); background: #f7fafd; border-radius: 6px; padding: 8px 4px; font: inherit; font-size: 0.76em; font-weight: 600; color: var(--color-primary); cursor: pointer; }
#modal-ticket .cmp-view:hover { background: #eef2f7; }

/* "Detailed comparison" toggle switch (off by default) */
#modal-ticket .cmp-expand { display: inline-flex; align-items: center; gap: 8px; appearance: none; border: 0; background: transparent; color: var(--color-70); font: inherit; font-size: 0.82em; font-weight: 600; cursor: pointer; white-space: nowrap; }
#modal-ticket .cmp-switch { position: relative; width: 34px; height: 18px; border-radius: 999px; background: var(--color-20, #d5d9e0); transition: background .15s; flex: 0 0 auto; }
#modal-ticket .cmp-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
#modal-ticket .cmp-expand[aria-pressed='true'] .cmp-switch { background: #0067ce; }
#modal-ticket .cmp-expand[aria-pressed='true'] .cmp-switch::after { transform: translateX(16px); }

/* Rankings — where the ticket sits within its groups in the current filter */
#modal-ticket .cmp-rankings { margin-top: 1.4em; }
#modal-ticket .cmp-rankings-title { font-weight: 600; color: var(--color-primary); margin-bottom: 0.7em; }
#modal-ticket .cmp-rankings-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 600px) { #modal-ticket .cmp-rankings-grid { grid-template-columns: 1fr 1fr; } }
#modal-ticket .cmp-rank-card { border: 1px solid var(--outline-color); border-radius: 10px; padding: 10px 12px; background: #fff; }
#modal-ticket .cmp-rank-head { font-weight: 600; font-size: 0.9em; color: var(--color-primary); margin-bottom: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
#modal-ticket .cmp-rank-count { font-size: 0.78em; font-weight: 500; color: var(--color-50); white-space: nowrap; }
#modal-ticket .cmp-rank-row { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 8px; padding: 2px 0; }
#modal-ticket .cmp-rank-metric { font-size: 0.76em; color: var(--color-60); }
#modal-ticket .cmp-rank-bar { height: 8px; border-radius: 4px; background: #eef2f7; overflow: hidden; }
#modal-ticket .cmp-rank-fill { display: block; height: 100%; border-radius: 4px; background: var(--color-60); }
#modal-ticket .cmp-rank-fill.is-great { background: #0d8a4e; }
#modal-ticket .cmp-rank-fill.is-good { background: #1f9d57; }
#modal-ticket .cmp-rank-fill.is-soft-bad { background: #b8791f; }
#modal-ticket .cmp-rank-fill.is-bad { background: #c0392b; }
#modal-ticket .cmp-rank-num { font-size: 0.78em; font-weight: 700; color: var(--color-primary); white-space: nowrap; }
#modal-ticket .cmp-rank-num em { font-style: normal; font-weight: 400; color: var(--color-50); margin-left: 3px; }
