/* .overlay-wrapper:not(:empty) ~ .website-wrapper {
  height: 100vh;
  overflow: hidden;
} */

.overlay {
  position: fixed;
  /* background-color: #fff; */
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  /* height: -webkit-fill-available; */
  z-index: 1099;
}

.overlay .mfp-close {
  opacity: 1;
  color: #fff;
}

.overlay .mfp-close:hover {
  opacity: .7;
}

.overlay .form-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100%;
  justify-content: center;
  align-items: center;
  /* padding: 1rem 0; */
  background: rgba(0, 0, 0, .7);
}

.overlay .form-content {
  position: relative;
  min-width: 300px;
  width: 100%;
  min-height: 100%;
  padding: 1rem 1.5rem;
  background-color: #fff;
  border-radius: 1px;
}

@media screen and (min-width: 500px) {
  .overlay .form-content {
    max-width: 500px;
    width: auto;
    height: 100%;
  }
}

.button {
  display: block;
}

.overlay .form-content p {
  margin: 0;
  padding: 0;
}

.overlay .form-content .notice {
  margin: 1rem 0;
}

.overlay .form-content .heading {
  color: #000000;
  font-size: 1.5rem;
  font-weight: 600;
  /* line-height: 1.5em; */
  text-shadow: 0px 0px 10px #ffffff;
}

.overlay .form-content .input-wrapper:not(:first-child) {
  margin-top: .5rem;
}

.single_add_to_cart_button.added, .button.added, .single_add_to_cart_button:has(.added), .button:has(.added) {
  /* background-color: #777; */
  filter: grayscale(1);
  opacity: .75;
  /* color: #eee; */
}

.single_add_to_cart_button.loading:after {
  border-color: #ccc;
  border-left-color: #000;
}

input.hidden {
  display: none;
}

.loadable {
  position: relative;
}

.loadable.loading:after {
  border-color: #ccc;
  border-left-color: #000;
  opacity: 1;
  transition: opacity .25s ease;
  animation: wd-rotate 450ms infinite linear;
}

.loadable.loading > * {
  opacity: .2;
}

.loadable:after {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -9px;
  margin-left: -9px;
  opacity: 0;
  transition: opacity 0s ease;
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-left-color: #fff;
  border-radius: 50%;
  vertical-align: middle;
}

.hint-text {
  text-transform: none;
  font-weight: lighter;
  font-size: .75rem;
}

/* Disable default cart form */
form.cart {
  width: 0;
  height: 0;
  display: none;
  visibility: hidden;
  overflow: hidden;
}

.add-to-cart {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dropdown-content, .dropdown-content * {
  z-index: 99;
  position: relative;
}

.dropdown {
  position: relative;
  display: block;
  overflow: visible;
}

@media screen and (max-width: 740px) {
  .dropdown .single_add_to_cart_button {
    width: 100%;
  }
  
  .add-to-cart .button {
    width: 100%;
    /* justify-content: center; */
  }
}

.dropdown-content {
  display: none;
  /* display: block; */
  position: absolute;
  min-width: 200px;
  max-width: 600px;
  width: auto;
  /* left: 0; */
  right: 0;
  z-index: 999;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  padding: 1rem 1.5rem;

  overflow: hidden;
  overflow-wrap: break-word;
}

button.icon, .button.icon {
  padding: .75rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  font-size: 1rem;
}

.dropdown-content .button {
  flex-direction: column;
  z-index: 999;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.person-details {
  text-transform: none;
  font-weight: normal;
}

#related-persons-form .hint {
  text-align: center;
}

.person-list:not(:empty) + .notice[data-topic="no-persons-data"] {
  display: none;
}

.person-list:empty +.notice[data-topic="hint"] {
  display: none;
}

.dropdown-item {
  display: block;
}

.dropdown-item * {
  user-select: none;
}

.person.dropdown-item {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.person.dropdown-item:not(:first-child) {
  margin-top: .5rem;
}

.person.dropdown-item input[type="checkbox"] {
  display: none;
}

.person.dropdown-item label {
  display: block;
  flex-grow: 1;
}

.single_add_to_cart_button.light {
  background-color: #F3F3F3;
  color: #3E3E3E;
}

.single_add_to_cart_button.light.loading:after {
  border-color: rgba(0, 0, 0, 0.3);
  border-left-color: #000;
}

.person.dropdown-item button.icon {
  flex-grow: 0;
  margin-left: .5rem;
  background-color: transparent;
}

.person.dropdown-item label.added {
  background-color: var(--btn-shop-bgcolor);
  color: var(--btn-shop-color);
}

.person.dropdown-item span {
  display: inline-block;
  text-align: left;
}

.action-list {
  margin-top: 1rem;
}

.form-content input[type="text"] + span {
  display: block;
}

/* 
form.cart .single_add_to_cart_button {
  width: 100%;
  margin-left: 0 !important;
} */
