/* Cookie Consent Modal Styles */
/* Matches the design from website-frontend CookiesModal component */

/* Modal Container */
.cookie-consent-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cookie-consent-modal.show {
  display: flex !important;
}

/* Overlay */
.cookie-consent-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(0.8px);
}

/* Container */
.cookie-consent-modal__container {
  position: relative;
  width: 100%;
  max-width: 670px;
  max-height: 95vh;
  overflow-y: auto;
  z-index: 10001;
}

/* Content Box */
.cookie-consent-modal__content {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.1);
  position: relative;
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

/* Close Button (Reject All) */
.cookie-consent-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: #c4c4c4;
  font-family: "Sharp Sans No1 Book", Arial, sans-serif;
  font-size: 14px;
  padding: 8px;
  transition: color 0.2s ease;
  z-index: 10002;
}

.cookie-consent-modal__close:hover {
  color: #666666;
}

.cookie-consent-modal__close svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  flex-shrink: 0;
}

.cookie-consent-modal__close:hover svg {
  opacity: 1;
}

.cookie-consent-modal__close-text {
  font-weight: 500;
}

/* Cookie Icon */
.cookie-consent-modal__icon {
  margin-bottom: 8px;
}

.cookie-consent-modal__icon svg {
  width: 64px;
  height: 64px;
}

/* Header */
.cookie-consent-modal__header {
  text-align: center;
}

.cookie-consent-modal__title {
  font-family: "Sharp Sans No1 Bold", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #10141c;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Description */
.cookie-consent-modal__description {
  max-width: 540px;
}

.cookie-consent-modal__description p {
  font-family: "Sharp Sans No1 Book", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #626262;
  margin: 0;
}

.cookie-consent-modal__link {
  color: var(--color-nava, #7d9a4c);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cookie-consent-modal__link:hover {
  color: #6b8a3a;
}

/* Button Container */
.cookie-consent-modal__buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
  max-width: 480px;
  margin-top: 8px;
}

/* Base Button Styles */
.cookie-consent-modal__button {
  flex: 1;
  height: 48px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: "Sharp Sans No1", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

/* Outlined Button (Accept Only Essential) */
.cookie-consent-modal__button--outlined {
  background-color: transparent;
  color: #10141c;
  border: 2px solid #d1d5db;
}

.cookie-consent-modal__button--outlined:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.cookie-consent-modal__button--outlined:active {
  background-color: #f3f4f6;
}

/* Primary Button (Accept All) */
.cookie-consent-modal__button--primary {
  background-color: var(--color-nava, #7d9a4c);
  color: #ffffff;
  border: none;
}

.cookie-consent-modal__button--primary:hover {
  background-color: #6b8a3a;
  transform: translateY(-1px);
}

.cookie-consent-modal__button--primary:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-consent-modal {
    padding: 16px;
    align-items: flex-end;
  }

  .cookie-consent-modal__container {
    max-height: 90vh;
  }

  .cookie-consent-modal__content {
    padding: 32px 24px;
    gap: 16px;
  }

  .cookie-consent-modal__title {
    font-size: 22px;
    line-height: 28px;
  }

  .cookie-consent-modal__description p {
    font-size: 14px;
    line-height: 20px;
  }

  .cookie-consent-modal__buttons {
    flex-direction: column;
    gap: 12px;
  }

  .cookie-consent-modal__button {
    width: 100%;
    height: 48px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .cookie-consent-modal {
    padding: 8px;
  }

  .cookie-consent-modal__content {
    padding: 28px 20px;
    border-radius: 12px 12px 0 0;
  }

  .cookie-consent-modal__close {
    top: 12px;
    right: 12px;
  }

  .cookie-consent-modal__icon svg {
    width: 56px;
    height: 56px;
  }

  .cookie-consent-modal__title {
    font-size: 20px;
    line-height: 26px;
  }
}

/* Animation for modal appearance */
.cookie-consent-modal.show .cookie-consent-modal__container {
  animation: cookieModalSlideIn 0.3s ease-out;
}

.cookie-consent-modal.show .cookie-consent-modal__overlay {
  animation: cookieOverlayFadeIn 0.3s ease-out;
}

@keyframes cookieModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cookieOverlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .cookie-consent-modal.show .cookie-consent-modal__container,
  .cookie-consent-modal.show .cookie-consent-modal__overlay,
  .cookie-consent-modal__button,
  .cookie-consent-modal__close {
    animation: none;
    transition: none;
  }
}

/* Print - hide modal */
@media print {
  .cookie-consent-modal {
    display: none !important;
  }
}
