.the-art-reservation-widget,
.the-art-reservations-account,
.the-art-reservation-card,
.the-art-reservation-modal {
  --the-art-reservation-ink: #171717;
  --the-art-reservation-muted: #6f6b66;
  --the-art-reservation-line: rgba(23, 23, 23, 0.14);
  --the-art-reservation-soft: #f5f3ef;
  color: var(--the-art-reservation-ink);
}

.the-art-reservation-badge,
.the-art-reservation-widget {
  --the-art-reservation-status-dot-duration: 2.8s;
}

.the-art-reservation-badge {
  --the-art-reservation-status-dot-color: #e34848;
  --the-art-reservation-status-dot-rgb: 227, 72, 72;
  --the-art-reservation-status-dot-size: 10px;
  display: grid;
  position: relative;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 8px 24px 9px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.94);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.32),
    0 0 6px rgba(255, 255, 255, 0.12);
  color: #fff;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
  justify-items: center;
}

.the-art-reservation-badge::before,
.the-art-reservation-widget[data-reservation-state="available"] .the-art-reservation-widget__status::before,
.the-art-reservation-widget[data-reservation-state="reserved"] .the-art-reservation-widget__status::before,
.the-art-reservation-widget[data-reservation-state="reserved_by_you"] .the-art-reservation-widget__status::before {
  width: var(--the-art-reservation-status-dot-size);
  height: var(--the-art-reservation-status-dot-size);
  border-radius: 50%;
  background: var(--the-art-reservation-status-dot-color);
  box-shadow:
    0 0 0 0 rgba(var(--the-art-reservation-status-dot-rgb), 0.42),
    0 0 5px rgba(var(--the-art-reservation-status-dot-rgb), 0.42);
  content: "";
  animation: the-art-reservation-status-dot-pulse var(--the-art-reservation-status-dot-duration) ease-out infinite;
}

.the-art-reservation-badge::before {
  position: absolute;
  top: 50%;
  left: 9px;
  transform: translateY(-50%);
}

.the-art-reservation-badge[hidden] {
  display: none !important;
}

@keyframes the-art-reservation-status-dot-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(var(--the-art-reservation-status-dot-rgb), 0.42),
      0 0 5px rgba(var(--the-art-reservation-status-dot-rgb), 0.42);
  }

  50% {
    box-shadow:
      0 0 0 4px rgba(var(--the-art-reservation-status-dot-rgb), 0),
      0 0 8px rgba(var(--the-art-reservation-status-dot-rgb), 0.58);
  }
}

@media (prefers-reduced-motion: reduce) {
  .the-art-reservation-badge::before,
  .the-art-reservation-widget[data-reservation-state="available"] .the-art-reservation-widget__status::before,
  .the-art-reservation-widget[data-reservation-state="reserved"] .the-art-reservation-widget__status::before,
  .the-art-reservation-widget[data-reservation-state="reserved_by_you"] .the-art-reservation-widget__status::before {
    animation: none;
  }
}

.the-art-reservation-badge__deadline {
  overflow: hidden;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.the-art-reservation-badge__remaining {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.woocommerce .products .product > figure,
.woocommerce .ct-products .product > figure {
  position: relative;
}

.woocommerce .products .product > figure > .the-art-reservation-badge,
.woocommerce .ct-products .product > figure > .the-art-reservation-badge {
  position: absolute;
  z-index: 1;
  top: auto;
  right: auto;
  bottom: 12px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0;
  transform: translateX(-50%);
}

.the-art-artist-panel-artwork__image {
  position: relative;
}

.the-art-artist-panel-artwork__image .the-art-reservation-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  margin: 0;
}

.the-art-reservation-widget {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
}

.the-art-reservation-widget__state[hidden],
.the-art-reservation-widget__support[hidden] {
  display: none !important;
}

.the-art-reservation-widget__reserved {
  display: grid;
  gap: 12px;
}

.the-art-reservation-widget__status,
.the-art-reservation-widget__expiration,
.the-art-reservation-widget__support,
.the-art-reservation-widget__message {
  margin: 0;
}

.the-art-reservation-widget__eyebrow {
  margin: 0;
  color: var(--the-art-reservation-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: none;
}

.the-art-reservation-widget__status {
  color: var(--the-art-reservation-ink);
  font-size: clamp(21px, 2.5vw, 30px);
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.the-art-reservation-widget[data-reservation-state="available"] .the-art-reservation-widget__status,
.the-art-reservation-widget[data-reservation-state="reserved"] .the-art-reservation-widget__status,
.the-art-reservation-widget[data-reservation-state="reserved_by_you"] .the-art-reservation-widget__status {
  --the-art-reservation-status-dot-size: 12px;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
}

.the-art-reservation-widget[data-reservation-state="available"] .the-art-reservation-widget__status {
  --the-art-reservation-status-dot-color: #22c55e;
  --the-art-reservation-status-dot-rgb: 34, 197, 94;
}

.the-art-reservation-widget[data-reservation-state="reserved"] .the-art-reservation-widget__status,
.the-art-reservation-widget[data-reservation-state="reserved_by_you"] .the-art-reservation-widget__status {
  --the-art-reservation-status-dot-color: #e34848;
  --the-art-reservation-status-dot-rgb: 227, 72, 72;
}

.the-art-reservation-widget[data-reservation-state="available"] .the-art-reservation-widget__status::before,
.the-art-reservation-widget[data-reservation-state="reserved"] .the-art-reservation-widget__status::before,
.the-art-reservation-widget[data-reservation-state="reserved_by_you"] .the-art-reservation-widget__status::before {
  flex: 0 0 var(--the-art-reservation-status-dot-size);
}

.the-art-reservation-widget__time {
  display: grid;
  gap: 4px;
  padding: 14px 0 2px;
  border-top: 1px solid var(--the-art-reservation-line);
}

.the-art-reservation-widget__time > span {
  color: var(--the-art-reservation-muted);
  font-size: 11px;
  font-weight: 650;
}

.the-art-reservation-widget__countdown {
  font-size: clamp(25px, 3vw, 34px);
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.the-art-reservation-widget__expiration,
.the-art-reservation-widget__support,
.the-art-reservation-widget__message {
  color: var(--the-art-reservation-muted);
  font-size: 13px;
  line-height: 1.5;
}

.the-art-reservation-widget__cta,
.the-art-reservation-widget .button,
.the-art-reservation-card .button,
.the-art-reservation-modal .button {
  min-height: 50px;
  border-radius: 999px;
}

.the-art-reservation-modal .button {
  display: inline-flex;
  box-sizing: border-box;
  padding: 12px 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--the-art-reservation-ink);
  background: var(--the-art-reservation-ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 680;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.the-art-reservation-widget__cta {
  width: 100%;
}

.the-art-reservation-widget__secondary {
  border: 1px solid var(--the-art-reservation-line) !important;
  background: #fff !important;
  color: var(--the-art-reservation-ink) !important;
}

.the-art-reservation-widget__account {
  color: var(--the-art-reservation-ink);
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.the-art-reservation-widget button:focus-visible,
.the-art-reservation-card button:focus-visible,
.the-art-reservation-modal button:focus-visible,
.the-art-reservation-modal a:focus-visible {
  outline: 3px solid #171717;
  outline-offset: 3px;
}

body.the-art-reservation-modal-open {
  width: calc(100% - var(--the-art-reservation-scrollbar-width, 0px));
  overflow: hidden;
}

.the-art-reservation-modal {
  position: fixed;
  z-index: 999995;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  overflow-y: auto;
}

.the-art-reservation-modal[hidden] {
  display: none !important;
}

.the-art-reservation-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 23, 0.52);
  backdrop-filter: blur(4px);
}

.the-art-reservation-modal__dialog {
  position: relative;
  box-sizing: border-box;
  width: min(600px, 100%);
  max-height: calc(100dvh - 48px);
  padding: clamp(30px, 6vw, 54px);
  overflow-y: auto;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(23, 23, 23, 0.24);
}

.the-art-reservation-modal__dialog[aria-busy="true"] {
  cursor: progress;
}

.the-art-reservation-modal__dialog h2 {
  margin: 0 40px 18px 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.the-art-reservation-modal__dialog > p {
  color: var(--the-art-reservation-muted);
  line-height: 1.65;
}

.the-art-reservation-modal__eyebrow {
  margin: 0 40px 12px 0 !important;
  color: var(--the-art-reservation-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: none;
}

.the-art-reservation-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--the-art-reservation-line);
  border-radius: 50%;
  background: #fff;
  color: #171717;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
}

.the-art-reservation-modal__terms {
  display: flex;
  margin: 24px 0;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.55;
}

.the-art-reservation-modal__terms input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex: 0 0 20px;
  accent-color: #171717;
}

.the-art-reservation-modal__terms input[aria-invalid="true"] {
  outline: 2px solid #9c2b22;
  outline-offset: 2px;
}

.the-art-reservation-modal__terms a {
  color: inherit;
  font-weight: 700;
}

.the-art-reservation-modal__actions,
.the-art-reservation-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.the-art-reservation-modal__error {
  min-height: 1.5em;
  color: #9c2b22 !important;
  font-size: 13px;
}

.the-art-reservation-modal__destructive {
  border-color: #71362f !important;
  background: #71362f !important;
  color: #fff !important;
}

.the-art-reservation-success__artist {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 2px 0 24px;
}

.the-art-reservation-success__artist img,
.the-art-reservation-success__artist > span {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.the-art-reservation-success__artist img {
  object-fit: cover;
}

.the-art-reservation-success__artist > span {
  display: grid;
  place-items: center;
  background: var(--the-art-reservation-soft);
  color: var(--the-art-reservation-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.the-art-reservation-success__artist > span[hidden],
.the-art-reservation-action-artwork[hidden] {
  display: none !important;
}

.the-art-reservation-success__artist h2 {
  margin-bottom: 10px;
}

.the-art-reservation-success__artist p {
  margin: 0;
  color: var(--the-art-reservation-muted);
  line-height: 1.55;
}

.the-art-reservation-success__deadline {
  display: grid;
  gap: 3px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 15px;
  background: var(--the-art-reservation-soft);
}

.the-art-reservation-success__deadline span {
  color: var(--the-art-reservation-muted);
  font-size: 11px;
}

.the-art-reservation-success__deadline strong {
  color: var(--the-art-reservation-ink);
  font-size: 16px;
}

.the-art-reservation-action-artwork {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  padding: 12px;
  border-radius: 16px;
  background: var(--the-art-reservation-soft);
}

.the-art-reservation-action-artwork img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.the-art-reservation-action-artwork strong {
  overflow-wrap: anywhere;
}

.the-art-reservations-account > header,
.the-art-reservations-account__context {
  margin-bottom: 28px;
}

.the-art-reservations-account > header h2,
.the-art-reservations-account__context > h3 {
  margin: 8px 0 0;
}

.the-art-reservations-account__eyebrow {
  margin: 0;
  color: var(--the-art-reservation-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: none;
}

.the-art-reservation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.the-art-reservation-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.the-art-reservation-filters a {
  padding: 9px 14px;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 999px;
  color: #171717;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.the-art-reservation-filters a[aria-current="page"] {
  border-color: #171717;
  background: #171717;
  color: #fff;
}

.the-art-reservation-pagination {
  margin-top: 22px;
}

.the-art-reservation-pagination .page-numbers {
  display: inline-grid;
  min-width: 40px;
  min-height: 40px;
  margin: 0 4px 4px 0;
  padding: 7px 10px;
  place-items: center;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 999px;
  color: #171717;
  text-decoration: none;
}

.the-art-reservation-pagination .page-numbers.current {
  border-color: #171717;
  background: #171717;
  color: #fff;
}

.the-art-reservation-card {
  min-width: 0;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--the-art-reservation-line);
  border-radius: 24px;
  background: #fff;
}

.the-art-reservation-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.the-art-reservation-card__heading h3 {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.1;
}

.the-art-reservation-card__heading a {
  color: inherit;
  text-decoration: none;
}

.the-art-reservation-card__heading > strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.the-art-reservation-card__status {
  color: var(--the-art-reservation-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
}

.the-art-reservation-card__dates {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.the-art-reservation-card__dates > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--the-art-reservation-line);
}

.the-art-reservation-card__dates dt {
  color: var(--the-art-reservation-muted);
}

.the-art-reservation-card__dates dd {
  margin: 0;
  text-align: right;
}

.the-art-reservation-card__contact {
  display: grid;
  gap: 4px;
  margin: 0 0 22px;
  padding: 16px;
  border-radius: 16px;
  background: var(--the-art-reservation-soft);
  overflow-wrap: anywhere;
}

.the-art-reservation-card__contact a {
  color: inherit;
}

.the-art-reservation-card__history {
  margin-top: 20px;
  border-top: 1px solid var(--the-art-reservation-line);
  padding-top: 14px;
}

.the-art-reservation-card__history summary {
  cursor: pointer;
  font-weight: 700;
}

.the-art-reservation-card__history ol {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.the-art-reservation-card__history li {
  padding-left: 4px;
}

.the-art-reservation-card__history time {
  display: block;
  color: var(--the-art-reservation-muted);
  font-size: 12px;
}

.the-art-reservation-card__message,
.the-art-reservation-empty {
  color: var(--the-art-reservation-muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .the-art-reservation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .the-art-reservation-badge {
    --the-art-reservation-status-dot-size: 9px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .woocommerce .products .product > figure > .the-art-reservation-badge,
  .woocommerce .ct-products .product > figure > .the-art-reservation-badge {
    bottom: 8px;
    max-width: calc(100% - 16px);
  }

  .the-art-reservation-badge__deadline {
    font-size: 8px;
    text-overflow: clip;
    white-space: normal;
  }

  .the-art-reservation-modal {
    padding: 12px;
  }

  .the-art-reservation-modal__dialog {
    max-height: calc(100dvh - 24px);
    padding: 34px 22px 24px;
    border-radius: 22px;
  }

  .the-art-reservation-success__artist {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .the-art-reservation-success__artist img,
  .the-art-reservation-success__artist > span {
    width: 56px;
    height: 56px;
  }

  .the-art-reservation-modal__actions,
  .the-art-reservation-card__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .the-art-reservation-card__heading,
  .the-art-reservation-card__dates > div {
    display: grid;
  }

  .the-art-reservation-card__dates dd {
    text-align: left;
  }

  .the-art-reservation-card .button,
  .the-art-reservation-modal .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .the-art-reservation-widget *,
  .the-art-reservation-modal * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
