:root {
  /* Modal Widths */
  --mc-modal-width-xs: 20em;
  --mc-modal-width-sm: 33.75em;
  --mc-modal-width-md: 45em;
  --mc-modal-width-lg: 62.5em;
  --mc-modal-width-xl: 80em;

  /* Modal Heights */
  --mc-modal-width-xs: 20em;
  --mc-modal-width-sm: 33.75em;
  --mc-modal-width-md: 45em;
  --mc-modal-width-lg: 62.5em;
  --mc-modal-width-xl: 80em;

  /* Modal Foreground */
  --mc-modal-foreground-padding: 1em;
  --mc-modal-foreground-z-index: 1010;
  --mc-modal-foreground-bg-color: white;

  /* Modal background */
  --mc-modal-overlay-color: rgba(0,0,0,.7);
  --mc-modal-background-z-index: 1000;

  /* Modal footer */
  --mc-modal-footer-buttons-spacing: .625em;
  --mc-modal-footer-buttons-align: center;

  /* Modal Close Button */
  --mc-modal-close-button-color: black;
  --mc-modal-close-button-bg-color: transparent;
  --mc-modal-close-button-padding: .25em;
  --mc-modal-close-button-margin: .25em;
  --mc-modal-close-button-top-position: 0px;
  --mc-modal-close-button-right-position: 0px;
}

/* container element that doubles as the overlay */
.mc-modal {
  display: none;
  z-index: var(--mc-modal-background-z-index);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Override global wordpress max width */
  max-width: 100% !important; 
  background-color: var(--mc-modal-overlay-color);
}

/* the actual modal window */
.mc-modal__foreground {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 100%;
  max-width: 100%;
  z-index: var(--mc-modal-foreground-z-index);
  padding: var(--mc-modal-foreground-padding);
  background-color: var(--mc-modal-foreground-bg-color);
}

.mc-modal__foreground--xs-width {
  width: var(--mc-modal-width-xs);
}

.mc-modal__foreground--sm-width {
  width: var(--mc-modal-width-sm);
}

.mc-modal__foreground--md-width {
  width: var(--mc-modal-width-md);
}

.mc-modal__foreground--lg-width {
  width: var(--mc-modal-width-lg);
}

.mc-modal__foreground--xl-width {
  width: var(--mc-modal-width-xl);
}

.mc-modal__foreground--auto-height {
  height: auto;
}

.mc-modal__foreground--xs-height {
  height: var(--mc-modal-height-xs);
}

.mc-modal__foreground--sm-height {
  height: var(--mc-modal-height-sm);
}

.mc-modal__foreground--md-height {
  height: var(--mc-modal-height-md);
}

.mc-modal__foreground--lg-height {
  height: var(--mc-modal-height-lg);
}

.mc-modal__foreground--xl-height {
  height: var(--mc-modal-height-xl);
}

.mc-modal__footer {
  display: flex;
  align-items: center;
  justify-content: var(--mc-modal-footer-buttons-align);
}

.mc-modal__footer .mc-modal__button--reject {
  order: 1;
}

.mc-modal__footer--buttons-swapped .mc-modal__button--reject{
  order: 0;
}

.mc-modal__footer .mc-modal__button--submit {
  order: 0;
}

.mc-modal__footer--buttons-swapped .mc-modal__button--submit{
  order: 1;
}

.mc-modal__button {
  margin: var(--mc-modal-footer-buttons-spacing);
}

.mc-modal__close-button {
  background-color: var(--mc-modal-close-button-color);;
  color: var(--mc-modal-close-button-color);
  border: none;
  padding: var(--mc-modal-close-button-padding);
  margin: var(--mc-modal-close-button-margin);
  cursor: pointer;
  outline: inherit;
  position: absolute;
  right: var(--mc-modal-close-button-right-position);
  top:var(--mc-modal-close-button-top-position);
}

/* class that can be added to the body element to disable scroll when modal is open */
.remove-scroll {
  overflow: hidden;
}