.salon-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  margin-top: 2px;
}
.salon-preview-actions button {
  min-height: 44px;
  padding: 0;
  border: 0;
  color: #f6f1e3;
  background: transparent;
  font: 400 12px/1.3 Arial,sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.salon-preview-actions .salon-preview-buy { font-weight: 700; }

.salon-preview-modal,
.salon-checkout-modal {
  box-sizing: border-box;
  width: min(660px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #847259;
  background: #faf7ed;
  color: #26352c;
}
.salon-preview-modal::backdrop,
.salon-checkout-modal::backdrop { background: #141f1bb8; }
.salon-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px clamp(12px, 3vw, 26px);
  border-bottom: 1px solid #bfc1b5;
}
.salon-modal-header h2 { font: 400 clamp(18px, 4vw, 26px)/1.15 Georgia,serif; }
.salon-modal-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* The wall and frame read at room scale without pushing the print into a corner. */
.salon-preview-modal {
  width: min(600px, calc(100% - 28px));
}
.salon-preview-modal[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.salon-room-preview {
  display: grid;
  position: relative;
  isolation: isolate;
  place-items: center;
  height: min(500px, 72dvh);
  padding: clamp(14px, 4vh, 34px) min(9vw, 38px) clamp(35px, 8vh, 67px);
}
.salon-room-preview,
.salon-artwork-hover {
  background: linear-gradient(135deg, #f9e8d57a, #927a6169), url('./painted-plaster.jpg') center / cover;
}
.salon-room-preview::after,
.salon-artwork-hover::after {
  position: absolute;
  z-index: -1;
  inset: 89% 0 0;
  content: '';
  border-block-start: 4px solid #f1e4d1;
  background: #dacbbb;
  box-shadow: 0 -1px 3px #624a3540;
}
.salon-room-preview img,
.wall-frame .salon-artwork-hover img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  padding: 5px;
  border: 6px solid #503828;
  border-color: #6a4c36 #4d3022 #352218 #654b39;
  background: #eee4d4;
  box-shadow: 4px 8px 11px #35261866;
  object-fit: contain;
}
.salon-checkout-modal {
  width: min(630px, calc(100% - 28px));
  overflow: auto;
}
.salon-checkout-modal .salon-modal-header {
  position: sticky;
  top: 0;
  background: #faf7ed;
}
#salon-print-checkout-frame {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

.salon-artwork-hover { display: none; }
@media (hover: hover) and (pointer: fine) {
  .salon-artwork-hover {
    position: absolute;
    inset: 0;
    display: grid;
    isolation: isolate;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease-out;
  }
  .wall-frame .salon-artwork-hover img {
    max-width: 66%;
    max-height: 66%;
    margin-bottom: 7%;
    padding: clamp(2px, .4vw, 5px);
    border-width: clamp(2px, .4vw, 5px);
  }
  .wall-frame:hover .salon-artwork-hover { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .salon-artwork-hover { transition: none; }
}
