/*
   Default styles where all sections are stacked in a list
*/


#ti-map-container{
   background: #F5F5F5;
}



[data-type='seatingchart'] #wrapper-content[data-count='1'] h1{
   display: none;
}

[data-type='seatingchart'] #wrapper-content[data-count='1'] .breadcrumbs{
   margin-bottom: unset;
}

[data-type='seatingchart'] #wrapper-content[data-count='1'] section.title-page{
   border-bottom: 0;
}


#container-quick-event-select[data-count='1']{
   display: none;
}




.selected-event-bar-event-btn:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: currentColor;
  mask: 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='M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59a.996.996 0 0 0 0 1.41l6.59 6.59a.996.996 0 1 0 1.41-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1'/%3E%3C/svg%3E");
  -webkit-mask: 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='M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59a.996.996 0 0 0 0 1.41l6.59 6.59a.996.996 0 1 0 1.41-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1'/%3E%3C/svg%3E");
  cursor: pointer;
  z-index: 2;
  /* Optional style for hover effect */
  opacity: 0.7;
  transition: opacity 0.15s;
}
.selected-event-bar-event-btn:hover:after {
  opacity: 1;
}




.selected-event-bar-event-btn:hover,
.selected-event-bar-event-btn:focus {
  border: 1.8px solid #0067ce;
}
.seb-event-name {
   font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.18;
}
.seb-event-date {
  color: #757575;
  font-size: 1em;
  margin-top: 0.34em;
  letter-spacing: 0.03em;
}


.seb-event-name, .seb-event-date{
   text-overflow: ellipsis;
   white-space: nowrap;
   overflow: hidden;
   width: 100%;   
}





/* Selectors */
.seb-select-wrap {
  display: flex;
  align-items: center;
}

.seb-select {
  border-radius: 12px;
  font-size: 1.07em;
  border: 1.5px solid #e7e9ee;
  background: #fff;
  color: #333;
  cursor: pointer;
  margin-right: 0;
  transition: border 0.15s;
  outline: none;
  max-width: 120px;
}
.seb-select:focus,
.seb-select:hover {
  border-color: #0067ce;
}

.selected-event-bar-shop-btn {
  background: #fff;
  border: 1px solid #E5E5E5 !important;
  color: #0067ce;
  font-weight: 500;
  text-decoration: none;
  padding: 9px 24px;
  transition: background 0.14s, color 0.13s, border 0.13s;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(0,110,205,0.03);
  outline: none;
  color: black !important;
  font-weight: normal;
}


.selected-event-bar-shop-btn, .seb-select{
  height: 36px;
  line-height: 36px;
  padding: 0 12px;
  border: 1px solid #E5E5E5 im !important;
  border-radius: 12px;
}




/* * This is the default, mobile-first CSS.
 * Key change: #selected-event-bar is now a horizontal container with scrolling.
 */

/* --- Main Container: Horizontal and Scrollable --- */
#selected-event-bar {
   /* OVERRIDE: Change to horizontal layout (row) */
   display: flex;
   flex-direction: row; 
   
   /* ADDED: Enable horizontal scrolling and prevent wrapping */
   overflow-x: auto; 
   white-space: nowrap;
   
   /* Ensure content is centered vertically within the available space */
   align-items: center; 
   
   /* Preserve original styles */
   gap: 6px;
   position: absolute;
   top: 0;
   width: 100%;
   padding: 8px;
   padding-top: 4px;
   margin: 0;
   box-sizing: border-box;
   border-radius: 0;
   /* Hide scrollbar on certain browsers for a cleaner look */
   -ms-overflow-style: none;  /* IE and Edge */
   scrollbar-width: none;  /* Firefox */



   /* OVERRIDE: Reset to vertical stacking */
   flex-direction: column; 
   
   /* OVERRIDE: Remove scrolling */
   overflow-x: visible; 

   /* Align max-width content in the center */
   align-items: center; 


}
#selected-event-bar::-webkit-scrollbar {
   display: none; /* Chrome, Safari and Opera */
}


/* --- Event Button --- */
.selected-event-bar-event-btn {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   border: 1.7px solid #e7e9ee;
   background: #fff;
   padding: 8px 12px;
   border-radius: 12px;
   cursor: pointer;
   text-align: left;
   position: relative;
   transition: border 0.15s;
   font-weight: normal;
   height: 56px;
   /* CHANGE: Ensures the button stays full size and doesn't shrink when scrolling */
   flex-shrink: 0; 
   width: 100%;
   padding-left: 44px;
   box-sizing: border-box;
}



/* --- Select Wraps (No Change) --- */
.seb-select-wrap {
   display: flex;
   align-items: center;
}

/* --- Shop Button (No Change) --- */
.selected-event-bar-shop-btn {
   background: #fff;
   border: 1px solid #E5E5E5 !important;
   color: #0067ce;
   font-weight: 500;
   text-decoration: none;
   height: 36px;
   line-height: 36px;
   transition: background 0.14s, color 0.13s, border 0.13s;
   cursor: pointer;
   box-shadow: 0 2px 7px rgba(0, 110, 205, 0.03);
   outline: none;
   color: black !important;
   font-weight: normal;
}



.selected-event-bar-controls-line {
   display: flex;
   align-items: center;
   gap: 8px;
   margin-top: 0;
   /* --- Changes start here --- */
   flex-shrink: 0; /* Keeps the items from shrinking */
   overflow-x: auto; /* Adds horizontal scroll when content overflows */
   width: 100%; /* Allows it to take the full width of its parent */
   /* Removed: min-width: max-content; */
   /* Removed: width: auto; */
   /* --- Changes end here --- */


   margin: 0 -8px;
   padding: 2px 8px;


}

/* The rest of the CSS remains the same: */
.selected-event-bar-shop-btn, .seb-select {
   height: 36px;
   line-height: 36px;
   padding: 0 8px;
   border: 1px solid #E5E5E5 im !important;
   border-radius: 8px;
}




select[name='quantity']{
   min-width: 120px;
}


/* --- Legend Container Styles --- */
.map-legend {
   /* Fixed position properties are set inline by JS */
   background: white;
   border: 1px solid #E5E5E5;
   padding: 0; 
   border-radius: 6px;

   width: auto;
   overflow: hidden; 

   bottom: 8px;
   right: 8px;
   position: absolute;
   z-index: 40;

}

/* --- Legend Header (Close Button Only) --- */
.map-legend-header {
   position: absolute; 
   right: 0px;
   top: 0px;
   padding: 0;
   cursor: default;
}

.map-legend-header .close-button {
   border: none;
   border-radius: 50%;
   width: 16px;
   height: 16px;
   font-size: 8px;
   line-height: 16px;
   padding: 0;
   color: #555;
   cursor: pointer;
   z-index: 10;
   transition: background-color 0.2s;
}

.map-legend-header .close-button:hover {
   background-color: #e0e0e0;
}

/* --- Legend Body (Horizontal Content) --- */
.map-legend-body {
   display: flex; 
   flex-wrap: wrap; 
   padding: 6px 10px;
   align-items: center;
}

/* --- Legend Item Styles --- */
.map-legend-item {
   display: flex;
   align-items: center;
   margin-right: 15px; 
   margin-bottom: 0; 
   font-size: 11px; 
   white-space: nowrap; 
   cursor: default;
}


.legend-color-box {
   width: 10px;
   height: 10px;
   /* Default styling for grey (Other Tickets) */
   border-radius: 50%; /* Square/slightly rounded corners */
   margin-right: 5px;
   /* Circular/no border styles for blue/green are now set inline via JS */
}

/* Color definition for the GREY "Other Tickets" (Class kept) */
.color-grey { 
   background-color: white; 
   border: 2px solid #666;
   box-sizing: border-box;
}






/* Locked Map Styles */


#section-interactive-map[data-build='new'][data-locked='true'] g.ticket-marker use{

}

#section-interactive-map[data-build='new'][data-locked='true'] g.ticket-marker text[data-role='label']{

}


#section-interactive-map[data-build='new'][data-locked='true'] g.ticket-marker circle{
   display: none;

}

#section-interactive-map[data-build='new'][data-locked='true'] polygon.is-sec{

}

#section-interactive-map[data-build='new'][data-locked='true'] text.is-sec {

}

#section-interactive-map[data-build='new'][data-locked='true'] svg[data-mode='tickets'] polygon[data-role='section'] {

}





polygon[data-role='section']{
   fill: #7bbdff;
}


text[data-role='section']{
   fill: white;
   font-size: 2em;
   stroke: #7bbdff;
   paint-order: stroke;
   stroke-width: 0.2em;
}

polygon[data-role='section'][data-on='0']{
   fill: white;
   stroke: #e5e5e5;
   stroke-width: .03em;
}


text[data-role='section'][data-on='0']{
   fill: #CCC;
   stroke-width: 0;
}

text[data-role='section'][data-on='1']{
   
}


g.ticket-marker[data-match='1'] use{

}

g.ticket-marker[data-match='1'] text[data-role='label']{

}


g.ticket-marker[data-match='0'] use{
   stroke: #999;
   stroke-width: 0.1em;
   fill: white;
}

g.ticket-marker[data-match='0'] text[data-role='label']{
   fill: #888;
}