/*! JayWelaLa | AI guest management for every event | https://jaywelala.com
   Wedding Photo Frame tool: style.
   (c) 2026 JayWelaLa (jaywelala.com). All rights reserved.
   The name JayWelaLa, its logo, illustrations, texts and this code belong to JayWelaLa. */
/* Photo frame tool: header and brand come from signup.css, title and lead from info.css, tokens and buttons from base.css */

.pf {
  max-width: 64rem;
}

.pf__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 58rem) {
  .pf__grid {
    grid-template-columns: minmax(0, 1fr) 22rem;
  }
}

/* ---------- picture ---------- */
.pf-stage {
  position: relative;
  aspect-ratio: var(--pf-ratio, 4 / 5);
  width: 100%;
  margin-inline: auto;
  border: 2px solid var(--black);
  border-radius: 1rem;
  background: var(--white);
  overflow: hidden;
  touch-action: none;
}

.pf-stage svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pf-stage--ready {
  cursor: grab;
}

.pf-stage--drag {
  cursor: grabbing;
}

.pf-stage--drop {
  outline: 4px dashed var(--red);
  outline-offset: -8px;
}

.pf-stage:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.pf-wrap {
  position: relative;
  width: 100%;
  max-width: calc(80vh * var(--pf-w, 0.8));
  margin-inline: auto;
}

.pf-stage__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  padding: 2rem;
  text-align: center;
  font-weight: 700;
  pointer-events: none;
}

.pf-stage__empty small {
  font-weight: 500;
  color: #333;
}

.pf-hint {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: #333;
}

/* ---------- controls ---------- */
.pf-panel {
  display: grid;
  gap: 1.5rem;
}

.pf-group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.pf-group__title {
  padding: 0;
  margin-block-end: 0.6rem;
  font: 800 1.1rem/1.3 var(--font-display);
}

.pf-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.pf-choices--3 {
  grid-template-columns: repeat(3, 1fr);
}

.pf-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pf-choice__box {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.4rem;
  border: 2px solid var(--black);
  border-radius: 1rem;
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pf-choice__box img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  background: var(--white);
}

.pf-choice:hover .pf-choice__box {
  background: #f2f2f2;
}

.pf-choice input:checked + .pf-choice__box {
  border-color: var(--red);
  box-shadow: inset 0 0 0 2px var(--red);
}

.pf-choice input:focus-visible + .pf-choice__box {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* little outline that shows each frame shape */
.pf-shape {
  display: block;
  border: 2px solid var(--black);
  border-radius: 3px;
}

.pf-shape {
  width: var(--w, 1.9rem);
  height: var(--h, 1.9rem);
}

.pf-shape--round { border-radius: 0.5rem; }
.pf-shape--oval { border-radius: 50%; }
.pf-shape--arch { border-start-start-radius: 999px; border-start-end-radius: 999px; }

.pf-choices--3 {
  align-items: stretch;
}

.pf-choices--3 .pf-choice__box {
  height: 100%;
  align-content: center;
}

.pf-text {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--black);
  border-radius: var(--radius-pill);
  font: 500 1rem/1.2 var(--font-body);
}

.pf-text:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.pf-zoom {
  width: 100%;
  accent-color: var(--red);
}

.pf-actions {
  display: grid;
  gap: 0.75rem;
}

.pf-actions .btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.pf-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 2px solid var(--black);
  border-inline-start: 6px solid var(--red);
  border-radius: 1rem;
  background: #f7f7f7;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* round "i" badge: this is information, not a warning */
.pf-note__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font: italic 800 0.95rem/1 Georgia, "Times New Roman", serif;
}

.pf-status {
  min-height: 1.5em;
  margin: 0;
  font-weight: 600;
}

/* ---------- text, effects, canvas layer ---------- */
.pf-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  pointer-events: none;
}

.pf-sub {
  display: block;
  margin: 0.9rem 0 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.pf-select {
  appearance: auto;
  background: var(--white);
}

.pf-choices--2 {
  grid-template-columns: repeat(2, 1fr);
}

.pf-choice__box--text {
  min-height: 2.6rem;
  align-content: center;
  padding-block: 0.5rem;
}

/* ---------- accordion: one group open at a time ---------- */
.pf-acc {
  border: 2px solid var(--black);
  border-radius: 1rem;
  background: var(--white);
}

.pf-acc__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  font: 800 1.05rem/1.3 var(--font-display);
  cursor: pointer;
  list-style: none;
}

.pf-acc__sum::-webkit-details-marker {
  display: none;
}

/* plus turns into minus */
.pf-acc__sum::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1;
}

.pf-acc[open] > .pf-acc__sum::after {
  content: "\2212";
  background: var(--red);
}

.pf-acc__sum:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 1rem;
}

.pf-acc__body {
  padding: 0.2rem 1rem 1rem;
}

.pf-acc__body .pf-sub:first-child {
  margin-top: 0.4rem;
}

/* ---------- font tiles ---------- */
.pf-font {
  gap: 0.15rem;
  padding: 0.5rem 0.3rem;
}

.pf-font__sample {
  font-size: 1.9rem;
  line-height: 1.3;
  color: var(--black);
}

.pf-font__name {
  font-size: 0.7rem;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
}

.pf-choice {
  display: block;
}

/* ---------- color chips in the text box choices ---------- */
.pf-choice__box--text:has(.pf-swatch) {
  grid-auto-flow: column;
  justify-content: center;
  gap: 0.4rem;
}

.pf-swatch {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--black);
  border-radius: 50%;
}

.pf-swatch--black { background: var(--black); }
.pf-swatch--red { background: var(--red); }
.pf-swatch--white { background: var(--white); }
.pf-swatch--none {
  background: linear-gradient(135deg, var(--white) 45%, var(--red) 45% 55%, var(--white) 55%);
}

/* ---------- glow: four color circles in a line, and sliders ---------- */
.pf-dots {
  display: flex;
  gap: 0.9rem;
  justify-content: flex-start;
}

.pf-dot {
  position: relative;
  cursor: pointer;
}

.pf-dot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pf-dot__circle {
  display: block;
  width: 2.6rem;
  height: 2.6rem;
  border: 2px solid var(--black);
  border-radius: 50%;
  transition: box-shadow 0.2s;
}

.pf-dot__circle--black { background: var(--black); }
.pf-dot__circle--red { background: var(--red); }
.pf-dot__circle--white { background: var(--white); }
/* none: white circle with a red slash */
.pf-dot__circle--none {
  background: linear-gradient(135deg, var(--white) 46%, var(--red) 46% 54%, var(--white) 54%);
}

.pf-dot input:checked + .pf-dot__circle {
  box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--red);
}

.pf-dot input:focus-visible + .pf-dot__circle {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.pf-slider {
  display: block;
  margin-block-start: 0.8rem;
}

.pf-slider__row {
  display: flex;
  justify-content: space-between;
  margin-block-end: 0.2rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.pf-slider input:disabled,
.pf-choice input:disabled + .pf-choice__box {
  opacity: 0.4;
}

.pf-hint-sm {
  margin: 0.8rem 0 0;
  font-size: 0.9rem;
}
