#iseam-rob-btn {
  display: block;
  margin: 10px auto 10px auto;
  background: transparent;
  border: 1.5px solid #1D8D72;
  color: #1D8D72;
  font-family: Lato, 'Open Sans', sans-serif;
  font-size: 13px;
  padding: 8px 22px;
  border-radius: 20px;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: background 0.2s, color 0.2s;
}
#iseam-rob-btn:hover {
  background: #1D8D72;
  color: #ffffff;
}

#iseam-modal-wrap {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}
#iseam-modal-wrap.open {
  display: flex;
}

#iseam-modal-box {
  background: #ffffff;
  border-radius: 10px;
  max-width: 480px;
  width: 90%;
  /* Flex column so title, body, and CTA each hold their position */
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  font-family: Lato, 'Open Sans', sans-serif;
}

/* Title — pinned at top, never scrolls */
#iseam-modal-title {
  flex-shrink: 0;
  margin: 0;
  padding: 26px 52px 14px 28px; /* right padding clears the × button */
  font-size: 17px;
  color: #1D8D72;
  font-weight: 700;
  font-family: Montserrat, 'Open Sans', sans-serif;
  border-bottom: 1px solid #f0f0f0;
}

/* Scrollable body — fills available space */
#iseam-modal-text {
  flex: 1 1 auto;
  min-height: 0; /* required: flex children default to min-height:auto and won't shrink without this */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* momentum scrolling on iOS */
  overscroll-behavior: contain;      /* prevent scroll chaining to page */
  padding: 18px 28px;
  font-size: 14px;
  font-weight: normal;
  color: #444444;
  line-height: 1.7;
}
#iseam-modal-text b, #iseam-modal-text strong { font-weight: bold !important; }
#iseam-modal-text p { margin: 0 0 12px; }
#iseam-modal-text p:last-child { margin-bottom: 0; }
#iseam-modal-text ul, #iseam-modal-text ol { margin: 0 0 12px; padding-left: 20px; }
#iseam-modal-text a { color: #1D8D72; }

/* CTA — pinned at bottom, never scrolls */
#iseam-modal-cta {
  flex-shrink: 0;
  display: block;
  width: 100%;
  padding: 14px 22px;
  margin-bottom: 16px;
  border: none;
  border-top: 1px solid #f0f0f0;
  background: #1D8D72;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  font-family: Lato, 'Open Sans', sans-serif;
  cursor: pointer;
  text-align: center;
}
#iseam-modal-cta:hover {
  background: #176f5a;
}

/* Close button — floats over the title area */
#iseam-modal-x {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  color: #aaaaaa;
  cursor: pointer;
  line-height: 1;
  /* Generous tap target */
  padding: 8px;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
#iseam-modal-x:hover { color: #333333; background: #f5f5f5; }
#iseam-modal-x:focus-visible {
  outline: 2px solid #1D8D72;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  #iseam-modal-box {
    width: 95%;
    max-height: 92vh;
    border-radius: 8px;
  }
  #iseam-modal-title {
    padding: 20px 48px 12px 18px;
    font-size: 15px;
  }
  #iseam-modal-text {
    padding: 14px 18px;
    font-size: 13.5px;
  }
}
