.cookie-hidden {
  display: none !important;
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-logo {
  margin: 0 auto;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 3/1;
}

.cookie-icon {
  position: fixed;
  bottom: 40px;
  left: 30px;
  width: 48px;
  height: 48px;
  z-index: 999;
  cursor: pointer;
  border: 1px solid #fff;
  border-radius: 50%;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eaeaea7e;
  color: #65310c;
}

.cookie-icon svg {
  fill: #f7bf3d;
}

.cookie-overlay h2 {
  font-size: 32px;
}

.cookie-overlay p {
  font-size: 16px;
  margin: 12px 0;
  flex: 1;
}

#cookie-banner {
  position: fixed;
  display: flex;
  flex-direction: column;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 24px 30px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  z-index: 9998;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  animation: slideUp 0.4s ease-out;
}

.cookie-popup-box {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 24px 30px;
  width: 100%;
  max-width: 840px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-btn {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-settings {
  overflow-y: auto;
  flex-grow: 1;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
  scrollbar-width: none;
}

.cookie-settings::-webkit-scrollbar {
  display: none;
}

.cookie-section {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookie-section_text {
  font-size: 13px;
  color: #666565;
}

.cookie-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-links {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cookie-links a {
  font-size: 14px;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  min-width: 40px;
  height: 20px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.3s;
}
.cookie-slider::before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}
.cookie-switch input:checked + .cookie-slider {
  background-color: #4caf50;
}
.cookie-switch input:checked + .cookie-slider::before {
  transform: translateX(20px);
}

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

@media (max-width: 768px) {
  .cookie-logo {
    max-width: 100px;
  }

  .cookie-overlay h2 {
    font-size: 16px;
    text-align: center;
  }

  .cookie-overlay p {
    font-size: 11px;
  }

  .cookie-btn {
    font-size: 12px;
  }

  .cookie-row {
    flex-direction: column;
    margin-bottom: 0px;
    gap: 20px;
  }

  .cookie-row a {
    font-size: 12px;
    white-space: nowrap;
  }

  .cookie-popup-box {
    max-height: 95%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    animation: slideUp 0.4s ease-out;
    gap: 0;
    padding: 20px;
  }

  .cookie-popup-box .cookie-links {
    margin-bottom: 15px;
  }

  #cookie-banner {
    padding: 20px;
  }

  .cookie-links {
    justify-content: center;
    row-gap: 10px;
  }

  .cookie-link {
    font-size: 12px;
  }

  .cookie-section h4 {
    font-size: 14px;
  }

  .cookie-section_text {
    font-size: 11px;
  }
}
