 /* CSS Variables */
:root {
  --primary-color: black;
  --background-color: rgba(250, 250, 250, 1);
  --white: rgba(255, 255, 255, 1);
  --cursor-url: url('images/cursor_mickey.png');
  --transition-default: all 0.2s ease-in-out;
  --scrollbar-thin: thin;
  --font-family: 'Inter', sans-serif;
  --border-dotted: 2px dotted black;
}

/* Hide scrollbars for all browsers */
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

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

/* Disable focus outline globally */
*:focus {
  outline: none !important;
}

/* Common styles */
a, .kurzor {
  cursor: var(--cursor-url), pointer;
}

/* Dropdown styles with selectable text */
.custom-select,
.options-container,
.option {
  cursor: default;
}

/* Ensure dropdown text remains visible */
.option {
  color: black !important;
  background-color: #e1e2e1 !important;
}

.option:hover {
  background-color: #d1d2d1 !important;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--primary-color);
  -webkit-touch-callout: none;
  cursor: default;
}

/* Common scrollbar styles */
.scrollable {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  transition: var(--transition-default);
}

/* Common media styles */
.media-content {
  width: 100%;
  height: auto;
  display: block;
}

video {
  clip-path: inset(1px 1px);
  filter: contrast(1.1);
  filter: brightness(0.98);
}

/* Styles for les_oci */
#les_oci {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 1;
  transform: translateZ(0);
  will-change: transform;
}

.les_eye {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.les_eye .pupil {
  transform: translateZ(0) translate(0, 0);
  will-change: transform;
  transform-origin: center;
}

.les_eye .pupil.transition-to-center {
  transition: transform 0.1s ease-out;
}
.les_eye .pupil.transition-to-logo {
  transition: transform 0.04s ease-out;
}
.les_eye .pupil.transition-back-to-center {
  transition: transform 0.1s ease-out;
}
.les_eye .pupil.transition-snap-to-mouse {
  transition: transform 0.2s ease-out;
}

#svg {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

#svg .pupil {
  transform: translateZ(0) translate(0, 0);
  will-change: transform;
  transform-origin: center;
}

#svg .pupil.transition-to-center {
  transition: transform 0.1s ease-out;
}
#svg .pupil.transition-to-logo {
  transition: transform 0.04s ease-out;
}
#svg .pupil.transition-back-to-center {
  transition: transform 0.1s ease-out;
}
#svg .pupil.transition-snap-to-mouse {
  transition: transform 0.2s ease-out;
}

/* Layout styles */
#obsah, #prehled, #vpravo, #vlevo, #stred {
  background-color: transparent;
  position: fixed;
  padding: 0;
  display: none;
}

#obsah {
  width: 1050px;
  height: 101vh;
  border: var(--border-dotted);
  border-top: none;
  position: fixed !important;
  z-index: 10;
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0.85), 
    var(--white), 
    var(--white), 
    var(--white), 
    var(--white));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 1s ease;
  left: 50%;
  transform: translateX(-50%);
  overflow: visible;
}

#obsah.about-active {
  /* Add soft green ellipse in the lower third over the existing gradient */
  background:
    radial-gradient(800px 300px at 50% 75%,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.55) 45%,
      rgba(255, 255, 255, 0) 75%) ,
    linear-gradient(to bottom,
      rgba(255, 255, 255, 0.85) 0%,
      var(--white) 35%,
      var(--white) 70%,
      rgba(255, 255, 255, 0.8) 100%);
}

/* Ensure cart, privacy, and terms sections have same background as other sections */
#obsah.cart-active,
#obsah.privacy-active,
#obsah.terms-active {
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0.85), 
    var(--white), 
    var(--white), 
    var(--white), 
    var(--white));
}

#prehled {
  width: 960px;
  height: calc(100vh - 215px);
  top: 215px;
  left: 50%;
  transform: translateX(-50%);
  overflow-y: auto;
  display: block;
}

#vpravo {
  width: 250px;
  height: calc(100vh - 215px);
  top: 215px;
  left: calc(50% + 230px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Product detail layout - fixed header and scrollable content */
.product-detail-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.product-detail-header {
  flex-shrink: 0;
  padding: 0 0 1em 0;
}

.product-detail-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  min-height: 0;
  padding-bottom: 39px;
}

#vlevo {
  width: 250px;
  height: 100vh;
  left: calc(50% - 480px);
  overflow-y: auto;
}

#stred {
  width: 400px;
  height: calc(100vh - 215px);
  top: 215px;
  left: 50%;
  transform: translateX(-50%);
  overflow-y: auto;
  padding-bottom: 39px;
}

/* Grid layout for products in prehled */
#prehled .images-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 0;
  margin: 0;
  width: 100%;
  padding-bottom: 30px;
}

/* Specific styles for about category */
#prehled .images-container.about-container {
  grid-template-columns: 1fr 400px 1fr;
  gap: 0px;
  height: 100%;
  overflow-y: auto;            /* enable vertical scroll */
  -ms-overflow-style: none;    /* IE and Edge - hide scrollbar */
  scrollbar-width: none;       /* Firefox - hide scrollbar */
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  padding-bottom: 0;           /* remove extra bottom space specific to about */
}

/* Hide scrollbar for WebKit browsers */
#prehled .images-container.about-container::-webkit-scrollbar {
  display: none;
}

#prehled .images-container.about-container .about-section {
  width: 250px;
  padding: 0;
  margin: 0;
  background-color: rgba(255, 255, 255, 0);
}

/* Kontakty div styling */
#prehled .images-container.about-container .about-section .kontakty {
  position: fixed;
  top: -137px;
  left: 0;
  width: 250px;
  z-index: 10;
  visibility: hidden; /* prevent visible reflow on initial render */
}

#prehled .images-container.about-container .about-section:nth-child(2) {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: transparent;
  padding-top: 0;
  margin-top: 0;
}

#prehled .images-container.about-container .about-section:nth-child(3) {
  margin-left: 30px;
  width: 250px;
}

#prehled .images-container.about-container .about-section p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
  color: black;
  white-space: normal;
  width: 100%;
}

/* Poloviční mezera mezi odstavci v about sloupcích */
#prehled .images-container.about-container .about-section p.about-paragraph + p.about-paragraph {
  margin-top: 0.75em; /* půlka z 1.5em line-height */
}

#prehled .images-container.about-container .about-section:last-child p {
  margin-left: 0;
  background-color: transparent;
}

#prehled .images-container.about-container .about-section:first-child p {
  margin-right: 30px;
  background-color: transparent;
}

#prehled .images-container.about-container .about-section #hra {
  width: 400px;
  height: 600px;
  margin: 0;
  padding: 0;
}

#prehled .images-container.about-container .about-section #tetris {
  width: 100%;
  height: 100%;
  border: none;
  margin: 0;
  padding: 0;
}

/* Original styles for other categories */
#prehled .images-container .image-item {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

#prehled .images-container .image-item .product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.8);
  color: black;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  pointer-events: none;
}

#prehled .images-container .image-item:hover .product-info {
  opacity: 1;
}

#prehled .images-container .image-item .product-info h3 {
  margin: 0 0 0 0;
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

#prehled .images-container .image-item .product-info p {
  margin: 0 0;
  font-size: 16px;
  font-weight: normal;
  white-space: nowrap;  
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

#prehled .images-container .image-item .product-info .price {
  font-size: 16px;
  font-weight: normal;
  margin-top: 5px;
}

#prehled .images-led .image-item:last-child {
  margin-bottom: 30px;
}

#prehled .images-container .image-item img,
#prehled .images-container .image-item video {
  width: 100%;
  height: auto;
  display: block;
}

.images-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 15px;
}

.images-container.product-thumbnails {
  padding-top: 215px; /* Offset thumbnails to align with stred */
}

.image-item a {
  cursor: var(--cursor-url), pointer;	
}
  
.image-item {
  position: relative;
  margin-bottom: 10px;
}

.image-item img, .image-item video {
  max-width: 100%;
  height: auto;
}

.image-item:last-child {
  margin-bottom: 30px;
}

#hra {
  width: 400px;
  height: 600px;
  background-color: black; /* Match Snake Game background */
}

#hra iframe {
  width: 400px;
  height: 600px;
  border: none;
}

/* Common button styles */
.add-to-cart,
.pay-button {
  width: 100%;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  cursor: var(--cursor-url), pointer;
  font-size: 16px;
  font-weight: normal;
  font-family: var(--font-family);
}

.pay-button {
  margin-bottom: 50px;
}

/* Product styles */
.product-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: 100%;
}

.product-media,
.thumbnail {
  max-width: 100%;
  height: auto;
  display: block;
}

.product-media {
  transition: transform 0.3s ease;
}

.thumbnail {
  max-width: 100px;
}

.product-details {
  padding: 0;
  width: 100%;
}

.product-details h2 {
  font-size: 23px;
  font-weight: bold;
  margin-bottom: 0.5em;
  word-wrap: break-word;
}

.new p {
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 0.2em;
  color: var(--primary-color);
}

/* Format selector styles */
.format-selector {
  width: 100%;
  margin-bottom: 1em;
}

.format-selector select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--primary-color);
  background-color: var(--white);
  font-family: var(--font-family);
  font-size: 16px;
  cursor: var(--cursor-url), pointer;
}

.format-info {
  margin-top: 1em;
  font-size: 16px;
}

.format-info ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-top: 0.5em;
}

.format-info li {
  margin-bottom: 0.25em;
}

#selected-price {
  font-size: 20px;
  font-weight: normal;
  margin: 0.5em 0;
}

/* Cart styles */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0;
  height: 90px;
  border-bottom: 1px solid #e5e5e5;
}

.cart-item img {
  width: 50px;
  height: auto;
  max-height: 90px;
  cursor: var(--cursor-url), pointer;
}

.cart-item-details {
  flex-grow: 1;
  margin-left: 30px;
}

.cart-item-details p:first-child {
  cursor: var(--cursor-url), pointer;
}

.cart-item-controls {
  display: flex;
  align-items: center;
}

.cart-item-controls button {
  background-color: transparent;
  color: var(--primary-color);
  border: none;
  width: 28px;
  padding: 5px 10px;
  margin: 0 0px;
  cursor: var(--cursor-url), pointer;
}

.cart-total {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
  text-align: right;
}

/* Ensure smooth transitions for pupil movement */
#empty-cart-svg .pupil {
  transition: transform 0.3s ease;
}

/* Move pupil to the left */
.move-pupil-left {
  transform: translateX(-4px);
}

/* Move pupil to the right */
.move-pupil-right {
  transform: translateX(4px);
}

/* Center the pupil */
.move-pupil-center {
  transform: translateX(0);
}

@keyframes pupilMoveLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-4px); }
}

@keyframes pupilMoveRight {
  from { transform: translateX(0); }
  to { transform: translateX(4px); }
}

@keyframes pupilMoveCenter {
  from { transform: translateX(0); }
  to { transform: translateX(0); }
}

#empty-cart-message .pupil {
  animation-duration: 0.3s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: black;
  color: white;
  font-size: 12px;
  padding-top: 1px;
  font-weight: regular;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid white;
}

.cart-is-empty {
  width: 100%;
  height: 40px;
  background-color: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 152px;
}

/* New badge styles */
.new-badge {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgb(255, 0, 0);
  color: white;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 2;
}

/* Expand button styles */
.expand-button {
  width: 24px;
  height: 24px;
  background-color: black;
  border: none;
  cursor: var(--cursor-url), pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  float: right;
  margin-top: 15px;
  padding: 0;
}

.expand-button svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: url('images/cursor_X.png') 5 5, pointer;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: #fff;
  width: 1045px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 0;
  cursor: default;
  position: relative;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.modal-content img,
.modal-content video {
  max-width: 90%;
  max-height: 95vh;
  object-fit: contain;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0);
  border: none;
  border-radius: 50%;
  cursor: var(--cursor-url), pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-nav.prev {
  left: 0;
}

.modal-nav.next {
  right: 0;
}

.modal-nav svg {
  width: 32px;
  height: 32px;
  fill: black;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  cursor: var(--cursor-url), pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.modal-close svg {
  width: 24px;
  height: 24px;
  fill: black;
}

.image-item.product-container {
  position: relative;
  margin-bottom: 40px; /* Add space for the button */
}

.modal-zone-left, .modal-zone-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 20;
  background: transparent;
}

.modal-zone-left {
  left: 0;
  cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><polygon points="20,8 12,16 20,24" fill="black"/></svg>') 8 16, pointer;
}

.modal-zone-right {
  right: 0;
  cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><polygon points="12,8 20,16 12,24" fill="black"/></svg>') 24 16, pointer;
}

.modal-close-x-area {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  cursor: var(--cursor-url), pointer;
}
.modal-close-x {
  width: 19px;
  height: 19px;
  pointer-events: auto;
  padding: 0;
  margin: 0;
}

/* Uvod styles */
#uvod {
  position: fixed;
  --uvod-top: clamp(220px, 20vh, 250px);
  --uvod-padding: 1px;
  top: var(--uvod-top);
  left: 50%;
  transform: translate(-50%);
  display: inline-block;
  width: max-content;
  height: max-content;
  padding: var(--uvod-padding);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--border-dotted);
  z-index: 5;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease;
}

#uvod.hidden {
  opacity: 0;
}

#uvod .intro-text {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  min-width: 400px;
  max-width: 600px;
  max-height: calc(100vh - var(--uvod-top) - 100px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overflow-wrap: break-word;
  padding: 20px;
  box-sizing: border-box;
}

#uvod .intro-media {
  height: auto;
  max-width: calc(100vw - 80px);
  max-height: calc(100vh - var(--uvod-top) - 100px);
  object-fit: contain;
  margin: 0px;
  display: block;
  background: none;
  padding: 0;
}

#uvod video.intro-media {
  clip-path: inset(1px 1px);
}

/* Kurzor pro klikatelná média v intro */
#uvod .intro-media-wrapper .intro-media {
  cursor: var(--cursor-url), pointer;
}

/* Eliminate baseline gap when media is wrapped in a clickable container */
.intro-media-wrapper {
  display: inline-block;
  line-height: 0;
  font-size: 0;
  vertical-align: top;
  cursor: var(--cursor-url), pointer;
}

/* odstranen min-width na .intro-media; minimum řídí JS podle prostoru */

#uvod .intro-text h1,
#uvod .intro-text h2,
#uvod .intro-text h3,
#uvod .intro-text h4,
#uvod .intro-text h5,
#uvod .intro-text h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
  line-height: 1.3;
}

#uvod .intro-text h1 { font-size: 24px; }
#uvod .intro-text h2 { font-size: 22px; }
#uvod .intro-text h3 { font-size: 20px; }
#uvod .intro-text h4 { font-size: 18px; }
#uvod .intro-text h5 { font-size: 16px; }
#uvod .intro-text h6 { font-size: 14px; }

#uvod .intro-text p {
  margin-bottom: 1em;
}

#uvod .intro-text > *:last-child {
  margin-bottom: 0;
}

#uvod .intro-text a {
  color: black;
  text-decoration: underline;
  border-bottom: none;
  transition: color 0.2s ease;
}

#uvod .intro-text a:hover {
  color: black;
  border-bottom: none;
}

#uvod .intro-text a {
  cursor: var(--cursor-url), pointer;
}

#uvod .intro-text ul,
#uvod .intro-text ol {
  margin: 1em 0;
  padding-left: 2em;
}

#uvod .intro-text li {
  margin-bottom: 0.5em;
}

#uvod .intro-text blockquote {
  margin: 1em 0;
  padding: 0.5em 1em;
  border-left: 4px solid #7FCDCD;
  background: rgba(127, 205, 205, 0.1);
}

#uvod .intro-text code {
  font-family: monospace;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

#uvod .intro-text pre {
  background: rgba(0, 0, 0, 0.05);
  padding: 1em;
  border-radius: 3px;
  overflow-x: auto;
}

#uvod .intro-text pre code {
  background: none;
  padding: 0;
}

#uvod .intro-text img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
}

.uvod-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 12px;
  height: 12px;
  background: transparent;
  border: none;
  cursor: var(--cursor-url), pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 0;
  margin: 0;
}

.uvod-close img {
  width: 12px;
  height: 12px;
  pointer-events: auto;
}

/* Prevent FOUC */
html { 
  visibility: hidden; 
}

/* Prevent image dragging and saving */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  -webkit-user-drag: none;
}

/* Allow clicks on product images */
.product-image, .cart-item-image {
  pointer-events: auto;
  cursor: var(--cursor-url), pointer;
}

#about-text, #about-text-continued {
  white-space: normal;
  line-height: 1.5;
}

#about-text p, #about-text-continued p {
  margin: 0;
  padding: 0;
}

#about-text br, #about-text-continued br {
  display: none;
}

#about-text, #about-text-continued {
  display: block;
}

#about-text::before, #about-text-continued::before {
  content: "";
  display: block;
  margin: 0;
}

/* Styly pro košík */
.cart-sidebar {
    /* Styly pro levý sloupec košíku */
}

.cart-main {
    /* Styly pro hlavní obsah košíku */
}

.cart-items-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.cart-summary {
    /* Styly pro pravý sloupec košíku */
}

#packeta-iframe {
  width: 960px;
  height: calc(100vh - 215px);
  border: none;
  display: none;
  position: absolute;
  top: 215px;
  left: 50%;
  transform: translateX(-50%);
}

/* Custom tooltip styles */
.custom-tooltip {
  position: absolute;
  width: 250px;
  left: 0;
  background: rgb(204, 215, 204);
  outline: 5px dotted white;
  outline-offset: -3px;
  padding: 0;
  box-shadow: none;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.custom-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

.custom-tooltip .tooltip-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px; 
}

.custom-tooltip .tooltip-image {
  width: auto;
  height: 100px;
  object-fit: contain;
  margin-right: 10px;
  flex-shrink: 0;
}

.custom-tooltip .tooltip-text {
  text-align: left;
}

.custom-tooltip .tooltip-name {
  margin: 0;
  font-weight: bold;
  font-size: 14px;
  color: black;
}

.custom-tooltip .tooltip-price {
  margin: 0;
  font-size: 14px;
  color: black;
}

.custom-tooltip .tooltip-subtitle {
  margin: 0;
  font-size: 14px;
  color: black;
}

/* Footer Links */
#footer-links {
  position: absolute;
  left: -28px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 100;
  pointer-events: auto;
  background-color: transparent;
  padding: 10px 5px 10px 3px;
}

.footer-link {
  font-size: 12px;
  color: black;
  text-decoration: none;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  transition: opacity 0.2s ease;
  pointer-events: auto;
  position: relative;
  text-shadow: 
    -0.5px -0.5px 0 rgba(250, 250, 250, 1),
    0.5px -0.5px 0 rgba(250, 250, 250, 1),
    -0.5px 0.5px 0 rgba(250, 250, 250, 1),
    0.5px 0.5px 0 rgba(250, 250, 250, 1);
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--border-dotted);
  max-width: 960px;
  width: calc(100vw - 40px);
  pointer-events: auto;
}

#cookie-banner .cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}

#cookie-banner .cookie-banner__text {
  flex: 1;
  font-size: 12px;
  line-height: 1.4;
  color: black;
}

#cookie-banner .cookie-banner__actions {
  display: flex;
  gap: 8px;
}

/* Mobile cookie banner layout */
@media (max-width: 680px) {
  #cookie-banner {
    left: clamp(6px, 3vw, 12px);
    right: clamp(6px, 3vw, 12px);
    transform: none;
    width: auto;
    bottom: clamp(6px, 3vw, 12px);
  }
  #cookie-banner .cookie-banner__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding-left: clamp(6px, 3vw, 12px);
    padding-right: clamp(6px, 3vw, 12px);
  }
  #cookie-banner .cookie-banner__text {
    width: 100%;
    text-align: left;
    font-size: clamp(13px, 3.8vw, 16px);
    margin-bottom: 1em; /* Full line spacing */
  }
  #cookie-banner .cookie-banner__actions {
    width: 100%;
    display: flex;
    gap: 8px; /* gaps between buttons */
  }
  #cookie-banner .cookie-banner__actions .cookie-btn { 
    flex: 1;
    font-size: clamp(14px, 1.6vw, 17px);
  }
}

.cookie-btn {
  min-height: 32px;
  height: auto;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
  cursor: var(--cursor-url), pointer;
  border: none;
  background: black;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cookie-btn--primary {
  background: black;
  color: white;
}

.cookie-btn--ghost {
  background: black;
  color: white;
}

.cookie-btn--secondary {
  background: black;
  color: white;
}

/* Cookie modal */
#cookie-modal { display: none; }
#cookie-modal.open { display: block; }

#cookie-modal .cookie-modal__backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 10000;
}

#cookie-modal .cookie-modal__dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 40px));
  background: white;
  border: var(--border-dotted);
  z-index: 10001;
}

/* Mobile cookie modal */
@media (max-width: 680px) {
  #cookie-modal .cookie-modal__dialog {
    left: clamp(6px, 3vw, 12px);
    right: clamp(6px, 3vw, 12px);
    top: clamp(6px, 3vw, 12px);
    bottom: clamp(6px, 3vw, 12px);
    transform: none;
    width: auto;
    max-width: none;
    margin: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-height: calc(100vh - clamp(12px, 6vw, 24px));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
}

#cookie-modal .cookie-modal__header { padding: 24px; }
#cookie-modal .cookie-modal__content { padding: 0 24px 24px; }
#cookie-modal .cookie-modal__footer { padding: 24px; display: flex; gap: 8px; justify-content: flex-end; }

.cookie-category { padding: 10px 0; border-top: 0.5px solid #000; }
.cookie-category:first-child { border-top: none; }
.cookie-category__row { display: flex; align-items: center; justify-content: space-between; }
.cookie-category__name { font-weight: 600; }
.cookie-category__desc { font-size: 13px; color: #333; margin-top: 6px; }

.cookie-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.cookie-switch input { display:none; }
.cookie-switch__slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #ccc; transition: .2s; border: 1px solid black; }
.cookie-switch__slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 2px; top: 2px; background-color: white; transition: .2s; border: 1px solid black; }
.cookie-switch input:checked + .cookie-switch__slider { background: black; }
.cookie-switch input:checked + .cookie-switch__slider:before { transform: translateX(20px); }
