/* =============================================
   Cookie Banner — eshop.palivahecko.cz
   Sladěno s designem Palivahecko (dřevo + ember)
   ============================================= */

#cookieBanner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid #E3D7C0;
  border-radius: 18px;
  box-shadow: 0 20px 60px -20px rgba(42,31,22,0.28);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#cookieSimple {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cb-text {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  flex: 1;
  min-width: 240px;
}

.cb-text svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #C9791C;
}

.cb-text p {
  margin: 0;
  font-size: 0.84rem;
  color: #5A4A3B;
  line-height: 1.55;
}

.cb-text a {
  color: #A85F12;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-right: 0.25rem;
}

.cb-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

.cb-btn {
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  letter-spacing: 0.02em;
}

.cb-btn-ember {
  background: #2A1F16;
  color: #F6EFE2;
}
.cb-btn-ember:hover {
  background: #C9791C;
  transform: translateY(-1px);
}

.cb-btn-outline {
  background: transparent;
  border: 1.5px solid #E3D7C0;
  color: #2A1F16;
}
.cb-btn-outline:hover {
  border-color: #C9791C;
  color: #A85F12;
  background: #F3E9D8;
}

/* Settings panel */
.cb-settings-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #2A1F16;
  margin-bottom: 0.9rem;
}

.cb-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #ECE3D2;
}

.cb-toggle-row:last-of-type { border-bottom: none; }

.cb-toggle-row > div:first-child { flex: 1; }

.cb-toggle-row strong {
  display: block;
  font-size: 0.86rem;
  color: #2A1F16;
  margin-bottom: 0.15rem;
}

.cb-toggle-row span {
  font-size: 0.78rem;
  color: #897665;
}

/* Toggle switch */
.cb-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.cb-switch input { opacity: 0; width: 0; height: 0; }

.cb-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #D2C5AE;
  border-radius: 22px;
  transition: 0.3s;
}

.cb-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.cb-switch input:checked + .cb-slider { background: #C9791C; }
.cb-switch input:checked + .cb-slider::before { transform: translateX(18px); }

.cb-toggle-disabled {
  width: 40px; height: 22px;
  background: #A85F12;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  opacity: 0.7;
}

@media (max-width: 600px) {
  #cookieBanner { bottom: 0; border-radius: 16px 16px 0 0; width: 100%; left: 0; transform: none; }
  #cookieSimple { flex-direction: column; gap: 1rem; align-items: stretch; }
  .cb-actions { width: 100%; justify-content: stretch; }
  .cb-btn { flex: 1; text-align: center; }
}
