:root { color-scheme: dark; font-family: system-ui, sans-serif; }
body { margin: 0; background: #111113; color: #f6f2f5; }
[hidden] { display: none !important; }
.brand { display: flex; align-items: center; gap: 1rem; padding: .8rem max(1rem, calc((100% - 1340px) / 2)); background: #1d1b1e; }
.brand a { color: #ff90ca; font-weight: 850; font-size: 1.4rem; text-decoration: none; }
.brand span { color: #cec3ce; }
.shared { box-sizing: border-box; width: min(1340px, calc(100% - 2rem)); margin: .8rem auto; padding: .85rem 1rem; background: #232024; border: 1px solid #443b43; border-radius: .9rem; }
.shared h1, .shared h2 { margin: 0 0 .75rem; }
.shared input, .shared button { box-sizing: border-box; min-height: 2.4rem; font: inherit; border-radius: .45rem; border: 1px solid #614e5c; padding: .35rem .65rem; }
.shared input { width: min(38rem, 100%); background: #181518; color: inherit; }
.shared label { display: grid; gap: .25rem; }
.shared button { cursor: pointer; background: #ff99ce; color: #24091a; font-weight: 680; }
.shared button:disabled { opacity: .45; cursor: default; }
.shared form, #actions, #totals { display: flex; flex-wrap: wrap; align-items: end; gap: .55rem; }
#links { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .4rem .65rem; max-width: 750px; }
#links input { width: 100%; }
#renew { justify-self: start; }
#totals { margin: .65rem 0; align-items: center; }
#totals b { color: #ff99ce; font-size: 1.25rem; }
#totals span { background: #3b2836; padding: .2rem .45rem; border-radius: .35rem; }
#checkout { margin-top: .75rem; }
#checkout pre { overflow: auto; max-height: 26rem; }
.notice:empty { display: none; }
#progress, #contribution { margin: .4rem 0; }
#group-settings, #links, #management, #new-code { margin-block: .7rem; }
#new-code code { display: inline-block; margin-inline-end: .5rem; overflow-wrap: anywhere; }
#group-settings input[type=number], #create input[type=number] { max-width: 12rem; }
.ezgift-party-pack { margin-inline: auto; }
.ezgift-party-pack input, .ezgift-party-pack textarea, .ezgift-party-pack button { font-family: inherit; }
.party-basket-mount { display: none; }
#ezgift-party-pack .party-viewer-row { display: grid; grid-template: auto auto / minmax(0, 1fr); }
#ezgift-party-pack .ezgift-party-pack__preview { grid-area: 1 / 1; position: relative; width: 100%; }
#ezgift-party-pack .ezgift-party-pack__preview iframe { grid-area: auto; position: absolute; inset: 0; }
#ezgift-party-pack[data-preview-url^="http"] .party-preview-instructions { display: none; }
#ezgift-party-pack .party-overlay-colours { position: absolute; inset-inline-start: 10px; top: 50%; translate: 0 -50%; z-index: 2; display: grid; gap: 8px; }
#ezgift-party-pack .party-overlay-colours button { background: none; border: 0; box-shadow: none; padding: 0; min-width: 44px; min-height: 44px; }
#ezgift-party-pack .party-designer-controls { grid-area: 2 / 1; display: flex; flex-flow: row wrap; align-items: center; justify-content: center; gap: 6px 12px; padding: 8px 0 0; }
#ezgift-party-pack .party-designer-controls [data-party-active] { display: flex; align-items: center; gap: 6px; }
#ezgift-party-pack .party-designer-controls [data-party-position] { flex: none; }
#ezgift-party-pack .party-designer-controls :is(p, span) { margin: 0; }
#ezgift-party-pack .party-designer-controls .party-default-actions:has(p:empty) { display: none; }
@media (min-width: 768px) and (max-width: 1100px) {
  #ezgift-party-pack .party-overlay-colours { top: max(56px, 14%); }
}
@media (min-width: 769px) {
  #ezgift-party-pack .party-preview-column { align-self: start; top: 72px; }
  #ezgift-party-pack .party-preview-card { max-height: none; overflow: visible; }
  #ezgift-party-pack .party-viewer-row .ezgift-party-pack__preview { height: clamp(190px, calc(100dvh - 240px), 620px); max-height: none; }
}
@media (max-width: 768px) {
  #ezgift-party-pack .party-preview-column { position: static; }
  #ezgift-party-pack .party-viewer-row .ezgift-party-pack__preview { height: clamp(255px, 64vw, 400px); }
}
#colour-picker { box-sizing: border-box; width: min(100% - 1.25rem, 33rem); max-height: 78dvh; background: #252027; color: inherit; border: 1px solid #685464; border-radius: .9rem; }
#colour-picker::backdrop { background: #080609ba; }
.palette-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.palette-header h2 { margin: .3rem 0 .75rem; font-size: 1.05rem; }
.palette-header button, .palette button { color: inherit; background: #352b35; border: 1px solid #645461; border-radius: .4rem; padding: .35rem; font: inherit; cursor: pointer; }
.palette { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: .45rem; }
.palette button { display: grid; place-items: center; align-content: start; gap: .25rem; font-size: .75rem; }
.palette button::before { content: ''; width: 2.2rem; height: 2.2rem; border: 1px solid #ffffff66; border-radius: 50%; background: var(--swatch); }
.palette button[aria-pressed=true] { outline: 2px solid #ff99ce; }
@media (max-width: 480px) {
  .shared { width: calc(100% - 1rem); padding: .65rem; }
  #links { grid-template-columns: minmax(0, 1fr); }
  #links button { justify-self: start; }
}

.steps {list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;padding:0;margin:1rem 0}
.steps li {background:#1b181c;border:1px solid #493b46;border-radius:.8rem;padding:.8rem}
.steps svg {width:26px;height:26px;fill:none;stroke:#ff99ce;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.steps h2 {font-size:.95rem;margin:.5rem 0 .35rem}.steps p {font-size:.87rem;line-height:1.45;color:#ded3dc;margin:0}
#create {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:.7rem}
#create input,#group-settings input {width:100%;min-width:0} .shared small {font-size:.8rem;color:#d4c5d0}
.form-help {grid-column:1/-1;font-size:.86rem;margin:0;color:#ded3dc} #create > button {grid-column:1/-1;justify-self:start}
.shared summary {cursor:pointer;padding:.65rem 0;color:#ffb4dc} .shared a {color:#ffb4dc;overflow-wrap:anywhere}
.share-actions {display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin:.75rem 0}
.deadline {font-weight:650;color:#ffd1e9}.participant {padding:.65rem 0;border-top:1px solid #54424e}.participant form {align-items:center}.participant input {width:5rem}
.participant ul {padding-inline-start:1.2rem}.participant li {margin:.35rem 0}.participant li button {margin-inline-start:.5rem;min-height:2rem;font-size:.82rem}
#group-settings {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;max-width:750px} #settings-status {grid-column:1/-1;margin:0;color:#ffd1e9;font-size:.8rem} #settings-status:empty {display:none}.shared :focus-visible {outline:2px solid #ffb4dc;outline-offset:3px}
#checkout[data-technical] {display:none} #ready-link {width:100%}
@media(max-width:900px){.steps,#create,#group-settings {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.steps {grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.steps li{padding:.65rem}.steps h2{font-size:.88rem}#create,#group-settings{grid-template-columns:minmax(0,1fr)}.shared h1{font-size:1.4rem}#create button{width:100%}}

/* Reuse the official live homepage branding; scope changes to this header. */
.brand a.ezg-header-brand {display:inline-flex;align-items:center;gap:7px;color:#fff;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-size:.95rem;font-weight:800;letter-spacing:.04em;line-height:1;text-decoration:none}
.brand .ezg-header-brand__logo {width:30px;height:30px;border-radius:7px;object-fit:cover;flex:none}
.brand .ezg-header-brand > .ezg-brand-wordmark {color:#FFFFFF}
.brand .ezg-header-brand > .ezg-brand-wordmark > .ezg-brand-wordmark__gift {color:#FF38E4}
#organiser-email-help {display:grid;grid-template-columns:16px minmax(0,1fr);align-items:start;gap:.4rem;font-size:.875rem;line-height:1.45;color:#d4c5d0;margin-top:.1rem}
#organiser-email-help svg {width:16px;height:16px;margin-top:.12rem}

#find {margin-top:1rem;padding:.85rem 1rem;background:#1b181c;border:1px solid #493b46;border-radius:.8rem}
#find h2 {display:flex;align-items:center;gap:.45rem;font-size:1.05rem;margin:0}
#find h2 svg {width:1.15rem;height:1.15rem;flex:none;color:#ff99ce}
#find p {margin:.4rem 0 .65rem;color:#ded3dc;font-size:.9rem;line-height:1.45}
#find-group label {flex:1 1 14rem;max-width:22rem;min-width:0}
#find-group input {width:100%}
@media(max-width:600px){#find {padding:.75rem}#find-group label,#find-group button {width:100%;max-width:none}}
/* Compact pricing stays attached to the flexible quantity target on every viewport. */
#create .quantity-field {
  display: grid;
  box-sizing: border-box;
  min-block-size: 236.43px;
  align-content: start;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .4rem .65rem;
  min-width: 0;
  container-type: inline-size;
  background: #19151a;
  border: 1px solid #614155;
  border-radius: .8rem;
  padding: .65rem;
}
#create .quantity-field > label {
  grid-area: 1 / 1;
  color: #fff;
  font-size: clamp(1rem, 6.5cqi, 1.25rem);
  font-weight: 750;
  line-height: 1.2;
}
#create .quantity-selector {
  grid-area: 1 / 2 / 4;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(2.5rem, 1fr) 2.25rem;
  gap: .15rem;
  width: clamp(68px, 29cqi, 96px);
  padding: .15rem;
  box-sizing: border-box;
  border: 1px solid #614e5c;
  border-radius: .45rem;
  background: #19151a;
}
#create .quantity-selector > button {
  width: 100%;
  min-height: 0;
  padding: 0;
  background: #30232d;
  color: #ffb4dc;
  font-size: 1.25rem;
  line-height: 1;
}
#create .quantity-selector > button:disabled {
  opacity: .45;
  cursor: default;
}
#create #group-target {
  grid-column: 1 / -1;
  width: 100%;
  border: 0;
  background: transparent;
  padding-block: 0;
  min-height: 0;
  padding-inline: .25rem;
  appearance: textfield;
  color: #fff;
  font-size: clamp(1.65rem, 9cqi, 2.15rem);
  font-weight: 750;
  text-align: center;
}
#create #group-target::-webkit-inner-spin-button,
#create #group-target::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}
#creation-estimate {
  display: grid;
  grid-area: 2 / 1 / span 6 / -1;
  grid-template: subgrid / subgrid;
  min-width: 0;
}
#estimate-values {
  display: grid;
  grid-area: 1 / 1 / span 5 / -1;
  grid-template-rows: subgrid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: .5rem;
  align-items: baseline;
  font-size: .8rem;
  line-height: 1.45;
}
#estimate-values .estimate-label,
.estimate-price-row {
  grid-column: 1 / -1;
  margin-inline-end: calc(clamp(68px, 29cqi, 96px) + .65rem);
}
#estimate-values .estimate-label { grid-row: 1; }
.estimate-price-row {
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .5rem;
}
#estimate-unit { grid-area: 3 / 1 / auto / -1; }
#estimate-discount { grid-area: 4 / 1; justify-self: start; }
#estimate-saving { grid-area: 4 / 2; }
#estimate-next { grid-area: 5 / 1 / auto / -1; }
#estimate-original { color: #bcb5c2; font-size: .95rem; font-variant-numeric: tabular-nums; }
#estimate-total { color: #ff99ce; font-size: clamp(1.5rem, 9.5cqi, 1.9rem); line-height: 1.15; font-variant-numeric: tabular-nums; }
#estimate-discount, #estimate-saving { color: #ffd1e9; }
#estimate-discount { background: #3b2836; border-radius: .3rem; padding: .1rem .3rem; }
#estimate-next { color: #ffb4dc; }
#estimate-note { grid-area: 6 / 1 / auto / -1; margin: .2rem 0 0; font-size: .73rem; line-height: 1.45; color: #d4c5d0; }
