.is_cookies_modal_desc {
  padding: 10px;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  margin-top: 10px;
  background-color: #f9f9f9;
}

.is_cookies_modal_desc p {
  margin-bottom: 10px;
}

.cookies-modal-modal-body p {
  color: var(--paragraph-color) !important;
}

.cookies-button__action {
  background-color: var(--button-color);
  border-color: var(--button-color);
  color: #fff !important;
}

.cookies-button__action a.wp-block-button__link.wp-element-button {
  color: white !important;
}

@media (max-width: 600px) {
  .modal-body .wp-block-gallery .wp-block-image:nth-child(3) {
    display: none !important;
  }
}

.modal-window {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  pointer-events: auto;
  transition: all 0.3s;
}

.modal-window:target {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal-window > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: calc(70vh - 40px);
  overflow-x: hidden;
  padding: 1.5em;
  background: white;
  border: 1px solid #888;
  margin: 1em;
}
.modal-window[data-width="400px"] > div {
  width: 400px;
}
.modal-window[data-width="600px"] > div {
  width: 600px;
}
.modal-window[data-width="800px"] > div {
  width: 800px;
}

.modal-window.aside > div {
  top: auto;
  left: auto;
  transform: none;
  bottom: 0px;
}

.modal-window.bottom-right > div {
  position: absolute;
  right: 20px;
  bottom: 20px;
  top: auto;
  left: auto;
  transform: none;
}

.modal-window__edit {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.3s;
  visibility: visible;
  &:target {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  & > div {
    position: relative;
    padding: 2em;
    background: white;
    border: 1px solid #888;
  }
  &[data-width="400px"] > div {
    width: 400px;
  }
  &[data-width="600px"] > div {
    width: 600px;
  }
  &[data-width="800px"] > div {
    width: 800px;
  }
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: transparent;
}

.modal-body {
  padding: 0 2em 0 0.5em;
}

.modal-close__edit {
  color: #aaa !important;
  font-size: 2em;
  font-weight: 600;
  position: absolute;
  right: 0.5em;
  text-align: right;
  top: 0px;
}

a.modal-close__edit:hover {
  color: #7d7d7d !important;
}

.the-lawrence-top {
  top: -20px;
}

.the-lawrence-sites-top {
  top: 0px;
}

a.modal-close.cookies-modal-top {
  top: -1rem;
  font-weight: 900;
}

.custom__modal[data-theme-name="cookies-modal"] .modal-overlay {
  pointer-events: none;
}

.custom__modal[data-theme-name="cookies-modal"] .modal-content {
  pointer-events: auto;
}

.modal-close {
  color: #aaa !important;
  font-size: 3em;
  font-weight: 600;
  position: absolute;
  right: 0em;
  text-align: right;
}

.modal-close:hover {
  color: #7d7d7d !important;
}

.front__component-button {
  font-size: 13px;
  align-items: center;
  background: none;
  border: 0;
  border-radius: 2px;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-weight: 400;
  height: 36px;
  margin: 0;
  padding: 6px 12px;
}

.modal-footer {
  margin-top: 2rem;
}

.is-button__primary {
  color: #fff !important;
  outline: 1px solid transparent;
  text-decoration: none;
  text-shadow: none;
  white-space: nowrap;
}

.custom__modal a {
  text-decoration: none !important;
  color: inherit;
}

.custom__modal a:hover {
  color: inherit;
  text-decoration: none;
}

.interior {
  display: flex;
  align-items: center;
}

.custom-button {
  color: #fff !important;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

.custom-button__front {
  color: #fff !important;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 0px !important;
}

.custom-button__front:hover {
  font-weight: bold;
}

.modal-window {
  & > div {
    border-radius: 0.3rem;
  }
}

.custom-link {
  cursor: pointer;
}

.custom-link:hover {
  font-weight: bold;
}

.text__align__center {
  text-align: center;
}

.the-lawrence-modal-body iframe {
  margin-left: -3vw;
  margin-bottom: -15vh;
}

@media (max-width: 950px) {
  .modal-window:not(.aside)[data-width="400px"] > div {
    width: 40%;
  }
  .modal-window[data-width="600px"] > div {
    width: 50%;
  }
  .modal-window[data-width="800px"] > div {
    width: 60%;
  }

  .the-lawrence-modal-body iframe {
    margin-left: 0px;
  }
}

@media (max-width: 700px) {
  .modal-window:not(.aside)[data-width="400px"] > div {
    width: 60%;
  }
  .modal-window[data-width="600px"] > div {
    width: 70%;
  }
  .modal-window[data-width="800px"] > div {
    width: 80%;
  }
}

@media (max-width: 500px) {
  .modal-window:not(.aside)[data-width="400px"] > div {
    width: 70%;
  }
  .modal-window[data-width="600px"] > div {
    width: 70%;
  }

  .modal-window.aside[data-width="400px"] > div {
    width: 80%;
  }
}

@media (max-width: 350px) {
  .modal-window:not(.aside)[data-width="400px"] > div {
    width: 60%;
  }
  .modal-window[data-width="600px"] > div {
    width: 60%;
  }
  .modal-window[data-width="800px"] > div {
    width: 60%;
  }
}
