/* All declarations are confined to the new builder. Values match the storefront. */
.ezgift-party-pack { width: var(--ess-page-width, min(1720px, calc(100% - 32px))); margin: 0 auto 80px; color: var(--ess-ink, #e5e7eb); }
.ezgift-party-pack *, .ezgift-party-pack *::before, .ezgift-party-pack *::after { box-sizing: border-box; }
.ezgift-party-pack .ezgift-party-pack__heading { padding: 28px 0 22px; }
.ezgift-party-pack h1 { margin: 0 0 16px; color: var(--ess-ink, #e5e7eb); font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 700; line-height: 1.1; }
.ezgift-party-pack h2 { margin: 0 0 16px; font-size: 1.4rem; font-weight: 700; color: inherit; }
.ezgift-party-pack h3 { margin: 20px 0 10px; font-size: 1.1rem; color: inherit; }
.ezgift-party-pack p { margin: 0 0 16px; color: var(--ess-muted, #9ca3af); overflow-wrap: anywhere; }
.ezgift-party-pack .ezgift-party-pack__columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 20px; }
.ezgift-party-pack .ezgift-party-pack__stack { display: grid; gap: 24px; min-width: 0; }
.ezgift-party-pack .ezgift-party-pack__card { min-width: 0; padding: 24px; border: 1px solid var(--ess-line, #1f2937); border-radius: 18px; background: var(--ess-card, #0b1220); }
.ezgift-party-pack label { display: block; margin-bottom: 8px; font-size: 16px; color: inherit; }
.ezgift-party-pack input, .ezgift-party-pack textarea { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #374151; border-radius: 8px; background: var(--ess-bg, #020617); color: var(--ess-ink, #e5e7eb); font: inherit; font-size: 16px; color-scheme: dark; }
.ezgift-party-pack textarea { resize: vertical; margin-bottom: 14px; }
.ezgift-party-pack button { min-height: 44px; max-width: 100%; padding: 10px 16px; border: 1px solid var(--ess-accent, #ec4899); border-radius: 8px; background: var(--ess-accent, #ec4899); color: #fff; font: inherit; font-weight: 600; white-space: normal; cursor: pointer; }
.ezgift-party-pack button:hover { background: var(--ess-accent-hover, #db2777); }
.ezgift-party-pack button:disabled { opacity: .5; cursor: default; }
.ezgift-party-pack button:focus-visible, .ezgift-party-pack input:focus-visible, .ezgift-party-pack textarea:focus-visible { outline: 3px solid var(--ess-accent, #ec4899); outline-offset: 3px; }
.ezgift-party-pack .ezgift-party-pack__navigation { display: flex; gap: 12px; margin: 12px 0 16px; }
.ezgift-party-pack .ezgift-party-pack__navigation button { flex: 1; }
.ezgift-party-pack .ezgift-party-pack__preview { height: clamp(280px, 36vw, 520px); border: 1px solid var(--ess-line, #1f2937); border-radius: 18px; overflow: hidden; background: var(--ess-bg, #020617); margin-bottom: 16px; }
.ezgift-party-pack .ezgift-party-pack__preview iframe { display: block; width: 100%; height: 100%; border: 0; }
.ezgift-party-pack .ezgift-party-pack__guests { display: grid; gap: 14px; margin-bottom: 16px; }
.ezgift-party-pack .ezgift-party-pack__guest { padding: 16px; min-width: 0; border: 1px solid var(--ess-line, #1f2937); border-radius: 10px; background: var(--ess-surface, #050814); }
.ezgift-party-pack .ezgift-party-pack__guest[data-active="true"] { border-color: var(--ess-accent, #ec4899); }
.ezgift-party-pack .ezgift-party-pack__guest-fields { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 12px; margin: 12px 0; }
.ezgift-party-pack .ezgift-party-pack__guest-fields > div { min-width: 0; }
.ezgift-party-pack .ezgift-party-pack__guest-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ezgift-party-pack .ezgift-party-pack__guest-actions button { background: transparent; color: var(--ess-ink, #e5e7eb); }
.ezgift-party-pack .ezgift-party-pack__status { font-size: .9rem; overflow-wrap: anywhere; }
.ezgift-party-pack fieldset { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.ezgift-party-pack legend { margin-bottom: 10px; font-weight: 600; color: inherit; font-size: 16px; }
.ezgift-party-pack .ezgift-party-pack__swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.ezgift-party-pack .ezgift-party-pack__swatch { position: relative; width: 48px; height: 48px; margin: 0; cursor: pointer; }
.ezgift-party-pack .ezgift-party-pack__swatch input { position: absolute; width: 1px; min-height: 0; height: 1px; padding: 0; opacity: 0; }
.ezgift-party-pack .ezgift-party-pack__swatch span { display: block; width: 48px; height: 48px; border: 1px solid #111827; border-radius: 50%; background: var(--party-swatch-colour); }
.ezgift-party-pack .ezgift-party-pack__swatch input:checked + span { border: 2px solid #e5e7eb; box-shadow: 0 0 0 1px #000 inset; }
.ezgift-party-pack .ezgift-party-pack__swatch input:focus-visible + span { outline: 3px solid var(--ess-accent, #ec4899); outline-offset: 3px; }
.ezgift-party-pack [data-party-colour-notice], .ezgift-party-pack [data-party-paste-notice] { margin: 12px 0 0; }
.ezgift-party-pack .ezgift-party-pack__needed-by { margin: 16px 0; padding-top: 16px; border-top: 1px solid var(--ess-line, #1f2937); }
.ezgift-party-pack .ezgift-party-pack__date-prompt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ezgift-party-pack .ezgift-party-pack__date-prompt button { background: transparent; color: inherit; }
.ezgift-party-pack .ezgift-party-pack__needed-by p { margin: 8px 0; font-size: .9rem; }
.ezgift-party-pack .ezgift-party-pack__needed-by [hidden] { display: none; }
.ezgift-party-pack .ezgift-party-pack__colour-summary { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.ezgift-party-pack .ezgift-party-pack__colour-choice { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.ezgift-party-pack .ezgift-party-pack__colour-dot { display: inline-block; flex: 0 0 16px; width: 16px; height: 16px; border: 1px solid var(--ess-line, #1f2937); border-radius: 50%; background: var(--party-swatch-colour); }
.ezgift-party-pack [data-party-colour-editor] { margin: 12px 0; }
.ezgift-party-pack [data-party-colour-editor][hidden], .ezgift-party-pack [data-party-colour-toggle][hidden] { display: none; }
.ezgift-party-pack .ezgift-party-pack__guest-colours { display: inline-flex; align-items: center; gap: 6px; }
.ezgift-party-pack [data-guest-status][data-complete="true"] { color: var(--ess-success, #229653); }
.ezgift-party-pack .ezgift-party-pack__guest:is([data-active="false"], [data-editing="false"]) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; }
.ezgift-party-pack .ezgift-party-pack__guest:is([data-active="false"], [data-editing="false"]) .ezgift-party-pack__guest-fields { grid-template-columns: minmax(0, 1fr) 40px; gap: 6px; margin: 0; }
.ezgift-party-pack .ezgift-party-pack__guest:is([data-active="false"], [data-editing="false"]) label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.ezgift-party-pack .ezgift-party-pack__guest:is([data-active="false"], [data-editing="false"]) input { padding: 8px 0; border-color: transparent; background: transparent; cursor: pointer; }
.ezgift-party-pack .ezgift-party-pack__guest:is([data-active="false"], [data-editing="false"]) .ezgift-party-pack__guest-actions button { display: none; }
.ezgift-party-pack .ezgift-party-pack__guest:is([data-active="false"], [data-editing="false"]) .ezgift-party-pack__guest-actions { flex-wrap: nowrap; gap: 6px; }
.ezgift-party-pack .ezgift-party-pack__guest:focus-visible { outline: 3px solid var(--ess-accent, #ec4899); outline-offset: 3px; }
@media (max-width: 1024px) { .ezgift-party-pack .ezgift-party-pack__columns { grid-template-columns: minmax(0, 1fr); gap: 24px; } .ezgift-party-pack .ezgift-party-pack__preview { height: 400px; } }
@media (max-width: 575px) { .ezgift-party-pack .ezgift-party-pack__columns { margin-bottom: 16px; } .ezgift-party-pack .ezgift-party-pack__card { padding: 16px; } .ezgift-party-pack .ezgift-party-pack__guest { padding: 12px; } .ezgift-party-pack .ezgift-party-pack__guest-fields { grid-template-columns: minmax(0, 1fr); } .ezgift-party-pack .ezgift-party-pack__preview { height: 300px; } }
/* Match the existing Football Shirt designer's expanded palette only. */
.ezgift-party-pack .ezgift-party-pack__swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(38.4px, 1fr)); gap: 6px; }
.ezgift-party-pack .ezgift-party-pack__swatch, .ezgift-party-pack .ezgift-party-pack__swatch span { width: 38.4px; height: 38.4px; justify-self: center; }
@media (max-width: 760px) {
  .ezgift-party-pack .ezgift-party-pack__swatches { grid-template-columns: repeat(5, 44px); justify-content: space-between; gap: 10px 6px; }
  .ezgift-party-pack .ezgift-party-pack__swatch, .ezgift-party-pack .ezgift-party-pack__swatch span { width: 44px; height: 44px; }
}
@media (max-width: 359px) { .ezgift-party-pack .ezgift-party-pack__swatches { grid-template-columns: repeat(4, 44px); } }
@media (max-width: 1024px) {
  .ezgift-party-pack .ezgift-party-pack__stack { display: contents; }
  .ezgift-party-pack .ezgift-party-pack__card[aria-labelledby="party-designer-title"] { order: -1; }
}

/* Guest inputs only: preserve existing grids, row sizing and preview styling. */
#ezgift-party-pack [data-guest-id] input[data-guest-field="number"] { text-align: center; }
#ezgift-party-pack [data-guest-id] input[data-guest-field="name"] { padding-left: 12px !important; padding-right: 12px !important; }
#ezgift-party-pack [data-guest-id][data-editing="false"] input { pointer-events: none; }

/* Football preview swatch alignment only. */
@media (width < 1024px) {
  .ezgift-party-pack .ezgift-party-pack__preview { position: relative; }
  .ezgift-party-pack .footballColourOverlay { position: absolute; inset: 0; z-index: 4; display: block; pointer-events: none; }
  .ezgift-party-pack .footballColourOverlayButton { position: absolute; display: grid; justify-items: center; gap: 3px; min-width: 52px; padding: 4px; border: 0; background: transparent; color: #e5e7eb; font: inherit; font-family: Arial, Helvetica, sans-serif; cursor: pointer; pointer-events: auto; }
  .ezgift-party-pack .footballColourOverlayButton:hover { background: transparent; }
  .ezgift-party-pack .footballColourOverlayButton > span { display: block; width: 44px; height: 44px; box-sizing: border-box; border: 2px solid #e5e7eb; border-radius: 50%; box-shadow: 0 0 0 2px #ec4899, 0 5px 16px rgba(0, 0, 0, 0.5); }
  .ezgift-party-pack .footballColourOverlayButton small { padding: 2px 6px; border-radius: 999px; background: rgba(7, 11, 24, 0.88); color: #f6f3ee; font-size: 10px; font-weight: 600; line-height: 1.2; }
  .ezgift-party-pack .footballColourOverlayBase { top: 16px; left: 8px; }
  .ezgift-party-pack .footballColourOverlayAccent { bottom: 14px; left: 8px; }
  .ezgift-party-pack .footballColourOverlay.hasTwoColours .footballColourOverlayAccent { right: 8px; left: auto; }
 .ezgift-party-pack .footballColourOverlayButton small{font-size:12px}
  .ezgift-party-pack [data-party-preview] .footballColourOverlay { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px; }
  .ezgift-party-pack .footballColourOverlay .footballColourOverlayButton { position: static; min-width: 60px; flex-shrink: 0; }
}

/* Group Pack colour-selection controls only; existing swatch sizes/outlines are untouched. */
.ezgift-party-pack .ezgift-party-pack__colour-tabs,
body.ezgift-party-pack-page .ess-colour-sheet .ezgift-party-pack__colour-tabs { display:flex; gap:8px; margin-bottom:12px; }
.ezgift-party-pack .ezgift-party-pack__colour-tabs button,
body.ezgift-party-pack-page .ess-colour-sheet .ezgift-party-pack__colour-tabs button { flex:1; min-height:44px; padding:8px; border:1px solid var(--ess-accent,#ec4899); border-radius:8px; background:transparent; color:inherit; font:inherit; font-weight:600; }
.ezgift-party-pack .ezgift-party-pack__colour-tabs button[aria-selected="true"],
body.ezgift-party-pack-page .ess-colour-sheet .ezgift-party-pack__colour-tabs button[aria-selected="true"] { background:var(--ess-accent,#ec4899); color:#fff; }
.ezgift-party-pack .ezgift-party-pack__colour-panel[hidden] { display:none; }
.ezgift-party-pack .ezgift-party-pack__colour-panel .ezgift-party-pack__swatches { grid-template-columns:repeat(auto-fill,38.4px); justify-content:start; }
.ezgift-party-pack .ezgift-party-pack__colour-confirm { position:fixed; width:min(480px,calc(100% - 32px)); max-height:calc(100% - 32px); overflow:auto; margin:auto; color:var(--ess-ink,#e5e7eb); }
.ezgift-party-pack .ezgift-party-pack__colour-confirm::backdrop { background:rgba(0,0,0,.58); }
.ezgift-party-pack .ezgift-party-pack__colour-confirm button { margin-top:8px; }
body.ezgift-party-pack-page .ezgift-party-pack-drawer-summary { display:grid; gap:6px; margin-bottom:14px; }
body.ezgift-party-pack-page .ezgift-party-pack-drawer-summary > span { display:flex; align-items:center; gap:8px; overflow-wrap:anywhere; }
body.ezgift-party-pack-page .ezgift-party-pack-drawer-dot { flex:0 0 16px; width:16px; height:16px; border-radius:50%; border:1px solid var(--ess-line,#1f2937); }
body.ezgift-party-pack-page .ess-colour-sheet-grid { justify-items:start; }
@media(max-width:760px) {
 #ezgift-party-pack .ezgift-party-pack__card[aria-labelledby="party-colours-title"] { display:block; }
 .ezgift-party-pack .ezgift-party-pack__colour-panel .ezgift-party-pack__swatches { grid-template-columns:repeat(5,44px); justify-content:start; }
}
@media(max-width:359px) { .ezgift-party-pack .ezgift-party-pack__colour-panel .ezgift-party-pack__swatches { grid-template-columns:repeat(4,44px); } }
