/* ==========================================================================
   Niwa AI – Products (card rail, pricing, suggestions)
   ---------------------------------------------------------------------------
   Product cards displayed in the .niwa-morph__body scrollable container.
   New design: dark card with full image background, gradient overlay,
   logo + glass pill banner, overlaid content, and bot-bubble footer.
   All selectors use .niwa-* prefix. No za-* references.
   ========================================================================== */

/* Legacy horizontal product cards were removed. Product rendering now uses
   the in-chat grid and product-focus component below. */

/* ── Suggestion Chips ─────────────────────────────────────────────────── */
.niwa-morph__body .niwa-suggests,
.niwa-center__body .niwa-suggests,
.niwa-shortcode .niwa-suggests {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  padding-top: 4px;
}

.niwa-morph__body .niwa-chip,
.niwa-center__body .niwa-chip,
.niwa-shortcode .niwa-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--niwa-radius-full);
  cursor: pointer;
  background: var(--niwa-product-control-bg);
  color: var(--niwa-product-text);
  font-size: var(--niwa-font-size-sm);
  font-weight: var(--niwa-font-weight-medium);
  line-height: var(--niwa-line-height-tight);
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    background var(--niwa-transition-fast),
    color var(--niwa-transition-fast),
    transform var(--niwa-transition-fast),
    border-color var(--niwa-transition-fast),
    box-shadow var(--niwa-transition-fast);
}

.niwa-morph__body .niwa-chip:hover,
.niwa-center__body .niwa-chip:hover,
.niwa-shortcode .niwa-chip:hover {
  background: var(--niwa-product-control-active);
  color: var(--niwa-product-text);
  transform: translateY(-1px);
}

.niwa-morph__body .niwa-chip:active,
.niwa-center__body .niwa-chip:active,
.niwa-shortcode .niwa-chip:active {
  transform: translateY(0) scale(0.97);
}

/* Dark theme chips */
[data-niwa-theme="dark"] .niwa-chip {
  color: var(--niwa-product-text);
  box-shadow: none;
}

[data-niwa-theme="dark"] .niwa-chip:hover {
  background: var(--niwa-product-control-active);
  color: var(--niwa-product-text);
}

/* ===========================================================================
   In-chat product experience (1 / 2 / 4 grid + expandable product surface)
   ========================================================================== */

.niwa-widget {
  interpolate-size: allow-keywords;
}

.niwa-widget .niwa-message-products--grid {
  width: auto;
  margin: 8px var(--niwa-space-md) 6px;
  padding: 0;
}

.niwa-widget .niwa-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
}

.niwa-widget .niwa-product-tile,
.niwa-widget .niwa-product-related {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #f1f1ef;
  box-shadow: none;
}

.niwa-widget .niwa-product-related {
  overflow: visible;
  background: transparent;
}

.niwa-widget .niwa-product-related__media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f1ef;
}

.niwa-widget .niwa-product-tile[aria-current="true"] {
  box-shadow: inset 0 0 0 2px var(--niwa-product-selected-border, #fff);
}

.niwa-widget .niwa-product-tile__open,
.niwa-widget .niwa-product-related__open {
  display: block !important;
  width: 100% !important;
  aspect-ratio: var(--niwa-card-ratio, 4 / 5);
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0 !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.niwa-widget .niwa-product-tile__image,
.niwa-widget .niwa-product-related__image,
.niwa-widget .niwa-product-variation__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f1f1ef;
}

.niwa-widget .niwa-product-sale-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(122, 123, 121, .82);
  color: #fff;
  font: 650 10px/1 var(--niwa-font-family);
  letter-spacing: .01em;
  pointer-events: none;
}

.niwa-widget .niwa-product-heart {
  position: absolute !important;
  right: 8px !important;
  bottom: 8px !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(128, 130, 128, 0.72) !important;
  box-shadow: none !important;
  color: #fff !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.niwa-widget .niwa-product-heart__icon,
.niwa-widget .niwa-product-heart__icon svg {
  display: block;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.niwa-widget .niwa-product-heart__icon svg {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.niwa-widget .niwa-product-heart[aria-pressed="true"] .niwa-product-heart__icon svg {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.45;
}

.niwa-widget .niwa-product-heart[aria-pressed="true"] .niwa-product-heart__icon,
.niwa-widget .niwa-product-heart[aria-pressed="true"] .niwa-product-heart__icon svg {
  width: 13px;
  height: 13px;
}

.niwa-widget .niwa-product-focus {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-block-size: 0;
  max-block-size: calc(100% - 66px);
  block-size: auto;
  width: auto;
  margin: 8px var(--niwa-space-md) 10px;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transform-origin: 50% 100%;
  transition: block-size 460ms cubic-bezier(.16, 1, .3, 1), opacity 280ms cubic-bezier(.22, 1, .36, 1), transform 460ms cubic-bezier(.16, 1, .3, 1), margin 420ms cubic-bezier(.16, 1, .3, 1);
}

.niwa-widget :is(.niwa-morph, .niwa-center).is-product-open > :is(.niwa-morph__pill, .niwa-center__pill) {
  display: none;
}

.niwa-widget .niwa-product-focus[hidden] {
  display: none;
}

.niwa-widget .niwa-product-focus.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.niwa-widget .niwa-product-focus.is-closing {
  block-size: 0 !important;
  margin-block: 0;
  opacity: 0;
  transform: translateY(42px) scale(1);
  pointer-events: none;
}

.niwa-widget .niwa-product-focus.is-closing.is-related-mode {
  transition-duration: 580ms, 320ms, 580ms, 520ms;
}

.niwa-widget .niwa-product-focus__chips {
  display: flex;
  gap: 7px;
  max-height: 36px;
  margin-bottom: 8px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition: max-height 220ms cubic-bezier(.22, 1, .36, 1), margin 220ms ease, opacity 160ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.niwa-widget .niwa-product-focus__chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 9px 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--niwa-product-chip-bg, var(--niwa-product-control-bg)) !important;
  box-shadow: none !important;
  color: var(--niwa-product-text) !important;
  font: 650 10.5px/var(--niwa-line-height-normal) var(--niwa-font-family) !important;
  letter-spacing: -.015em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, opacity 160ms ease !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.niwa-widget .niwa-product-focus.is-visible:not(.is-info-open) .niwa-product-focus__chip {
  animation: niwa-product-chip-rise 380ms cubic-bezier(.22, 1, .36, 1) both;
}

.niwa-widget .niwa-product-focus__chip:nth-child(2) {
  animation-delay: 55ms;
}

.niwa-widget .niwa-product-focus__chip::after {
  content: '+';
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  opacity: .75;
}

.niwa-widget .niwa-product-focus__chip[aria-pressed="true"]::after {
  content: '−';
}

.niwa-widget .niwa-product-focus__chip[aria-pressed="true"] {
  background: var(--niwa-product-chip-active-bg, var(--niwa-product-control-active)) !important;
}

.niwa-widget .niwa-product-focus.is-info-open .niwa-product-focus__chips {
  max-height: 0;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.niwa-widget .niwa-product-panel,
.niwa-widget .niwa-product-focus__surface {
  border: 0;
  background: var(--niwa-product-panel-bg);
  color: var(--niwa-product-text);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.niwa-widget .niwa-product-panel {
  display: block;
  flex: 1 1 auto;
  block-size: auto;
  min-block-size: 0;
  margin: 0 0 8px;
  padding: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border-radius: 14px;
  opacity: 1;
  transform: translateY(0);
  transition: block-size 460ms cubic-bezier(.16, 1, .3, 1), padding 420ms cubic-bezier(.16, 1, .3, 1), margin 360ms cubic-bezier(.16, 1, .3, 1), opacity 240ms ease, transform 240ms cubic-bezier(.22, 1, .36, 1);
}

.niwa-widget .niwa-product-panel::-webkit-scrollbar {
  display: none;
}

.niwa-widget .niwa-product-panel[hidden] {
  display: block !important;
  flex: 0 0 0;
  block-size: 0 !important;
  min-block-size: 0 !important;
  margin-block: 0 !important;
  padding-block: 0 !important;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.niwa-widget .niwa-product-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.niwa-widget .niwa-product-panel__title {
  color: inherit;
  font: 700 10.5px/var(--niwa-line-height-normal) var(--niwa-font-family);
  text-transform: uppercase;
}

.niwa-widget .niwa-product-panel__collapse {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font: 400 16px/1 var(--niwa-font-family) !important;
  opacity: .75;
}

.niwa-widget .niwa-product-panel__text {
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font: 500 12px/1.42 var(--niwa-font-family) !important;
}

.niwa-widget .niwa-product-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.niwa-widget .niwa-product-related-grid::-webkit-scrollbar {
  display: none;
}

.niwa-widget .niwa-product-related__heart {
  right: 7px !important;
  bottom: 7px !important;
}

.niwa-widget .niwa-product-related__add {
  position: absolute !important;
  left: 7px !important;
  bottom: 7px !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(128, 130, 128, .72) !important;
  box-shadow: none !important;
  color: #fff !important;
  font: 400 18px/1 var(--niwa-font-family) !important;
  cursor: pointer !important;
}

.niwa-widget .niwa-product-related__name {
  margin: 7px 2px 0 !important;
  padding: 0 !important;
  overflow: hidden;
  color: var(--niwa-product-text) !important;
  font: 500 11px/1.25 var(--niwa-font-family) !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.niwa-widget .niwa-product-variation-browser {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.niwa-widget .niwa-product-variation-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 14px) / 3);
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.niwa-widget .niwa-product-variation-rail::-webkit-scrollbar {
  display: none;
}

.niwa-widget .niwa-product-variation {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: var(--niwa-card-ratio, 4 / 5);
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0 !important;
  scroll-snap-align: start;
  transition: padding 240ms cubic-bezier(.22, 1, .36, 1), transform 160ms ease !important;
}

.niwa-widget .niwa-product-variation[aria-pressed="true"] {
  padding: 4px !important;
  box-shadow: none !important;
}

.niwa-widget .niwa-product-variation[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 2px solid var(--niwa-product-selected-border, #fff);
  border-radius: 10px;
  pointer-events: none;
}

.niwa-widget .niwa-product-variation__image {
  border-radius: 8px;
}

.niwa-widget .niwa-product-variation-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.niwa-widget .niwa-product-variation-navigation__button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .3) !important;
  border-radius: 50% !important;
  background: var(--niwa-product-control-bg) !important;
  box-shadow: none !important;
  color: var(--niwa-product-text) !important;
  font: 300 22px/1 var(--niwa-font-family) !important;
}

.niwa-widget .niwa-product-variation-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.niwa-widget .niwa-product-variation-pagination__dot {
  width: 8px !important;
  height: 8px !important;
  min-width: 8px !important;
  min-height: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--niwa-product-text) !important;
  box-shadow: none !important;
  opacity: .28;
}

.niwa-widget .niwa-product-variation-pagination__dot[aria-current="true"] {
  opacity: 1;
}

.niwa-widget .niwa-product-option-groups {
  display: grid;
  gap: 16px;
  max-height: 250px;
  overflow-y: auto;
}

.niwa-widget .niwa-product-option-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.niwa-widget .niwa-product-option-group__label {
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  color: var(--niwa-product-text);
  font: 600 12px/1.25 var(--niwa-font-family);
  text-align: center;
}

.niwa-widget .niwa-product-option-group__choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.niwa-widget .niwa-product-option {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--niwa-product-muted) !important;
  font: 500 12px/1 var(--niwa-font-family) !important;
}

.niwa-widget .niwa-product-option[aria-pressed="true"] {
  border: 2px solid var(--niwa-product-selected-border, #fff) !important;
  background: var(--niwa-product-control-bg) !important;
  color: var(--niwa-product-text) !important;
}

.niwa-widget .niwa-product-panel__back {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  margin: 20px 0 0 !important;
  padding: 0 2px 2px 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--niwa-product-control-bg) !important;
  box-shadow: none !important;
  color: var(--niwa-product-text) !important;
  font: 300 30px/1 var(--niwa-font-family) !important;
}

.niwa-widget .niwa-product-focus__surface {
  flex: 0 0 auto;
  block-size: auto;
  padding: 10px;
  overflow: hidden;
  border-radius: 21px;
  transition: block-size 460ms cubic-bezier(.16, 1, .3, 1), padding 420ms cubic-bezier(.16, 1, .3, 1), border-radius 360ms cubic-bezier(.16, 1, .3, 1), background 220ms ease, opacity 180ms ease, transform 240ms cubic-bezier(.22, 1, .36, 1);
}

.niwa-widget .niwa-product-focus__summary {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 32px;
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.niwa-widget .niwa-product-focus__thumb {
  display: block;
  width: 78px;
  height: auto;
  aspect-ratio: var(--niwa-focus-image-ratio, 1 / 1);
  object-fit: contain;
  border-radius: 8px;
  background: #efefed;
}

.niwa-widget .niwa-product-focus__thumb-link {
  display: block;
  width: 78px;
  aspect-ratio: var(--niwa-focus-image-ratio, 1 / 1);
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
}

.niwa-widget .niwa-product-focus__thumb-link .niwa-product-focus__thumb {
  width: 100%;
  height: 100%;
}

.niwa-widget .niwa-product-focus__thumb-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.niwa-widget .niwa-product-focus__copy {
  min-width: 0;
  padding-top: 1px;
  color: var(--niwa-product-text);
}

.niwa-widget .niwa-product-focus__title {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  color: inherit !important;
  font: 500 15px/1.2 var(--niwa-font-family) !important;
  letter-spacing: -.025em;
  text-transform: none !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.niwa-widget .niwa-product-focus__price {
  margin: 6px 0 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font: 650 12px/1 var(--niwa-font-family) !important;
}

.niwa-widget .niwa-product-focus__old-price {
  margin-left: 6px;
  color: var(--niwa-product-muted) !important;
  font-weight: 500;
  opacity: .78;
}

.niwa-widget .niwa-product-focus__price .niwa-product-focus__price-badge {
  position: static;
  min-height: 18px;
  margin-left: 6px;
  padding: 0 6px;
  vertical-align: middle;
  color: #fff !important;
  font-size: 9px;
}

.niwa-widget .niwa-product-focus__price * {
  color: inherit !important;
}

.niwa-widget .niwa-product-focus__meta {
  margin: 8px 0 0 !important;
  padding: 0 !important;
  color: var(--niwa-product-muted) !important;
  font: 500 11px/1 var(--niwa-font-family) !important;
}

.niwa-widget .niwa-product-focus__favorite {
  position: static !important;
  justify-self: end;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 3px !important;
  background: transparent !important;
}

.niwa-widget .niwa-product-focus__favorite .niwa-product-heart__icon,
.niwa-widget .niwa-product-focus__favorite .niwa-product-heart__icon svg {
  width: 22px;
  height: 22px;
}

.niwa-widget .niwa-product-focus__favorite[aria-pressed="true"] .niwa-product-heart__icon,
.niwa-widget .niwa-product-focus__favorite[aria-pressed="true"] .niwa-product-heart__icon svg {
  width: 22px;
  height: 22px;
}

.niwa-widget .niwa-product-focus__actions {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-top: 10px;
}

.niwa-widget .niwa-product-focus__action,
.niwa-widget .niwa-product-focus__close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  font-family: var(--niwa-font-family) !important;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, opacity 160ms ease !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.niwa-widget .niwa-product-focus__action:disabled,
.niwa-widget .niwa-product-related__add:disabled {
  opacity: .38 !important;
  cursor: default !important;
  pointer-events: none !important;
}

.niwa-widget .niwa-product-focus__action {
  padding: 10px 14px !important;
  border-radius: 999px !important;
  background: var(--niwa-product-action-bg, var(--niwa-product-control-bg)) !important;
  color: var(--niwa-product-text) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: -.015em !important;
  white-space: nowrap !important;
}

.niwa-widget .niwa-product-focus__action--primary,
.niwa-widget .niwa-product-focus__action.is-added {
  background: #fff !important;
  color: #3c3d3a !important;
}

.niwa-widget .niwa-product-focus__close {
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  inline-size: 42px !important;
  block-size: 42px !important;
  aspect-ratio: 1 / 1 !important;
  align-self: center !important;
  box-sizing: border-box !important;
  margin-left: auto !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--niwa-product-close-bg, var(--niwa-product-control-bg)) !important;
  color: var(--niwa-product-text) !important;
  font-size: 22px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
}

.niwa-widget .niwa-product-focus.is-info-open .niwa-product-focus__surface {
  display: grid;
  block-size: 58px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
}

.niwa-widget .niwa-product-focus.is-info-open .niwa-product-focus__summary {
  display: block;
  grid-column: 2;
  grid-row: 1;
}

.niwa-widget .niwa-product-focus.is-info-open :is(.niwa-product-focus__thumb-link, .niwa-product-focus__thumb, .niwa-product-focus__meta, .niwa-product-focus__favorite) {
  display: none !important;
}

.niwa-widget .niwa-product-focus.is-info-open .niwa-product-focus__copy {
  padding: 0;
}

.niwa-widget .niwa-product-focus.is-info-open .niwa-product-focus__title {
  font-size: 12px !important;
  line-height: 1.15 !important;
}

.niwa-widget .niwa-product-focus.is-info-open .niwa-product-focus__price {
  margin-top: 5px !important;
  font-size: 11px !important;
}

.niwa-widget .niwa-product-focus.is-info-open .niwa-product-focus__actions {
  display: contents;
}

.niwa-widget .niwa-product-focus.is-info-open .niwa-product-focus__action--primary {
  grid-column: 1;
  grid-row: 1;
}

.niwa-widget .niwa-product-focus.is-info-open .niwa-product-focus__action:not(.niwa-product-focus__action--primary) {
  display: none !important;
}

.niwa-widget .niwa-product-focus.is-info-open .niwa-product-focus__close {
  grid-column: 3;
  grid-row: 1;
}

.niwa-widget .niwa-product-focus.is-variations-mode .niwa-product-panel--variations {
  margin-bottom: 0;
  padding: 14px 14px 5px;
  border-radius: 21px 21px 0 0;
}

.niwa-widget .niwa-product-focus.is-variations-mode .niwa-product-focus__surface {
  border-radius: 0 0 21px 21px;
}

.niwa-widget .niwa-product-focus.is-options-mode .niwa-product-panel--options {
  min-height: 240px;
  margin-bottom: 0;
  padding: 28px 20px 18px;
  border-radius: 21px;
}

.niwa-widget .niwa-product-focus.is-options-mode .niwa-product-panel--options .niwa-product-panel__header {
  justify-content: center;
  margin-bottom: 22px;
}

.niwa-widget .niwa-product-focus.is-options-mode .niwa-product-panel--options .niwa-product-panel__title {
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.niwa-widget .niwa-product-panel--options.is-single-attribute .niwa-product-option-group__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.niwa-widget .niwa-product-focus.is-options-mode .niwa-product-focus__surface {
  display: none;
}

.niwa-widget .niwa-product-focus :is(button, [role="button"]):focus-visible,
.niwa-widget .niwa-product-tile__open:focus-visible {
  outline: 2px solid var(--niwa-product-selected-border, #fff) !important;
  outline-offset: 2px !important;
}

.niwa-widget .niwa-product-focus :is(button, [role="button"]):hover {
  transform: translateY(-1px);
}

.niwa-widget .niwa-product-focus :is(button, [role="button"]):active {
  transform: scale(.97);
}

@keyframes niwa-product-chip-rise {
  from { opacity: 0; transform: translateY(24px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 430px) {
  .niwa-widget .niwa-product-focus__actions { gap: 5px; }
  .niwa-widget .niwa-product-focus__action { padding-inline: 11px !important; font-size: 10.5px !important; }
  .niwa-widget .niwa-product-focus__close { flex-basis: 38px !important; width: 38px !important; height: 38px !important; min-width: 38px !important; min-height: 38px !important; max-width: 38px !important; max-height: 38px !important; inline-size: 38px !important; block-size: 38px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .niwa-widget .niwa-product-focus,
  .niwa-widget .niwa-product-focus__chip,
  .niwa-widget .niwa-product-panel {
    animation: none !important;
    transition-duration: 1ms !important;
  }
}
