@import url('https://fonts.googleapis.com/css2?family=Saira:wght@300;400;500;600;700;800&display=swap');

.munsch-product-modal,
.munsch-product-modal * {
  box-sizing: border-box;
}

.munsch-product-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  font-family: "Saira", sans-serif;
}

.munsch-product-modal.is-open {
  display: flex;
}

.munsch-product-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 56, 0.78);
  backdrop-filter: blur(5px);
}

.munsch-product-modal-box {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.32);
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #f57c00 #f3f4f6;
}

.munsch-product-modal-box.munsch-lead-mode {
  width: min(1180px, 100%);
  padding: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #fff9f2 100%);
}

.munsch-product-modal-box::-webkit-scrollbar,
.munsch-modal-desc::-webkit-scrollbar {
  width: 8px;
}

.munsch-product-modal-box::-webkit-scrollbar-track,
.munsch-modal-desc::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 999px;
}

.munsch-product-modal-box::-webkit-scrollbar-thumb,
.munsch-modal-desc::-webkit-scrollbar-thumb {
  background: #f57c00;
  border-radius: 999px;
}

.munsch-modal-close {
  position: absolute !important;
  right: 18px !important;
  top: 16px !important;
  width: 38px !important;
  height: 38px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #111 !important;
  color: #fff !important;
  font-size: 24px !important;
  line-height: 1 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
  z-index: 8;
}

.munsch-modal-close:hover {
  background: #f57c00 !important;
  transform: rotate(90deg);
}

/* Keep the product Enquiry Now button visible while popup content scrolls */
.munsch-product-modal .munsch-modal-content {
  position: relative;
}

.munsch-product-modal .munsch-modal-enquiry {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 7;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 14px !important;
  border-radius: 999px !important;
  background: #f57c00 !important;
  border-color: #f57c00 !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: sticky !important;
  isolation: isolate;
  box-shadow: 0 16px 34px rgba(245,124,0,0.25) !important;
}

.munsch-product-modal .munsch-modal-enquiry::before {
  content: "";
  position: absolute;
  left: -14px;
  right: -14px;
  top: -12px;
  bottom: -12px;
  background: #fff7ee;
  border-radius: 18px;
  box-shadow: 0 -18px 24px rgba(255, 247, 238, 0.98);
  z-index: -1;
}

.munsch-product-modal .munsch-modal-enquiry:hover {
  background: #111111 !important;
  border-color: #111111 !important;
}

.munsch-product-modal .munsch-modal-note {
  margin-bottom: 14px;
}

.munsch-lead-form-screen,
.munsch-lead-form-screen * {
  box-sizing: border-box;
}

.munsch-lead-form-screen {
  width: 100%;
  padding: 0;
  color: #111;
  font-family: "Saira", sans-serif;
}

.munsch-lead-back {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(245, 124, 0, 0.22) !important;
  background: rgba(245, 124, 0, 0.08) !important;
  color: #f57c00 !important;
  font-family: "Saira", sans-serif !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  cursor: pointer;
  padding: 12px 17px !important;
  margin: 0 0 20px !important;
  border-radius: 999px !important;
  transition: all .24s ease;
}

.munsch-lead-back:hover {
  color: #fff !important;
  background: #111 !important;
  border-color: #111 !important;
  transform: translateY(-1px);
}

.munsch-lead-two-column {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 28px;
  align-items: stretch;
}

.munsch-lead-product-panel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 34px 30px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 85% 14%, rgba(245,124,0,0.30), transparent 28%),
    linear-gradient(135deg, #002838 0%, #15262d 55%, #111111 100%);
  color: #ffffff;
  box-shadow: 0 22px 52px rgba(0, 40, 56, 0.22);
}

.munsch-lead-product-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: #f57c00;
}

.munsch-lead-panel-topline {
  color: #f57c00;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 12px;
}

.munsch-lead-product-panel h2 {
  margin: 0 0 20px !important;
  color: #ffffff !important;
  font-size: 42px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  letter-spacing: .3px;
}

.munsch-lead-product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  margin: 0 0 22px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.94);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.26), 0 16px 36px rgba(0,0,0,0.18);
}

.munsch-lead-product-image img {
  max-width: 100%;
  max-height: 165px;
  object-fit: contain;
  display: block;
}

.munsch-lead-product-panel p {
  margin: 0 0 20px;
  color: rgba(255,255,255,0.88);
  font-size: 16px;
  line-height: 1.65;
}

.munsch-lead-product-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.munsch-lead-product-panel li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 26px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.45;
}

.munsch-lead-product-panel li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #f57c00;
  font-weight: 800;
}

.munsch-lead-form-panel {
  min-height: 560px;
  padding: 34px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(0, 40, 56, 0.08);
  box-shadow: 0 18px 48px rgba(0,0,0,0.08);
}

.munsch-lead-form-title {
  margin-bottom: 22px;
}

.munsch-lead-form-title span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #f57c00;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.munsch-lead-form-title h3 {
  margin: 0 !important;
  color: #111111 !important;
  font-size: 30px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

.munsch-lead-form {
  padding: 0;
}

.munsch-lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.munsch-lead-grid label {
  display: block;
  margin: 0;
}

.munsch-lead-grid label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.munsch-lead-grid .munsch-lead-full {
  grid-column: 1 / -1;
}

.munsch-product-modal .munsch-lead-grid input {
  width: 100% !important;
  min-height: 58px !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 13px !important;
  background: #ffffff !important;
  padding: 15px 17px !important;
  color: #111111 !important;
  font-family: "Saira", sans-serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  outline: none !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.035) !important;
  transition: all 0.22s ease;
}

.munsch-product-modal .munsch-lead-grid input::placeholder {
  color: #68717d !important;
  opacity: 1;
}

.munsch-product-modal .munsch-lead-grid input:focus {
  border-color: #f57c00 !important;
  box-shadow: 0 0 0 4px rgba(245, 124, 0, 0.13), 0 10px 24px rgba(0,0,0,0.045) !important;
}

.munsch-lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0 18px;
  color: #333;
  font-size: 16px;
  line-height: 1.45;
  cursor: pointer;
}

.munsch-lead-consent input {
  width: 18px !important;
  height: 18px !important;
  margin-top: 4px !important;
  accent-color: #f57c00;
  flex: 0 0 auto;
}

.munsch-product-modal .munsch-lead-submit {
  width: 100% !important;
  min-height: 64px !important;
  border: 1px solid #f57c00 !important;
  border-radius: 999px !important;
  background: #f57c00 !important;
  color: #ffffff !important;
  font-family: "Saira", sans-serif !important;
  font-size: 20px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(245, 124, 0, 0.26) !important;
  transition: all 0.25s ease;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.munsch-product-modal .munsch-lead-submit:hover {
  background: #111111 !important;
  border-color: #111111 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.munsch-product-modal .munsch-lead-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.munsch-lead-commercial-note {
  display: none !important;
}

.munsch-lead-message {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
}

.munsch-lead-message.is-error {
  color: #b42318;
  background: #fff0ee;
  border: 1px solid #ffdad5;
  border-radius: 12px;
  padding: 12px 14px;
}

.munsch-lead-success {
  text-align: center;
  padding: 36px 20px 26px;
}

.munsch-lead-success-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #f57c00;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 18px;
}

.munsch-lead-success h3 {
  margin: 0 0 10px !important;
  font-size: 28px !important;
  color: #111 !important;
}

.munsch-lead-success p {
  margin: 0 auto;
  max-width: 520px;
  color: #555;
  font-size: 17px;
  line-height: 1.55;
}

.munsch-lead-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 920px) {
  .munsch-lead-two-column {
    grid-template-columns: 1fr;
  }

  .munsch-lead-product-panel,
  .munsch-lead-form-panel {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .munsch-product-modal {
    padding: 14px;
  }

  .munsch-product-modal-box,
  .munsch-product-modal-box.munsch-lead-mode {
    border-radius: 20px;
    padding: 20px;
  }

  .munsch-product-modal .munsch-modal-enquiry {
    bottom: -1px !important;
  }

  .munsch-lead-back {
    font-size: 13px !important;
    padding: 10px 13px !important;
    margin-bottom: 14px !important;
  }

  .munsch-lead-product-panel,
  .munsch-lead-form-panel {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .munsch-lead-product-panel h2 {
    font-size: 30px !important;
  }

  .munsch-lead-product-image {
    min-height: 150px;
  }

  .munsch-lead-product-image img {
    max-height: 130px;
  }

  .munsch-lead-form-title h3 {
    font-size: 24px !important;
  }

  .munsch-lead-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .munsch-product-modal .munsch-lead-grid input {
    min-height: 56px !important;
    border-radius: 13px !important;
    font-size: 16px !important;
    padding: 14px 16px !important;
  }

  .munsch-lead-consent {
    font-size: 14px;
  }

  .munsch-product-modal .munsch-lead-submit {
    min-height: 58px !important;
    font-size: 17px !important;
  }
}


/* v1.0.5: previous sticky style restored, solid orange button */
.munsch-product-modal .munsch-modal-content {
  position: relative !important;
  padding-bottom: 0 !important;
}

.munsch-product-modal .munsch-modal-enquiry {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 20 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 58px !important;
  margin-top: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: #f57c00 !important;
  background-color: #f57c00 !important;
  background-image: linear-gradient(#f57c00, #f57c00) !important;
  color: #ffffff !important;
  border: 1px solid #f57c00 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  isolation: auto !important;
  box-shadow:
    0 -14px 22px rgba(255, 255, 255, 0.98),
    0 16px 34px rgba(245, 124, 0, 0.25) !important;
}

.munsch-product-modal .munsch-modal-enquiry::before,
.munsch-product-modal .munsch-modal-enquiry::after {
  content: none !important;
  display: none !important;
}

.munsch-product-modal .munsch-modal-enquiry:hover,
.munsch-product-modal .munsch-modal-enquiry:focus {
  background: #111111 !important;
  background-color: #111111 !important;
  background-image: linear-gradient(#111111, #111111) !important;
  border-color: #111111 !important;
  color: #ffffff !important;
}

@media (max-width: 767px) {
  .munsch-product-modal .munsch-modal-content {
    padding-bottom: 0 !important;
  }

  .munsch-product-modal .munsch-modal-enquiry {
    bottom: -1px !important;
    min-height: 54px !important;
  }
}


/* v1.0.6: full-width sticky footer for product popup */
.munsch-product-modal .munsch-product-modal-box {
  padding-bottom: 0 !important;
}

.munsch-product-modal .munsch-modal-sticky-footer {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 30 !important;
  display: grid !important;
  grid-template-columns: 38% 1fr;
  gap: 28px;
  align-items: center;
  padding: 14px 0 0 !important;
  background: #ffffff !important;
  box-shadow: 0 -18px 28px rgba(255,255,255,0.98), 0 -1px 0 rgba(0,0,0,0.04);
}

.munsch-product-modal .munsch-modal-sticky-note-wrap {
  display: flex;
  align-items: stretch;
}

.munsch-product-modal .munsch-modal-sticky-action {
  display: flex;
  align-items: center;
  justify-content: center;
}

.munsch-product-modal .munsch-modal-sticky-footer .munsch-modal-note {
  width: 100%;
  margin: 0 !important;
  padding: 18px 22px !important;
  border-left: 5px solid #f57c00 !important;
  border-radius: 0 18px 18px 0 !important;
  background: #efe7db !important;
  color: #2d2d2d !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.munsch-product-modal .munsch-modal-sticky-footer .munsch-modal-enquiry {
  position: static !important;
  bottom: auto !important;
  width: min(100%, 720px) !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  min-height: 58px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f57c00 !important;
  background-color: #f57c00 !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid #f57c00 !important;
  box-shadow: 0 12px 24px rgba(245,124,0,0.22) !important;
}

.munsch-product-modal .munsch-modal-sticky-footer .munsch-modal-enquiry::before,
.munsch-product-modal .munsch-modal-sticky-footer .munsch-modal-enquiry::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 767px) {
  .munsch-product-modal .munsch-modal-sticky-footer {
    grid-template-columns: 1fr !important;
    gap: 14px;
    padding-top: 12px !important;
  }

  .munsch-product-modal .munsch-modal-sticky-footer .munsch-modal-note {
    padding: 16px 18px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  .munsch-product-modal .munsch-modal-sticky-footer .munsch-modal-enquiry {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* v1.0.7: sticky product footer spacing + hide footer on enquiry form screen */
.munsch-product-modal .munsch-product-modal-box:not(.munsch-lead-mode) .munsch-modal-grid {
  padding-bottom: 22px !important;
}

.munsch-product-modal .munsch-product-modal-box:not(.munsch-lead-mode) .munsch-modal-sticky-footer {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 60 !important;
  display: grid !important;
  grid-template-columns: 38% 1fr !important;
  gap: 28px !important;
  align-items: center !important;
  margin-top: 10px !important;
  padding: 20px 0 34px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow:
    0 -24px 36px rgba(255,255,255,1),
    0 -1px 0 rgba(0,0,0,0.04) !important;
}

.munsch-product-modal .munsch-product-modal-box:not(.munsch-lead-mode) .munsch-modal-sticky-note-wrap {
  min-height: 104px !important;
  display: flex !important;
  align-items: center !important;
  background: #ffffff !important;
}

.munsch-product-modal .munsch-product-modal-box:not(.munsch-lead-mode) .munsch-modal-sticky-action {
  min-height: 104px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
}

.munsch-product-modal .munsch-product-modal-box:not(.munsch-lead-mode) .munsch-modal-sticky-footer .munsch-modal-note {
  align-self: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 22px 26px !important;
  border-left: 6px solid #f57c00 !important;
  border-radius: 0 18px 18px 0 !important;
  background: #efe7db !important;
  color: #2d2d2d !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  box-shadow: none !important;
}

.munsch-product-modal .munsch-product-modal-box:not(.munsch-lead-mode) .munsch-modal-sticky-footer .munsch-modal-enquiry {
  position: static !important;
  bottom: auto !important;
  width: min(100%, 760px) !important;
  max-width: 760px !important;
  min-height: 58px !important;
  margin: 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: #f57c00 !important;
  background-color: #f57c00 !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid #f57c00 !important;
  box-shadow: 0 14px 26px rgba(245,124,0,0.25) !important;
  opacity: 1 !important;
}

.munsch-product-modal .munsch-product-modal-box.munsch-lead-mode .munsch-modal-sticky-footer {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.munsch-product-modal .munsch-product-modal-box.munsch-lead-mode {
  padding-bottom: 28px !important;
}

@media (max-width: 767px) {
  .munsch-product-modal .munsch-product-modal-box:not(.munsch-lead-mode) .munsch-modal-sticky-footer {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 16px 0 26px !important;
  }

  .munsch-product-modal .munsch-product-modal-box:not(.munsch-lead-mode) .munsch-modal-sticky-note-wrap,
  .munsch-product-modal .munsch-product-modal-box:not(.munsch-lead-mode) .munsch-modal-sticky-action {
    min-height: auto !important;
  }
}
