/* Jak V9.4 — native Nowistay preview/confirm booking journey. */

body.v94-checkout-open {
  overflow: hidden;
}

.v94-native-cta {
  width: 100%;
  cursor: pointer;
}

.v94-native-cta span {
  min-width: 0;
  text-align: left;
}

.v94-checkout {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}

.v94-checkout[hidden] {
  display: none;
}

.v94-checkout__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, .76);
  backdrop-filter: blur(3px);
}

.v94-checkout__card {
  position: relative;
  width: min(100%, 620px);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(184, 149, 107, .75);
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

.v94-checkout__header {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 92px;
  padding: 21px 66px 18px 24px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(10, 10, 10, .13);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
}

.v94-checkout__header > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.v94-checkout__header h2 {
  margin: 0;
  color: #0a0a0a;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(22px, 4vw, 29px);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.12;
}

.v94-eyebrow {
  color: #8a6d4b;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .17em;
  line-height: 1.2;
  text-transform: uppercase;
}

.v94-checkout__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(10, 10, 10, .2);
  background: #fff;
  color: #0a0a0a;
  font: 300 25px/1 Arial, sans-serif;
  cursor: pointer;
}

.v94-checkout__close:hover,
.v94-checkout__close:focus-visible {
  outline: none;
  border-color: #8a6d4b;
  color: #8a6d4b;
}

.v94-checkout__close:disabled {
  opacity: .35;
  cursor: wait;
}

.v94-checkout__body {
  padding: 24px;
}

.v94-intro {
  max-width: 56ch;
  margin: 0 0 22px;
  color: #4b4640;
  font-size: 13px;
  line-height: 1.65;
}

.v94-form,
.v94-confirm {
  display: grid;
  gap: 17px;
}

.v94-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.v94-form label:not(.v94-consent) {
  display: grid;
  gap: 7px;
}

.v94-form label > span:first-child {
  color: #292622;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.v94-form input[type="text"],
.v94-form input[type="email"],
.v94-form input[type="tel"] {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgba(10, 10, 10, .25);
  border-radius: 0;
  background: #fff;
  color: #0a0a0a;
  padding: 12px 13px;
  font: 400 14px/1.35 "Inter", Arial, sans-serif;
  appearance: none;
}

.v94-form input:hover {
  border-color: rgba(10, 10, 10, .5);
}

.v94-form input:focus-visible {
  outline: 2px solid rgba(184, 149, 107, .42);
  outline-offset: 1px;
  border-color: #8a6d4b;
}

.v94-form.is-submitted input:invalid,
.v94-form input:user-invalid {
  border-color: #9d3636;
}

.v94-form label small {
  color: #77716a;
  font-size: 10px;
  line-height: 1.4;
}

.v94-privacy,
.v94-inventory,
.v94-warning {
  margin: 0;
  padding: 12px 13px;
  border-left: 3px solid #b8956b;
  background: #f8f5f0;
  color: #514a43;
  font-size: 10.5px;
  line-height: 1.55;
}

.v94-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.v94-privacy span {
  flex: 0 0 auto;
  color: #8a6d4b;
}

.v94-warning {
  margin-bottom: 18px;
  border-left-color: #8a6d4b;
  background: #fff8e9;
}

.v94-error {
  margin: 0;
  padding: 12px 13px;
  border: 1px solid rgba(157, 54, 54, .38);
  background: #fff4f2;
  color: #812b2b;
  font-size: 11px;
  line-height: 1.5;
}

.v94-error[hidden] {
  display: none;
}

.v94-primary {
  min-height: 50px;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #0a0a0a;
  border-radius: 0;
  background: #0a0a0a;
  color: #fff;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .065em;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.v94-primary > span:last-child {
  flex: 0 0 auto;
  color: #b8956b;
  font: 400 18px/1 "Inter", Arial, sans-serif;
}

.v94-primary:hover,
.v94-primary:focus-visible {
  outline: none;
  border-color: #8a6d4b;
  background: #8a6d4b;
}

.v94-primary:hover > span:last-child,
.v94-primary:focus-visible > span:last-child {
  color: #fff;
}

.v94-primary:disabled {
  opacity: .62;
  cursor: wait;
}

.v94-primary.is-loading > span:last-child {
  width: 15px;
  height: 15px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  color: transparent;
  animation: v94-spin .8s linear infinite;
}

@keyframes v94-spin {
  to { transform: rotate(360deg); }
}

.v94-secondary,
.v94-fallback {
  justify-self: center;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid #8a6d4b;
  background: transparent;
  color: #6f563c;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.v94-secondary:hover,
.v94-secondary:focus-visible,
.v94-fallback:hover,
.v94-fallback:focus-visible {
  outline: none;
  border-color: #0a0a0a;
  color: #0a0a0a;
}

.v94-fineprint {
  margin: -5px 0 0;
  color: #77716a;
  font-size: 9.5px;
  line-height: 1.45;
  text-align: center;
}

.v94-summary {
  border: 1px solid rgba(10, 10, 10, .17);
  background: #fff;
}

.v94-summary__stay {
  padding: 17px 18px;
  display: grid;
  gap: 5px;
  background: #f8f5f0;
  border-bottom: 1px solid rgba(10, 10, 10, .12);
}

.v94-summary__stay strong {
  color: #0a0a0a;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.v94-summary__stay span {
  color: #4e4943;
  font-size: 11px;
  line-height: 1.4;
}

.v94-summary__stay small {
  color: #77716a;
  font-size: 9.5px;
  line-height: 1.4;
}

.v94-summary__lines {
  padding: 16px 18px 13px;
  display: grid;
  gap: 9px;
}

.v94-summary__lines > div,
.v94-summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.v94-summary__lines span {
  color: #66605a;
  font-size: 11.5px;
}

.v94-summary__lines strong {
  color: #201e1b;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.v94-summary__total {
  margin: 0 18px;
  padding: 14px 0 17px;
  border-top: 1px solid rgba(10, 10, 10, .15);
}

.v94-summary__total span {
  color: #0a0a0a;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.v94-summary__total strong {
  color: #0a0a0a;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.v94-contact-recap {
  margin: 13px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: #6d6760;
  font-size: 10px;
  line-height: 1.4;
}

.v94-contact-recap span:not(:last-child)::after {
  content: "·";
  margin-left: 14px;
  color: #b8956b;
}

.v94-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #302d29;
  font-size: 11px;
  line-height: 1.55;
  cursor: pointer;
}

.v94-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #0a0a0a;
}

.v94-consent input:focus-visible {
  outline: 2px solid rgba(184, 149, 107, .55);
  outline-offset: 2px;
}

.v94-complete {
  min-height: 300px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 17px;
  text-align: center;
}

.v94-complete__mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #b8956b;
  color: #8a6d4b;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 25px;
}

.v94-complete p {
  max-width: 50ch;
  margin: 0;
  color: #423d37;
  font-size: 13px;
  line-height: 1.65;
}

.v94-complete small {
  color: #77716a;
  font-size: 10px;
  line-height: 1.45;
}

.v94-payment {
  width: min(100%, 430px);
}

.v94-reference {
  display: grid;
  gap: 3px;
  color: #77716a;
  font-size: 9px;
  line-height: 1.35;
}

.v94-reference strong {
  color: #2b2824;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

@media (max-width: 620px) {
  .v94-checkout {
    place-items: end center;
    padding: 0;
  }

  .v94-checkout__card {
    width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .v94-checkout__header {
    min-height: 82px;
    padding: 18px 60px 16px 17px;
  }

  .v94-checkout__close {
    top: 15px;
    right: 14px;
  }

  .v94-checkout__body {
    padding: 19px 17px max(20px, env(safe-area-inset-bottom));
  }

  .v94-form__grid {
    grid-template-columns: 1fr;
  }

  .v94-summary__stay strong {
    font-size: 15px;
  }

  .v94-summary__total strong {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v94-primary.is-loading > span:last-child {
    animation-duration: 1.6s;
  }
}
