/* Register-first funnel — website only */

.rr2-funnel-tip {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--rr-design-line, #e4e0d8);
  border-radius: 10px;
  background: color-mix(in srgb, var(--rr-c-brand, #1f6b4a) 8%, #fff);
}

.rr2-funnel-tip__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--rr-c-text, #1a1a1a);
  font-weight: 600;
}

.rr2-funnel-tip--checkout {
  margin: 0 0 16px;
}

.rr2-funnel-tip--checkout .rr2-register-btn {
  margin-top: 10px;
}

.rr2-register-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--rr-c-brand, #1f6b4a);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.rr2-register-btn:hover {
  background: var(--rr-c-brand-hover, #18553a);
  color: #fff;
}

.rr2-register-btn--block {
  width: 100%;
}

.rr2-register-btn--header {
  background: transparent;
  color: inherit;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.rr2-register-btn--header:hover {
  background: transparent;
  color: inherit;
}

.rr-design-header__util-left a.rr2-funnel-header-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Modal */
.rr2-register-modal[hidden] {
  display: none !important;
}

.rr2-register-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rr2-register-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 14, 0.48);
}

.rr2-register-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.rr2-register-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--rr-c-muted, #6b675f);
}

.rr2-register-modal__title {
  margin: 0 28px 8px 0;
  font-size: 20px;
  line-height: 1.3;
}

.rr2-register-modal__text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--rr-c-muted, #6b675f);
}

.rr2-register-modal__errors {
  margin: 0 0 12px;
  padding: 10px 12px;
  list-style: none;
  background: #fdeceb;
  border-radius: 8px;
  color: #8a1f1a;
  font-size: 13px;
}

.rr2-register-modal__form .form-row {
  margin: 0 0 12px;
}

.rr2-register-modal__form label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
}

.rr2-register-modal__form input.input-text {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--rr-design-line, #e4e0d8);
  border-radius: 8px;
  box-sizing: border-box;
}

.rr2-register-modal__submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--rr-c-brand, #1f6b4a) !important;
  color: #fff !important;
  font-weight: 700;
  cursor: pointer;
}

.rr2-register-modal__login {
  margin: 12px 0 0;
  text-align: center;
  font-size: 14px;
}

.rr2-register-modal__later {
  margin: 8px 0 0;
  text-align: center;
}

.rr2-register-modal__later-btn {
  border: 0;
  background: transparent;
  color: var(--rr-c-muted, #6b675f);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Never show with consent banner */
body.rr2-consent-open .rr2-register-modal:not([hidden]),
body:has(#rr2-consent-root:not([hidden])) .rr2-register-modal:not([hidden]) {
  display: none !important;
}

body.rr2-mode-app .rr2-register-modal,
body.rr2-mode-app .rr2-funnel-tip,
body.rr2-mode-app [data-rr2-register] {
  display: none !important;
}
