.vriq-referral {
  --ref-ink: #162e3d;
  --ref-bg: #fff;
  --ref-line: #d9e6ed;
  color: var(--ref-ink);
  background: var(--ref-bg);
  font-family: Rubik, Arial, sans-serif;
  text-align: start;
  direction: rtl;
  line-height: 1.65;
  border: 1px solid var(--ref-line);
  border-radius: 20px;
  padding: 20px;
  margin-block: 20px;
  min-width: 0;
  overflow-wrap: anywhere;
}
html[data-theme='dark'] .vriq-referral {
  --ref-ink: #e8f3f9;
  --ref-bg: #152633;
  --ref-line: #385365;
}
.vriq-referral [hidden] {
  display: none !important;
}
.vriq-referral h1,
.vriq-referral h2,
.vriq-referral h3 {
  color: inherit;
  margin: 0 0 12px;
  line-height: 1.4;
}
.vriq-referral p {
  color: inherit;
  margin: 12px 0;
  font-size: 14px;
}
.vriq-referral label {
  display: block;
  margin: 12px 0;
  color: inherit;
}
.vriq-referral input:not([type='checkbox']),
.vriq-referral textarea,
.vriq-referral select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  border: 1px solid var(--ref-line);
  border-radius: 10px;
  background: var(--ref-bg);
  color: var(--ref-ink);
  padding: 12px;
  font: inherit;
  margin-block: 6px;
}
.vriq-referral textarea {
  resize: vertical;
}
.vriq-referral .referral-check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vriq-referral input[type='checkbox'] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--vriq-blue, #00a9e8);
}
.referral-button,
.vriq-referral .referral-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--vriq-blue, #00a9e8);
  color: #fff;
  border: 0;
  border-radius: 12px;
  min-height: 48px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  margin: 6px;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  max-width: 100%;
}
.referral-button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.vriq-referral :focus-visible {
  outline: 3px solid #ffb443;
  outline-offset: 3px;
}
.referral-breakdown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 16px 0;
}
.referral-breakdown dt,
.referral-breakdown dd {
  margin: 0;
  color: inherit;
}
.referral-breakdown dt:last-of-type,
.referral-breakdown dd:last-of-type {
  font-weight: 700;
  border-top: 1px solid var(--ref-line);
  padding-top: 10px;
}
.referral-balances {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.referral-balances > div {
  flex: 1;
  min-width: 110px;
  padding: 12px;
  border: 1px solid var(--ref-line);
  border-radius: 12px;
}
.referral-balances strong,
.referral-balances span {
  display: block;
}
.referral-balances strong {
  font-size: 24px;
}
.referral-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.referral-photos img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
}
.referral-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: 85dvh;
  overflow: auto;
  box-sizing: border-box;
  margin: auto;
}
.referral-dialog::backdrop {
  background: #071b29b8;
}
.referral-history {
  padding-inline-start: 20px;
}
.referral-history li {
  margin-block: 8px;
}
.referral-period {
  border-top: 1px solid var(--ref-line);
  padding-block: 16px;
}
.referral-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.referral-actions a {
  color: inherit;
  min-height: 44px;
  padding: 8px;
}
.referral-landing {
  max-width: 800px;
  margin: 40px auto;
}
.referral-landing-body {
  margin: 0;
  padding: 16px;
  background: #edf6fb;
}
.referral-status {
  min-height: 1.5em;
}
@media (max-width: 480px) {
  .vriq-referral {
    padding: 16px;
  }
  .referral-photos {
    gap: 6px;
  }
  .referral-button,
  .vriq-referral .referral-button {
    margin-inline: 0;
    width: 100%;
  }
  .referral-breakdown {
    font-size: 14px;
  }
  .referral-balances > div {
    min-width: 90px;
  }
}
.referral-photo-choice {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 8px !important;
}
.referral-photo-choice img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
}
.referral-dialog fieldset {
  border: 1px solid var(--ref-line);
  border-radius: 12px;
  padding: 10px;
}
html[data-theme='dark'] .referral-landing-body {
  background: #0c1c27;
}
.vriq-referral a:not(.referral-button) {
  color: inherit;
}
.referral-account.vriq-referral {
  padding: 16px;
  margin-block: 0 16px;
  border-radius: 14px;
}
.referral-account-heading,
.referral-account-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.referral-available-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  margin-block: 0 12px;
  border-radius: 8px;
  background: var(--account-blue-soft, #ecf8fc);
}
.referral-available-line > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.referral-available-line .referral-icon {
  width: 18px;
  height: 18px;
  color: var(--vriq-blue, #00a9e8);
}
.referral-available-line > strong {
  font-size: 18px;
  line-height: 1.3;
}
.referral-account .referral-account-heading h2 {
  margin: 0;
  font-size: 17px;
}
.referral-account-code {
  margin-block: 10px;
  font-size: 14px;
}
.referral-account-code bdi {
  font-weight: 600;
  letter-spacing: 0.04em;
}
.referral-account .referral-button {
  min-height: 44px;
  padding: 8px 12px;
  margin: 0;
  border-radius: 9px;
  font-size: 14px;
  width: auto;
}
.referral-account-details {
  border-top: 1px solid var(--ref-line);
  padding-top: 8px;
  margin-bottom: 10px;
  font-size: 13px;
}
.referral-account-details summary {
  cursor: pointer;
  min-height: 28px;
  align-content: center;
}
.referral-account-details[open] summary {
  margin-bottom: 10px;
}
.referral-account-details .referral-offer-copy {
  margin-block: 12px 4px;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.referral-account-details .referral-account-activity {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--ref-line);
}
.referral-account-details .referral-account-activity > summary {
  margin: 0;
  min-height: 36px;
}
.referral-account-details .referral-history {
  margin-block: 8px 0;
  font-size: 12px;
}
body.client-body :is(#booking, #membership-booking) .referral-checkout {
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-block: 16px;
}
body.client-body :is(#booking, #membership-booking) .referral-code-row label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
body.client-body :is(#booking, #membership-booking) .referral-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.referral-code-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
body.client-body :is(#booking, #membership-booking) .referral-code-controls .referral-button {
  width: auto;
  min-height: 34px;
  height: 34px;
  padding: 5px 10px;
  margin: 0;
  border-radius: 12px;
  font-size: 13px;
}
.referral-code-used {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
body.client-body :is(#booking, #membership-booking) .referral-code-used .referral-button {
  flex-shrink: 0;
  white-space: nowrap;
  width: auto;
  min-height: 34px;
  margin: 0;
  padding: 5px 8px;
  background: transparent;
  color: inherit;
  border: 1px solid var(--ref-line);
  border-radius: 12px;
  font-size: 12px;
}
body.client-body :is(#booking, #membership-booking) .referral-checkout label,
body.client-body :is(#booking, #membership-booking) .referral-checkout .referral-status {
  margin: 0;
  min-height: 0;
  font-size: 13px;
}
body.client-body
  :is(#booking, #membership-booking)
  .referral-checkout
  input:not([type='checkbox']) {
  flex: 0 0 88px;
  width: 88px;
  margin: 0;
  padding: 5px 8px;
  min-height: 34px;
  height: 34px;
  font: inherit;
  border-radius: 12px;
  text-align: center;
  letter-spacing: normal;
}
body.client-body :is(#booking, #membership-booking) .referral-checkout input.referral-code-applied {
  border-color: #48836b;
}
body.client-body .referral-fields input[type='text']:focus {
  outline: none !important;
  box-shadow: none !important;
}
body.client-body .referral-fields input[type='text']:focus:not([aria-invalid='true']) {
  border-color: var(--ref-line) !important;
}
html:not([data-vriq-input='pointer'])
  body.client-body
  .referral-fields
  input[type='text']:focus-visible:not([aria-invalid='true']) {
  border-color: var(--ref-ink) !important;
}
body.client-body :is(#booking, #membership-booking) .referral-checkout input[aria-invalid='true'] {
  border-color: #b94040;
}
body.client-body :is(#booking, #membership-booking) .referral-checkout .referral-status:empty {
  display: none;
}
body.client-body :is(#booking, #membership-booking) .referral-checkout [hidden] {
  display: none;
}
body.client-body :is(#booking, #membership-booking) .referral-checkout-total {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border, #d9e6ed);
}
.referral-checkout-totals .referral-breakdown {
  margin: 0;
  gap: 10px 16px;
  font-size: 14px;
  align-items: center;
  font-family: inherit;
}
.referral-checkout-totals dd {
  text-align: left;
  font-family: inherit;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}
.referral-checkout-totals .referral-breakdown dt,
.referral-checkout-totals .referral-breakdown dd {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: 400;
}
.referral-share-dialog {
  width: min(340px, calc(100% - 32px));
  padding: 20px;
  border: 1px solid var(--ref-line);
  border-radius: 16px;
  color: var(--ref-ink);
  background: var(--ref-bg);
}
.referral-share-dialog h2 {
  font-size: 18px;
}
.referral-share-dialog > .referral-button {
  background: transparent;
  color: var(--ref-ink);
  border: 1px solid var(--ref-line);
  min-height: 36px;
  margin: 0 0 16px;
  padding: 4px 12px;
  font-size: 13px;
  width: auto;
}
.referral-share-options {
  display: grid;
  gap: 10px;
}
.referral-share-dialog .referral-share-options :is(a, button) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--ref-line);
  border-radius: 9px;
  background: var(--ref-bg);
  color: var(--ref-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.referral-share-dialog .referral-share-options :is(a, button):hover {
  border-color: var(--vriq-blue, #00a9e8);
}
.referral-share-dialog .referral-share-status:empty {
  display: none;
}
.referral-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.referral-account-heading h2,
.referral-account .referral-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.referral-account-heading .referral-icon {
  color: var(--vriq-blue, #00a9e8);
}
.referral-account .referral-renewal-action {
  width: 100%;
  margin-top: 4px;
  background: transparent;
  color: var(--ref-ink);
  border: 1px solid var(--ref-line);
}
.referral-share-options .referral-icon {
  color: var(--vriq-blue, #00a9e8);
  width: 22px;
  height: 22px;
}
.referral-account-details .referral-balances {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.referral-account-details .referral-balances > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 80px;
  box-sizing: border-box;
  min-width: 0;
  padding: 10px 8px;
  border-radius: 8px;
  background: var(--account-soft, #f7f9fa);
  text-align: center;
}
.referral-account-details .referral-balances strong {
  width: 100%;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}
.referral-account-details .referral-balances > div:first-child {
  border-color: var(--vriq-blue, #00a9e8);
  background: var(--account-blue-soft, #ecf8fc);
}
.referral-account-details .referral-balances > div:first-child strong {
  font-size: 22px;
}
.referral-account-details .referral-balances span {
  font-size: 12px;
  line-height: 1.5;
}
.referral-terms-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 12px;
}
.referral-renewal-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 24px;
  border-radius: 16px;
}
.referral-renewal-dialog h2 {
  font-size: 20px;
  padding-left: 30px;
}
.referral-renewal-dialog > .referral-button {
  background: transparent;
  color: var(--ref-ink);
  border: 1px solid var(--ref-line);
  min-height: 36px;
  margin: 0 0 8px;
  padding: 4px 12px;
  font-size: 13px;
  width: auto;
}
.referral-renewal-dialog > .referral-dialog-close {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 8px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.referral-renewal-dialog .referral-renewal-intro {
  margin: 8px 0 20px;
  font-size: 13px;
  line-height: 1.65;
}
.referral-renewal-dialog .referral-breakdown {
  gap: 12px;
  margin: 0 0 16px;
  font-size: 14px;
}
.referral-renewal-dialog .referral-breakdown dd:last-of-type {
  font-size: 24px;
}
.referral-renewal-dialog .referral-check {
  padding-block: 12px;
  margin: 0;
  font-size: 13px;
}
.referral-renewal-dialog > div > .referral-button {
  width: 100%;
  margin: 8px 0 0;
  font-size: 14px;
}
.referral-renewal-dialog p[role='status']:empty {
  display: none;
}
