/* Preview-only additions. Existing XIPPO tabs and shared theme styles are retained. */
.stm-pearl-preview .wp-block-ub-tabbed-content-tabs-title {
  flex-wrap: wrap;
  gap: 5px;
}
.stm-pearl-tab {
  color: #111;
  background: #fff;
}
.stm-pearl-tab.active {
  color: #fff;
  background: #111;
}
.stm-pearl-gallery {
  text-align: center;
}
.stm-pearl-phrase {
  display: inline-block;
}
.stm-pearl-image-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
}
.stm-pearl-image-stage::before {
  position: absolute;
  top: 67%;
  left: 32%;
  width: 58%;
  height: 7%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.16);
  filter: blur(9px);
  transform: rotate(17deg);
  content: "";
}
.stm-pearl-main-image {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  transform: translateY(-50%) rotate(30deg);
}
.stm-pearl-color-name {
  margin: 24px 0;
  font-size: 20px;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .stm-pearl-color-name {
    font-size: 26px;
  }
}
.stm-pearl-colors {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 6px 0;
}
.stm-pearl-color {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #ccc;
  cursor: pointer;
}
.stm-pearl-color[aria-pressed="true"] {
  box-shadow: 0 0 0 2px #111;
}
.stm-pearl-swatch-slim-rose-pink {
  background: #a55e47;
}
.stm-pearl-swatch-slim-pearl-blue {
  background: #2cbdc6;
}
.stm-pearl-swatch-slim-pearl-pink {
  background: #d895b4;
}
.stm-pearl-swatch-regular-metal-blue {
  background: #12699a;
}
.stm-pearl-swatch-regular-metal-green {
  background: #009d7d;
}
.stm-pearl-swatch-regular-metal-orange {
  background: #c46a05;
}
.stm-pearl-product-name {
  margin: 24px 0 32px;
}
@media (min-width: 768px) {
  .stm-pearl-product-name {
    margin-top: 20px;
  }
}
.stm-pearl-spec-heading {
  margin: 0 0 16px;
}
.stm-pearl-spec table {
  width: 100%;
  text-align: center;
}
.stm-pearl-spec td {
  width: 50%;
  padding: 12px;
}
.stm-pearl-detail-link {
  text-align: right;
}
.stm-pearl-lineup {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}
@media (min-width: 1025px) {
  .stm-pearl-lineup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.stm-pearl-lineup-group {
  min-width: 0;
  padding: 0;
}
.stm-pearl-lineup-scroll-hint {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
}
@media (min-width: 768px) {
  .stm-pearl-lineup-scroll-hint {
    display: none;
  }
}
.stm-pearl-lineup-figure {
  margin: 0;
}
.stm-pearl-lineup-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.stm-pearl-lineup-scroll img {
  display: block;
  width: 100%;
  min-width: 520px;
  height: auto;
}
@media (min-width: 1025px) {
  .stm-pearl-lineup-scroll img {
    min-width: 0;
  }
}
.stm-pearl-preview [role="tab"]:focus,
.stm-pearl-panel:focus,
.stm-pearl-lineup-scroll:focus,
.stm-pearl-color:focus,
.stm-pearl-detail-link a:focus {
  outline: 3px solid #b88c22;
  outline-offset: 4px;
}
.stm-pearl-preview [role="tab"]:focus:not(:focus-visible),
.stm-pearl-panel:focus:not(:focus-visible),
.stm-pearl-lineup-scroll:focus:not(:focus-visible),
.stm-pearl-color:focus:not(:focus-visible),
.stm-pearl-detail-link a:focus:not(:focus-visible) {
  outline: none;
}
.stm-pearl-preview [role="tab"]:focus-visible,
.stm-pearl-panel:focus-visible,
.stm-pearl-lineup-scroll:focus-visible,
.stm-pearl-color:focus-visible,
.stm-pearl-detail-link a:focus-visible {
  outline: 3px solid #b88c22;
  outline-offset: 4px;
}
