/* Eden Aloni — buyers area (/my-products/). Uses theme tokens where available. */
.ea-mp { padding: 3rem 0 5rem; }
.ea-mp__container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .ea-mp__container { padding: 0 1.5rem; } }
.ea-mp__title { font-size: clamp(1.75rem, 3.5vw, 2.25rem); margin: 0 0 1.5rem; }
.ea-mp__lead { color: var(--color-muted, #6b6b74); margin: 0 0 1rem; line-height: 1.7; }
.ea-mp__actions { margin: 1.5rem 0 0; }
.ea-mp__back { margin: -0.75rem 0 1.5rem; }
.ea-mp__back a { color: var(--color-muted, #6b6b74); }
.ea-mp__notice { background: #fafafa; border: 1px dashed #ddd; border-radius: 0.75rem; padding: 1.25rem; }
.ea-mp__notice p { margin: 0.25rem 0; }
.ea-mp__error { background: #fdecef; color: #9b1c3a; border-radius: 0.5rem; padding: 0.75rem 1rem; margin: 0 0 1.25rem; }

.ea-mp-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ea-mp-card { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--color-line, #ececec); border-radius: 1rem; padding: 1.25rem 1.5rem; }
.ea-mp-card__title { font-size: 1.25rem; margin: 0; }

.ea-mp-section { margin: 0 0 3rem; }
.ea-mp-section h2 { font-size: 1.375rem; margin: 0 0 1rem; }
.ea-mp-video { position: relative; aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; background: #000; }
.ea-mp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ea-mp-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ea-mp-file { display: flex; align-items: center; gap: 0.75rem; background: #fff; border: 1px solid var(--color-line, #ececec);
  border-radius: 0.75rem; padding: 0.875rem 1rem; font-weight: 600; }
.ea-mp-file:hover { border-color: var(--color-pink, #e26292); }
.ea-mp-file__icon { flex-shrink: 0; font-size: 0.75rem; font-weight: 800; color: #fff; background: var(--color-pink, #e26292); border-radius: 0.375rem; padding: 0.25rem 0.4rem; }

/* "יש לי בן | יש לי בת" toggle switch. Characters of the other gender get [hidden] (server default + script). */
.ea-mp-gender { display: inline-flex; align-items: center; gap: 0.75rem; margin: 0 0 1.25rem; }
.ea-mp-gender__side { font: inherit; font-weight: 700; color: var(--color-muted, #6b6b74); background: none; border: 0;
  padding: 0.25rem; cursor: pointer; transition: color 0.2s ease; }
.ea-mp-gender__side.is-active { color: var(--color-ink, #1a1a1f); }
.ea-mp-switch { position: relative; display: inline-block; width: 3.25rem; height: 1.875rem; flex-shrink: 0; cursor: pointer; }
.ea-mp-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.ea-mp-switch__track { position: absolute; inset: 0; border-radius: 9999px; background: var(--color-pink, #e26292); }
.ea-mp-switch__thumb { position: absolute; top: 0.1875rem; inset-inline-start: 0.1875rem; width: 1.5rem; height: 1.5rem;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: inset-inline-start 0.2s ease; }
.ea-mp-switch input:checked + .ea-mp-switch__track .ea-mp-switch__thumb { inset-inline-start: calc(100% - 1.6875rem); }
.ea-mp-switch input:focus-visible + .ea-mp-switch__track { outline: 2px solid var(--color-ink, #1a1a1f); outline-offset: 2px; }
.ea-mp-variant[hidden] { display: none; }

.ea-mp-story__variants { border: 0; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.ea-mp-story__variants legend { font-weight: 700; margin-bottom: 0.75rem; }
.ea-mp-variant { position: relative; display: grid; gap: 0.5rem; justify-items: center; text-align: center; cursor: pointer;
  background: #fff; border: 2px solid var(--color-line, #ececec); border-radius: 0.875rem; padding: 0.75rem; font-size: 0.9375rem; }
.ea-mp-variant img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0.5rem; }
.ea-mp-variant input { position: absolute; opacity: 0; pointer-events: none; }
.ea-mp-variant:has(input:checked) { border-color: var(--color-pink, #e26292); box-shadow: 0 0 0 3px rgba(226, 98, 146, 0.2); }
.ea-mp-variant:has(input:focus-visible) { outline: 2px solid var(--color-ink, #1a1a1f); outline-offset: 2px; }
.ea-mp-story__name { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; max-width: 560px; }
.ea-mp-story__name label { width: 100%; font-weight: 700; }
.ea-mp-story__name input, .ea-mp-login input[type=email] { flex: 1 1 220px; font: inherit; padding: 0.75rem 1rem;
  border: 1px solid var(--color-line, #dcdcdc); border-radius: 0.625rem; }

.ea-mp-login { max-width: 520px; }
.ea-mp-login__form label { display: block; font-weight: 700; margin-bottom: 0.5rem; }
.ea-mp-login__row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ea-mp-login__sent { background: #eef8f0; color: #1f6b35; border-radius: 0.5rem; padding: 0.75rem 1rem; }

/* Character names stay for screen readers only (visually hidden) */
.ea-mp-variant__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
