@import url("styles-base.css");

/* Keep the source images at their natural proportions. */
img {
  height: auto;
}

.company-logo img,
.lewin-home img,
.aio-sign,
.lewin-claim img,
.footer-aio-logo,
.isc-link img {
  height: auto;
  object-fit: contain;
}

.footer-person img {
  width: min(100%, 240px);
  max-width: 240px;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.contact-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.slide-picture {
  display: grid;
  align-items: center;
  background: #fff;
}

.slide-picture img,
.detail-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.detail-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cookie-notice {
  position: fixed;
  z-index: 500;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.9rem 1rem;
  color: #eef1f2;
  background: rgba(22, 27, 30, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-notice.is-hiding {
  opacity: 0;
  transform: translateY(100%);
}

.cookie-notice-content {
  width: min(var(--page), calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-notice strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #fff;
  font-size: 0.94rem;
}

.cookie-notice p {
  max-width: 850px;
  margin: 0;
  color: #d4dadd;
  font-size: 0.8rem;
  line-height: 1.5;
}

.cookie-notice-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
}

.cookie-notice-actions a,
.cookie-notice-actions button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 3px;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.cookie-notice-actions a {
  background: #30383c;
}

.cookie-notice-actions button {
  border-color: var(--blue);
  background: var(--blue);
  cursor: pointer;
}

.cookie-notice-actions a:hover,
.cookie-notice-actions a:focus-visible,
.cookie-notice-actions button:hover,
.cookie-notice-actions button:focus-visible {
  border-color: #fff;
  outline: 2px solid transparent;
  filter: brightness(1.1);
}

@media (max-width: 820px) {
  .footer-person img {
    width: min(100%, 280px);
    max-width: 280px;
  }
}

@media (max-width: 700px) {
  .cookie-notice {
    padding: 0.85rem 0.25rem;
  }

  .cookie-notice-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .cookie-notice-actions {
    width: 100%;
  }

  .cookie-notice-actions a,
  .cookie-notice-actions button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-notice {
    transition: none;
  }
}
