/**
 * Cookie Consent Management System - Styles
 * 
 * @package ConsentManager
 * @version 1.0.0
 */
/* Reset and Base Styles */
.consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
.consent-modal {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  animation: scaleIn 0.3s ease forwards;
}
@keyframes scaleIn {
  to {
    transform: scale(1);
  }
}
/* RTL Support */
.consent-modal[dir="rtl"] {
  text-align: right;
}
.consent-modal[dir="rtl"] .consent-checkbox-wrapper {
  flex-direction: row-reverse;
}
/* Header */
.consent-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
}
.consent-language-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}
.consent-modal[dir="rtl"] .consent-language-toggle {
  right: auto;
  left: 16px;
}
.consent-lang-btn {
  padding: 4px 12px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.2s;
}
.consent-lang-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}
.consent-lang-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
}
.consent-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 80px 12px 0;
  line-height: 1.3;
}
.consent-modal[dir="rtl"] .consent-title {
  margin: 0 0 12px 80px;
}
.consent-description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}
.consent-learn-more {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}
.consent-learn-more:hover {
  text-decoration: underline;
}
/* Body */
.consent-body {
  padding: 24px;
}
.consent-category {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}
.consent-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.consent-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.consent-category-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}
.consent-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.consent-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  accent-color: #3b82f6;
}
.consent-checkbox:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.consent-checkbox:checked {
  background: #3b82f6;
  border-color: #3b82f6;
}
.consent-always-active {
  font-size: 12px;
  color: #059669;
  font-weight: 600;
  background: #d1fae5;
  padding: 4px 10px;
  border-radius: 12px;
}
.consent-category-description {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}
/* Footer */
.consent-footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.consent-btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.consent-btn-primary {
  background: #3b82f6;
  color: #ffffff;
}
.consent-btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.consent-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}
.consent-btn-secondary:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}
.consent-btn-outline {
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
}
.consent-btn-outline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}
/* Manage Cookies Link */
.consent-manage-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0.5rem;
}
.consent-manage-link:hover {
  transform: scale(1.1);
}
.consent-manage-link svg {
  color: #333;
}
a#consent-manage-link>img {
  width: 100%;
  height: 100%;
  margin: 0 auto;
}
/* Toast Notification */
.consent-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111827;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000000;
  opacity: 0;
  transition: all 0.3s;
}
.consent-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
/* Responsive Design */
@media (max-width: 640px) {
  .consent-modal {
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    max-height: 85vh;
  }
  .consent-title {
    font-size: 20px;
    margin-right: 60px;
  }
  .consent-modal[dir="rtl"] .consent-title {
    margin-left: 60px;
    margin-right: 0;
  }
  .consent-footer {
    flex-direction: column;
  }
  .consent-btn {
    width: 100%;
    min-width: auto;
  }
  .consent-manage-link {
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
  }
}
/* Accessibility */
.consent-checkbox:focus,
.consent-btn:focus,
.consent-lang-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
/* Loading State */
.consent-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* Smooth Scrollbar */
.consent-modal::-webkit-scrollbar {
  width: 8px;
}
.consent-modal::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.consent-modal::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}
.consent-modal::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}