#dialog:has(.featured-detail) {
  width: min(520px, calc(100% - 16px));
  border-radius: 28px;
  max-height: 94vh;
  max-height: 94dvh;
  background: #fff;
}

#dialog:has(.featured-detail) .modal-inner {
  clear: none;
  padding: 0;
}

#dialog:has(.featured-detail) .close {
  margin: 10px 10px 0;
  color: #392339;
  box-shadow: 0 2px 8px #39233912;
}

.featured-detail {
  color: #271631;
}

.featured-detail .featured-detail-head {
  display: block;
  padding: 16px 14px 10px;
}

.featured-detail h2 {
  margin: 0;
  padding-inline-end: 44px;
  font-size: clamp(17px, 5vw, 22px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.featured-price-panel {
  margin: 0 12px;
  padding: 9px 12px;
  border: 1px solid #f7dfe7;
  border-radius: 16px;
  background: #fdf1f4;
}

.featured-price {
  color: #b90038;
  font-size: 12px;
  font-weight: 700;
}

.featured-price > span {
  color: inherit;
  font-size: inherit;
}

.featured-price-values {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 10px;
}

.featured-price-values strong {
  color: #b90038;
  font-size: clamp(32px, 10vw, 48px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.featured-price-values del {
  color: #695964;
  font-size: 14px;
  font-weight: 400;
}

.featured-terms {
  margin: 5px 0 0;
  color: #624e5b;
  font-size: 11px;
  line-height: 1.42;
}

.featured-gallery {
  padding: 8px 12px 0;
}

.featured-gallery .detail-image {
  display: block;
  width: 100%;
  height: clamp(174px, 32vh, 315px);
  height: clamp(174px, 32dvh, 315px);
  border: 1px solid #f0edf2;
  border-radius: 16px;
  object-fit: contain;
  background: #f7f5f8;
}

.featured-colors {
  margin-top: 6px;
}

.featured-detail .color-picks {
  gap: 5px;
}

.featured-detail .color-pick {
  min-height: 44px;
  padding: 3px;
  border: 2px solid #ede8ef;
  border-radius: 10px;
  color: #271631;
  line-height: 1.18;
}

.featured-detail .color-pick[aria-pressed="true"] {
  border-color: #0062ff;
  background: #eff6ff;
}

.featured-detail .color-pick img {
  height: 56px;
  margin: 0 0 3px;
  border-radius: 6px;
}

.featured-actions {
  padding: 0 12px 12px;
}

.featured-detail .variant-label {
  margin: 8px 0 3px;
  font-size: 12px;
}

.featured-detail .config-select {
  min-height: 44px;
  padding: 6px 9px;
  background: #fff;
  border-color: #ddd4e0;
  color: #271631;
  font-size: 13px;
}

.featured-detail .primary {
  min-height: 46px;
  margin-top: 8px;
  padding: 10px;
  background: #0062ff;
  border-radius: 12px;
}

.featured-detail .welcome-reminder {
  min-height: 44px;
  margin-top: 3px;
  padding: 7px 3px;
  border: 0;
  background: transparent;
  color: #92234b;
}

.featured-detail .welcome-reminder span {
  float: inline-end;
}

.featured-preview {
  color: #665963;
  font-size: 11px;
  line-height: 1.45;
}

.featured-preview summary {
  display: list-item;
  width: fit-content;
  margin-inline: auto;
  min-height: 32px;
  padding: 7px 3px;
  cursor: pointer;
}

.featured-preview p {
  margin: 0 3px 4px;
}

@media (max-height: 650px) {
  .featured-detail .featured-detail-head {
    padding-top: 11px;
    padding-bottom: 7px;
  }

  .featured-price-panel {
    padding-block: 6px;
  }

  .featured-gallery .detail-image {
    height: clamp(142px, 28vh, 182px);
  }

  .featured-detail .color-pick img {
    height: 37px;
  }
}
