/*
Theme Name: imta-theme
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Product booking popup */
.imta-booking-action {
  margin: 1.25rem 0;
}

.imta-booking-button {
  width: 100%;
  min-height: 3.25rem;
  padding: .75rem 1.5rem;
  border: 0;
  border-radius: .625rem;
  background: linear-gradient(135deg, #0d6efd 0%, #16a3b8 100%);
  box-shadow: 0 .5rem 1.25rem rgba(13, 110, 253, .25);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.imta-booking-button:hover,
.imta-booking-button:focus {
  box-shadow: 0 .75rem 1.5rem rgba(13, 110, 253, .32);
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.imta-booking-button:focus-visible,
.imta-booking-popup__close:focus-visible {
  outline: 3px solid #f9c74f;
  outline-offset: 3px;
}

.imta-booking-popup {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 1rem;
  pointer-events: none;
  position: fixed;
  transition: opacity .22s ease;
  visibility: hidden;
  z-index: 99999;
}

.imta-booking-popup.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.imta-booking-popup__backdrop {
  background: rgba(8, 24, 43, .68);
  inset: 0;
  position: absolute;
}

.imta-booking-popup__dialog {
  background: #fff;
  box-sizing: border-box;
  border-radius: .875rem;
  box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, .28);
  max-height: calc(100vh - 2rem);
  max-width: 40rem;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1.75rem 2rem 2rem;
  position: relative;
  transform: translateY(12px) scale(.98);
  transition: transform .22s ease;
  width: min(100%, 40rem);
}

.imta-booking-popup.is-open .imta-booking-popup__dialog {
  transform: translateY(0) scale(1);
}

.imta-booking-popup__dialog h2 {
  color: #123456;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 3rem 1.25rem 0;
}

/* Không để CSS của form booking làm tràn hoặc tạo khoảng trống trong popup. */
.imta-booking-popup .wpcf7,
.imta-booking-popup .wpcf7 form {
  box-sizing: border-box;
  margin: 0;
  max-width: 100%;
  width: 100%;
}

.imta-booking-popup .wpcf7 form > div {
  box-sizing: border-box;
  height: auto !important;
  margin-bottom: 0 !important;
  max-width: 100% !important;
  min-height: 0 !important;
  width: 100% !important;
}

.imta-booking-popup .wpcf7-form-control-wrap,
.imta-booking-popup .wpcf7 input,
.imta-booking-popup .wpcf7 select,
.imta-booking-popup .wpcf7 textarea {
  box-sizing: border-box;
  max-width: 100%;
}

.imta-booking-popup .wpcf7 input:not([type="submit"]),
.imta-booking-popup .wpcf7 select,
.imta-booking-popup .wpcf7 textarea {
  width: 100%;
}

.imta-booking-popup .wpcf7-response-output {
  margin: 1rem 0 0;
}

.imta-booking-popup__close {
  align-items: center;
  background: #f2f7fa;
  border: 1px solid #d8e5ed;
  border-radius: 50%;
  color: #123456;
  cursor: pointer;
  display: inline-flex;
  font-family: Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  height: 2.25rem !important;
  justify-content: center;
  line-height: 1;
  min-height: 2.25rem !important;
  min-width: 2.25rem !important;
  padding: 0;
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
  width: 2.25rem !important;
}

.imta-booking-popup__close:hover {
  background: #123456;
  border-color: #123456;
  color: #fff;
  transform: rotate(90deg);
}

body.imta-booking-popup-open {
  overflow: hidden;
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

  .imta-booking-popup {
    align-items: flex-end;
    padding: .75rem;
  }

  .imta-booking-popup__dialog {
    border-radius: .875rem .875rem .5rem .5rem;
    max-height: calc(100vh - 1.5rem);
    padding: 1.5rem 1rem 1.25rem;
  }

  .imta-booking-popup .wpcf7 form > div {
    padding-bottom: 1rem !important;
  }


}
