.match-color-preview [hidden] {display:none !important}
.match-color-preview .pv-viewer-header {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.match-color-preview .pv-viewer-header h2 {margin:0;text-align:left}
.match-color-preview .match-preview-close {display:grid;place-items:center;flex:none;width:44px;height:44px;margin:0;padding:0;font:26px/1 Arial,sans-serif}
.match-color-preview .pv-media {position:relative}
.match-color-preview .match-preview-nav button {min-width:0;min-height:44px}
.match-color-preview.pv-photo-only {
  box-sizing:border-box;width:min(900px,calc(100% - 20px),calc(114.68dvh - 155px));
  min-width:min(290px,calc(100% - 16px));max-height:calc(100dvh - 12px);
  padding:10px 12px;border:1px solid #dfc6d2;border-radius:15px;
  background:#fff9fb;color:#472239;overflow:auto;
}
.match-color-preview.pv-photo-only h2 {color:#472239;font:650 clamp(17px,2.7vw,26px)/1.15 "Segoe UI",Arial,sans-serif}
.match-color-preview.pv-photo-only .pv-viewer-header {margin-bottom:6px}
.match-color-preview.pv-photo-only .match-preview-close {border-radius:50%;font-size:26px;background:transparent;color:#593247}
.match-color-preview.pv-photo-only .pv-media {overflow:hidden;border-radius:10px;background:#eee7e6}
.match-color-preview.pv-photo-only .match-finish-photo:not([hidden]) {
  display:block;width:100%;height:auto;aspect-ratio:1343/1171;max-width:100%;max-height:none;object-fit:contain;margin:0;border-radius:0
}
.match-color-preview .pv-color-number {
  position:absolute;left:clamp(9px,2%,18px);bottom:clamp(9px,2%,18px);padding:6px 13px;border-radius:30px;
  background:#3a1d30;color:#fff;font:700 clamp(17px,2.8vw,24px)/1.15 "Segoe UI",Arial,sans-serif;
  box-shadow:0 0 0 1px #ffffffa8;pointer-events:none
}
.match-color-preview.pv-photo-only .match-preview-nav {display:flex;justify-content:space-between;gap:10px;margin:8px 0 0}
.match-color-preview.pv-photo-only .match-preview-nav button {
  padding:8px 15px;border:1px solid #dcc8d0;border-radius:8px;background:white;color:#49273c;font:600 15px/1.2 "Segoe UI",Arial,sans-serif
}
.match-color-preview.pv-photo-only .match-preview-nav button:hover,.match-color-preview.pv-photo-only .match-preview-close:hover {background:#ffe9af;color:#3b2930}
@media (max-width:480px){.match-color-preview.pv-photo-only{padding:6px 8px 8px}}
.match-color-preview .match-preview-nav,.match-color-preview.pv-photo-only .match-preview-nav {display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:stretch}
.match-color-preview .match-preview-nav button.pv-add {background:#76254d;color:white;border-color:#76254d}
.match-color-preview .match-preview-nav button.pv-add:hover {background:#5e1b3d;color:white}
.match-color-preview .pv-cart-status {font:600 13px/1.35 "Segoe UI",Arial,sans-serif;margin:8px 0 0}
.match-color-preview .pv-cart-status:empty {display:none}
@media(max-width:520px){
  .match-color-preview .match-preview-nav,.match-color-preview.pv-photo-only .match-preview-nav {display:grid;gap:4px}
  .match-color-preview .match-preview-nav button,.match-color-preview.pv-photo-only .match-preview-nav button{font-size:13px;padding:7px 5px}
}

.match-preview-nav .pv-add-price:not(:empty)::before { content: " · "; }
.match-color-preview.pv-photo-only .pv-media .pv-add {
  position: absolute;
  right: clamp(8px, calc(17.4% - 68px), 12%);
  bottom: clamp(7px, calc(9% - 22px), 9%);
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  row-gap: 1px;
  min-height: 44px;
  box-sizing: border-box;
  margin: 0;
  padding: 5px 11px;
  border: 1px solid #fff0bc;
  border-radius: 9px;
  background: #ffe2a0;
  color: #351c23;
  box-shadow: 0 2px 7px #26161b65;
  font: 700 14px/1.1 "Segoe UI",Arial,sans-serif;
  cursor: pointer;
}
.match-color-preview.pv-photo-only .pv-media .pv-add:hover { background: #ffd37d; }
.match-color-preview .pv-media .pv-add:focus-visible { outline: 3px solid #632145; outline-offset: 2px; }
.match-color-preview .pv-media .pv-add:disabled { cursor: wait; opacity: .82; }
.match-color-preview .pv-media .pv-add .pv-color-number {
  position: static;
  grid-column: 1;
  grid-row: 1 / 3;
  padding: 4px 8px 4px 0;
  border-radius: 0;
  border-right: 1px solid #c99954;
  color: inherit;
  background: transparent;
  box-shadow: none;
  font: 750 clamp(16px,2vw,20px)/1 "Segoe UI",Arial,sans-serif;
}
.match-color-preview .pv-media .pv-add-label,
.match-color-preview .pv-media .pv-add-price {grid-column:2; text-align:left;}
.match-color-preview .pv-media .pv-add-price {font-size:12px; font-weight:600;}
.match-color-preview.pv-photo-only .match-preview-nav .powder-order-type {align-self:center; margin:0; text-align:center; text-wrap:balance;}
