/* Atelier Custom Design — uses the theme's CSS variables (falls back to neutral values). */
.acd { display: grid; gap: 14px; padding: 18px; border-radius: 24px; background: var(--panel, #1d1d1f); }
.acd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acd-head h3 { margin: 0; font-size: 19px; }
.acd-tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--stage, #000); }
.acd-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ash, #86868b); font-size: 14px; cursor: pointer; transition: background-color .2s, color .2s; }
.acd-tab[aria-selected="true"] { background: var(--steel, #333336); color: var(--text, #f5f5f7); }
.acd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent, #0071e3); }
.acd-stage { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #f2f2f2; user-select: none; -webkit-user-select: none; touch-action: none; }
.acd-blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.acd-area { position: absolute; outline: 1.5px dashed rgba(0, 0, 0, .35); outline-offset: -1px; border-radius: 6px; }
.acd-area-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; }
.acd-art { position: absolute; max-width: none; transform: translate(-50%, -50%); cursor: grab; touch-action: none; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .06)); }
.acd-art.is-drag { cursor: grabbing; outline: 1.5px solid var(--accent, #0071e3); }
.acd-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.acd-upload { cursor: pointer; }
.acd-size { display: inline-flex; align-items: center; gap: 10px; color: var(--ash, #86868b); font-size: 14px; }
.acd-size input { width: 140px; accent-color: var(--accent, #0071e3); }
.acd-link { padding: 0; border: 0; background: none; color: var(--link, #2997ff); font-size: 14px; cursor: pointer; }
.acd-msg { margin: 0; font-size: 13px; color: var(--ash, #86868b); }
.acd-msg[data-tone="ok"] { color: #30d158; }
.acd-msg[data-tone="warn"] { color: #ffd60a; }
.acd-msg[data-tone="bad"] { color: var(--accent, #ff453a); }
.acd-rights { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text, #f5f5f7); cursor: pointer; }
.acd-rights input { margin-top: 2px; accent-color: var(--accent, #0071e3); }
/* The designer takes the full width of the add-to-cart row and sits above the button. */
form.cart .woocommerce-variation-add-to-cart, form.cart:not(.variations_form) { flex-wrap: wrap !important; }
form.cart .acd { flex: 1 0 100%; order: -1; margin-bottom: 4px; }

.acd-fix { justify-self: start; min-height: 44px; border: 0; cursor: pointer; }
.acd-fix[disabled] { opacity: .6; cursor: progress; }
.acd-fix[hidden] { display: none; }

/* See it on a person */
.acd-people { display: grid; gap: 10px; }
.acd-people[hidden] { display: none; }
.acd-people-title { margin: 0; font-weight: 700; font-size: 15px; }
.acd-people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.acd-person { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: #e6e4e0; aspect-ratio: 2 / 3; }
.acd-person-photo { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.acd-person-area { position: absolute; overflow: hidden; pointer-events: none; }
.acd-person-art { position: absolute; max-width: none; transform: translate(-50%, -50%); }
.acd-person figcaption { position: absolute; left: 8px; bottom: 8px; padding: 5px 10px; border-radius: 999px; background: rgba(10, 10, 10, .78); color: #fff; font-size: 12px; font-weight: 600; }
.acd-people-note { margin: 0; font-size: 12px; color: var(--ash, #86868b); }

/* how-to video above the design panel */
form.cart .acd-howto { flex: 1 0 100%; order: -2; }
.acd-howto { display: grid; gap: 10px; margin-bottom: 14px; }
.acd-howto h3 { margin: 0; font-size: 19px; }
.acd-howto video { display: block; width: 100%; aspect-ratio: 16/9; border-radius: 18px; background: #0b0b0d; }
