.cookies-modal {
  display: block;
  position: fixed;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  z-index: 70;
  opacity: 1;
  animation: none;
  pointer-events: none;
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.cookies-modal.show-cookies-modal {
  display: block;
  align-items: stretch;
  height: auto;
  background: transparent;
  opacity: 1;
  animation: none;
  transform: translateY(0);
}

.cookies-modal .cookies-owerlay {
  pointer-events: auto;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 12px 28px;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 -8px 28px rgb(0 0 0 / 0.14);
  transform: none;
  animation: none;
}

.cookies-modal .modal-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 28px;
  width: 100%;
  height: auto;
  padding: 0;
}

.cookies-modal .modal-header {
  min-width: 0;
}

.cookies-modal .modal-header-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.cookies-modal .cookie-lead {
  display: none;
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.cookies-modal.is-expanded .cookie-lead {
  display: block;
}

.cookies-modal.is-expanded .modal-content {
  grid-template-columns: 1fr;
}

.cookies-modal.is-expanded .modal-actions {
  justify-content: space-between;
  width: 100%;
}

.cookies-modal .modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: auto;
  margin: 0;
}

.cookies-modal .modal-action-more-info {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.cookies-modal .modal-action-more-info a {
  font-size: 14px;
  white-space: nowrap;
}

.cookies-modal .modal-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.cookies-modal .modal-buttons button,
.cookies-modal .accept-all,
.cookies-modal .reject-all {
  width: auto;
  margin: 0;
  padding: 8px 14px;
  white-space: nowrap;
}

.cookies-modal .modal-details,
.cookies-modal .show-modal-details {
  display: none;
}

@media screen and (max-width: 768px) {
  .cookies-modal .cookies-owerlay {
    width: 100%;
    max-height: none;
    margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
  }

  .cookies-modal .modal-content {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cookies-modal .modal-header-title {
    font-size: 14px;
  }

  .cookies-modal .cookie-lead {
    font-size: 13px;
  }

  .cookies-modal .modal-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .cookies-modal .modal-action-more-info {
    gap: 10px;
  }

  .cookies-modal .modal-action-more-info a {
    font-size: 13px;
  }

  .cookies-modal .modal-buttons {
    flex-direction: row;
    width: auto;
    gap: 6px;
  }

  .cookies-modal .modal-buttons button,
  .cookies-modal .accept-all,
  .cookies-modal .reject-all {
    width: auto;
    padding: 7px 10px;
    font-size: 13px;
  }
}
