@charset "UTF-8";
.cookie-modal {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.cookie-overlay {
  pointer-events: none; /* дозволяє кліки проходити крізь оверлей */
  background: transparent; /* або повністю прибрати, якщо не потрібно */
}

.cookie-box {
  position: relative;
  background: #fff;
  padding: 20px 25px;
  border-radius: 10px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
.cookie-box.large {
  max-width: 800px;
}
.cookie-box h2 {
  margin-top: 0;
}
.cookie-box p {
  margin-bottom: 15px;
  color: #444;
  font-size: 14px;
}
.cookie-box a {
  color: #007bff;
  text-decoration: underline;
}
.cookie-box .as_title {
  color: #0f2e5d;
  font-size: 1.267em;
  font-weight: 800;
  margin-top: 0;
}
.cookie-box .as_subtitle {
  margin: 0;
  font-size: 15px !important;
  font-weight: 600;
  color: #333;
}

.cookie-btn {
  padding: 8px 16px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  background: #eee;
  font-size: 14px;
}
.cookie-btn.primary {
  background: #4caf50;
  color: #fff;
}
.cookie-btn.alt {
  background: #e74c3c;
  color: #fff;
}

.cookie-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
}
.cookie-close:hover {
  color: #000;
}

/* Toggle switch styles */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 26px;
}
.switch .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
.switch input:checked + .slider {
  background-color: #4caf50;
}
.switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* Layout for cookie row */
.cookie-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}
.cookie-row .cookie-info {
  max-width: 80%;
}
.cookie-row .cookie-info h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #333;
}
.cookie-row .cookie-info p {
  margin: 0;
  font-size: 14px;
  color: #666;
}
.cookie-row .cookie-toggle {
  flex-shrink: 0;
}

.hidden {
  display: none !important;
}

.cookie-scroll-container {
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 10px;
}

/* Можна також задати лише для мобільних */
@media (max-width: 768px) {
  .cookie-scroll-container {
    max-height: 60vh;
  }
}