/* Regular shaded container
*/

.invite-shadow-container {
  box-shadow: 0px 12px 16px -4px #10182814;
  background-color: var(--inv-box-bg-color);
}

/* set width using tw */
.inv-hr-border {
  border-color: var(--inv-hr-border-color);
  border-style: solid;
}


.generic-loader {
  display: none;
  height: 50px;
  width: 50px;
  max-width: 50px;
  margin-left: auto;
  margin-right: auto;
}

.htmx-request .hide-when-loading {
  display: none;
}

.htmx-request.hide-when-loading {
  display: none;
}

.htmx-request .generic-loader {
  display: block;
}

.htmx-request.generic-loader {
  display: block;
}

.inv-md-render {
  white-space: pre-line;
  word-break: normal;
}

.inv-md-render h1,
.inv-md-render h2,
.inv-md-render h3,
.inv-md-render h4,
.inv-md-render h5 {
  font-size: 20.25px;
  line-height: 28px;
  color: black;
}

.inv-md-render p,
ul,
ol,
blockquote {
  color: var(--inv-text-tertiary);
}

.inv-md-render blockquote {
  border-left: 1px solid lightgrey;
  padding-left: 1em;
  font-style: italic;
}

.inv-md-render ul {
  display: block;
  list-style-type: disc;
  padding: 0 1em;
  white-space: normal;
}

.inv-md-render ol {
  display: block;
  list-style-type: decimal;
  padding: 0 1em;
  white-space: normal;
}

.inv-md-render a {
  text-decoration: underline;
  color: var(--inv-primary-accent-color);
}

.inv-md-render img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.inv-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 16px 16px 32px;
  border-radius: 8px;
  background-color: var(--inv-box-bg-secondary);
}

/* KeyShare form surface — pure white with shadow, themed corners. */
.inv-keyshare-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 20px;
  border: var(--inv-keyshare-card-border, none);
  border-radius: var(--inv-keyshare-card-radius, 8px);
  background-color: var(--inv-keyshare-card-bg, var(--inv-box-bg-color));
  box-shadow: var(--inv-keyshare-card-shadow, 0px 12px 16px -4px #10182814);
}

/* Activation form card — defaults to the standard inv-stay-card look; themes
   that want a different surface (e.g. lynra's white keyshare-style card) set
   the --inv-activate-card-* tokens. */
.inv-activate-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: var(--inv-activate-card-padding, 24px);
  border: var(--inv-activate-card-border, 1px solid var(--inv-card-border-color));
  border-radius: var(--inv-activate-card-radius, var(--inv-card-radius, 8px));
  background-color: var(--inv-activate-card-bg, var(--inv-card-bg));
  box-shadow: var(--inv-activate-card-shadow, none);
}

/* Full-screen background hook for activation flows. The element itself is
   inert — it just marks the page so that body can paint the theme's activate
   image across the entire viewport (including under the header) via :has().
   The header and main are made transparent so only their contents (logo,
   menu, the card) sit on top of the image. Themes that don't set
   --inv-activate-backdrop-image fall through to the base bg + dot pattern. */
.inv-activate-backdrop {
  display: none;
}

body:has(.inv-activate-backdrop) {
  background-color: var(--inv-guest-bg);
  background-image:
    var(--inv-activate-backdrop-image, none),
    var(--inv-decor-backdrop-pattern, none);
  background-size:
    var(--inv-activate-backdrop-size, cover),
    var(--inv-decor-backdrop-pattern-size, auto);
  background-position:
    var(--inv-activate-backdrop-position, center),
    center;
  background-repeat: no-repeat, repeat;
  background-attachment: fixed, scroll;
}

body:has(.inv-activate-backdrop) .guest-main-content,
body:has(.inv-activate-backdrop) .guest-header.header-bg-light,
body:has(.inv-activate-backdrop) .guest-header.header-bg-dark {
  background: transparent;
  background-image: none;
}

/* List of users a key has been shared with. Borderless rows with a circular
   brand-tinted leading icon and an outlined Remove button. */
.inv-keyshare-extras-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--inv-keyshare-extra-row-gap, 12px);
  width: 100%;
}

.inv-keyshare-extra-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--inv-keyshare-extra-row-padding, 12px 4px);
  background-color: var(--inv-keyshare-extra-row-bg, transparent);
  border-bottom: var(--inv-keyshare-extra-row-divider, 1px solid var(--inv-border-primary, var(--inv-border-solid-tertiary)));
}

.inv-keyshare-extras-list .inv-keyshare-extra-row:last-child {
  border-bottom: var(--inv-keyshare-extra-row-divider-last, none);
}

.inv-keyshare-extra-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid var(--inv-keyshare-extra-icon-border-color, var(--inv-text-brand-primary));
  background-color: var(--inv-keyshare-extra-icon-bg, transparent);
  color: var(--inv-keyshare-extra-icon-color, var(--inv-text-brand-primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inv-keyshare-extra-icon mat-icon,
.inv-keyshare-extra-icon svg {
  width: 18px;
  height: 18px;
}

.inv-keyshare-extra-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.inv-keyshare-extra-info .name {
  font-weight: 600;
  color: var(--inv-text-primary);
}

.inv-keyshare-extra-info .meta {
  color: var(--inv-text-tertiary, var(--inv-text-secondary));
  font-size: 0.875rem;
}

/* Visbook subproduct row — collapsible "child product" card in the
   VisbookCategoryPage list. Header is the clickable summary; body is the
   expanded panel with the Book-now CTA. Themable via the tokens below. */
.inv-visbook-subproduct {
  width: 100%;
  background-color: var(--inv-visbook-subproduct-bg, var(--inv-box-bg-color));
  border: var(--inv-visbook-subproduct-border, none);
  border-radius: var(--inv-visbook-subproduct-radius, 8px);
  box-shadow: var(--inv-visbook-subproduct-shadow, 0px 12px 16px -4px #10182814);
  overflow: hidden;
}

.inv-visbook-subproduct-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.inv-visbook-subproduct-body {
  padding: 0 16px 16px;
  display: flex;
  align-items: center;
  justify-content: end;
}

/* Climate device card — two-row layout. Row 1: device name (left) + current
   temperature reading (right, display font, 30px). Row 2: status text (left)
   + trio of hollow brand-bordered mode buttons (right). Defaults to a white
   surface with the two-layer ambient shadow used by other hero cards; no
   left stripe. */
.inv-temp-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  row-gap: 8px;
  column-gap: 12px;
  padding: 16px;
  background-color: var(--inv-temp-card-bg, #ffffff);
  border-radius: 14px;
  box-shadow: var(--inv-temp-card-shadow,
    0px 4px 6px -2px #10182808,
    0px 12px 16px -4px #10182814);
}

.inv-temp-card-name {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  font-family: var(--inv-body-font-family);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--inv-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.inv-temp-card-temp {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: end;
  font-family: var(--inv-display-font-family);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  color: var(--inv-text-primary);
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

.inv-temp-card-status {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  font-family: var(--inv-body-font-family);
  font-size: 14px;
  line-height: 1.2;
  color: var(--inv-text-primary);
}

.inv-temp-card-modes {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 170px;
}

/* Hollow brand-bordered mode chip. No icon — the label itself (-3°C / eco /
   +3°C) drives the affordance. Active mode flips to a filled bg. */
.inv-temp-card-mode-btn {
  padding: 4px 10px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--inv-temp-card-mode-border-color, var(--inv-primary-accent-color));
  border-radius: 8px;
  background-color: transparent;
  color: var(--inv-temp-card-mode-color, var(--inv-primary-accent-color));
  font-family: var(--inv-body-font-family);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.inv-temp-card-mode-btn--active {
  background-color: var(--inv-primary-accent-color);
  color: #FFFFFF;
}

.inv-temp-card-mode-btn:active {
  transform: scale(0.96);
}

.inv-temp-card-mode-btn:disabled,
.inv-temp-card-mode-btn[aria-disabled="true"] {
  cursor: not-allowed;
}

/* Unavailable device — grey surface, muted name, disabled mode chips with
   stone-grey border. Themes can recolor by overriding the per-state tokens
   below; the defaults match lynra (and the cross-theme fallback). */
.inv-temp-card--unavail {
  background-color: var(--inv-temp-card-unavail-bg, #E1E1E4);
  --inv-temp-card-mode-border-color: var(--inv-temp-card-unavail-mode-border, #797979);
  --inv-temp-card-mode-color: var(--inv-temp-card-unavail-mode-color, #797979);
}

.inv-temp-card--unavail .inv-temp-card-name {
  color: var(--inv-temp-card-unavail-name-color, #1C19178F);
}

/* HTMX loader — replace the mode buttons with a spinning refresh icon while a
   request is in flight, so the buttons can't be re-clicked. Sized to match
   a single mode button (32px tall) so the row doesn't reflow during loading;
   the .inv-temp-card-modes container width (170px) anchors the column. */
.inv-temp-card-mode-refresh {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: var(--inv-text-tertiary, #7A8294);
}

.inv-temp-card-mode-refresh mat-icon,
.inv-temp-card-mode-refresh svg {
  width: 20px;
  height: 20px;
}

.inv-temp-card-modes.htmx-request .inv-temp-card-mode-btn {
  display: none;
}

.inv-temp-card-modes.htmx-request .inv-temp-card-mode-refresh {
  display: inline-flex;
}

/* Initial load — same spinning refresh, sized to slot into the right column. */
.inv-temp-card-bootloader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--inv-text-tertiary, #7A8294);
}

.inv-temp-card-bootloader mat-icon,
.inv-temp-card-bootloader svg {
  width: 24px;
  height: 24px;
}

.inv-markdown-render {
  word-break: normal;
  /* Long unbreakable runs (URLs, references) wrap instead of widening #main —
     CMS-authored content was making the page horizontally pannable. */
  overflow-wrap: anywhere;
}

/* CMS content guards: wide markdown content must never widen the page.
   Tables get their own horizontal scroll; images cap to the column. */
.inv-markdown-render table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.inv-markdown-render img {
  max-width: 100%;
  height: auto;
}

.inv-markdown-render pre {
  max-width: 100%;
  overflow-x: auto;
}

.inv-markdown-render p:not(:first-child) {
  margin-block-start: 1rem;
}

.inv-markdown-render p:not(:last-child) {
  margin-block-end: 1rem;
}


.inv-markdown-render p,
.inv-markdown-render a {
  color: var(--inv-text-primary);
}

.inv-markdown-render strong {
  color: var(--inv-text-primary);
}


/* tw 3xl font size */
.inv-markdown-render h1
{
  font-size: 30px;
  line-height: 36px;
  color: var(--inv-text-primary);
  margin-top: 2rem;
  margin-bottom: 2rem;
} 


/* tw 2xl font size */
.inv-markdown-render h2
{
  font-size: 22.78px;
  line-height: 26.7px;
  color: var(--inv-text-primary);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* tw xl font size */
.inv-markdown-render h3
{
  font-size: 20.25px;
  line-height: 26px;
  color: var(--inv-text-primary);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* tw lg font size */
.inv-markdown-render h4
{
  font-size: 18px;
  line-height: 24px;
  color: var(--inv-text-primary);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.inv-markdown-render a {
  text-decoration: underline;
  color: var(--inv-link-color);
}

.inv-markdown-render span[class*="mat-icon"] {
  margin-right: 4px;
  vertical-align: middle;
}

.inv-markdown-render span[class*="mat-icon"]+a {
  vertical-align: middle;
}

.inv-markdown-render ul {
  padding-left: 1rem;
  list-style: disc;
}

.inv-markdown-render ol {
  list-style: decimal;
  padding-left: 1rem;
}

.inv-markdown-render blockquote {
  border-left: 1px solid var(--inv-text-grey);
  padding-left: 1rem;
  font-style: italic;
}

/* Keyframes for animations */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes flip {

  0%,
  100% {
    transform: scaleX(1);
  }

  50% {
    transform: scaleX(-1);
  }
}


.inv-guest-input-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}


.inv-guest-input-container label {
  display: block;
  margin-left: 5px;
  margin-bottom: 3px;
  color: var(--inv-guest-input-label-color, var(--inv-text-primary));
}

.inv-guest-input-container input,
.inv-guest-input-container textarea,
.inv-guest-textarea {
  width: 100%;
  background-color: var(--inv-guest-input-bg, #E7E5E4);
  color: var(--inv-guest-input-color, var(--inv-text-primary));
  padding: var(--inv-guest-input-padding, 10px 14px);
  outline: none;
  border: var(--inv-guest-input-border, none);
  border-radius: var(--inv-guest-input-radius, 8px);
}

.inv-guest-input-container input::placeholder,
.inv-guest-input-container textarea::placeholder,
.inv-guest-textarea::placeholder {
  color: var(--inv-guest-input-placeholder-color, var(--inv-text-quartenary, #79716B));
  opacity: 1;
}

.inv-guest-input-container input:focus,
.inv-guest-input-container textarea:focus,
.inv-guest-textarea:focus {
  box-shadow: 0 0 0 2px var(--inv-input-focus-ring-color);
}

/* Optional icon column next to a labeled input.
   The icon's circle aligns to the input row (bottom-aligned past the label). */
.inv-guest-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
}

.inv-guest-input-row .inv-guest-input-container {
  flex: 1;
  min-width: 0;
}

.inv-guest-input-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  background-color: var(--inv-guest-input-icon-bg, transparent);
  color: var(--inv-guest-input-icon-color, var(--inv-text-brand-primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Sit roughly mid-height of the input row, below the floating label. */
  margin-bottom: 2px;
}
/* 
.inv-guest-input-icon mat-icon,
.inv-guest-input-icon .mat-icon,
.inv-guest-input-icon svg {
  width: 18px;
  height: 18px;
} */

/* Phone input — pill variant aligned with the labeled-input partial. */
.inv-guest-phone-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.inv-guest-phone-container > label {
  display: block;
  margin-left: 5px;
  margin-bottom: 3px;
  color: var(--inv-guest-input-label-color, var(--inv-text-primary));
}

.inv-guest-phone-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.inv-guest-phone-country-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  height: var(--inv-guest-input-height, 40px);
  min-width: 64px;
  background-color: var(--inv-guest-input-bg, #E7E5E4);
  color: var(--inv-guest-input-color, var(--inv-text-primary));
  border: var(--inv-guest-input-border, none);
  border-radius: var(--inv-guest-input-radius, 8px);
}

.inv-guest-phone-country-btn img {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.inv-guest-phone-input {
  flex: 1;
  min-width: 0;
  height: var(--inv-guest-input-height, 40px);
  padding: var(--inv-guest-input-padding, 10px 14px);
  background-color: var(--inv-guest-input-bg, #E7E5E4);
  color: var(--inv-guest-input-color, var(--inv-text-primary));
  border: var(--inv-guest-input-border, none);
  border-radius: var(--inv-guest-input-radius, 8px);
  outline: none;
}

.inv-guest-phone-input:focus,
.inv-guest-phone-country-btn:focus {
  box-shadow: 0 0 0 2px var(--inv-input-focus-ring-color);
}

.inv-guest-phone-input::placeholder {
  color: var(--inv-guest-input-placeholder-color, var(--inv-text-quartenary, #79716B));
  opacity: 1;
}

.address-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: start;
}

.map-box {
  background: linear-gradient(45deg, blue, green);
  border-radius: 8px;
  height: 80px;
  width: 80px;
}

.date-box {
  border-radius: var(--inv-border-radius);
  background-color: var(--inv-box-bg-secondary);
}

.shop-selector-button {
  background: var(--inv-box-bg-secondary);
  border: 2px solid var(--inv-link-color);
}

progress {
  /* WebKit (Safari, iOS WKWebView) renders the native progress widget by
     default and ignores most ::-webkit-progress-* styling — including
     border-radius overrides. Opting out of the native appearance is
     required for the pseudo-element rules below to actually take effect. */
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border: none;
  overflow: hidden;
  position: fixed;
  top: calc(var(--header-height) + var(--inv-safe-area-top));
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--inv-box-bg-color);
}

progress::-webkit-progress-bar {
  background-color: var(--inv-box-bg-color);
}

progress::-webkit-progress-value {
  background-color: var(--inv-progress-fill, var(--inv-text-brand-primary));
  border-radius: 0px 24px 24px 0px;
  transition: width 0.3s ease;
}

progress::-moz-progress-bar {
  background-color: var(--inv-progress-fill, var(--inv-text-brand-primary));
  border-radius: 0px 24px 24px 0px;
  transition: width 0.3s ease;
}

progress[value="100"] {
  border-radius: 0px;
}

progress[value="100"]::-webkit-progress-value {
  border-radius: 0px;
}

button.faq-content[aria-expanded="false"] .faq-question {
  overflow-wrap: break-word;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.review-links hr:last-child {
  display: none;
}

/* === Guest-only rating component styles migrated from shared/components.css.
   Used by Common/Components/Rating/ZeroTenRating.cshtml and StarRating.cshtml,
   which are only rendered from Guest/Checkout views. === */

.feedback-zeroten {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  max-width: 380px;
  padding: 10px 0;
}

.feedback-zeroten-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Monocolor 0-10 chips. The red→green gradient was retired in favour of a
   single theme-driven swatch so the rating reads as neutral input rather
   than a pre-loaded sentiment scale. --inv-nps-button-bg / -color let each
   theme pick its own pair; the defaults below cover untouched themes. */
.feedback-zeroten-button {
  background-color: var(--inv-nps-button-bg, var(--inv-primary-accent-color));
  color: var(--inv-nps-button-color, #ffffff);
  font-weight: 600;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 1.75rem;
  height: 2.5rem;
  display: inline-flex
}

@media (max-width: 405px) {
  .feedback-zeroten-button {
    width: 1.5rem;
    height: 2.5rem;
  }
}

.feedback-zeroten-input:checked + .feedback-zeroten-button {
    outline: 2px solid #000000;
}

.feedback-star {
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    height: 40px;
    width: 40px;
}

@keyframes feedbackstarping {
    75%, 100% {
        transform: scale(1.3);
    }
}

.feedback-star:hover {
    animation: feedbackstarping 300ms linear both;
}

.feedback-star-full + span {
    background-image: url('/icons/star-full-guest.svg');
}

.feedback-star-empty + span {
    background-image: url('/icons/star-empty-guest.svg');
}

.feedback-star-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.feedback-star-input:focus + span {
  animation: feedbackstarping 300ms linear both;
}

/* Inactive-lockboxes card — soft-grey "keys not available yet" panel rendered
   on GuestMain when no active key sessions exist. */
.inv-inactive-lockbox-card {
  background-color: var(--inv-inactive-lockbox-bg);
}

/* ─── Language picker: in-menu list (rendered inside a faq-item card) ─── */

.guest-lang-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guest-lang-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  text-align: left;
  font-size: 1rem;
  color: var(--inv-text-color, currentColor);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.guest-lang-menu-item[aria-selected="true"] {
  font-weight: 600;
}

.guest-lang-menu-item:hover,
.guest-lang-menu-item:focus-visible {
  background: rgba(0, 0, 0, 0.04);
}

/* ─── Language picker: header popover ─── */

.guest-lang-popover {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 0.25rem 0;
  min-width: 10rem;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 50;
  list-style: none;
  margin: 0;
}

.guest-lang-popover-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  text-align: left;
  font-size: 1rem;
  color: var(--inv-primary, currentColor);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.guest-lang-popover-item[aria-selected="true"] {
  font-weight: 600;
}

.guest-lang-popover-item:hover,
.guest-lang-popover-item:focus-visible {
  background: rgba(0, 0, 0, 0.04);
}
