/* ============================================ */
/* COOKIE BANNER STYLES - COMPACT VERSION      */
/* Namespaced with gaf- to avoid conflicts     */
/* ============================================ */

/* Compact Cookie Banner - Side by side layout */
.gaf-cookie-banner {
  position: fixed;
  bottom: 0px;
  left: 0px;
  right: 0px;
  max-width: 100%;
  margin: 0 auto;
  background: white;
  border-radius: 0px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 20px 30px;
  z-index: 10000000000;
  animation: gaf-slideUp 0.4s ease-out;
  display: none;
}

@keyframes gaf-slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

.gaf-cookie-banner-inner { display: flex; align-items: center; gap: 30px; }
.gaf-cookie-banner-content { flex: 1; }
.gaf-cookie-banner h2 { font-size: 18px !important; font-weight: 700; color: #333; margin: 0 0 8px 0; }
.gaf-cookie-banner p { color: #666; font-size: 14px !important; line-height: 1.5; margin: 0; }
.gaf-cookie-banner p a{font-size: 14px !important;}
.gaf-cookie-banner a { color: #320bc4; text-decoration: none; font-weight: 600; transition: color 0.2s; }
.gaf-cookie-banner a:hover { color: #2830cc; text-decoration: underline; }
.gaf-cookie-banner-buttons { display: flex; gap: 10px; flex-shrink: 0; }

.gaf-cookie-btn { padding: 5px 24px; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.gaf-cookie-btn-accept {    
  color: white;
  background-color: #30c;
  border: #30c;
  border-bottom: 7px solid #492d9f;
  }

.gaf-cookie-btn-accept:hover { 
  background-color: #370fb0;
  border-bottom: 7px solid #492d9f; }
.gaf-cookie-btn-reject { background: #E0E0E0; color: #333;border-bottom: 7px solid #3333331c;}
.gaf-cookie-btn-reject:hover { background: #D0D0D0; }

/* Preferences Modal */
.gaf-cookie-modal-overlay { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  background: rgba(0, 0, 0, 0.6); 
  display: none; 
  align-items: center; 
  justify-content: center; 
  z-index: 10000000000; 
  padding: 20px; 
  animation: gaf-fadeIn 0.3s ease-out; 
}
.gaf-cookie-modal-overlay.show { display: flex; }

@keyframes gaf-fadeIn { from { opacity: 0; } to { opacity: 1; } }

.gaf-cookie-modal { 
  background: white; 
  border-radius: 12px; 
  max-width: 700px; 
  width: 100%; 
  max-height: 90vh; 
  overflow-y: auto; 
  box-shadow: 0 20px 60px rgba(0,0,0,0.3); 
  animation: gaf-modalSlideIn 0.3s ease-out; 
}

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

.gaf-modal-header { 
  padding: 25px 30px; 
  border-bottom: 1px solid #e0e0e0; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

.gaf-modal-header h2 { 
  font-size: 22px !important; 
  font-weight: 700; 
  color: #333; 
  margin: 0; 
}

.gaf-modal-close { 
  background: #f5f5f5; 
  border: none; 
  width: 32px; 
  height: 32px; 
  border-radius: 50%; 
  font-size: 20px; 
  color: #666; 
  cursor: pointer; 
  transition: all 0.2s; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

.gaf-modal-close:hover { 
  background: #e0e0e0; 
  color: #333; 
}

.gaf-modal-content { 
  padding: 30px; 
}

.gaf-privacy-intro { 
  color: #666; 
  font-size: 14px; 
  line-height: 1.6; 
  margin-bottom: 25px; 
}

.gaf-privacy-intro strong { 
  display: block; 
  color: #333; 
  font-size: 16px; 
  margin-bottom: 10px; 
}

.gaf-privacy-intro a { 
  color: #320bc4; 
  text-decoration: none; 
  font-weight: 600; 
}

.gaf-privacy-intro a:hover { 
  text-decoration: underline; 
}

/* Cookie Category Accordion */
.gaf-cookie-category { 
  background: #fff; 
  border-radius: 10px; 
  margin-bottom: 14px; 
  overflow: hidden; 
  border: 2px solid #e0e0e0; 
  transition: border-color 0.2s; 
}

.gaf-cookie-category.gaf-category-open { 
  border-color: #320bc4; 
}

.gaf-category-header { 
  padding: 18px 20px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  cursor: pointer; 
  transition: background 0.2s; 
  background: #f9f9f9;
}

.gaf-category-header:hover { 
  background: #f0f0f0; 
}

.gaf-category-title { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  flex: 1;
}

.gaf-category-title h3 { 
  font-size: 15px !important; 
  font-weight: 600; 
  color: #333; 
  margin: 0; 
}

/* Expand Icon with smooth rotation */
.gaf-expand-icon { 
  font-size: 14px !important; 
  color: #999; 
  transition: transform 0.3s ease;
  display: inline-block;
  line-height: 1;
}

.gaf-category-open .gaf-expand-icon { 
  transform: rotate(180deg); 
}

.gaf-category-controls { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  flex-shrink: 0;
}

/* Toggle Switch */
.gaf-toggle-switch { 
  position: relative; 
  width: 48px; 
  height: 26px; 
}

.gaf-toggle-switch input { 
  opacity: 0; 
  width: 0; 
  height: 0; 
}

.gaf-toggle-slider { 
  position: absolute; 
  cursor: pointer; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  background-color: #ccc; 
  transition: 0.3s; 
  border-radius: 26px; 
}

.gaf-toggle-slider:before { 
  position: absolute; 
  content: ""; 
  height: 18px; 
  width: 18px; 
  left: 4px; 
  bottom: 4px; 
  background-color: white; 
  transition: 0.3s; 
  border-radius: 50%; 
}

.gaf-toggle-switch input:checked + .gaf-toggle-slider { 
  background-color: #320bc4; 
}

.gaf-toggle-switch input:checked + .gaf-toggle-slider:before { 
  transform: translateX(22px); 
}

.gaf-toggle-switch input:disabled + .gaf-toggle-slider { 
  background-color: #b0b0b0; 
  cursor: not-allowed; 
}

.gaf-toggle-switch input:disabled + .gaf-toggle-slider:before { 
  background-color: #e0e0e0; 
}

/* Category Body - Hidden by default */
.gaf-category-body { 
  display: none;
  background: #fff;
}

/* Show when category is open */
.gaf-category-open .gaf-category-body { 
  display: block;
  animation: gaf-expandDown 0.3s ease-out;
}

@keyframes gaf-expandDown {
  from {
      opacity: 0;
      transform: translateY(-10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.gaf-category-description { 
  padding: 18px 20px; 
  color: #666; 
  font-size: 13px !important; 
  line-height: 1.6; 
  border-top: 1px solid #e0e0e0;
}

.gaf-modal-footer { 
  padding: 18px 30px; 
  border-top: 1px solid #e0e0e0; 
  background: #fafafa; 
  display: flex; 
  gap: 10px; 
  flex-wrap: wrap; 
}

.gaf-modal-footer .gaf-cookie-btn { 
  min-width: 130px; 
}

.gaf-cookie-btn-outline { 
  background: transparent; 
  color: #320bc4; 
  border: 2px solid #320bc4; 
  border-bottom: 7px solid #30c;
}

.gaf-cookie-btn-outline:hover { 
  background: #f0f1ff; 
}

.gaf-more-info-box { 
  margin-top: 25px; 
  padding: 18px; 
  background: #f0f0f0; 
  border-radius: 8px; 
}

.gaf-more-info-box strong { 
  color: #333; 
  display: block; 
  margin-bottom: 8px; 
  font-size: 14px !important; 
}

.gaf-more-info-box p { 
  margin: 0; 
  color: #666; 
  font-size: 13px !important; 
}

.gaf-more-info-box a {
  color: #320bc4;
  text-decoration: none;
  font-weight: 600;
}

.gaf-more-info-box a:hover {
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gaf-cookie-banner { 
      bottom: 0; 
      left: 0; 
      right: 0; 
      border-radius: 12px 12px 0 0; 
      padding: 20px; 
  }
  
  .gaf-cookie-banner-inner { 
      flex-direction: column; 
      gap: 20px; 
      align-items: stretch; 
  }
  
  .gaf-cookie-banner-buttons { 
      flex-direction: column; 
  }
  
  .gaf-cookie-btn { 
      width: 100%; 
  }
  
  .gaf-modal-footer { 
      flex-direction: column; 
  }
  
  .gaf-modal-footer .gaf-cookie-btn { 
      width: 100%; 
      min-width: 100%; 
  }
  
  .gaf-cookie-modal {
      margin: 10px;
      max-height: 95vh;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .gaf-cookie-banner-buttons { 
      flex-direction: column; 
  }
}


