﻿.cookie-banner {
  box-sizing: border-box;
  position: fixed;
  left: 50%;
  bottom: 20px;
  width: min(calc(100vw - 32px), 760px);
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 14px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.24);
  z-index: 999;
}
.cookie-banner.show {
  display: flex;
}
.cookie-copy {
  width: 100%;
  font-size: 13px;
  line-height: 1.35;
  color: #e5e7eb;
}
.cookie-copy strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}
.cookie-copy p {
  margin: 0;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.35;
}
.cookie-copy a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-copy a:hover,
.cookie-copy a:focus-visible {
  color: #dbeafe;
}
.cookie-actions {
  display: flex;
  width: 100%;
  align-items: stretch;
  gap: 8px;
}
.cookie-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
  flex: 1 1 0;
  background: #4285f4;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cookie-btn:hover,
.cookie-btn:focus-visible {
  background: #2f6fe0;
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}
.cookie-btn:focus-visible {
  outline: 2px solid #dbeafe;
  outline-offset: 2px;
}
.cookie-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.16);
}
.cookie-btn-secondary:hover,
.cookie-btn-secondary:focus-visible {
  background: rgba(255,255,255,0.14);
}

.cookie-modal[hidden] {
  display: none;
}
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}
.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
}
.cookie-modal-panel {
  position: relative;
  z-index: 1;
  width: min(calc(100vw - 32px), 720px);
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  padding: 22px 22px 18px;
  overflow: auto;
  border-radius: 20px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #eff4fb;
  color: #0b1f3b;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.cookie-modal-panel h2 {
  margin: 0 36px 8px 0;
  font-size: 28px;
  line-height: 1.1;
}
.cookie-modal-intro {
  margin: 0 0 18px;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}
.cookie-form {
  display: grid;
  gap: 12px;
}
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #dbe5f0;
  border-radius: 16px;
  background: #f8fbff;
}
.cookie-option-locked {
  background: #f1f5f9;
}
.cookie-option-copy {
  display: grid;
  gap: 4px;
}
.cookie-option-copy strong {
  font-size: 16px;
}
.cookie-option-copy small {
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}
.cookie-option input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.cookie-modal-actions .cookie-btn {
  font-size: 13px;
}
.cookie-modal-actions .cookie-btn-secondary {
  background: #eef4fb;
  color: #0b1f3b;
  border: 1px solid #d7e2ef;
}
.cookie-modal-actions .cookie-btn-secondary:hover,
.cookie-modal-actions .cookie-btn-secondary:focus-visible {
  background: #e2ecf8;
  color: #0b1f3b;
}
body.cookie-modal-open {
  overflow: hidden;
}
@media (max-width: 700px) {
.cookie-banner {
    bottom: 10px;
    flex-direction: column;
    align-items: stretch;
    width: min(calc(100vw - 20px), 680px);
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
  }
  .cookie-copy {
    width: 100%;
    font-size: 11px;
    line-height: 1.25;
  }
  .cookie-copy strong {
    display: block;
    margin-bottom: 2px;
    font-size: 11.5px;
  }
  .cookie-copy p {
    margin: 0;
    color: #e5e7eb;
    font-size: 11px;
    line-height: 1.25;
  }
  .cookie-actions {
    width: 100%;
    justify-content: space-between;
    align-items: stretch;
    gap: 6px;
  }
  .cookie-actions .cookie-btn {
    min-width: 0;
    flex: 1 1 0;
    padding: 8px 6px;
    font-size: 10.5px;
    line-height: 1.15;
    border-radius: 9px;
  }
  .cookie-modal-panel {
    width: min(calc(100vw - 20px), 680px);
    max-height: calc(100vh - 20px);
    margin: 10px auto;
    padding: 18px 14px 14px;
    border-radius: 16px;
  }
  .cookie-modal-panel h2 {
    margin-right: 34px;
    font-size: 22px;
  }
  .cookie-modal-intro {
    font-size: 13px;
    line-height: 1.45;
  }
  .cookie-option {
    padding: 12px 12px;
    gap: 12px;
  }
  .cookie-option-copy strong {
    font-size: 14px;
  }
  .cookie-option-copy small {
    font-size: 12px;
  }
  .cookie-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
