.studio-gallery {
  padding-block: clamp(26px, 4vw, 52px) clamp(36px, 5vw, 70px);
  border-bottom: 1px solid #dfe3ea;
}
.studio-gallery-header, .studio-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.studio-gallery-header { margin-bottom: 21px; }
.studio-gallery h2, .studio-editor-header h2 { font-size: clamp(26px, 3.1vw, 42px); }
.studio-filter {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  font-weight: 650;
}
.studio-gallery select {
  min-height: 43px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 30px 6px 12px;
  border: 1px solid #c7ceda;
  border-radius: 8px;
  color: #232a37;
  background: #fff;
}
.studio-gallery-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.studio-template {
  display: grid;
  min-width: 0;
  padding: 13px;
  border: 1px solid #d2d8e2;
  border-radius: 14px;
  background: #fff;
  color: #232a37;
  text-align: left;
}
.studio-template:hover { border-color: #3567d1; }
.studio-template[aria-pressed="true"] { outline: 1px solid #3567d1; border-color: #3567d1; background: #f5f7fb; }
.studio-template canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9/5;
  object-fit: contain;
  background: #eaecf0;
  border-radius: 4px;
}
.studio-template-label { display: grid; margin-top: 10px; gap: 3px; line-height: 1.25; }
.studio-template-label span { font-size: .82rem; color: #565b62; }
.studio-gallery [data-gallery-more] { margin-top: 18px; }
.studio-gallery [hidden], .studio-gallery[hidden], .card-studio[hidden], .studio-checkout[hidden] { display: none; }
.card-studio {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 23px clamp(24px, 6vw, 80px);
  align-items: start;
  padding-block: clamp(30px, 5vw, 58px) clamp(62px, 10vw, 115px);
}
.studio-editor-header { grid-column: 1 / -1; }
.studio-controls fieldset, .studio-sides {
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 0 0 24px;
}
.card-studio legend {
  font-weight: 700;
  font-size: 1rem;
  padding: 0;
  margin-bottom: 12px;
}
.studio-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.studio-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 12px;
  min-height: 41px;
  font-size: .86rem;
  line-height: 1.15;
  color: #313846;
  border: 1px solid #ced4df;
  border-radius: 8px;
  background: #fff;
}
.studio-option:has(:checked) {
  color: #24458c;
  border-color: #3567d1;
  background: #edf3ff;
}
.studio-option input { accent-color: #3567d1; margin: 0; }
.studio-field { display: block; margin-bottom: 11px; }
.studio-field input, .studio-field select {
  display: block;
  width: 100%;
  min-height: 45px;
  margin-top: 4px;
  padding: 8px 12px;
  font: inherit;
  color: #232a37;
  border: 1px solid #c7ceda;
  border-radius: 8px;
  background: #fff;
}
.studio-field input[aria-invalid="true"] { border-color: #a12338; }
.studio-field small { display: block; font-size: .79rem; color: #a12338; }
.studio-field small[hidden] { display: none; }
.studio-reset {
  padding: 0;
  background: none;
  border: 0;
  color: #24458c;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.studio-stage { min-width: 0; }
.studio-sides { margin-bottom: 13px; }
.studio-sides[hidden], .studio-field[hidden] { display: none; }
.studio-proof {
  display: grid;
  place-items: center;
  margin: 0 0 16px;
  padding: clamp(18px, 4.5vw, 62px);
  border: 1px solid #dfe3ea;
  border-radius: 16px;
  background: #ebedf0;
}
[data-card-preview] {
  display: block;
  width: min(100%, 480px);
  height: auto;
  aspect-ratio: 9/5;
  background: #122c28;
  box-shadow: 0 9px 22px rgb(30 37 50 / .23);
}
.studio-purchase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 13px;
}
.studio-purchase > .button { white-space: normal; text-align: center; }
.studio-starting-price { display: grid; gap: 3px; line-height: 1.25; white-space: nowrap; }
.studio-starting-price strong { color: #24458c; font-size: 1.125rem; }
.studio-starting-price small { color: #565b62; font-size: .8rem; }
[data-continue][disabled] { opacity: .45; cursor: default; }
.studio-files, .studio-status { font-size: .85rem; color: #565b62; }
.studio-files { margin: 9px 0 0; }
.studio-status { min-height: 1.2em; margin: 6px 0 0; }
.studio-checkout { padding-block: 24px 85px; }
.studio-checkout-panel {
  max-width: 765px;
  border: 1px solid #d4dae6;
  border-radius: 16px;
  padding: clamp(20px, 4vw, 46px);
  background: #f5f7fb;
}
.studio-checkout-panel h2 { margin-bottom: 16px; font-size: clamp(26px, 3.4vw, 42px); }
.studio-order-summary {
  display: grid;
  gap: 3px;
  margin-bottom: 20px;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid #dadfe9;
  border-radius: 10px;
}
.studio-order-summary span { color: #565b62; }
.studio-checkout fieldset { padding: 0; margin: 0; border: 0; }
.studio-order-legend { margin-bottom: 8px; font-weight: 750; }
.studio-price-note { margin-bottom: 12px; font-size: .85rem; color: #565b62; }
.studio-checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.studio-checkout-fields > .studio-field > label { font-weight: 600; }
.studio-field select[hidden], .studio-choice-list[hidden] { display: none; }
.studio-choice { position: relative; margin-top: 4px; }
.studio-choice-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 45px;
  padding: 9px 13px;
  border: 1px solid #c7ceda;
  border-radius: 8px;
  background: #fff;
  color: #232a37;
  font: inherit;
  font-weight: 650;
  line-height: 1.28;
  text-align: left;
}
.studio-choice-control::after {
  content: '';
  width: 7px;
  height: 7px;
  margin: -4px 1px 0 0;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.studio-choice-control[aria-expanded="true"] { border-color: #416dcc; }
.studio-choice-control:focus-visible { outline: 2px solid #416dcc; outline-offset: 2px; }
.studio-choice-control:disabled { background: #eceef3; color: #565b62; cursor: default; }
.studio-choice-list {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 5px);
  z-index: 25;
  max-height: min(21rem, 48vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid #c2ccde;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgb(28 39 60 / .15);
}
.studio-choice-list[data-above] { top: auto; bottom: calc(100% + 5px); }
.studio-choice-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #232a37;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.32;
  cursor: pointer;
}
.studio-choice-option > span:first-child { overflow-wrap: anywhere; }
.studio-choice-option[aria-selected="true"] { color: #24458c; background: #edf3ff; }
.studio-choice-option[data-active], .studio-choice-option:hover { background: #e0e8f7; }
.studio-choice-difference {
  color: #2f4876;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.studio-price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 15px;
  flex-wrap: wrap;
  padding: 12px 15px;
  border: 1px solid #ccd6ea;
  border-radius: 9px;
  background: #edf1f9;
  margin: 3px 0 18px;
  color: #2d3d5a;
}
.studio-price-card small { display: block; color: #565b62; }
.studio-price-card strong { font-size: 1.35rem; }
.studio-contact-heading { margin-bottom: 9px; font-size: 1.04rem; letter-spacing: normal; }
#studio-lamination-note { color: #565b62; }
.studio-field select:disabled { background: #eceef3; color: #565b62; }
.studio-checkout-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 7px; }
.studio-order-id { overflow-wrap: anywhere; margin: 14px 0 17px; }
@media (max-width: 740px) {
  .studio-gallery-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .studio-template { padding: 7px; }
  .card-studio { grid-template-columns: 1fr; gap: 20px; }
  .studio-controls fieldset { margin-bottom: 15px; }
  .studio-checkout-fields { grid-template-columns: 1fr; gap: 0; }
}
