/* MochiBits Custom Cookie Consent - Modern 2025 Design */

/* Hide the default cookieconsent */
.cc-window {
  display: none !important;
}

/* Custom Cookie Consent Banner */
.mochibits-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(28, 28, 30, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mochibits-cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #007AFF, #0056b3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}

.cookie-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-title {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.cookie-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.cookie-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-links a {
  color: #007AFF;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cookie-links a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
  font-family: inherit;
}

.cookie-btn-accept {
  background: #007AFF;
  color: white;
}

.cookie-btn-accept:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

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

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-settings {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
}

.cookie-btn-settings:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .mochibits-cookie-banner {
    padding: 16px;
  }
  
  .cookie-content {
    flex-direction: column;
    gap: 16px;
  }
  
  .cookie-icon {
    width: 40px;
    height: 40px;
    align-self: flex-start;
  }
  
  .cookie-title {
    font-size: 16px;
  }
  
  .cookie-description {
    font-size: 13px;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: stretch;
  }
  
  .cookie-btn {
    flex: 1;
    text-align: center;
    min-width: 0;
  }
  
  .cookie-btn-settings {
    flex: 0;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .cookie-content {
    gap: 12px;
  }
  
  .cookie-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .cookie-btn {
    width: 100%;
    flex: none;
  }
  
  .cookie-links {
    justify-content: center;
  }
}

/* Smooth entrance animation */
@keyframes slideInFromBottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mochibits-cookie-banner.animate-in {
  animation: slideInFromBottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Focus states for accessibility */
.cookie-btn:focus {
  outline: 2px solid #007AFF;
  outline-offset: 2px;
}

.cookie-links a:focus {
  outline: 2px solid #007AFF;
  outline-offset: 2px;
  border-radius: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .mochibits-cookie-banner {
    background: #000;
    border-top-color: #fff;
  }
  
  .cookie-btn-reject {
    border-color: #fff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .mochibits-cookie-banner {
    transition: none;
  }
  
  .cookie-btn {
    transition: none;
  }
  
  .mochibits-cookie-banner.animate-in {
    animation: none;
  }
}