.nr-calendar-shell {
  --nr-ink: #2e4336;
  --nr-paper: #f5f2e9;
  --nr-line: rgba(46, 67, 54, 0.22);
  --nr-muted: #667268;
  width: min(100% - 32px, 860px);
  margin: 48px auto;
  color: var(--nr-ink);
}

[data-nr-calendar] {
  min-width: 0;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--nr-line);
  border-radius: 12px;
  background: var(--nr-paper);
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 300;
}

.nr-calendar__eyebrow {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.nr-calendar__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nr-calendar__intro {
  max-width: 58ch;
  margin: 16px 0 34px;
  font-size: 14px;
  line-height: 1.7;
}

.nr-calendar__controls {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.nr-calendar__month {
  margin: 0;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0;
}

.nr-calendar__nav,
.nr-calendar__retry {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--nr-line);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.nr-calendar__nav {
  font-size: 28px;
  line-height: 1;
}

.nr-calendar__nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.nr-calendar__weekdays,
.nr-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.nr-calendar__weekdays {
  margin-bottom: 8px;
  text-align: center;
  color: var(--nr-muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nr-calendar__day {
  position: relative;
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 68px;
  padding: 7px 2px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.4);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.nr-calendar__day:hover:not(:disabled) {
  border-color: var(--nr-ink);
}

.nr-calendar__day:focus-visible,
.nr-calendar__nav:focus-visible,
.nr-calendar__retry:focus-visible,
.nr-calendar__booking:focus-visible {
  outline: 3px solid #1d5d93;
  outline-offset: 3px;
}

.nr-calendar__day:disabled {
  opacity: 0.34;
  cursor: default;
}

.nr-calendar__day.is-in-range {
  background: #dce2d8;
}

.nr-calendar__day.is-start,
.nr-calendar__day.is-end {
  background: var(--nr-ink);
  color: #fff;
}

.nr-calendar__number {
  font-size: 14px;
}

.nr-calendar__price {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.nr-calendar__message {
  min-height: 52px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--nr-line);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}

.nr-calendar__disclosure,
.nr-calendar__transfer {
  color: var(--nr-muted);
  font-size: 11px;
  line-height: 1.6;
}

.nr-calendar__disclosure {
  margin: 10px 0 20px;
}

.nr-calendar__booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--nr-ink);
  background: var(--nr-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.nr-calendar__transfer {
  margin: 11px 0 0;
}

.nr-calendar__clear {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.nr-calendar__clear:disabled { opacity: .4; cursor: default; }
.nr-calendar__clear:focus-visible { outline: 2px solid #1d5d93; outline-offset: 3px; }

.nr-calendar__retry {
  grid-column: 1 / -1;
  justify-self: center;
  width: auto;
  min-width: 110px;
  padding: 8px 16px;
  border-radius: 0;
  font-size: 12px;
}

@media (max-width: 560px) {
  .nr-calendar-shell {
    width: min(100% - 20px, 860px);
    margin: 28px auto;
  }

  [data-nr-calendar] {
    padding: 24px 14px 28px;
  }

  .nr-calendar__intro {
    margin-bottom: 26px;
    font-size: 13px;
  }

  .nr-calendar__weekdays,
  .nr-calendar__grid {
    gap: 3px;
  }

  .nr-calendar__weekdays {
    font-size: 8px;
  }

  .nr-calendar__day {
    min-height: 58px;
    padding: 5px 1px;
  }

  .nr-calendar__number {
    font-size: 12px;
  }

  .nr-calendar__price {
    font-size: 8px;
  }
}
