/* ===================================
   GDPR-COMPLIANT Cookie Consent Banner
   Version: 2.2 - FIXED (Smaller fonts + Modal fixes)
   =================================== */

/* Main Cookie Banner - Smaller, More Compact */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  z-index: 99999;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              opacity 0.6s ease;
  border-top: 2px solid #C51230;
}

.cookie-consent-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* Banner Content - More Compact */
.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Cookie Text - Smaller Fonts */
.cookie-consent-text {
  flex: 1;
}

.cookie-consent-text h3 {
  font-family: "Switzer-Medium", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #171428;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.cookie-consent-text p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(23, 20, 40, 0.8);
  margin: 0;
}

/* Cookie Buttons - Smaller */
.cookie-consent-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Switzer-Medium", Arial, sans-serif;
  text-align: center;
  white-space: nowrap;
  min-width: 120px;
}

/* Button Styles - Equal Prominence */
.cookie-btn-accept {
  background: #fff;
  color: #171428;
  border-color: #C51230;
}

.cookie-btn-accept:hover {
  background: #C51230;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 18, 48, 0.3);
}

.cookie-btn-reject {
  background: #fff;
  color: #171428;
  border-color: #666;
}

.cookie-btn-reject:hover {
  background: #666;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 102, 102, 0.3);
}

.cookie-btn-customise {
  background: #fff;
  color: #171428;
  border-color: #e4e6ea;
}

.cookie-btn-customise:hover {
  border-color: #C51230;
  color: #C51230;
  background: rgba(197, 18, 48, 0.05);
  transform: translateY(-2px);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.cookie-modal-content {
  position: relative;
  max-width: 650px;
  width: 90%;
  max-height: 80vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
  transform: scale(1);
}

/* Modal Header - Smaller */
.cookie-modal-header {
  background: linear-gradient(135deg, #C51230 0%, #8B0000 100%);
  padding: 16px 20px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h2 {
  font-family: "Switzer-Medium", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.cookie-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 20px;
  line-height: 1;
}

.cookie-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Modal Body - Smaller Fonts, Scrollable */
.cookie-modal-body {
  padding: 20px;
  max-height: calc(80vh - 140px);
  overflow-y: auto;
}

.cookie-modal-body > p {
  font-size: 13px;
  color: rgba(23, 20, 40, 0.8);
  margin-bottom: 16px;
  line-height: 1.6;
}

.cookie-modal-body::-webkit-scrollbar {
  width: 6px;
}

.cookie-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.cookie-modal-body::-webkit-scrollbar-thumb {
  background: #C51230;
  border-radius: 10px;
}

.cookie-modal-body::-webkit-scrollbar-thumb:hover {
  background: #a00e28;
}

/* Cookie Category - Smaller */
.cookie-category {
  margin-bottom: 14px;
  padding: 14px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #e4e6ea;
  transition: all 0.3s ease;
}

.cookie-category:hover {
  border-color: rgba(197, 18, 48, 0.3);
  box-shadow: 0 2px 8px rgba(197, 18, 48, 0.08);
}

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

.cookie-category-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-category-title strong {
  font-family: "Switzer-Medium", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #171428;
}

.cookie-icon {
  font-size: 18px;
}

.cookie-category-description {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(23, 20, 40, 0.7);
  margin: 0 0 8px 0;
}

.cookie-category-info {
  font-size: 11px;
  color: rgba(23, 20, 40, 0.6);
  margin: 0 0 6px 0;
}

.cookie-category-examples {
  font-size: 11px;
  color: rgba(23, 20, 40, 0.6);
  margin: 0;
}

/* Cookie Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

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

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

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: transform 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-switch input:checked + .cookie-slider {
  background: linear-gradient(135deg, #C51230 0%, #8B0000 100%);
}

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

.cookie-switch input:disabled + .cookie-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Modal Footer - Smaller */
.cookie-modal-footer {
  padding: 16px 20px;
  background: #fafafa;
  border-top: 1px solid #e4e6ea;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-modal-footer .cookie-btn {
  flex: 1;
  min-width: 140px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .cookie-consent-buttons {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    min-width: 100%;
  }
}

@media (max-width: 767px) {
  .cookie-consent-banner {
    padding: 14px 16px;
  }

  .cookie-consent-text h3 {
    font-size: 15px;
  }

  .cookie-consent-text p {
    font-size: 12px;
  }

  .cookie-modal-content {
    width: 95%;
    max-height: 85vh;
  }

  .cookie-modal-header {
    padding: 14px 16px;
  }

  .cookie-modal-header h2 {
    font-size: 16px;
  }

  .cookie-modal-body {
    padding: 16px;
    max-height: calc(85vh - 120px);
  }

  .cookie-category {
    padding: 12px;
    margin-bottom: 12px;
  }

  .cookie-modal-footer {
    padding: 14px 16px;
    flex-direction: column;
  }

  .cookie-modal-footer .cookie-btn {
    width: 100%;
  }
}

/* Prevent body scroll when modal is open */
body.cookie-modal-open {
  overflow: hidden;
}