/* Cookie Banner Styles */
.rs-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem;
  animation: rsCookieSlideUp 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.rs-cookie-container {
  max-width: 1200px;
  margin: 0 auto;
}

.rs-cookie-content {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 245, 255, 0.1);
}

.rs-cookie-header {
  margin-bottom: 1.5rem;
}

.rs-cookie-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #00f5ff;
  margin-bottom: 0.75rem;
}

.rs-cookie-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}

.rs-cookie-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 800px;
}

.rs-cookie-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Cookie Buttons */
.rs-cookie-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.rs-cookie-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rs-cookie-btn:hover::before {
  opacity: 1;
}

.rs-cookie-btn-settings {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.rs-cookie-btn-settings:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 245, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 245, 255, 0.2);
}

.rs-cookie-btn-essential {
  background: rgba(255, 107, 53, 0.2);
  color: #ff6b35;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.rs-cookie-btn-essential:hover {
  background: rgba(255, 107, 53, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.rs-cookie-btn-accept,
.rs-cookie-btn-accept-modal {
  background: linear-gradient(135deg, #00f5ff 0%, #7c3aed 100%);
  color: white;
  position: relative;
}

.rs-cookie-btn-accept:hover,
.rs-cookie-btn-accept-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 30px rgba(0, 245, 255, 0.4);
}

.rs-cookie-btn-save {
  background: rgba(124, 58, 237, 0.2);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.rs-cookie-btn-save:hover {
  background: rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(124, 58, 237, 0.3);
}

/* Cookie Modal */
.rs-cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.rs-cookie-modal.active {
  display: flex;
}

.rs-cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.rs-cookie-modal-content {
  position: relative;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: rsCookieModalIn 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 245, 255, 0.1);
}

@keyframes rsCookieModalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.rs-cookie-modal-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(0, 245, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rs-cookie-modal-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #00f5ff;
  text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.rs-cookie-modal-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.rs-cookie-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 245, 255, 0.4);
  transform: rotate(90deg);
}

.rs-cookie-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.rs-cookie-intro {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Cookie Categories */
.rs-cookie-category {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 245, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.rs-cookie-category:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 245, 255, 0.2);
  box-shadow: 0 5px 20px rgba(0, 245, 255, 0.1);
}

.rs-cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.rs-cookie-category-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.25rem;
}

.rs-cookie-category-header p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Toggle Switch */
.rs-cookie-toggle-wrapper {
  position: relative;
}

.rs-cookie-checkbox {
  display: none;
}

.rs-cookie-toggle {
  position: relative;
  display: block;
  width: 52px;
  height: 28px;
  cursor: pointer;
  user-select: none;
}

.rs-cookie-toggle-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rs-cookie-toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.rs-cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.rs-cookie-checkbox:checked + .rs-cookie-toggle .rs-cookie-toggle-slider {
  background: linear-gradient(135deg, #00f5ff, #7c3aed);
}

.rs-cookie-checkbox:checked + .rs-cookie-toggle .rs-cookie-toggle-slider::before {
  transform: translateX(24px);
}

.rs-cookie-details {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Modal Footer */
.rs-cookie-modal-footer {
  padding: 2rem;
  border-top: 1px solid rgba(0, 245, 255, 0.1);
}

.rs-cookie-footer-info {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.rs-cookie-footer-info a {
  color: #00f5ff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.rs-cookie-footer-info a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.rs-cookie-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
  .rs-cookie-content {
    padding: 1.5rem;
  }
  
  .rs-cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .rs-cookie-btn {
    width: 100%;
    justify-content: center;
  }
  
  .rs-cookie-modal-content {
    margin: 1rem;
  }
  
  .rs-cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .rs-cookie-toggle-wrapper {
    align-self: flex-end;
  }
  
  .rs-cookie-modal-actions {
    flex-direction: column;
  }
  
  .rs-cookie-modal-actions .rs-cookie-btn {
    width: 100%;
  }
}

/* Focus styles for accessibility */
.rs-cookie-btn:focus,
.rs-cookie-toggle:focus,
.rs-cookie-modal-close:focus {
  outline: 2px solid #00f5ff;
  outline-offset: 2px;
}