/* Shared close control for every site dialog, including the cookie settings plugin. */
.modal-close-button {
  align-items: center !important;
  appearance: none;
  background: #f5f7f8 !important;
  border: 1px solid #d8e0e3 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  color: #314952 !important;
  cursor: pointer;
  display: inline-flex !important;
  flex: 0 0 40px;
  height: 40px !important;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease !important;
  width: 40px !important;
}

.modal-close-button:hover {
  background: #e8edef !important;
  border-color: #f6a800 !important;
  color: #182f38 !important;
}

.modal-close-button:focus-visible,
.modal-close-button.focus-g {
  background: #fff !important;
  border-color: #f6a800 !important;
  box-shadow: 0 0 0 3px rgb(246 168 0 / 45%) !important;
  outline: 2px solid #8a5e00 !important;
  outline-offset: 2px !important;
}

.modal-close-button__icon {
  display: block !important;
  flex: none;
  height: 20px !important;
  pointer-events: none;
  width: 20px !important;
}

/* Override the exported cookie plugin's oversized, offset close control. */
#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-close.modal-close-button {
  font-size: 0 !important;
  line-height: 1 !important;
  position: absolute;
  right: 22px !important;
  top: 22px !important;
  z-index: 99;
}

#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-close .modal-close-button__icon {
  background: none !important;
  border: 0 !important;
  color: inherit !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
}

@media (max-width: 600px) {
  .modal-close-button {
    flex-basis: 44px;
    height: 44px !important;
    width: 44px !important;
  }

  #moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-close.modal-close-button {
    right: 14px !important;
    top: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-close-button {
    transition: none !important;
  }
}
