.thri-modal[hidden], .thri-modal [hidden] { display: none !important; }
.thri-modal, .thri-modal * { box-sizing: border-box; }
.thri-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 22px; font-family: inherit; line-height: 1.55; color: #202b2a; }
.thri-overlay { position: absolute; inset: 0; background: rgba(12, 25, 23, .65); }
.thri-dialog { position: relative; width: 100%; max-width: 490px; max-height: calc(100dvh - 44px); overflow: auto; background: #fff; border-radius: 16px; border-top: 5px solid #315d4f; padding: 32px; box-shadow: 0 24px 80px rgba(0, 0, 0, .25); text-align: left; }
.thri-dialog h2 { font: inherit; font-size: 29px; font-weight: 750; line-height: 1.15; color: #172e27; margin: 6px 0 12px; padding: 0; }
.thri-dialog p { margin: 0 0 16px; font-size: 15px; }
.thri-dialog .thri-eyebrow { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 750; color: #61736e; padding-right: 24px; margin: 0 0 14px; }
.thri-dialog .thri-product-name { color: #315d4f; font-weight: 700; font-size: 17px; }
.thri-dialog .thri-close { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; justify-content: center; height: 40px; width: 40px; padding: 0; background: transparent; color: #42534e; border: 0; border-radius: 50%; font-size: 30px; font-weight: 400; line-height: 1; cursor: pointer; }
.thri-dialog .thri-close:hover { background: #eef3f0; }
.thri-dialog .button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; padding: 12px 18px; border: 1px solid #315d4f; border-radius: 7px; text-decoration: none !important; text-transform: none; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: 0; cursor: pointer; }
.thri-dialog .thri-submit { background: #315d4f; color: #fff; }
.thri-dialog .thri-submit:hover { background: #244b3e; }
.thri-dialog .thri-login { background: #fff; color: #315d4f; }
.thri-dialog .thri-login:hover { background: #f2f6f3; }
.thri-dialog button:disabled { opacity: .6; cursor: wait; }
.thri-dialog .thri-divider { display: flex; align-items: center; gap: 12px; color: #67756f; font-size: 12px; margin: 20px 0; }
.thri-divider::before, .thri-divider::after { content: ''; height: 1px; background: #dce5df; flex: 1; }
.thri-dialog label { display: block; font-size: 14px; font-weight: 650; color: #263c33; margin: 0 0 7px; }
.thri-dialog input[type=email] { display: block; height: 48px; padding: 10px 12px; border: 1px solid #aebfb5; border-radius: 7px; font: inherit; font-size: 16px; background: #fff; color: #202b2a; width: 100%; margin: 0 0 18px; }
.thri-dialog .thri-note { font-size: 12px; color: #53645b; line-height: 1.65; margin: 18px 0; }
.thri-note a { color: #315d4f; text-decoration: underline; }
.thri-dialog .thri-account-email { border-radius: 7px; background: #f0f5f2; padding: 12px 14px; font-weight: 650; word-break: break-word; }
.thri-dialog .thri-status:empty { display: none; }
.thri-dialog .thri-status { margin: 0 0 18px; }
.thri-dialog .thri-error { color: #9d2924; background: #fff1ee; padding: 12px; border-radius: 7px; }
.thri-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.thri-dialog :focus-visible, .thri-trigger:focus-visible { outline: 3px solid #367758; outline-offset: 4px; }
.thri-modal-open { overflow: hidden !important; }
.thri-product-panel { margin: 1.4em 0; }
.thri-product-panel p { margin-bottom: .9em; }
/* Own the button geometry so theme line-height/padding cannot offset the label. */
body a.button.thri-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: auto !important;
  max-width: 100%;
  min-height: 50px;
  height: auto !important;
  padding: 14px 26px !important;
  background: #315d4f !important;
  color: #fff !important;
  border: 1px solid #315d4f !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4 !important;
  text-align: center !important;
  text-decoration: none !important;
  vertical-align: middle;
  white-space: normal;
  box-shadow: 0 3px 8px rgba(36, 75, 62, .16);
  opacity: 1 !important;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
body a.button.thri-trigger:hover,
body a.button.thri-trigger:focus-visible {
  background: #244b3e !important;
  color: #fff !important;
  border-color: #244b3e !important;
  box-shadow: 0 4px 12px rgba(36, 75, 62, .22);
}
/* Extra protection for theme-owned cart controls on the flagged single product. */
body.thri-single-interest .summary form.cart,
body.thri-single-interest .ast-sticky-add-to-cart .single_add_to_cart_button { display: none !important; }
@media (max-width: 520px) {
  .thri-modal { padding: 14px; }
  .thri-dialog { padding: 27px 22px; max-height: calc(100dvh - 28px); border-radius: 12px; }
  .thri-dialog h2 { font-size: 26px; }
}
