/** Shopify CDN: Minification failed

Line 38:10 Unexpected "{"
Line 38:19 Expected ":"
Line 39:14 Expected identifier but found whitespace
Line 39:16 Unexpected "{"
Line 39:25 Expected ":"
Line 39:76 Expected ":"
Line 40:17 Expected identifier but found whitespace
Line 40:19 Unexpected "{"
Line 40:28 Expected ":"
Line 40:82 Expected ":"

**/
/* Base styles – allow scrolling but hide scrollbars on html/body */
html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  height: var(--original-height, 100vh);
  overflow: auto;
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none; /* Firefox */
}
html::-webkit-scrollbar {
  display: none;
}

:root {
  --vh: 1vh;
  --original-height: 100vh;
  /* In portrait, Castr's height is computed via 16:9.
     In landscape, video takes full screen by default. */
  --castr-height: calc(100vw * 9 / 16);
  --viewport-height: 100vh;
}

.section-{{ section.id }}-padding {
  padding-top: {{ section.settings.padding_top | times: 0.75 | round: 0 }}px;
  padding-bottom: {{ section.settings.padding_bottom | times: 0.75 | round: 0 }}px;
}

.footer,
.header,
.miniaccountmenu,
#shopify-chat,
.miniauctionmenu,
.liveauctionmenu,
.shopify-section-sections--23025360994593__announcement-bar,
#shopify-section-sections--23025360994593__announcement-bar {
  display: none!important;
}

/* Main container */
.layout-container {
  display: flex;
  width: 100vw;
  height: var(--original-height, 100vh);
  position: relative;
}

.castr-interface,
.chat-interface {
  position: relative;
  overflow: hidden;
}

.chat-interface {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: auto;
  -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
}

.chat-interface #widget-element {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Support for new chat-widget snippet structure */
.chat-interface .chat-widget-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.chat-interface .chat-iframe {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.chat-iframe {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: none;
}

/* Hide scrollbars for chat container */
.chat-interface, .chat-interface::-webkit-scrollbar,
.chat-iframe, .chat-iframe::-webkit-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.chat-interface::-webkit-scrollbar,
.chat-iframe::-webkit-scrollbar {
  display: none;
}

/* Desktop Layout (≥900px) */
@media (min-width: 900px) {
  .layout-container { flex-direction: row; height: 100vh; }
  .chat-interface {
    width: min(33vw, 750px);
    flex: 0 0 auto;
    height: 100vh;
  }
  .castr-interface {
    width: calc(100vw - min(33vw, 750px));
    flex: 0 0 auto;
    height: 100vh;
    display: flex;
    align-items: flex-start;
  }
}

/* Desktop Narrow Layout (<900px, non-mobile) - stacked layout without fixed positioning */
@media (max-width: 899px) {
  /* Default narrow layout for desktop browsers */
  html:not(.mobile-device) .layout-container { 
    flex-direction: column; 
    height: 100vh;
  }
  html:not(.mobile-device) .castr-interface { 
    width: 100vw; 
    height: calc(100vw * 9 / 16);
    min-height: 200px;
    max-height: 50vh;
    flex-shrink: 0;
    position: relative;
  }
  html:not(.mobile-device) .chat-interface {
    width: 100vw;
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
}

/* Mobile Portrait Layout */
@media (max-width: 899px) and (orientation: portrait) {
  .mobile-device .layout-container { 
    flex-direction: column; 
    height: 100%;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow: hidden;
  }
  .mobile-device .castr-interface { 
    width: 100vw; 
    height: calc(100vw * 9 / 16);
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
  }
  .mobile-device .chat-interface {
    width: 100vw;
    position: fixed;
    top: calc(100vw * 9 / 16);
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 5;
  }
  
  /* When keyboard opens, video stays fixed at top */
  html.keyboard-open .castr-interface {
    position: fixed !important;
    top: 0 !important;
    height: calc(100vw * 9 / 16) !important;
  }
  
  html.keyboard-open .chat-interface {
    top: calc(100vw * 9 / 16);
    /* Bottom adjusts automatically with visualViewport */
  }
}

/* Mobile Layout for screens under 900px (regardless of orientation) - only for mobile devices */
@media (max-width: 899px) {
  .mobile-device .layout-container { 
    flex-direction: column; 
    height: 100%; /* Use 100% instead of 100vh to avoid mobile address bar issues */
  }
  .mobile-device .castr-interface { 
    width: 100vw; 
    height: calc(100vw * 9 / 16); 
    position: relative;
    z-index: 2;
  }
  .mobile-device .chat-interface {
    width: 100vw;
    height: 100%; /* Use 100% instead of 100vh */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    overflow: hidden;
    display: block;
  }
}

/* Mobile Portrait Override */
.mobile-device.portrait-mode .layout-container { flex-direction: column; width: 100%; height: 100%; }
.mobile-device.portrait-mode .castr-interface {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(100vw * 9 / 16);
  z-index: 2;
  transform: translateZ(0);
  /* Prevent keyboard from affecting video position */
  will-change: transform;
}
.mobile-device.portrait-mode .chat-interface {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: calc(100vw * 9 / 16); /* Position below video instead of using height */
  width: 100vw;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Keyboard-aware layout - keeps video in place when keyboard opens */
@supports (height: 100dvh) {
  .mobile-device.portrait-mode .chat-interface {
    /* Use dvh only for initial height, not when keyboard is open */
  }
}

/* When keyboard is open, prevent video from moving */
.mobile-device.portrait-mode.keyboard-open .castr-interface {
  position: fixed !important;
  top: 0 !important;
  transform: none !important;
}

.mobile-device.portrait-mode.keyboard-open .chat-interface {
  /* Let chat shrink to accommodate keyboard, video stays put */
  bottom: 0;
}

/* Mobile Landscape Layout – Option 1: Full viewport without cropping. */
@media (max-width: 899px) and (orientation: landscape) {
  .mobile-device:not(.portrait-mode) .layout-container {
    flex-direction: column; 
    width: 100vw; 
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }
  .mobile-device:not(.portrait-mode) .castr-interface {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    z-index: 2;
  }
  .mobile-device:not(.portrait-mode) .castr-interface iframe {
    aspect-ratio: auto !important;
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
  }
  .mobile-device:not(.portrait-mode) #whep-player-container {
    aspect-ratio: auto !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
  }
  .mobile-device:not(.portrait-mode) #whep-player-container video {
    aspect-ratio: auto !important;
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
  }
  .mobile-device:not(.portrait-mode) .chat-interface {
    display: none;
  }
  .mobile-device:not(.portrait-mode) .chat-toggle {
    display: none; /* Hide chat toggle in landscape mode */
  }
  
  /* Product title orientation-based hiding removed for consistency across all devices */
}

.exit-link {
  position: absolute;
  top: 20px; left: 15px;
  opacity: 0.6; z-index: 9999;
}

/* Product list icon positioned to the right of exit button */
.product-list-icon {
  position: absolute;
  top: 20px; 
  left: calc(15px + 10vw + 10px); /* Position after exit button (15px + 10vw width + 10px gap) */
  z-index: 9999; /* Same high z-index as exit-link */
  background: none;
  border: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  opacity: 0.6; /* Same transparency as exit-link */
}

.product-list-icon img {
  display: block;
  width: 10vw; /* Same size as exit button */
  height: auto;
  max-width: 60px; /* Same max-width as exit button */
}

.product-list-icon:hover {
  opacity: 1;
}

.castr-interface iframe {
  width: 100% !important; height: 100% !important;
  border: none !important;
  position: relative !important; z-index: 1 !important;
}

/* WHEP Player container retains sizing */
#whep-player-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Force container behavior like iframe */
  position: relative;
  z-index: 1;
  background: var(--mhv-bg-body);
}


/* Product Slideshow Styles (matching hub-banner-v3.liquid) */
.photo-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--mhv-bg-body);
}

.photo-slideshow .slide {
  position: absolute;
  inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  object-fit: contain;   /* Show the entire image without cropping */
  object-position: center; /* Center the image within the container */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Remove transition for initial slide display to prevent fade-in */
.photo-slideshow .slide:first-child.active {
  transition: none;
}

.photo-slideshow .slide.active {
  opacity: 1;
}

/* Chat toggle removed - no longer needed */



/* Play button overlay */
.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(25vh, 150px);
  height: min(25vh, 150px);
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  transition: opacity 0.3s ease;
  pointer-events: auto;
  max-width: 150px;
  max-height: 150px;
}





.play-button-overlay:hover {
  background: rgba(0, 0, 0, 0.8);
}

.play-button-overlay img {
  width: 90%;
  height: 90%;
  filter: brightness(0) invert(1);
}

.play-button-overlay.hidden {
  display: none;
}

/* General hidden class for countdown and overlay functionality */
.hidden {
  display: none !important;
}












  
  /* Ensure video is above overlays */
  #whep-player-container video { z-index: 1 !important; }
  .disconnection-overlay, .no-stream-overlay { z-index: 0; }





/* Mute/Unmute button positioned in lower right corner */
.mute-toggle-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 9999; /* Same high z-index as exit-link */
  background: none;
  border: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  opacity: 0.6; /* Same transparency as exit-link */
}

.mute-toggle-btn img {
  display: block;
  width: 5vw; /* Half the size of exit icon */
  height: auto;
  max-width: 30px; /* Half the size of exit icon */
}

.mute-toggle-btn:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Play/Pause button positioned to the left of mute button */
.play-pause-btn {
  position: absolute;
  bottom: 20px;
  right: 70px; /* Position to the left of mute button */
  z-index: 9999; /* Same high z-index as other buttons */
  background: none;
  border: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  opacity: 0.6; /* Same transparency as other buttons */
}

.play-pause-btn img {
  display: block;
  width: 5vw; /* Same size as mute button */
  height: auto;
  max-width: 30px; /* Same size as mute button */
}

.play-pause-btn:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Fullscreen button — same style/position as play/mute buttons */
.live-fullscreen-btn {
  position: absolute;
  bottom: 20px;
  left: 20px; /* Bottom-left corner */
  z-index: 9999;
  background: none;
  border: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  opacity: 0.6;
  width: 5vw;
  height: auto;
  max-width: 30px;
  color: #ffffff;
}

.live-fullscreen-btn svg {
  display: block;
  width: 100%;
  height: auto;
}

.live-fullscreen-btn:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Fullscreen adjustments */
.castr-interface:fullscreen {
  width: 100% !important;
  height: 100% !important;
}

.castr-interface:-webkit-full-screen {
  width: 100% !important;
  height: 100% !important;
}

/* Mobile viewport fix - prevent scrolling caused by 100vh */
@media (max-width: 899px) {
  html, body {
    height: 100%;
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

/* Responsive adjustments for mobile */
@media (max-width: 900px) {
  /* Mobile responsive sizing for mute button */
  .mute-toggle-btn {
    bottom: 15px;
    right: 15px;
  }

  .mute-toggle-btn img {
    width: 5vw;
    max-width: 25px;
  }

  /* Mobile responsive sizing for play/pause button */
  .play-pause-btn {
    bottom: 15px;
    right: 45px;
  }

  .play-pause-btn img {
    width: 5vw;
    max-width: 25px;
  }

  /* Mobile responsive sizing for fullscreen button */
  .live-fullscreen-btn {
    bottom: 15px;
    left: 15px;
    max-width: 25px;
  }
}

.video-controls:hover {
  opacity: 1;
}

/* Backdrop overlay for chat (in landscape) */
.chat-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: 999;
}

/* Chat overlay for countdown (logged in) or login (not logged in) */
.chat-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,1);
  z-index: 2000;
}

.chat-overlay-content {
  position: absolute;
  bottom: 20%;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--mhv-text-primary);
}

/* Desktop positioning - countdown at half screen height */
@media (min-width: 900px) {
  .chat-overlay-content {
    bottom: 50%;
    transform: translateY(50%);
  }
}

/* Mobile positioning - 35% from top with tighter spacing */
@media (max-width: 899px) {
  .chat-overlay-content {
    position: fixed;
    top: 35%;
    left: 20px;
    right: 20px;
    bottom: auto;
    transform: none;
  }
  
  /* Make page content wider on mobile with reduced spacing */
  .countdown-page-content,
  .auction-night-content {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 8px !important;
  }
}

/* Page content styling for tighter spacing and smaller text */
.countdown-page-content,
.auction-night-content {
  font-size: 14px;
  line-height: 1.3;
}

/* Typography adjustments for page content */
.countdown-page-content p,
.auction-night-content p {
  margin: 8px 0;
  line-height: 1.3;
}

.countdown-page-content h1,
.auction-night-content h1 {
  font-size: 20px;
  margin: 10px 0 8px 0;
  line-height: 1.2;
}

.countdown-page-content h2,
.auction-night-content h2 {
  font-size: 18px;
  margin: 8px 0 6px 0;
  line-height: 1.2;
}

.countdown-page-content h3,
.auction-night-content h3 {
  font-size: 16px;
  margin: 6px 0 4px 0;
  line-height: 1.2;
}

.countdown-page-content ul,
.countdown-page-content ol,
.auction-night-content ul,
.auction-night-content ol {
  margin: 8px 0;
  padding-left: 20px;
}

.countdown-page-content li,
.auction-night-content li {
  margin: 4px 0;
  line-height: 1.3;
}

/* Login content styling */
.login-content p {
  margin-bottom: 8px;
  font-size: 1.2em;
  font-weight: bold;
}

/* Countdown content styling */
.countdown-content {
  text-align: center;
}

.countdown-content .countdown-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.countdown-content .countdown-timer {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.countdown-content .countdown-item {
  text-align: center;
}

.countdown-content .countdown-value {
  font-size: 24px;
  font-weight: bold;
  display: block;
}

.countdown-content .countdown-label {
  font-size: 14px;
  display: block;
  margin-top: 1px;
}

/* Chat countdown close button */
.chat-countdown-footer {
  text-align: center;
  margin-top: 15px;
}

.chat-countdown-close-btn {
  color: var(--mhv-text-primary);
  cursor: pointer;
  font-size: 14px;
}

.chat-countdown-close-btn:hover {
  opacity: 0.8;
}

/* Disconnection Overlay */
.disconnection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 15000;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.disconnection-content {
  text-align: center;
  color: var(--mhv-text-primary);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.reload-icon-container {
  margin-bottom: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(12.5vh, 75px);
  height: min(12.5vh, 75px);
  max-width: 75px;
  max-height: 75px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  transition: opacity 0.3s ease;
  pointer-events: auto;
  margin-left: auto;
  margin-right: auto;
}

.reload-icon-container:hover {
  opacity: 0.8;
}

.reload-icon {
  width: min(12.5vh, 75px);
  height: min(12.5vh, 75px);
  max-width: 75px;
  max-height: 75px;
  filter: brightness(0) invert(1);
  animation: breathe 2s ease-in-out infinite;
}

.disconnection-text {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
}

.disconnection-title {
  margin-bottom: 8px;
  color: var(--mhv-accent);
  font-size: 14px;
}

.reloading-text {
  margin-bottom: 3px;
  font-size: 12px;
}

.countdown-number {
  font-size: 18px;
  font-weight: bold;
  color: var(--mhv-accent);
  animation: pulse 1s ease-in-out infinite;
}

/* No Stream Overlay */
.no-stream-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 15000;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.no-stream-content {
  text-align: center;
  color: var(--mhv-text-primary);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.no-stream-text {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
}

.no-stream-title {
  margin-bottom: 8px;
  color: var(--mhv-accent);
  font-size: 14px;
}

.no-stream-subtitle {
  font-size: 12px;
  color: var(--mhv-text-primary);
}

/* Mobile responsive text sizing */
@media (max-width: 768px) {
  .disconnection-text {
    font-size: 14px;
  }
  
  .disconnection-title {
    font-size: 12px;
  }
  
  .reloading-text {
    font-size: 10px;
  }
  
  .countdown-number {
    font-size: 16px;
  }
  
  .no-stream-text {
    font-size: 14px;
  }
  
  .no-stream-title {
    font-size: 12px;
  }
  
  .no-stream-subtitle {
    font-size: 10px;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Live Overlay: the overlay container displays the graphic,
   but is set to be click‑through via pointer-events on its image */
#live-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  display: none;
  /* Center the image using flex */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;  /* Make the overlay click-through */
}
#live-overlay img {
  height: auto;
  max-width: 1025px;
  width: 85%;
  pointer-events: none;
}

/* Dismiss button – this element is separate and will be positioned dynamically
   so that it appears at the bottom right corner of the live overlay image */
/* Dismiss button – positioned at the bottom right corner of the overlay image */
#live-overlay-dismiss {
position: fixed;
width: 50px;
height: 50px;
background-color: rgba(0, 0, 0, 0.6);
color: var(--mhv-text-primary);
border-radius: 50%;
font-size: 10px;
display: none;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 3001;
pointer-events: auto;
opacity: 0; /* 50% opacity */
}


/* Enforce 16px font on chat inputs */
#chat-input, .chat-input, .chat-iframe .chat-input {
  font-size: 16px !important;
}

/* Unmute Bubble */
.unmute-bubble {
  position: absolute;
  top: 50%; left: 50%;
  width: 50%;
  max-width: 300px;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7);
  color: var(--mhv-accent);
  padding: 16px 20px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.unmute-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.unmute-bubble span.unmute-text {
  white-space: nowrap;
  margin-top: 4px;
}

@keyframes bubble-animation {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -70%) scale(1); }
}

/* Viewer tracking styles */
.viewer-tracker {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0.6;
  transition: opacity 0.2s;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
}

.viewer-tracker:hover {
  opacity: 1;
}

.viewer-count {
  color: var(--mhv-text-primary);
  font-size: 14px;
}

.viewer-icon {
  display: block;
  width: 10vw;
  height: auto;
  max-width: 20px;
  opacity: 1;
  transition: opacity 0.2s;
}

/* Product Slideshow Styles */
#product-slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--mhv-bg-body);
  z-index: 1000;
}

.product-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--mhv-bg-body);
}

.product-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Remove transition for initial slide display to prevent fade-in */
.product-slideshow .slide:first-child.active {
  transition: none;
}

.product-slideshow .slide.active {
  opacity: 1;
}

/* Slideshow Controls */
.slideshow-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.slideshow-arrow {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--mhv-accent);
  color: var(--mhv-text-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}

.slideshow-arrow:hover {
  opacity: 1;
  background: rgba(var(--mhv-accent-rgb), 0.2);
}

.slideshow-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slideshow-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.slideshow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mhv-text-hint);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slideshow-dot.active {
  background: var(--mhv-accent);
}

.slideshow-dot:hover {
  background: rgba(var(--mhv-accent-rgb), 0.7);
}

/* Placeholder */
.slideshow-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--mhv-text-primary);
  z-index: 1000;
}

.placeholder-content h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--mhv-accent);
}

.placeholder-content p {
  font-size: 16px;
  opacity: 0.8;
}

/* Slideshow placeholder for products without images */
.slideshow-placeholder .placeholder-content {
  background: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 8px;
  border: 2px solid var(--mhv-accent);
}

/* Lightbox styles */
.lightbox-absentee-info {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  -webkit-overflow-scrolling: touch;
}

.lightbox-absentee-info-content {
  background: var(--mhv-bg-body);
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--mhv-text-primary);
  position: relative;
  z-index: 100000;
  -webkit-overflow-scrolling: touch;
}

.lightbox-absentee-info-header {
  margin-bottom: 20px;
  text-align: center;
}

.lightbox-absentee-info-title {
  font-size: 24px;
  display: block;
  margin-bottom: 10px;
}

.lightbox-absentee-info-content h3 {
  color: var(--mhv-accent);
  margin: 20px 0 10px;
}

.lightbox-absentee-info-content p {
  margin: 10px 0;
  line-height: 1.5;
}

.lightbox-absentee-info-content ul {
  margin: 10px 0;
  padding-left: 0;
  list-style: none;
  text-align: center;
}

.lightbox-absentee-info-content li {
  margin: 5px 0;
}

#guest-count {
  margin-top: 15px;
  border-top: 0.5px solid var(--mhv-accent);
  padding-top: 15px;
  text-align: center;
}

.lightbox-absentee-info-footer {
  text-align: center;
  margin-top: 30px;
}

/* Flex layout variant — fixed header/footer with scrollable body */
.lightbox-flex-layout {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 85vh;
}

.lightbox-flex-layout .lightbox-absentee-info-header {
  flex-shrink: 0;
}

.lightbox-flex-layout .lightbox-scroll-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lightbox-flex-layout .lightbox-absentee-info-footer {
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 15px;
  border-top: 1px solid rgba(var(--mhv-accent-rgb), 0.2);
}

.lightbox-absentee-info-close-btn {
  color: var(--mhv-text-primary);
  cursor: pointer;
  font-size: 18px;
  text-decoration: none;
}

/* Photo Gallery Lightbox Styles */
.photo-gallery-lightbox .lightbox-photo-gallery-content {
  background: var(--mhv-bg-body);
  padding: 15px;
  border-radius: 8px;
  max-width: 1400px;
  height: 90vh;
  max-height: 90vh;
  width: 90%;
  border: 2px solid var(--mhv-accent);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 100000;
  overflow: hidden;
}

.lightbox-photo-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 5px;
}

.lightbox-photo-gallery-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--mhv-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  margin-right: 10px;
}

.lightbox-photo-gallery-counter {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.photo-gallery-main-image-container {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  max-height: calc(90vh - 200px);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
}

.photo-gallery-main-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.photo-gallery-main-image:hover {
  opacity: 0.9;
}

.photo-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(var(--mhv-accent-rgb), 0.6);
  color: var(--mhv-text-primary);
  border: none;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.photo-gallery-nav:hover {
  background: rgba(var(--mhv-accent-rgb), 0.9);
}

.photo-gallery-prev {
  left: 10px;
}

.photo-gallery-next {
  right: 10px;
}

.photo-gallery-empty {
  text-align: center;
  color: var(--mhv-text-subtle);
  padding: 40px 20px;
}

.photo-gallery-empty p {
  margin: 5px 0;
}

.photo-gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, 60px);
  justify-content: center;
  gap: 8px;
  padding: 10px 5px;
  max-height: 200px; /* Reduced from 280px for more main image space */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--mhv-accent) rgba(255, 255, 255, 0.1);
  -webkit-overflow-scrolling: touch;
}

.photo-gallery-thumbnails::-webkit-scrollbar {
  width: 6px;
}

.photo-gallery-thumbnails::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.photo-gallery-thumbnails::-webkit-scrollbar-thumb {
  background: var(--mhv-accent);
  border-radius: 3px;
}

.photo-gallery-thumbnail {
  width: 100%;
  min-width: 0;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
  box-sizing: border-box;
}

.photo-gallery-thumbnail:hover {
  opacity: 0.8;
  border-color: rgba(var(--mhv-accent-rgb), 0.5);
}

.photo-gallery-thumbnail.active {
  border-color: var(--mhv-accent);
  opacity: 1;
}

.photo-gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-photo-gallery-footer {
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(var(--mhv-accent-rgb), 0.3);
}

/* Zoom button */
.photo-gallery-zoom-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(var(--mhv-accent-rgb), 0.7);
  color: var(--mhv-text-primary);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.photo-gallery-zoom-btn:hover {
  background: rgba(var(--mhv-accent-rgb), 0.95);
  transform: scale(1.1);
}

/* Zoom overlay */
.photo-gallery-zoom-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 100001;
  justify-content: center;
  align-items: center;
  overflow: auto;
  cursor: zoom-out;
  touch-action: none; /* Disable browser handling of touch on overlay */
}

.photo-gallery-zoom-overlay.active {
  display: flex;
}

.photo-gallery-zoomed-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: grab;
  transform-origin: center center;
  transition: transform 0.15s ease-out;
  touch-action: none; /* We handle touch ourselves */
  user-select: none;
  -webkit-user-select: none;
}

.photo-gallery-zoomed-image:active {
  cursor: grabbing;
}

.photo-gallery-zoom-close {
  position: fixed;
  top: 15px;
  right: 15px;
  top: max(15px, env(safe-area-inset-top));
  right: max(15px, env(safe-area-inset-right));
  background: rgba(var(--mhv-accent-rgb), 0.85);
  color: var(--mhv-text-primary);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 100002;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s ease;
  transform: none !important;
  touch-action: manipulation; /* Prevent zoom on button */
  -webkit-tap-highlight-color: transparent;
}

.photo-gallery-zoom-close:hover {
  background: rgba(var(--mhv-accent-rgb), 0.95);
}

/* Mobile adjustments for photo gallery */
@media (max-width: 900px) {
  .photo-gallery-lightbox .lightbox-photo-gallery-content {
    max-width: 95vw;
    height: 96vh;
    height: 96dvh;
    max-height: 96vh;
    max-height: 96dvh;
    padding: 8px;
  }

  .photo-gallery-main-image-container {
    max-height: calc(96vh - 160px);
    max-height: calc(96dvh - 160px);
    min-height: 150px;
  }

  .photo-gallery-nav {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .photo-gallery-thumbnails {
    grid-template-columns: repeat(auto-fill, 50px);
    max-height: 160px; /* Reduced to ~3 rows for more image space */
  }

  .photo-gallery-thumbnail {
    height: 50px;
  }

  .lightbox-photo-gallery-title {
    font-size: 14px;
  }

  .photo-gallery-zoom-btn {
    width: 32px;
    height: 32px;
    bottom: 8px;
    right: 8px;
  }

  .photo-gallery-zoom-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Extra small screens - further optimization */
@media (max-width: 900px) and (max-height: 600px) {
  .photo-gallery-main-image-container {
    max-height: calc(95vh - 140px);
    max-height: calc(95dvh - 140px);
    min-height: 120px;
  }

  .photo-gallery-thumbnails {
    max-height: 110px; /* Only 2 rows on very small screens */
  }

  .lightbox-photo-gallery-header {
    margin-bottom: 5px;
  }

  .lightbox-photo-gallery-footer {
    margin-top: 5px;
    padding-top: 5px;
  }
}

/* Landscape mobile - side-by-side layout with thumbnails on left */
@media (max-width: 900px) and (orientation: landscape) {
  .photo-gallery-lightbox .lightbox-photo-gallery-content {
    height: 98vh;
    height: 98dvh;
    max-height: 98vh;
    max-height: 98dvh;
    padding: 8px;
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: 1fr auto;
    gap: 8px;
  }

  .lightbox-photo-gallery-header {
    display: none;
  }

  /* Container for image and thumbnails side by side */
  .photo-gallery-lightbox .lightbox-photo-gallery-content::after {
    content: none;
  }

  .photo-gallery-main-image-container {
    max-height: calc(98vh - 60px);
    max-height: calc(98dvh - 60px);
    height: 100%;
    grid-column: 2;
    grid-row: 1;
  }

  /* Thumbnails on the left side */
  .photo-gallery-thumbnails {
    max-height: none;
    height: 100%;
    padding: 5px;
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: repeat(3, 60px); /* 3 columns of thumbnails */
    gap: 6px;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 200px;
  }

  .photo-gallery-thumbnail {
    height: 60px;
    width: 60px;
  }

  .lightbox-photo-gallery-footer {
    margin: 0;
    padding: 5px 5px 0 5px;
    border-top: 1px solid rgba(var(--mhv-accent-rgb), 0.3);
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* ============================================
   Auction Terms Lightbox Styles
   ============================================ */
.auction-terms-lightbox .lightbox-auction-terms-content {
  background: var(--mhv-bg-body);
  padding: 15px;
  border-radius: 8px;
  max-width: 1400px;
  height: 90vh;
  max-height: 90vh;
  width: 90%;
  border: 2px solid var(--mhv-warning);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 100000;
  overflow: hidden;
}

.lightbox-auction-terms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 5px;
}

.lightbox-auction-terms-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--mhv-warning);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  margin-right: 10px;
}

.lightbox-auction-terms-counter {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.auction-terms-main-image-container {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  max-height: calc(90vh - 200px);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
}

.auction-terms-main-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.auction-terms-main-image:hover {
  opacity: 0.9;
}

.auction-terms-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(var(--mhv-warning-rgb), 0.6);
  color: var(--mhv-bg-body);
  border: none;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.auction-terms-nav:hover {
  background: rgba(var(--mhv-warning-rgb), 0.9);
}

.auction-terms-prev {
  left: 10px;
}

.auction-terms-next {
  right: 10px;
}

.auction-terms-loading {
  text-align: center;
  color: rgba(var(--mhv-warning-rgb), 0.8);
  padding: 40px 20px;
}

.auction-terms-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, 60px);
  justify-content: center;
  gap: 8px;
  padding: 10px 5px;
  max-height: 200px; /* Reduced from 280px for more main image space */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--mhv-warning) rgba(255, 255, 255, 0.1);
  -webkit-overflow-scrolling: touch;
}

.auction-terms-thumbnails::-webkit-scrollbar {
  width: 6px;
}

.auction-terms-thumbnails::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.auction-terms-thumbnails::-webkit-scrollbar-thumb {
  background: var(--mhv-warning);
  border-radius: 3px;
}

.auction-terms-thumbnail {
  width: 100%;
  min-width: 0;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
  box-sizing: border-box;
}

.auction-terms-thumbnail:hover {
  opacity: 0.8;
  border-color: rgba(var(--mhv-warning-rgb), 0.5);
}

.auction-terms-thumbnail.active {
  border-color: var(--mhv-warning);
  opacity: 1;
}

.auction-terms-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-auction-terms-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(var(--mhv-warning-rgb), 0.3);
  gap: 15px;
}

.auction-terms-full-link {
  color: var(--mhv-warning);
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.auction-terms-full-link:hover {
  color: var(--mhv-text-primary);
  text-decoration: underline;
}

/* Mobile adjustments for auction terms lightbox */
@media (max-width: 900px) {
  .auction-terms-lightbox .lightbox-auction-terms-content {
    max-width: 95vw;
    height: 96vh;
    height: 96dvh;
    max-height: 96vh;
    max-height: 96dvh;
    padding: 8px;
  }

  .auction-terms-main-image-container {
    max-height: calc(96vh - 160px);
    max-height: calc(96dvh - 160px);
    min-height: 150px;
  }

  .auction-terms-nav {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .auction-terms-thumbnails {
    grid-template-columns: repeat(auto-fill, 50px);
    max-height: 160px; /* Reduced to ~3 rows for more image space */
  }

  .auction-terms-thumbnail {
    height: 50px;
  }

  .lightbox-auction-terms-title {
    font-size: 14px;
  }

  .lightbox-auction-terms-footer {
    flex-direction: column;
    gap: 10px;
  }

  .auction-terms-full-link {
    font-size: 12px;
  }
}

/* Extra small screens - further optimization */
@media (max-width: 900px) and (max-height: 600px) {
  .auction-terms-main-image-container {
    max-height: calc(95vh - 140px);
    max-height: calc(95dvh - 140px);
    min-height: 120px;
  }

  .auction-terms-thumbnails {
    max-height: 110px; /* Only 2 rows on very small screens */
  }

  .lightbox-auction-terms-header {
    margin-bottom: 5px;
  }

  .lightbox-auction-terms-footer {
    margin-top: 5px;
    padding-top: 5px;
    gap: 5px;
  }
}

/* Landscape mobile - side-by-side layout with thumbnails on left */
@media (max-width: 900px) and (orientation: landscape) {
  .auction-terms-lightbox .lightbox-auction-terms-content {
    height: 98vh;
    height: 98dvh;
    max-height: 98vh;
    max-height: 98dvh;
    padding: 8px;
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: 1fr auto;
    gap: 8px;
  }

  .lightbox-auction-terms-header {
    display: none;
  }

  /* Container for image and thumbnails side by side */
  .auction-terms-lightbox .lightbox-auction-terms-content::after {
    content: none;
  }

  .auction-terms-main-image-container {
    max-height: calc(98vh - 60px);
    max-height: calc(98dvh - 60px);
    height: 100%;
    grid-column: 2;
    grid-row: 1;
  }

  /* Thumbnails on the left side */
  .auction-terms-thumbnails {
    max-height: none;
    height: 100%;
    padding: 5px;
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: repeat(3, 60px); /* 3 columns of thumbnails */
    gap: 6px;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 200px;
  }

  .auction-terms-thumbnail {
    height: 60px;
    width: 60px;
  }

  .lightbox-auction-terms-footer {
    margin: 0;
    padding: 5px 5px 0 5px;
    border-top: 1px solid rgba(var(--mhv-warning-rgb), 0.3);
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Join message styles */
.join-message {
  position: fixed;
  right: 20px;
  top: 60px;
  z-index: 10001;
  pointer-events: none;
}

.join-message > div {
  background: rgba(0, 0, 0, 0.7);
  color: var(--mhv-text-primary);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  margin-bottom: 8px;
  white-space: nowrap;
}

.join-message > div.visible {
  opacity: 1;
}

#countdown-lightbox {
  display: flex;
}

#countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.play-button-overlay.hidden {
  display: none;
}

/* General hidden class for countdown and overlay functionality */
.hidden {
  display: none !important;
}

/* Breathing animation for muted audio */
@keyframes breathe {
  0%, 100% { 
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  25% {
    transform: scale(1.2) rotate(-2deg);
    opacity: 1;
  }
  50% { 
    transform: scale(1.3) rotate(0deg);
    opacity: 1;
  }
  75% {
    transform: scale(1.2) rotate(2deg);
    opacity: 1;
  }
}
  /* New WebRTC player: dynamically fills the container */
#mhv-webrtc-player {
position: relative;
width: 100%;
height: 100%;
background: var(--mhv-bg-body);
z-index: 1; /* below overlays/slideshow */
}
#mhv-webrtc-player video {
width: 100%;
height: 100%;
object-fit: contain;
}

/* Live page slideshow playback controls removed — slideshow synced from host owner */

/* =============================================================================
   Inline CSS extracted from live.liquid — lightbox overrides, product list,
   BIN list styles
   ============================================================================= */

/* Animated ellipsis for loading states */
.loading-ellipsis::after {
  content: '';
  animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}

@media (max-width: 900px) {
  /* Mobile lightbox adjustments to account for address bar */
  .lightbox-absentee-info {
    height: 100vh !important;
    height: 100dvh !important;
  }

  .lightbox-absentee-info-content {
    height: 90vh !important;
    height: 90dvh !important;
    max-height: none !important;
    margin: auto !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #product-list-content {
    flex: 1 1 0 !important;
    overflow-y: auto !important;
    max-height: none !important;
    min-height: 0 !important;
  }

  /* Ensure tabs and footer don't scroll */
  .product-list-tabs {
    flex-shrink: 0 !important;
  }

  .lightbox-absentee-info-footer {
    flex-shrink: 0 !important;
  }

  /* Ensure the product list container div also participates in flex */
  #product-list-container {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
}

/* Reduce padding for product list lightbox - higher specificity */
div#product-list-lightbox div.lightbox-absentee-info-content {
  padding: 10px !important;
}

/* Search input container for product list */
.live-product-search-container {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.live-product-search-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(var(--mhv-accent-rgb), 0.3);
  border-radius: 4px;
  color: var(--mhv-text-primary);
  outline: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.live-product-search-input:focus {
  border-color: var(--mhv-accent);
}

.live-product-search-input::placeholder {
  color: var(--mhv-text-dim);
}

.live-product-search-clear {
  background: none;
  border: none;
  color: var(--mhv-text-hint);
  cursor: pointer;
  font-size: 20px;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
  display: none;
}

.live-product-search-clear:hover {
  color: var(--mhv-accent);
}

.live-product-search-clear.visible {
  display: block;
}

/* BIN List Lightbox Styles */
div#bin-list-lightbox div.lightbox-absentee-info-content {
  padding: 10px !important;
}

#bin-list-container {
  max-height: 400px;
  overflow-y: auto;
}

/* BIN list search input styling - pink theme */
#bin-list-lightbox .live-product-search-input {
  border-color: rgba(var(--mhv-accent-rgb), 0.3);
}

#bin-list-lightbox .live-product-search-input:focus {
  border-color: var(--mhv-accent);
}

/* BIN list item - matches in-chat BIN card styling */
.bin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, rgba(80, 0, 60, 0.6), rgba(40, 0, 35, 0.8));
  border: 2px solid rgba(var(--mhv-accent-rgb), 0.5);
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.bin-list-item:hover {
  background: linear-gradient(135deg, rgba(100, 0, 80, 0.7), rgba(50, 0, 45, 0.9));
  border-color: rgba(var(--mhv-accent-rgb), 0.7);
  box-shadow: 0 0 10px rgba(var(--mhv-accent-rgb), 0.2);
}

.bin-list-item-info {
  flex: 1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-right: 10px;
}

.bin-list-item-info:hover {
  opacity: 0.85;
}

.bin-list-item-title {
  color: var(--mhv-text-primary);
  font-size: 13px;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bin-list-item-price {
  color: var(--mhv-success-vivid);
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

/* BIN list purchase button */
.bin-list-purchase-btn {
  background: var(--mhv-accent-gradient);
  border: 1px solid rgba(var(--mhv-accent-rgb), 0.6);
  border-radius: 4px;
  padding: 6px 12px;
  color: var(--mhv-text-primary);
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.bin-list-purchase-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #DD00AA, #AA0088);
  box-shadow: 0 0 10px rgba(var(--mhv-accent-rgb), 0.4);
}

.bin-list-purchase-btn.confirming {
  background: linear-gradient(135deg, #00BB66, #009955);
  border-color: rgba(0, 200, 100, 0.6);
  animation: pulse 0.5s ease-in-out infinite alternate;
}

.bin-list-purchase-btn.confirming:hover:not(:disabled) {
  background: linear-gradient(135deg, #00DD77, #00AA66);
  box-shadow: 0 0 10px rgba(0, 200, 100, 0.4);
}

.bin-list-purchase-btn.sold {
  background: rgba(0, 100, 60, 0.5);
  border-color: rgba(0, 150, 80, 0.4);
  cursor: not-allowed;
  opacity: 0.7;
}

.bin-list-purchase-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bin-list-purchase-btn.loading {
  pointer-events: none;
}

/* Loading ellipsis animation for BIN list */
.bin-list-purchase-btn .loading-ellipsis::after {
  content: '';
  animation: bin-ellipsis 1.2s infinite;
}

/* Redefine pulse for BIN confirming button (subtler toggle) */
@keyframes pulse {
  from { opacity: 0.9; }
  to { opacity: 1; }
}

/* =============================================
   GIVEAWAY WHEEL OVERLAY (Live Page)
   ============================================= */

.giveaway-wheel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--mhv-bg-widget-dark);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.giveaway-wheel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.giveaway-canvas-wrap {
  position: relative;
  display: inline-flex;
}

.giveaway-canvas-wrap canvas {
  max-width: 90vw;
  max-height: 55vh;
}

/* Larger wheel on bigger screens */
@media (min-width: 768px) and (min-height: 600px) {
  .giveaway-canvas-wrap canvas {
    width: 500px;
    height: 500px;
    max-height: 60vh;
  }
}

@media (min-width: 1200px) and (min-height: 700px) {
  .giveaway-canvas-wrap canvas {
    width: 600px;
    height: 600px;
    max-height: 65vh;
  }
}

.giveaway-live-ticker {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 22px solid var(--mhv-accent);
  z-index: 10;
  filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000);
  transition: transform 0.05s ease;
}

.giveaway-live-ticker.tick {
  transform: translateX(-50%) scaleY(1.3);
}

/* Name display above wheel + heading */
.giveaway-wheel-name {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: var(--mhv-text-primary);
  padding: 4px 0;
  min-height: 28px;
  letter-spacing: 0.5px;
}

.giveaway-name-flash {
  animation: giveawayNameFlash 0.15s ease-out;
}

.giveaway-name-winner {
  font-size: 24px;
  color: var(--mhv-warning);
  text-shadow: 0 0 10px rgba(var(--mhv-warning-rgb), 0.6), 0 0 20px rgba(var(--mhv-warning-rgb), 0.3);
  animation: giveawayNamePulse 0.8s ease-in-out infinite alternate;
}

@keyframes giveawayNameFlash {
  0% { opacity: 1; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes giveawayNamePulse {
  0% { text-shadow: 0 0 10px rgba(var(--mhv-warning-rgb), 0.6); }
  100% { text-shadow: 0 0 20px rgba(var(--mhv-warning-rgb), 0.9), 0 0 40px rgba(var(--mhv-warning-rgb), 0.4); }
}

.giveaway-live-heading {
  text-align: center;
  margin-bottom: 8px;
}

.giveaway-live-heading h2 {
  font-size: 28px;
  margin: 0;
  color: var(--mhv-text-primary);
}

.giveaway-live-heading .giveaway-live-subtitle {
  font-size: 18px;
  font-weight: bold;
  color: var(--mhv-accent);
  margin-top: 2px;
}

.mobile-device .giveaway-live-heading h2 {
  font-size: 24px;
}

.mobile-device .giveaway-live-heading .giveaway-live-subtitle {
  font-size: 16px;
}

.giveaway-live-winner {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: giveawayWinnerIn 0.5s ease-out;
}

.giveaway-live-winner-card {
  text-align: center;
  padding: 20px 30px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--mhv-accent);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(var(--mhv-accent-rgb), 0.3);
}

.giveaway-live-winner-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--mhv-accent);
}

.giveaway-live-winner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.giveaway-live-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mhv-accent);
  color: var(--mhv-text-primary);
  font-weight: bold;
  font-size: 22px;
}

.giveaway-live-winner-name {
  font-size: 24px;
  font-weight: bold;
  color: var(--mhv-text-primary);
  margin-bottom: 4px;
}

.giveaway-live-winner-prize {
  font-size: 30px;
  font-weight: bold;
  color: var(--mhv-warning);
  text-shadow: 0 0 10px rgba(var(--mhv-warning-rgb), 0.5);
}

@keyframes giveawayWinnerIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Mobile: adjust wheel sizing */
.mobile-device .giveaway-canvas-wrap canvas {
  max-width: 95vw;
  max-height: 50vh;
}

.mobile-device .giveaway-live-ticker {
  border-left-width: 16px;
  border-right-width: 16px;
  border-top-width: 24px;
}

.mobile-device .giveaway-live-winner-name {
  font-size: 20px;
}

.mobile-device .giveaway-live-winner-prize {
  font-size: 26px;
}