/* =====================================================
   COOKIES CONSENT BANNER
   ===================================================== */

.cookies-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookies-consent-banner.show {
  transform: translateY(0);
}

.cookies-consent-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookies-consent-text {
  flex: 1 1 auto;
  min-width: 280px;
}

.cookies-consent-text h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookies-consent-text h4 i {
  font-size: 24px;
  color: #FFB41D;
}

.cookies-consent-text p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

.cookies-consent-text a {
  color: #004ECC;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cookies-consent-text a:hover {
  color: #0066ff;
}

.cookies-consent-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.cookies-btn {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cookies-btn-accept {
  background: #004ECC;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 78, 204, 0.2);
}

.cookies-btn-accept:hover {
  background: #0066ff;
  box-shadow: 0 6px 16px rgba(0, 78, 204, 0.3);
  transform: translateY(-1px);
}

.cookies-btn-decline {
  background: transparent;
  color: #666;
  border: 2px solid #ddd;
}

.cookies-btn-decline:hover {
  background: #f5f5f5;
  border-color: #999;
  color: #333;
}

.cookies-btn-settings {
  background: transparent;
  color: #004ECC;
  border: 2px solid #004ECC;
}

.cookies-btn-settings:hover {
  background: #004ECC;
  color: #ffffff;
}

/* Cookie Icon Animation */
@keyframes cookieBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.cookies-consent-banner.show .cookies-consent-text h4 i {
  animation: cookieBounce 1s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 767px) {
  .cookies-consent-banner {
    padding: 16px 0;
  }

  .cookies-consent-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookies-consent-text {
    min-width: 100%;
    text-align: center;
  }

  .cookies-consent-text h4 {
    font-size: 16px;
    justify-content: center;
  }

  .cookies-consent-text p {
    font-size: 13px;
  }

  .cookies-consent-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .cookies-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .cookies-consent-banner {
    padding: 12px 0;
  }

  .cookies-consent-text h4 {
    font-size: 15px;
  }

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

  .cookies-btn {
    padding: 12px 18px;
  }
}

/* Settings Modal */
.cookies-settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookies-settings-modal.show {
  display: flex;
}

.cookies-settings-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookies-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.cookies-settings-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.cookies-settings-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cookies-settings-close:hover {
  background: #f5f5f5;
  color: #333;
}

.cookie-category {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #004ECC;
}

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

.cookie-category-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

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

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

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.cookie-toggle input:checked+.cookie-toggle-slider {
  background-color: #004ECC;
}

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

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

.cookie-category p {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  margin: 0;
}

.cookie-category.required {
  border-left-color: #28a745;
}

.cookies-settings-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.cookies-settings-actions .cookies-btn {
  flex: 1;
}

@media (max-width: 576px) {
  .cookies-settings-content {
    padding: 20px;
  }

  .cookies-settings-header h3 {
    font-size: 18px;
  }

  .cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cookies-settings-actions {
    flex-direction: column;
  }
}