.bundle-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--foreground);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.bundle-toggle-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 50%;
  background: var(--foreground);
  color: var(--background);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

body.bundle-dialog-open { overflow: hidden; }

.bundle-dialog {
  width: min(940px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100svh - 40px);
  padding: 0;
  color: var(--foreground);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  box-shadow: 0 28px 100px rgb(0 0 0 / 35%);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.bundle-dialog::backdrop { background: var(--dialog-backdrop); backdrop-filter: blur(8px); }
.bundle-dialog [hidden] { display: none !important; }
.bundle-dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 30px 32px 26px; border-bottom: 1px solid var(--rule); }
.bundle-eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 10px; line-height: 1.5; letter-spacing: .15em; text-transform: uppercase; }
.bundle-dialog h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 500; letter-spacing: -.045em; }
.bundle-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; margin: -8px -8px 0 0; padding: 0; color: var(--foreground); border: 1px solid var(--rule); border-radius: 50%; background: transparent; font-size: 29px; font-weight: 300; line-height: 1; cursor: pointer; }
.bundle-content { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 1.35fr); }
.bundle-review { padding: 30px 26px 32px 32px; border-right: 1px solid var(--rule); }
.bundle-review h3 { margin: 0 0 12px; font-size: 23px; line-height: 1.2; letter-spacing: -.035em; font-weight: 500; }
.bundle-review-note, .bundle-form-intro { margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.bundle-selection { margin: 0; padding: 0; list-style: none; }
.bundle-selection > .bundle-individual, .bundle-pack-services > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.bundle-service-name { font-size: 13px; line-height: 1.45; }
.bundle-remove { flex: 0 0 44px; display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--rule); border-radius: 50%; color: var(--foreground); background: transparent; font-size: 21px; cursor: pointer; }
.bundle-text-button { min-height: 44px; padding: 8px 0; margin-top: 12px; color: var(--muted); border: 0; background: transparent; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.bundle-form { position: relative; display: grid; gap: 17px; min-width: 0; padding: 30px 32px 32px; }
.bundle-form-intro { margin-bottom: 2px; }
.bundle-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 16px; }
.bundle-form label { display: block; min-width: 0; font-size: 12px; line-height: 1.5; }
.bundle-optional { color: var(--muted); font-size: 11px; }
.bundle-form input, .bundle-form textarea, .bundle-form select { display: block; width: 100%; min-height: 44px; margin-top: 7px; padding: 11px 12px; color: var(--foreground); border: 1px solid var(--field-border); border-radius: 2px; background: var(--background); font: inherit; font-size: 14px; }
.bundle-form textarea { min-height: 110px; resize: vertical; }
.bundle-form input::placeholder, .bundle-form textarea::placeholder { color: var(--placeholder); opacity: 1; }
.bundle-form select { padding-right: 30px; }
.bundle-primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding: 14px 18px; color: var(--background); background: var(--foreground); border: 1px solid var(--foreground); border-radius: 2px; font: inherit; font-size: 13px; line-height: 1.4; text-decoration: none; cursor: pointer; }
.bundle-primary:hover { background: var(--button-hover); border-color: var(--button-hover); }
.bundle-dialog button:disabled, .bundle-dialog input:disabled, .bundle-dialog textarea:disabled, .bundle-dialog select:disabled { cursor: default; opacity: .55; }
.bundle-dialog :focus-visible, .bundle-toggle:focus-visible { outline: 2px solid var(--foreground); outline-offset: 4px; }
.bundle-verification-note, .bundle-status { margin: 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.bundle-verification-note { color: var(--muted); }
.bundle-verification-note:empty, .bundle-status:empty { display: none; }
.bundle-status[data-state="error"] { color: var(--foreground); border-left: 2px solid currentColor; padding-left: 12px; }
.bundle-status[data-state="success"] { font-size: 15px; }
.bundle-alternative { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.bundle-alternative a { display: inline-block; padding: 6px 0; color: var(--foreground); text-underline-offset: 3px; }
.bundle-empty { padding: clamp(26px, 5vw, 56px) 32px 40px; }
.bundle-empty p:first-child { max-width: 540px; margin: 0 0 14px; font-size: clamp(23px, 4vw, 36px); line-height: 1.2; letter-spacing: -.04em; }
.bundle-empty p:nth-child(2) { max-width: 440px; margin: 0 0 28px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.bundle-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bundle-turnstile { min-width: 0; }

/* One bespoke selection progresses through the 3, 5 and 7 service offers. */
.bundle-offer {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  margin: 30px 0;
  padding: clamp(23px, 3vw, 38px);
  border: 1px solid var(--rule);
  border-left: 2px solid #e4002b;
  background: var(--panel);
}
.bundle-offer[hidden], #bundle-offer-summary[hidden] { display: none !important; }
.bundle-offer-heading { max-width: 19ch; margin: 0 0 15px; color: var(--foreground); font-size: clamp(24px, 3vw, 37px); line-height: 1.13; font-weight: 500; letter-spacing: -.04em; }
.bundle-offer-description { max-width: 43ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.bundle-offer-progress { margin: 18px 0 0; color: var(--foreground); font-size: 12px; line-height: 1.65; }
.bundle-tier-options { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.bundle-tier-option { min-width: 0; min-height: 112px; padding: 18px; border: 1px solid var(--rule); border-radius: 3px; color: var(--foreground); background: var(--background); }
.bundle-tier-number { display: block; color: var(--foreground); font-size: 32px; font-weight: 400; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.bundle-tier-label { display: block; margin-top: 10px; color: inherit; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.bundle-tier-status { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.bundle-tier-option[data-state="locked"] { color: var(--muted); }
.bundle-tier-option[data-state="locked"] .bundle-tier-number { color: var(--muted); }
.bundle-tier-option[data-state="unlocked"] { border-color: var(--field-border); }
.bundle-tier-option[data-state="active"] { border-color: #e4002b; background: rgb(228 0 43 / 7%); box-shadow: inset 0 0 0 1px #e4002b; }
.bundle-tier-option[data-state="active"] .bundle-tier-number { color: #e4002b; }
.bundle-tier-option[data-state="active"] .bundle-tier-status { color: var(--foreground); }
.bundle-tier-option.is-best .bundle-tier-label { font-weight: 500; }
.bundle-tier-note { grid-column: 1 / -1; max-width: 70ch; margin: -8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.bundle-pack-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 17px; min-width: 0; }
.bundle-pack { --bundle-wrap: #e4002b; position: relative; min-width: 0; padding: 16px; border: 1px solid rgb(228 0 43 / 44%); border-radius: 3px; background: var(--background); }
.bundle-pack-label { display: block; margin: 0 0 13px; color: var(--foreground); font-size: 10px; line-height: 1.6; font-weight: 500; letter-spacing: .045em; }
.bundle-preview-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.bundle-preview-tile { display: flex; flex-direction: column; gap: 9px; min-width: 0; min-height: 90px; padding: 11px 8px; border: 1px solid var(--rule); background: var(--panel); }
.bundle-preview-number { color: var(--muted); font-size: 9px; line-height: 1; letter-spacing: .1em; }
.bundle-preview-title { color: var(--foreground); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.bundle-preview-tile.is-placeholder { border-style: dashed; background: transparent; }
.bundle-preview-tile.is-placeholder .bundle-preview-title { color: var(--muted); }
.bundle-preview-more { grid-column: 1 / -1; display: block; padding: 10px 8px; border: 1px dashed var(--rule); color: var(--muted); font-size: 11px; line-height: 1.5; }
.bundle-individual-preview { min-width: 0; padding: 16px; border: 1px dashed var(--rule); border-radius: 3px; }
.bundle-individual-preview .bundle-pack-label { color: var(--muted); }
.bundle-pack-ribbon { position: absolute; inset: -1px; pointer-events: none; }
.bundle-pack-ribbon > span { position: absolute; display: block; background: var(--bundle-wrap); }
.bundle-pack-ribbon-top, .bundle-pack-ribbon-bottom { left: 0; right: 0; height: 2px; }
.bundle-pack-ribbon-left, .bundle-pack-ribbon-right { top: 0; bottom: 0; width: 2px; }
.bundle-pack-ribbon-top { top: 0; transform-origin: left center; }
.bundle-pack-ribbon-right { right: 0; transform-origin: center top; }
.bundle-pack-ribbon-bottom { bottom: 0; transform-origin: right center; }
.bundle-pack-ribbon-left { left: 0; transform-origin: center bottom; }
.bundle-pack-ribbon-seal { top: -4px; left: 17px; width: 9px; height: 9px; transform: rotate(45deg); }
.bundle-pack.is-new-pack .bundle-pack-ribbon-top { animation: bundle-wrap-top 1.65s ease-in-out both; }
.bundle-pack.is-new-pack .bundle-pack-ribbon-right { animation: bundle-wrap-right 1.65s ease-in-out both; }
.bundle-pack.is-new-pack .bundle-pack-ribbon-bottom { animation: bundle-wrap-bottom 1.65s ease-in-out both; }
.bundle-pack.is-new-pack .bundle-pack-ribbon-left { animation: bundle-wrap-left 1.65s ease-in-out both; }
.bundle-pack.is-new-pack .bundle-pack-ribbon-seal { animation: bundle-wrap-seal 1.65s ease-out both; }
.bundle-pack.is-new-pack .bundle-preview-tile { animation: bundle-pack-gather .65s ease-out both; }
.bundle-pack.is-new-pack .bundle-preview-tile:first-child { --gather-x: -7px; }
.bundle-pack.is-new-pack .bundle-preview-tile:last-child { --gather-x: 7px; }
.bundle-selection > .bundle-pack { display: block; margin: 0 0 18px; padding: 14px 13px 2px; }
.bundle-pack-services { margin: 0; padding: 0; list-style: none; }
.bundle-pack-services > li { gap: 9px; padding: 7px 0; }
.bundle-pack-services > li:first-child { border-top: 0; }
.bundle-pack--review .bundle-pack-label { margin-bottom: 5px; }
.bundle-pack--review .bundle-service-name { font-size: 12px; }
.bundle-selection > .bundle-individual-label { display: block; margin: 22px 0 8px; padding: 0; color: var(--muted); border: 0; font-size: 10px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
#bundle-offer-summary { margin: 0 0 24px; padding: 15px 0 16px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.bundle-summary-heading { margin: 0 0 8px; color: var(--foreground); font-size: 14px; line-height: 1.45; }
.bundle-summary-count { margin: 0; color: var(--foreground); font-size: 11px; line-height: 1.6; }
.bundle-summary-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.bundle-offer-toast { position: fixed; z-index: 50; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); width: min(440px, calc(100% - 32px)); max-height: calc(100svh - 32px); margin: 0; padding: 22px; overflow-y: auto; overscroll-behavior: contain; color: var(--foreground); background: var(--panel); border: 1px solid var(--panel-border); border-radius: 4px; box-shadow: 0 18px 70px rgb(0 0 0 / 28%); }
.bundle-offer-toast[hidden] { display: none !important; }
.bundle-toast-heading { max-width: calc(100% - 35px); margin: 0 0 19px; font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: -.025em; }
.bundle-toast-close { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; color: var(--foreground); background: transparent; border: 0; font-size: 25px; cursor: pointer; }
.bundle-toast-close:focus-visible { outline: 2px solid var(--foreground); outline-offset: -5px; }
.bundle-pack--toast { padding: 12px; }
.bundle-toast-count { margin: 17px 0 0; color: var(--foreground); font-size: 12px; line-height: 1.6; }
.bundle-toast-note { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

@keyframes bundle-wrap-top { 0% { transform: scaleX(0); } 28%, 100% { transform: scaleX(1); } }
@keyframes bundle-wrap-right { 0%, 23% { transform: scaleY(0); } 51%, 100% { transform: scaleY(1); } }
@keyframes bundle-wrap-bottom { 0%, 46% { transform: scaleX(0); } 74%, 100% { transform: scaleX(1); } }
@keyframes bundle-wrap-left { 0%, 69% { transform: scaleY(0); } 94%, 100% { transform: scaleY(1); } }
@keyframes bundle-wrap-seal { 0%, 82% { transform: rotate(45deg) scale(0); } 100% { transform: rotate(45deg) scale(1); } }
@keyframes bundle-pack-gather { from { transform: translate(var(--gather-x, 0), 5px); } to { transform: translate(0, 0); } }

@media (prefers-reduced-motion: reduce) {
  .bundle-pack.is-new-pack .bundle-pack-ribbon > span,
  .bundle-pack.is-new-pack .bundle-preview-tile { animation: none; }
}

@media (max-width: 700px) {
  .bundle-preview-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bundle-offer-toast { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 19px; }
  .bundle-offer { grid-template-columns: 1fr; gap: 25px; padding: 22px; }
  .bundle-offer-heading { max-width: 22ch; font-size: 28px; }
  .bundle-tier-options { gap: 8px; }
  .bundle-tier-option { min-height: 104px; padding: 14px 10px; }
  .bundle-tier-number { font-size: 28px; }
  .bundle-tier-label { font-size: 12px; }
  .bundle-dialog { width: calc(100vw - 24px); max-height: calc(100svh - 24px); }
  .bundle-dialog-heading { padding: 25px 22px; }
  .bundle-content { grid-template-columns: 1fr; }
  .bundle-review { padding: 25px 22px 20px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .bundle-form { padding: 25px 22px; }
  .bundle-form input, .bundle-form textarea, .bundle-form select { font-size: 16px; }
  .bundle-review h3 { font-size: 21px; }
  .bundle-review-note { margin-bottom: 14px; }
  .bundle-empty { padding: 30px 22px; }
}

@media (max-width: 390px) {
  .bundle-field-grid { grid-template-columns: 1fr; }
  .bundle-dialog-heading { gap: 10px; padding-left: 17px; padding-right: 17px; }
  .bundle-review, .bundle-form, .bundle-empty { padding-left: 17px; padding-right: 17px; }
}

@media (max-width: 360px) {
  .bundle-tier-options { grid-template-columns: 1fr; }
  .bundle-tier-option { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 2px 12px; min-height: 76px; padding: 14px; }
  .bundle-tier-number { grid-column: 1; grid-row: 1 / 3; }
  .bundle-tier-label { grid-column: 2; margin-top: 0; }
  .bundle-tier-status { grid-column: 2; margin-top: 0; }
}
