/* Cookie Consent Popup Styles */

.cookie-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-consent-overlay.show {
  display: block;
  opacity: 1;
}

.cookie-consent-popup {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -5px 40px rgba(0, 0, 0, 0.3);
  z-index: 999999;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 40px;
}

.cookie-consent-popup.show {
  bottom: 0;
}

.cookie-consent-header {
  margin-bottom: 25px;
}

.cookie-consent-header h2 {
  font-size: 28px;
  font-weight: 600;
  color: #111111;
  margin: 0 0 15px 0;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.cookie-consent-content {
  margin-bottom: 30px;
}

.cookie-consent-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
  margin: 0 0 15px 0;
}

.cookie-consent-content a {
  color: #4a90a4;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-consent-content a:hover {
  color: #357082;
}

.cookie-consent-notice {
  font-size: 14px;
  color: #888888;
  margin: 20px 0;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 6px;
}

.cookie-consent-groups {
  margin: 25px 0;
}

.cookie-group {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.cookie-group:hover {
  border-color: #4a90a4;
}

.cookie-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #fafafa;
  cursor: pointer;
  user-select: none;
}

.cookie-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.cookie-group-title h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111111;
  margin: 0;
  letter-spacing: 0.3px;
}

.cookie-group-title .badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: #e8e8e8;
  color: #555555;
  font-weight: 500;
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  background: #cccccc;
  border-radius: 13px;
  transition: background 0.3s ease;
  cursor: pointer;
}

.cookie-toggle.active {
  background: #4a90a4;
}

.cookie-toggle.disabled {
  background: #4a90a4;
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle.active::after {
  transform: translateX(24px);
}

.cookie-group-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.cookie-group.expanded .cookie-group-content {
  padding: 0 20px 20px 20px;
  max-height: 300px;
}

.cookie-group-description {
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
  margin: 0;
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.cookie-button {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-family: inherit;
}

.cookie-button-primary {
  background: #4a90a4;
  color: white;
}

.cookie-button-primary:hover {
  background: #357082;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 164, 0.3);
}

.cookie-button-secondary {
  background: white;
  color: #4a90a4;
  border: 2px solid #4a90a4;
}

.cookie-button-secondary:hover {
  background: #f0f8fa;
  transform: translateY(-2px);
}

.cookie-button-tertiary {
  background: #f5f5f5;
  color: #555555;
}

.cookie-button-tertiary:hover {
  background: #e8e8e8;
}

.cookie-settings-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 14px;
  color: #4a90a4;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cookie-settings-link:hover {
  color: #357082;
  text-decoration: underline;
}

.cookie-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.cookie-footer-links a {
  font-size: 14px;
  color: #888888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cookie-footer-links a:hover {
  color: #4a90a4;
}

.cookie-footer-links span {
  color: #cccccc;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .cookie-consent-popup {
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 30px 20px;
    max-height: 90vh;
  }

  .cookie-consent-header h2 {
    font-size: 24px;
  }

  .cookie-consent-content p {
    font-size: 14px;
  }

  .cookie-group-header {
    padding: 15px;
  }

  .cookie-group-title h3 {
    font-size: 16px;
  }

  .cookie-buttons {
    gap: 10px;
  }

  .cookie-button {
    padding: 14px 20px;
    font-size: 15px;
  }
}

@media screen and (max-width: 480px) {
  .cookie-consent-popup {
    padding: 25px 15px;
  }

  .cookie-consent-header h2 {
    font-size: 20px;
  }

  .cookie-footer-links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .cookie-footer-links span {
    display: none;
  }
}

/* Animation for smooth appearance */
@keyframes slideUp {
  from {
    bottom: -100%;
  }
  to {
    bottom: 0;
  }
}

/* Scrollbar styling for popup */
.cookie-consent-popup::-webkit-scrollbar {
  width: 8px;
}

.cookie-consent-popup::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.cookie-consent-popup::-webkit-scrollbar-thumb {
  background: #4a90a4;
  border-radius: 4px;
}

.cookie-consent-popup::-webkit-scrollbar-thumb:hover {
  background: #357082;
}

