@view-transition {
  navigation: auto;
}

.image-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 11rem;
  overflow: hidden;
  border-bottom: 1px solid #d7deea;
  background:
    linear-gradient(135deg, rgba(14, 39, 72, 0.1), rgba(205, 197, 133, 0.28)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 244, 248, 0.95));
}

.image-placeholder::before,
.image-placeholder::after {
  position: absolute;
  color: rgba(14, 39, 72, 0.36);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.image-placeholder::before {
  content: "Image Placeholder";
  font-size: 0.9rem;
  text-transform: uppercase;
}

.image-placeholder::after {
  content: attr(data-size);
  transform: translateY(1.6rem);
  font-size: 0.75rem;
}

.image-placeholder--hero {
  height: clamp(20rem, 40vw, 32rem);
  border: 1px solid #d7deea;
  border-radius: 1.5rem;
}

.product-image {
  display: block;
  width: 100%;
  height: 11rem;
  object-fit: cover;
  border-bottom: 1px solid #d7deea;
  background: #f5f7fa;
}

.product-image--hero {
  height: clamp(18rem, 42vw, 30rem);
  border: 1px solid #d7deea;
  border-radius: 1.5rem;
}

.nanofloc-transition {
  view-transition-name: nanofloc-image;
}

.nanofloc-title-transition {
  view-transition-name: nanofloc-title;
}

::view-transition-old(nanofloc-image),
::view-transition-new(nanofloc-image) {
  animation-duration: 320ms;
  animation-timing-function: ease;
  border-radius: 1.3rem;
  overflow: clip;
}

::view-transition-group(nanofloc-image) {
  border-radius: 1.3rem;
  overflow: clip;
}

::view-transition-old(nanofloc-title),
::view-transition-new(nanofloc-title) {
  animation-duration: 320ms;
  animation-timing-function: ease;
}

.spotlight-carousel {
  position: relative;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0 0 4.5rem;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-marker-group: after;
  anchor-name: --spotlight-carousel;
  scrollbar-width: thin;
}

.spotlight-carousel > li {
  flex: 0 0 min(22rem, 88vw);
  scroll-snap-align: start;
}

.spotlight-carousel::scroll-button(*) {
  position: absolute;
  position-anchor: --spotlight-carousel;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #d7deea;
  border-radius: 9999px;
  background: #ffffff;
  color: #0e2748;
  box-shadow: 0 8px 16px rgba(14, 39, 72, 0.08);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease;
}

.spotlight-carousel::scroll-button(*):hover,
.spotlight-carousel::scroll-button(*):focus {
  border-color: #0e2748;
  background: #f5f7fa;
}

.spotlight-carousel::scroll-button(*):disabled {
  opacity: 0.35;
  cursor: default;
}

.spotlight-carousel::scroll-marker-group {
  position: absolute;
  position-anchor: --spotlight-carousel;
  top: calc(anchor(bottom) - 3.15rem);
  justify-self: anchor-center;
  display: flex;
  gap: 0.75rem;
}

.spotlight-carousel > li::scroll-marker {
  content: attr(data-accname);
  width: 0.9rem;
  height: 0.9rem;
  overflow: hidden;
  border: 2px solid #0e2748;
  border-radius: 9999px;
  background: transparent;
  text-indent: 1rem;
  white-space: nowrap;
}

.spotlight-carousel > li::scroll-marker:target-current {
  background: #0e2748;
}

.carousel-card {
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid #d7deea;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(14, 39, 72, 0.04);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(14, 39, 72, 0.08);
}

.chatbot-trigger {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border: 0;
  border-radius: 9999px;
  background: #0e2748;
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(14, 39, 72, 0.22);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.chatbot-trigger__badge {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid #ffffff;
  border-radius: 9999px;
  background: #d92d20;
  box-shadow: 0 4px 10px rgba(217, 45, 32, 0.28);
}

.chatbot-trigger:hover,
.chatbot-trigger:focus-visible {
  background: #173154;
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(14, 39, 72, 0.26);
}

.chatbot-trigger svg {
  width: 1.6rem;
  height: 1.6rem;
}

.chatbot-popover {
  position: fixed;
  inset: auto 1.5rem 6.5rem auto;
  width: min(24rem, calc(100vw - 2rem));
  min-height: 28rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
}

.chatbot-popover:popover-open {
  display: block;
  position: fixed;
  inset: auto 1.5rem 6.5rem auto;
}

.chatbot-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #d7deea;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(14, 39, 72, 0.18);
  overflow: hidden;
  min-height: 28rem;
}

.chatbot-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0;
}

.chatbot-card__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(14, 39, 72, 0.65);
}

.chatbot-card__title {
  margin: 0.4rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0e2748;
}

.chatbot-card__close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #d7deea;
  border-radius: 9999px;
  background: #ffffff;
  color: #0e2748;
  cursor: pointer;
}

.chatbot-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 1rem 1rem;
}

.chatbot-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.chatbot-message {
  max-width: 88%;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.chatbot-message--bot {
  align-self: flex-start;
  border: 1px solid #d7deea;
  background: #f5f7fa;
  color: rgba(23, 49, 84, 0.9);
  border-bottom-left-radius: 0.35rem;
}

.chatbot-message--user {
  align-self: flex-end;
  background: #0e2748;
  color: #ffffff;
  border-bottom-right-radius: 0.35rem;
}

.chatbot-input {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.45rem;
  border: 1px solid #d7deea;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.chatbot-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 0.75rem;
  font: inherit;
  color: #173154;
}

.chatbot-input input::placeholder {
  color: rgba(23, 49, 84, 0.55);
}

.chatbot-input input:focus {
  outline: none;
}

.chatbot-input button {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.75rem;
  border: 0;
  border-radius: 0.9rem;
  background: #0e2748;
  color: #ffffff;
  cursor: pointer;
}

@media (max-width: 640px) {
  .chatbot-trigger {
    right: 1rem;
    bottom: 1rem;
    width: 3.5rem;
    height: 3.5rem;
  }

  .chatbot-trigger__badge {
    top: 0.1rem;
    right: 0.1rem;
  }

  .chatbot-popover {
    inset: auto 1rem 5.5rem auto;
    width: min(24rem, calc(100vw - 1rem));
    min-height: 30rem;
  }

  .chatbot-popover:popover-open {
    inset: auto 1rem 5.5rem auto;
  }

  .chatbot-card {
    min-height: 30rem;
  }
}
