/* ─────────────────────────────────────────────────────────────────────
   BOND. Cookie consent banner styling
   Sage barvy, no emoji, harmonizováno s BOND brand.
   ───────────────────────────────────────────────────────────────────── */

#bond-cc-root {
  font-family: 'Urbanist', -apple-system, sans-serif;
}

/* ── Floating bar dole ───────────────────────────────────────────── */
.bond-cc-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9998;
  background: rgba(79, 106, 74, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #F5F0E8;
  /* Silnější stín + accent border nahoře, aby banner nebyl přehlédnutelný
     (Pavel Gula feedback 18.7.2026: „hrozně maličká, lidi ji přehlédnou"). */
  box-shadow: 0 -14px 48px rgba(45, 45, 43, 0.32);
  border-top: 3px solid rgba(245, 240, 232, 0.35);
  animation: bondCcSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bondCcSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.bond-cc-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 28px;
}

.bond-cc-bar-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(245, 240, 232, 0.94);
}

.bond-cc-bar-text strong {
  color: #F5F0E8;
  font-weight: 600;
}

.bond-cc-link {
  color: #F5F0E8;
  text-decoration: underline;
  text-decoration-color: rgba(245, 240, 232, 0.4);
  text-underline-offset: 3px;
}

.bond-cc-link:hover {
  text-decoration-color: #F5F0E8;
}

.bond-cc-bar-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.bond-cc-btn {
  font-family: 'Urbanist', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.12s, border-color 0.15s;
  white-space: nowrap;
}

.bond-cc-btn:active { transform: scale(0.97); }

.bond-cc-btn-primary {
  background: #F5F0E8;
  color: #2D2D2B;
}
.bond-cc-btn-primary:hover { background: #FFFFFF; }

.bond-cc-btn-secondary {
  background: transparent;
  color: #F5F0E8;
  border: 1.5px solid rgba(245, 240, 232, 0.45);
}
.bond-cc-btn-secondary:hover {
  background: rgba(245, 240, 232, 0.08);
  border-color: rgba(245, 240, 232, 0.75);
}

.bond-cc-btn-ghost {
  background: transparent;
  color: rgba(245, 240, 232, 0.7);
  border: 1.5px solid rgba(245, 240, 232, 0.18);
}
.bond-cc-btn-ghost:hover {
  color: #F5F0E8;
  border-color: rgba(245, 240, 232, 0.4);
}

/* ── Consent modal (hlavní obrazovka souhlasu, Pavel Gula round 2, 18.7.2026) ── */
.bond-cc-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(45, 45, 43, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: bondCcFadeIn 0.25s ease;
}

.bond-cc-consent-modal {
  background: #FDFAF5;
  border-radius: 22px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 28px 72px rgba(45, 45, 43, 0.32);
  color: #1A1714;
  overflow: hidden;
  animation: bondCcModalIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.bond-cc-consent-body {
  padding: 32px 32px 20px;
}

.bond-cc-consent-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.3;
  color: #1A1714;
  margin: 0 0 14px;
}

.bond-cc-consent-body p {
  font-size: 15px;
  line-height: 1.6;
  color: #5C554C;
  margin: 0 0 12px;
}

.bond-cc-consent-body p.bond-cc-consent-link-row {
  margin-top: 14px;
  font-size: 14px;
}

.bond-cc-consent-body .bond-cc-link {
  color: #4A6356;
  text-decoration: underline;
  text-decoration-color: rgba(74, 99, 86, 0.4);
  text-underline-offset: 3px;
}

.bond-cc-consent-body .bond-cc-link:hover {
  text-decoration-color: #4A6356;
}

.bond-cc-consent-actions {
  padding: 20px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F5F0E8;
  border-top: 1px solid #E6DBCC;
}

.bond-cc-consent-btn-primary {
  background: #4A6356;
  color: #F5F0E8;
  font-size: 16px;
  padding: 14px 22px;
  width: 100%;
}

.bond-cc-consent-btn-primary:hover {
  background: #4F6A4A;
}

.bond-cc-consent-btn-secondary {
  background: transparent;
  color: #4A6356;
  border: 1.5px solid #4A6356;
  font-size: 15px;
  padding: 12px 22px;
  width: 100%;
}

.bond-cc-consent-btn-secondary:hover {
  background: rgba(74, 99, 86, 0.08);
}

.bond-cc-consent-btn-ghost {
  background: transparent;
  color: #6B6860;
  border: none;
  font-size: 14px;
  padding: 8px 22px;
  width: 100%;
  text-decoration: underline;
  text-decoration-color: rgba(107, 104, 96, 0.4);
  text-underline-offset: 3px;
}

.bond-cc-consent-btn-ghost:hover {
  color: #1A1714;
  text-decoration-color: #1A1714;
}

@media (max-width: 480px) {
  .bond-cc-consent-overlay { padding: 16px; }
  .bond-cc-consent-body { padding: 26px 22px 16px; }
  .bond-cc-consent-body h2 { font-size: 22px; }
  .bond-cc-consent-body p { font-size: 14px; }
  .bond-cc-consent-actions { padding: 16px 22px 22px; }
  .bond-cc-consent-btn-primary { font-size: 15px; padding: 13px 20px; }
  .bond-cc-consent-btn-secondary { font-size: 14px; padding: 11px 20px; }
}

/* ── Modal ───────────────────────────────────────────────────────── */
.bond-cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(45, 45, 43, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: bondCcFadeIn 0.2s ease;
}

@keyframes bondCcFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.bond-cc-modal {
  background: #FDFAF5;
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(45, 45, 43, 0.28);
  color: #1A1714;
  animation: bondCcModalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bondCcModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.bond-cc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 12px;
  border-bottom: 1px solid #E6DBCC;
}

.bond-cc-modal-head h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  color: #1A1714;
  margin: 0;
  line-height: 1.3;
}

.bond-cc-modal-close {
  background: transparent;
  border: none;
  color: #6B6860;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  font-family: inherit;
  transition: color 0.15s, background 0.15s;
}

.bond-cc-modal-close:hover {
  color: #1A1714;
  background: rgba(168, 201, 181, 0.18);
}

.bond-cc-modal-body {
  padding: 16px 28px 8px;
  font-size: 14px;
  line-height: 1.65;
  color: #5C554C;
}

.bond-cc-modal-body p {
  margin: 0 0 18px;
  color: #5C554C;
}

.bond-cc-category {
  padding: 16px 0;
  border-top: 1px solid #E6DBCC;
}

.bond-cc-category:first-of-type {
  border-top: none;
  padding-top: 8px;
}

.bond-cc-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bond-cc-category-head strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 17px;
  color: #4A6356;
}

.bond-cc-category-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #6B6860;
}

.bond-cc-toggle-disabled {
  font-size: 12px;
  color: #9D9688;
  font-style: italic;
}

/* ── Switch toggle ───────────────────────────────────────────────── */
.bond-cc-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.bond-cc-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #D4C5A9;
  border-radius: 24px;
  transition: background 0.2s;
}

.bond-cc-switch-slider:before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #FDFAF5;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.bond-cc-switch input:checked + .bond-cc-switch-slider {
  background: #4A6356;
}

.bond-cc-switch input:checked + .bond-cc-switch-slider:before {
  transform: translateX(20px);
}

.bond-cc-switch input:focus-visible + .bond-cc-switch-slider {
  outline: 2px solid #4A6356;
  outline-offset: 2px;
}

.bond-cc-modal-foot {
  padding: 16px 28px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid #E6DBCC;
  background: #F5F0E8;
  border-radius: 0 0 20px 20px;
}

.bond-cc-modal-foot .bond-cc-btn {
  font-size: 14px;
  padding: 10px 22px;
}

.bond-cc-modal-foot .bond-cc-btn-ghost {
  color: #5C554C;
  border-color: #D4C5A9;
}

.bond-cc-modal-foot .bond-cc-btn-ghost:hover {
  color: #1A1714;
  border-color: #6B6860;
}

.bond-cc-modal-foot .bond-cc-btn-primary {
  background: #4A6356;
  color: #F5F0E8;
}

.bond-cc-modal-foot .bond-cc-btn-primary:hover {
  background: #4F6A4A;
}

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .bond-cc-bar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 20px 22px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    gap: 16px;
  }
  .bond-cc-bar-text {
    font-size: 15px;
    line-height: 1.5;
  }
  .bond-cc-bar-actions {
    flex-wrap: wrap;
    justify-content: stretch;
    gap: 10px;
  }
  .bond-cc-btn {
    flex: 1 1 auto;
    font-size: 14px;
    padding: 12px 16px;
  }
  .bond-cc-btn-ghost { flex: 0 0 auto; }
  .bond-cc-modal {
    border-radius: 16px;
    max-height: 95vh;
  }
  .bond-cc-modal-head,
  .bond-cc-modal-body,
  .bond-cc-modal-foot {
    padding-left: 20px;
    padding-right: 20px;
  }
  .bond-cc-modal-foot {
    flex-direction: column-reverse;
  }
  .bond-cc-modal-foot .bond-cc-btn {
    width: 100%;
  }
}
