/**
 * Amenitiz Booking Widget frontend styles.
 * All component rules are scoped to the plugin classes.
 */

.abw-widget,
.abw-standalone-wrap,
.abw-modal,
.abw-lightbox {
  --abw-primary: #19382f;
  --abw-accent: #b38855;
  --abw-ink: #17211e;
  --abw-muted: #67716d;
  --abw-line: #dfe5e2;
  --abw-soft: #f5f7f6;
  --abw-white: #fff;
  --abw-danger: #9f2f2f;
  --abw-positive: #24734d;
  --abw-shadow: 0 20px 55px rgba(17, 36, 31, 0.11);
  --abw-radius: 18px;
  font-family: inherit;
  color: var(--abw-ink);
}

.abw-widget *,
.abw-standalone-wrap *,
.abw-modal *,
.abw-lightbox * {
  box-sizing: border-box;
}

.abw-widget {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  isolation: isolate;
}

.abw-widget.is-datepicker-open {
  z-index: 99999;
}

.abw-widget button,
.abw-widget input,
.abw-widget select,
.abw-modal button,
.abw-lightbox button {
  font: inherit;
}

.abw-admin-warning {
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid #e7c879;
  border-radius: 10px;
  background: #fff8df;
  color: #573f00;
}

.abw-admin-warning a {
  color: inherit;
  font-weight: 700;
}

.abw-widget-header {
  margin-bottom: 22px;
  text-align: center;
}

.abw-widget-title {
  margin: 0;
  color: var(--abw-primary);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.abw-widget-subtitle {
  max-width: 680px;
  margin: 9px auto 0;
  color: var(--abw-muted);
  font-size: 1rem;
}

.abw-search-form {
  position: relative;
  z-index: 2;
  overflow: visible;
  padding: 14px;
  border: 1px solid rgba(25, 56, 47, 0.12);
  border-radius: var(--abw-radius);
  background: var(--abw-white);
  box-shadow: var(--abw-shadow);
}

.abw-search-fields {
  display: grid;
  grid-template-columns: minmax(150px, 1.3fr) minmax(150px, 1.3fr) minmax(95px, 0.65fr) minmax(95px, 0.65fr) minmax(155px, 0.9fr);
  gap: 9px;
  align-items: stretch;
}

.abw-search-fields-no-children {
  grid-template-columns: minmax(150px, 1.3fr) minmax(150px, 1.3fr) minmax(95px, 0.65fr) minmax(155px, 0.9fr);
}

.abw-form-field {
  position: relative;
  display: flex;
  min-height: 66px;
  flex-direction: column;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid var(--abw-line);
  border-radius: 12px;
  background: var(--abw-white);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.abw-form-field:focus-within {
  border-color: color-mix(in srgb, var(--abw-primary) 50%, white);
  background: var(--abw-white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--abw-primary) 12%, transparent);
}

.abw-field-caption {
  display: block;
  margin-bottom: 4px;
  color: var(--abw-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.abw-form-field input,
.abw-form-field select {
  width: 100%;
  min-width: 0;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--abw-ink);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.25;
}

.abw-widget .abw-form-field select {
  min-height: 28px !important;
  padding: 0 24px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--abw-ink) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
}

.abw-select-field::after {
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--abw-muted);
  border-bottom: 2px solid var(--abw-muted);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.abw-widget button.abw-date-field {
  width: 100%;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--abw-line) !important;
  background: var(--abw-white) !important;
  box-shadow: none !important;
  color: var(--abw-ink) !important;
  cursor: pointer;
  text-align: left;
}

.abw-widget button.abw-date-field:hover {
  border-color: color-mix(in srgb, var(--abw-primary) 34%, var(--abw-line)) !important;
  background: color-mix(in srgb, var(--abw-primary) 2%, white) !important;
}

.abw-widget button.abw-date-field:focus,
.abw-widget button.abw-date-field[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--abw-primary) 55%, white) !important;
  outline: 0;
  background: var(--abw-white) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--abw-primary) 11%, transparent) !important;
}

.abw-date-field-line {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.abw-date-value {
  min-width: 0;
  overflow: hidden;
  color: var(--abw-ink);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.abw-date-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: var(--abw-primary);
}

.abw-search-button,
.abw-book-button,
.abw-standalone-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--abw-primary);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--abw-primary) 20%, transparent);
  color: var(--abw-white);
  cursor: pointer;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.abw-search-button:hover,
.abw-book-button:hover,
.abw-standalone-button:hover {
  color: var(--abw-white);
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--abw-primary) 28%, transparent);
}

.abw-search-button:focus-visible,
.abw-book-button:focus-visible,
.abw-standalone-button:focus-visible,
.abw-rate-toggle:focus-visible,
.abw-gallery-button:focus-visible,
.abw-modal button:focus-visible,
.abw-modal a:focus-visible,
.abw-lightbox button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--abw-accent) 60%, white);
  outline-offset: 3px;
}

.abw-search-button:disabled {
  cursor: wait;
  filter: grayscale(0.35);
  opacity: 0.72;
  transform: none;
}

.abw-button-spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: abw-spin 0.7s linear infinite;
}

.abw-search-button.is-loading .abw-button-spinner {
  display: inline-block;
}

.abw-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 19px;
  margin-top: 12px;
  color: var(--abw-muted);
  font-size: 0.79rem;
  font-weight: 650;
}

.abw-trust-row span::before {
  margin-right: 6px;
  color: var(--abw-accent);
  content: "✓";
  font-weight: 900;
}

.abw-datepicker[hidden],
.abw-datepicker-backdrop[hidden],
.abw-results[hidden] {
  display: none !important;
}

.abw-datepicker-backdrop {
  display: none;
}

.abw-datepicker {
  position: absolute;
  top: calc(100% + 12px);
  left: 14px;
  z-index: 45;
  width: min(790px, calc(100% - 28px));
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--abw-primary) 15%, var(--abw-line));
  border-radius: 20px;
  background: var(--abw-white);
  box-shadow: 0 28px 75px rgba(18, 37, 31, 0.2);
}

.abw-datepicker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
  padding: 1px 1px 14px;
  border-bottom: 1px solid var(--abw-line);
}

.abw-datepicker-header > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.abw-datepicker-header strong {
  color: var(--abw-ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.abw-datepicker-header span {
  color: var(--abw-muted);
  font-size: 0.82rem;
}

.abw-datepicker-close,
.abw-datepicker-nav {
  display: inline-grid;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 1px solid var(--abw-line) !important;
  background: var(--abw-white) !important;
  box-shadow: none !important;
  color: var(--abw-primary) !important;
  cursor: pointer;
}

.abw-datepicker-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
}

.abw-datepicker-close svg,
.abw-datepicker-nav svg {
  width: 18px;
  height: 18px;
}

.abw-datepicker-close:hover,
.abw-datepicker-nav:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--abw-primary) 40%, var(--abw-line)) !important;
  background: color-mix(in srgb, var(--abw-primary) 6%, white) !important;
}

.abw-datepicker-close:focus-visible,
.abw-datepicker-nav:focus-visible,
.abw-datepicker-apply:focus-visible,
.abw-calendar-day:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--abw-accent) 48%, white);
  outline-offset: 2px;
}

.abw-datepicker-calendar {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
}

.abw-datepicker-nav {
  width: 36px;
  height: 44px;
  border-radius: 11px;
}

.abw-datepicker-nav:disabled {
  cursor: default;
  opacity: 0.25;
}

.abw-datepicker-months {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.abw-calendar-month {
  min-width: 0;
}

.abw-calendar-month h3 {
  margin: 0 0 13px;
  color: var(--abw-primary);
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
}

.abw-calendar-weekdays,
.abw-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.abw-calendar-weekdays {
  margin-bottom: 6px;
}

.abw-calendar-weekdays span {
  padding: 3px 0;
  color: var(--abw-muted);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.025em;
  text-align: center;
  text-transform: uppercase;
}

.abw-calendar-days {
  gap: 3px;
}

.abw-calendar-empty,
.abw-calendar-day {
  aspect-ratio: 1 / 1;
}

.abw-widget button.abw-calendar-day {
  position: relative;
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0 !important;
  border-radius: 10px;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--abw-ink) !important;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
}

.abw-widget button.abw-calendar-day:hover:not(:disabled):not(.is-start):not(.is-end) {
  background: color-mix(in srgb, var(--abw-primary) 8%, white) !important;
}

.abw-widget button.abw-calendar-day.is-in-range {
  border-radius: 7px;
  background: color-mix(in srgb, var(--abw-primary) 10%, white) !important;
  color: var(--abw-primary) !important;
}

.abw-widget button.abw-calendar-day.is-start,
.abw-widget button.abw-calendar-day.is-end {
  background: var(--abw-primary) !important;
  color: var(--abw-white) !important;
  font-weight: 800;
}

.abw-widget button.abw-calendar-day.is-today:not(.is-start):not(.is-end)::after {
  position: absolute;
  right: 29%;
  bottom: 4px;
  left: 29%;
  height: 2px;
  border-radius: 2px;
  background: var(--abw-accent);
  content: "";
}

.abw-widget button.abw-calendar-day:disabled {
  cursor: not-allowed;
  opacity: 0.28;
}

.abw-datepicker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--abw-line);
}

.abw-datepicker-selection {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.abw-datepicker-selection strong {
  overflow: hidden;
  color: var(--abw-ink);
  font-size: 0.85rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.abw-datepicker-selection span {
  color: var(--abw-muted);
  font-size: 0.75rem;
}

.abw-widget button.abw-datepicker-apply {
  min-height: 42px;
  margin: 0;
  padding: 9px 18px;
  border: 0 !important;
  border-radius: 10px;
  background: var(--abw-primary) !important;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--abw-primary) 20%, transparent) !important;
  color: var(--abw-white) !important;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
}

.abw-widget button.abw-datepicker-apply:hover:not(:disabled) {
  filter: brightness(1.08);
}

.abw-widget button.abw-datepicker-apply:disabled {
  cursor: default;
  opacity: 0.4;
  box-shadow: none !important;
}

.abw-results {
  min-height: 0;
  margin-top: 25px;
}

.abw-prompt,
.abw-loading,
.abw-message {
  display: flex;
  min-height: 145px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 28px;
  border: 1px dashed var(--abw-line);
  border-radius: var(--abw-radius);
  background: color-mix(in srgb, var(--abw-soft) 80%, white);
  color: var(--abw-muted);
  text-align: center;
}

.abw-prompt p,
.abw-loading p,
.abw-message p {
  margin: 0;
}

.abw-prompt-icon,
.abw-message > span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--abw-primary) 9%, white);
  color: var(--abw-primary);
  font-size: 1.35rem;
}

.abw-loading {
  position: relative;
  flex-direction: column;
  overflow: hidden;
}

.abw-loader {
  display: inline-block;
  width: 31px;
  height: 31px;
  border: 3px solid color-mix(in srgb, var(--abw-primary) 15%, white);
  border-top-color: var(--abw-primary);
  border-radius: 50%;
  animation: abw-spin 0.75s linear infinite;
}

.abw-skeletons {
  display: grid;
  width: min(700px, 92%);
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.abw-skeletons span {
  height: 9px;
  border-radius: 20px;
  background: linear-gradient(90deg, #e9eeeb, #f9faf9, #e9eeeb);
  background-size: 200% 100%;
  animation: abw-shimmer 1.3s infinite linear;
}

.abw-message {
  text-align: left;
}

.abw-message strong {
  display: block;
  color: var(--abw-ink);
}

.abw-message a {
  color: var(--abw-primary);
  font-weight: 750;
}

.abw-message-error {
  border-style: solid;
  border-color: color-mix(in srgb, var(--abw-danger) 20%, white);
  background: color-mix(in srgb, var(--abw-danger) 5%, white);
}

.abw-message-error > span {
  background: color-mix(in srgb, var(--abw-danger) 10%, white);
  color: var(--abw-danger);
  font-weight: 900;
}

.abw-retry {
  margin-top: 12px;
  padding: 7px 12px;
  border: 1px solid var(--abw-line);
  border-radius: 8px;
  background: var(--abw-white);
  color: var(--abw-primary);
  cursor: pointer;
  font-weight: 700;
}

.abw-fallback-note {
  margin: 0 0 13px;
  padding: 10px 13px;
  border-radius: 9px;
  background: #fff7df;
  color: #6c4e00;
  font-size: 0.86rem;
  text-align: center;
}

.abw-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 13px;
  padding: 0 3px;
}

.abw-results-header > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.abw-results-header strong {
  color: var(--abw-primary);
  font-size: 1.03rem;
}

.abw-results-header span,
.abw-results-header small {
  color: var(--abw-muted);
  font-size: 0.82rem;
}

.abw-results-header small {
  padding: 4px 8px;
  border-radius: 99px;
  background: var(--abw-soft);
}

.abw-room-list {
  display: grid;
  gap: 18px;
}

.abw-room-card {
  position: relative;
  display: grid;
  min-height: 260px;
  grid-template-columns: minmax(230px, 33%) 1fr;
  overflow: hidden;
  border: 1px solid var(--abw-line);
  border-radius: var(--abw-radius);
  background: var(--abw-white);
  box-shadow: 0 10px 32px rgba(20, 45, 37, 0.07);
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.abw-room-card:hover {
  border-color: color-mix(in srgb, var(--abw-primary) 24%, white);
  box-shadow: 0 18px 42px rgba(20, 45, 37, 0.11);
  transform: translateY(-2px);
}

.abw-room-card-combination {
  border-color: color-mix(in srgb, var(--abw-accent) 42%, white);
}

.abw-combination-ribbon {
  position: absolute;
  top: 15px;
  left: 0;
  z-index: 3;
  padding: 7px 11px 7px 13px;
  border-radius: 0 8px 8px 0;
  background: var(--abw-accent);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.abw-room-media {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background: #e9eeeb;
}

.abw-room-image,
.abw-room-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.abw-room-image {
  display: block;
  transition: transform 450ms ease;
}

.abw-room-card:hover .abw-room-image {
  transform: scale(1.025);
}

.abw-room-image-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--abw-primary) 12%, white), color-mix(in srgb, var(--abw-accent) 9%, white));
  color: color-mix(in srgb, var(--abw-primary) 70%, white);
}

.abw-room-image-placeholder span {
  font-size: 3rem;
}

.abw-gallery-button,
.abw-room-badge {
  position: absolute;
  z-index: 2;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 750;
}

.abw-gallery-button {
  right: 11px;
  bottom: 11px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--abw-primary);
  cursor: pointer;
}

.abw-room-badge {
  top: 11px;
  right: 11px;
  max-width: calc(100% - 22px);
  overflow: hidden;
  background: rgba(25, 56, 47, 0.86);
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.abw-room-content {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(195px, 245px);
  gap: 25px;
  padding: 24px;
}

.abw-room-copy,
.abw-room-action {
  min-width: 0;
}

.abw-room-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.abw-room-heading h3 {
  margin: 0;
  color: var(--abw-primary);
  font-size: clamp(1.22rem, 2.1vw, 1.62rem);
  line-height: 1.2;
}

.abw-room-heading a {
  flex: 0 0 auto;
  color: var(--abw-accent);
  font-size: 0.83rem;
  font-weight: 750;
  text-decoration: none;
}

.abw-room-heading a:hover {
  text-decoration: underline;
}

.abw-room-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.abw-room-specs span {
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--abw-soft);
  color: var(--abw-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.abw-room-description,
.abw-combination-note {
  margin: 15px 0 0;
  color: var(--abw-muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.abw-combination-note {
  color: color-mix(in srgb, var(--abw-accent) 80%, black);
  font-weight: 700;
}

.abw-room-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding-left: 22px;
  border-left: 1px solid var(--abw-line);
}

.abw-room-price > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: 7px;
}

.abw-room-price > div > span {
  grid-column: 1 / -1;
  color: var(--abw-muted);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
}

.abw-room-price > div > strong {
  color: var(--abw-primary);
  font-size: 1.65rem;
  line-height: 1.05;
}

.abw-room-price > div > small {
  padding-bottom: 2px;
  color: var(--abw-muted);
  font-size: 0.72rem;
}

.abw-room-price > p {
  margin: 9px 0 0;
  color: var(--abw-muted);
  font-size: 0.79rem;
}

.abw-room-price > p strong {
  color: var(--abw-ink);
}

.abw-no-price {
  margin: 0 0 13px;
  color: var(--abw-muted);
  font-size: 0.84rem;
}

.abw-rate-toggle {
  align-self: flex-start;
  margin: 14px 0 9px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--abw-accent);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
}

.abw-rate-list {
  position: absolute;
  right: 22px;
  bottom: 83px;
  z-index: 5;
  width: min(430px, calc(100% - 44px));
  max-height: 300px;
  overflow: auto;
  padding: 7px;
  border: 1px solid var(--abw-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(17, 36, 31, 0.18);
}

.abw-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px;
  border-radius: 8px;
}

.abw-rate-row + .abw-rate-row {
  border-top: 1px solid var(--abw-line);
}

.abw-rate-copy strong {
  display: block;
  font-size: 0.84rem;
}

.abw-rate-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.abw-term {
  padding: 3px 5px;
  border-radius: 4px;
  background: var(--abw-soft);
  color: var(--abw-muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.abw-term-positive {
  background: color-mix(in srgb, var(--abw-positive) 10%, white);
  color: var(--abw-positive);
}

.abw-rate-price {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.abw-rate-price strong {
  color: var(--abw-primary);
  font-size: 0.88rem;
}

.abw-rate-price span,
.abw-rate-price small {
  color: var(--abw-muted);
  font-size: 0.66rem;
}

.abw-book-button {
  width: 100%;
  min-height: 48px;
  margin-top: 15px;
  padding: 10px 14px;
}

.abw-book-button span {
  font-size: 1.18rem;
  transition: transform 160ms ease;
}

.abw-book-button:hover span {
  transform: translateX(3px);
}

.abw-powered-by {
  margin: 15px 0 0;
  color: var(--abw-muted);
  font-size: 0.74rem;
  text-align: center;
}

.abw-layout-compact .abw-widget-header {
  display: none;
}

.abw-layout-compact .abw-search-form {
  padding: 9px;
}

.abw-layout-compact .abw-form-field {
  min-height: 56px;
}

.abw-layout-compact .abw-trust-row {
  display: none;
}

.abw-standalone-wrap {
  display: inline-flex;
}

.abw-standalone-button {
  min-height: 46px;
  padding: 11px 20px;
}

.abw-body-locked {
  overflow: hidden !important;
}

.abw-modal,
.abw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  padding: 15px;
  place-items: center;
  background: rgba(8, 18, 15, 0.74);
  opacity: 0;
  backdrop-filter: blur(6px);
  transition: opacity 180ms ease;
}

.abw-modal.is-visible {
  opacity: 1;
}

.abw-modal.is-closing {
  opacity: 0;
}

.abw-modal-panel {
  display: grid;
  width: min(1440px, 100%);
  height: min(930px, calc(100vh - 30px));
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 95px rgba(0, 0, 0, 0.33);
  transform: translateY(12px) scale(0.99);
  transition: transform 180ms ease;
}

.abw-modal.is-visible .abw-modal-panel {
  transform: translateY(0) scale(1);
}

.abw-modal-header {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(430px, 1.75fr) auto 42px;
  grid-template-areas: "brand summary official close";
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #202322;
  background: linear-gradient(135deg, color-mix(in srgb, var(--abw-primary) 42%, #171918), #222523 72%);
  color: #fff;
}

.abw-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.abw-modal-brand {
  grid-area: brand;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.abw-modal-brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: color-mix(in srgb, var(--abw-accent) 76%, #fff);
}

.abw-modal-brand-mark .abw-icon {
  width: 21px;
  height: 21px;
}

.abw-modal-brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.abw-modal-brand-copy > strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.abw-modal-secure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  line-height: 1.15;
}

.abw-modal-secure .abw-icon {
  width: 13px;
  height: 13px;
}

.abw-modal-summary {
  grid-area: summary;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.abw-modal-detail {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.82);
}

.abw-modal-detail > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.abw-modal-detail strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.77rem;
  font-weight: 650;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.abw-modal-detail small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.66rem;
  line-height: 1;
}

.abw-modal-detail .abw-icon {
  width: 16px;
  height: 16px;
  color: color-mix(in srgb, var(--abw-accent) 72%, #fff);
}

.abw-modal-detail-dates {
  flex: 0 1 auto;
}

.abw-modal-detail-room {
  max-width: 230px;
}

.abw-modal-official {
  grid-area: official;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(179, 136, 85, 0.45);
  border: 1px solid color-mix(in srgb, var(--abw-accent) 46%, transparent);
  border-radius: 999px;
  background: rgba(179, 136, 85, 0.16);
  background: color-mix(in srgb, var(--abw-accent) 16%, transparent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.abw-modal-official .abw-icon {
  width: 16px;
  height: 16px;
  color: color-mix(in srgb, var(--abw-accent) 76%, #fff);
}

.abw-modal-close,
.abw-lightbox-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid var(--abw-line);
  border-radius: 50%;
  background: #fff;
  color: var(--abw-primary);
  cursor: pointer;
  line-height: 1;
}

.abw-modal-close {
  grid-area: close;
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 150ms ease, transform 150ms ease;
}

.abw-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.03);
}

.abw-modal-close .abw-icon {
  width: 19px;
  height: 19px;
}

.abw-modal-body {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--abw-soft);
}

.abw-modal-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--abw-muted);
}

.abw-modal-loading[hidden] {
  display: none;
}

.abw-booking-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  background: #fff;
  transition: opacity 220ms ease;
}

.abw-booking-frame.is-loaded {
  opacity: 1;
}

.abw-modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 11px 17px;
  border-top: 1px solid var(--abw-line);
  background: #fff;
  color: var(--abw-muted);
  font-size: 0.75rem;
}

.abw-modal-footer span,
.abw-modal-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.abw-modal-footer .abw-icon {
  width: 14px;
  height: 14px;
}

.abw-modal-footer-trust .abw-icon {
  color: var(--abw-positive);
}

.abw-modal-footer a {
  color: var(--abw-primary);
  font-weight: 700;
  text-decoration: none;
}

.abw-modal-footer a:hover {
  text-decoration: underline;
}

.abw-lightbox {
  opacity: 1;
}

.abw-lightbox-stage {
  position: relative;
  display: grid;
  width: min(1180px, 100%);
  height: min(820px, calc(100vh - 30px));
  grid-template-columns: 62px 1fr 62px;
  align-items: center;
  border-radius: 16px;
  background: #111;
  box-shadow: 0 28px 95px rgba(0, 0, 0, 0.42);
}

.abw-lightbox figure {
  display: grid;
  height: 100%;
  grid-template-rows: 1fr auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.abw-lightbox figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  opacity: 1;
  transition: opacity 100ms ease;
}

.abw-lightbox figure img.is-changing {
  opacity: 0.3;
}

.abw-lightbox figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 2px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

.abw-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.abw-lightbox-nav {
  display: grid;
  width: 44px;
  height: 64px;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 2.2rem;
}

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

@keyframes abw-shimmer {
  to { background-position: -200% 0; }
}

@media (max-width: 980px) {
  .abw-search-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .abw-search-fields-no-children {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .abw-search-button {
    grid-column: 1 / -1;
    min-height: 50px;
  }

  .abw-room-card {
    grid-template-columns: minmax(220px, 36%) 1fr;
  }

  .abw-room-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .abw-room-action {
    padding: 16px 0 0;
    border-top: 1px solid var(--abw-line);
    border-left: 0;
  }

  .abw-rate-list {
    right: 20px;
    bottom: 76px;
  }

  .abw-modal-header {
    grid-template-columns: minmax(190px, 0.9fr) minmax(300px, 1.4fr) auto 42px;
    gap: 10px;
  }

  .abw-modal-detail-guests {
    display: none;
  }
}

@media (max-width: 720px) {
  .abw-widget-header {
    margin-bottom: 16px;
    text-align: left;
  }

  .abw-widget-subtitle {
    margin-left: 0;
  }

  .abw-search-form {
    padding: 10px;
    border-radius: 14px;
  }

  .abw-search-fields {
    grid-template-columns: 1fr 1fr;
  }

  .abw-search-fields-no-children .abw-adults-field {
    grid-column: 1 / -1;
  }

  .abw-search-button {
    grid-column: 1 / -1;
  }

  .abw-trust-row {
    justify-content: flex-start;
    padding: 0 3px;
  }

  .abw-datepicker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    background: rgba(10, 19, 16, 0.52);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .abw-datepicker {
    position: fixed;
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 90;
    width: auto;
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    padding: 15px;
    border-radius: 18px;
    overscroll-behavior: contain;
  }

  .abw-datepicker-header {
    position: sticky;
    top: -15px;
    z-index: 2;
    margin: -1px -1px 12px;
    padding: 15px 1px 12px;
    background: var(--abw-white);
  }

  .abw-datepicker-calendar {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 7px;
  }

  .abw-datepicker-nav {
    width: 34px;
    height: 42px;
  }

  .abw-datepicker-months {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .abw-calendar-month h3 {
    margin-bottom: 11px;
  }

  .abw-widget button.abw-calendar-day {
    font-size: 0.86rem;
  }

  .abw-datepicker-footer {
    position: sticky;
    bottom: -15px;
    z-index: 2;
    margin: 14px -1px -1px;
    padding: 14px 1px 15px;
    background: var(--abw-white);
  }

  .abw-room-card {
    display: block;
    min-height: 0;
  }

  .abw-room-media,
  .abw-room-image,
  .abw-room-image-placeholder {
    min-height: 230px;
    height: 230px;
  }

  .abw-room-content {
    padding: 19px;
  }

  .abw-room-heading {
    display: block;
  }

  .abw-room-heading a {
    display: inline-block;
    margin-top: 7px;
  }

  .abw-rate-list {
    position: static;
    width: 100%;
    max-height: none;
    margin-bottom: 10px;
    box-shadow: none;
  }

  .abw-modal {
    padding: 0;
  }

  .abw-modal-panel {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .abw-modal-header {
    grid-template-columns: minmax(0, 1fr) auto 40px;
    grid-template-areas:
      "brand official close"
      "summary summary summary";
    gap: 10px 8px;
    padding: 10px 11px 11px;
  }

  .abw-modal-brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
  }

  .abw-modal-brand-mark .abw-icon {
    width: 18px;
    height: 18px;
  }

  .abw-modal-brand-copy > strong {
    font-size: 0.88rem;
  }

  .abw-modal-secure {
    font-size: 0.67rem;
  }

  .abw-modal-summary {
    justify-content: flex-start;
    gap: 7px;
    overflow-x: auto;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    scrollbar-width: none;
  }

  .abw-modal-summary::-webkit-scrollbar {
    display: none;
  }

  .abw-modal-detail {
    flex: 0 0 auto;
    padding: 7px 9px;
  }

  .abw-modal-detail-dates {
    max-width: none;
  }

  .abw-modal-detail-room {
    max-width: 210px;
  }

  .abw-modal-official {
    padding: 7px 9px;
    font-size: 0.68rem;
  }

  .abw-modal-close {
    width: 40px;
    height: 40px;
  }

  .abw-modal-footer {
    gap: 8px 15px;
    padding: 9px 11px;
  }

  .abw-lightbox {
    padding: 0;
  }

  .abw-lightbox-stage {
    width: 100%;
    height: 100vh;
    grid-template-columns: 46px 1fr 46px;
    border-radius: 0;
  }

  .abw-lightbox-nav {
    width: 36px;
    height: 52px;
  }
}

@media (max-width: 460px) {
  .abw-search-fields {
    grid-template-columns: 1fr;
  }

  .abw-search-button {
    grid-column: auto;
  }

  .abw-search-fields-no-children .abw-adults-field {
    grid-column: auto;
  }

  .abw-form-field {
    min-height: 58px;
  }

  .abw-datepicker {
    right: 5px;
    bottom: 5px;
    left: 5px;
    max-height: calc(100vh - 10px);
    padding: 13px;
  }

  .abw-datepicker-header {
    top: -13px;
    padding-top: 13px;
  }

  .abw-datepicker-calendar {
    grid-template-columns: 31px minmax(0, 1fr) 31px;
    gap: 4px;
  }

  .abw-datepicker-nav {
    width: 31px;
    height: 40px;
  }

  .abw-calendar-days {
    gap: 2px;
  }

  .abw-datepicker-footer {
    bottom: -13px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 13px;
  }

  .abw-datepicker-selection strong {
    white-space: normal;
  }

  .abw-widget button.abw-datepicker-apply {
    width: 100%;
  }

  .abw-trust-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .abw-results-header {
    align-items: flex-start;
  }

  .abw-results-header small {
    display: none;
  }

  .abw-room-media,
  .abw-room-image,
  .abw-room-image-placeholder {
    min-height: 205px;
    height: 205px;
  }

  .abw-room-content {
    padding: 16px;
  }

  .abw-room-price > div > strong {
    font-size: 1.45rem;
  }

  .abw-modal-header {
    grid-template-columns: minmax(0, 1fr) auto 36px;
    padding-inline: 8px;
  }

  .abw-modal-brand {
    gap: 7px;
  }

  .abw-modal-brand-mark {
    display: none;
  }

  .abw-modal-brand-copy > strong {
    font-size: 0.82rem;
  }

  .abw-modal-official {
    gap: 5px;
    padding-inline: 7px;
  }

  .abw-modal-official .abw-icon {
    width: 14px;
    height: 14px;
  }

  .abw-modal-close {
    width: 36px;
    height: 36px;
  }

  .abw-modal-detail strong {
    font-size: 0.72rem;
  }

  .abw-modal-footer {
    font-size: 0.69rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .abw-widget *,
  .abw-modal *,
  .abw-lightbox * {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@supports not (color: color-mix(in srgb, black 50%, white)) {
  .abw-form-field:focus-within { border-color: var(--abw-primary); box-shadow: 0 0 0 3px rgba(25, 56, 47, 0.1); }
  .abw-search-button, .abw-book-button, .abw-standalone-button { box-shadow: 0 8px 20px rgba(25, 56, 47, 0.2); }
  .abw-trust-row span::before { color: var(--abw-accent); }
  .abw-room-card-combination { border-color: var(--abw-accent); }
}
