/* Big Party Kit — step-by-step editor layout (0.7.8.214). Loaded only when the new layout is on. */

/* hide parts the new layout replaces */
.bpk-steps-on #bpkEditorHeading,
.bpk-steps-on .bpk-editor-subheading,
.bpk-steps-on .bpk-form-panel > .bpk-panel-title,
.bpk-steps-on .bpk-flow-box,
.bpk-steps-on #bpkReviewInvitation,
.bpk-steps-on #bpkReviewHint,
.bpk-steps-on .bpk-desktop-live-hint,
.bpk-steps-on .bpk-activation-title,
.bpk-steps-on #bpkActivationIntro,
.bpk-steps-on .bpk-free-code-box,
.bpk-steps-on .bpk-optional,
.bpk-steps-on .bpk-time-format-row,
.bpk-steps-on .bpk-time-friendly,
.bpk-steps-on .bpk-adult-layout-switch,
.bpk-steps-on #bpkMobileDownloadJump,
.bpk-steps-on #bpkFloatingPreview { display: none !important; }

.bpk-steps-on .bpk-s-page[hidden],
.bpk-steps-on .bpk-s-nav button[hidden] { display: none !important; }

/* step bar */
.bpk-steps-on .bpk-steps .is-done b { background: #eef1f6; color: var(--bpk-navy, #0b234b); }

/* step headings (computer) */
.bpk-s-step-head { margin: 26px 0 10px; display: grid; gap: 2px; }
.bpk-s-step-head:first-of-type { margin-top: 4px; }
.bpk-s-step-head span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8a93a6; font-weight: 700; }
.bpk-s-step-head strong { font-size: 22px; color: var(--bpk-navy, #0b234b); }
.bpk-s-step-head small { font-size: 14px; color: #6d7688; }

/* cards */
.bpk-s-page { background: #fff; border: 1px solid #e3e7ef; border-radius: 16px; padding: 16px 18px; margin: 0 0 12px; }
.bpk-s-page-title { margin: 0 0 10px; font-size: 16px; color: var(--bpk-navy, #0b234b); }
.bpk-s-page .bpk-flow-field { margin-bottom: 10px; }
.bpk-s-page .bpk-activation-box,
.bpk-s-page .bpk-delivery-actions,
.bpk-s-page .bpk-paid-code-box { margin: 0; border: 0; box-shadow: none; padding: 0; background: none; }
.bpk-s-page .bpk-paid-code-box { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #e3e7ef; }

/* small text links (Without age, Use 24-hour) */
.bpk-s-link, .bpk-s-link:hover, .bpk-s-link:focus, .bpk-s-link:active { background: none !important; border: 0 !important; box-shadow: none !important; padding: 4px 0; color: #4a5b7d !important; text-decoration: underline; font-size: 14px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; white-space: nowrap; }
.bpk-s-link:focus-visible { outline: 2px solid #9fb0d0 !important; outline-offset: 2px; border-radius: 4px; }
.bpk-s-big { -webkit-tap-highlight-color: transparent; }
.bpk-s-no-age .bpk-input-wrap { display: none; }

/* time list */
.bpk-s-time { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.bpk-s-time select { flex: 1; min-height: 46px; font-size: 16px; border: 1px solid #d6dce7; border-radius: 10px; padding: 0 10px; background: #fff; }

/* Edit wording */
.bpk-s-wording { margin-top: 6px; border-top: 1px dashed #e3e7ef; padding-top: 10px; }
.bpk-s-wording summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.bpk-s-wording summary::-webkit-details-marker { display: none; }
.bpk-s-wording summary span { font-weight: 700; color: #4a5b7d; }
.bpk-s-wording summary small { color: #8a93a6; }
.bpk-s-wording-body { margin-top: 12px; }
.bpk-s-wording .bpk-language-row { margin: 6px 0 0; }

/* one block for the code */
.bpk-s-free-row { margin: 10px 0 4px; padding: 12px; border-radius: 12px; background: #f6f8fb; }
.bpk-s-or { margin: 0 0 8px; font-size: 13px; color: #6d7688; }
.bpk-s-free-row .bpk-unlock-free { width: 100%; }
.bpk-s-code { display: grid; gap: 6px; margin: 12px 0 6px; }

/* mobile progress + buttons — hidden on computer */
.bpk-s-top, .bpk-s-nav, .bpk-s-big { display: none; }

@media (max-width: 850px) {
    /* preview stays on top: picture on the left, buttons on the right */
    .bpk-steps-on .bpk-preview-panel { position: sticky !important; top: 0; z-index: 20; padding: 10px 12px !important; background: #fff; border-radius: 0 0 16px 16px; box-shadow: 0 6px 16px rgba(11, 35, 75, .08);
        display: grid !important; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 10px; align-items: start; }
    .bpk-steps-on .bpk-preview-panel > .bpk-panel-title,
    .bpk-steps-on .bpk-preview-note { display: none !important; }
    .bpk-steps-on .bpk-canvas-wrap { grid-column: 1; grid-row: 1 / 3; margin: 0 !important; padding: 0 !important; display: block; }
    .bpk-steps-on #bpkEditorCanvas { display: block; height: min(36vh, 300px) !important; min-height: 190px; width: auto !important; max-width: 52vw; cursor: zoom-in; border-radius: 12px; }
    .bpk-steps-on .bpk-free-badge { display: none; }
    .bpk-steps-on #ast-scroll-top { display: none !important; } /* round "to top" button covered Next */
    .bpk-steps-on .bpk-preview-tabs { grid-column: 2; grid-row: 1; display: flex !important; flex-direction: column; gap: 8px; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
    .bpk-steps-on .bpk-preview-tabs button { width: 100% !important; min-height: 44px !important; padding: 8px 10px !important; font-size: 14px !important; border-radius: 12px !important; margin: 0 !important; }
    .bpk-s-big { grid-column: 2; grid-row: 2; align-self: end; display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin: 0;
        background: #fff !important; border: 1px solid #cfd6e2 !important; border-radius: 12px; color: var(--bpk-navy, #0b234b) !important; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
    .bpk-s-big svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

    .bpk-s-wrap.is-paged .bpk-s-step-head { display: none; }
    .bpk-s-top { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 10px; font-size: 13px; color: #6d7688; font-weight: 700; }
    .bpk-s-dots { display: flex; gap: 6px; }
    .bpk-s-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d8dee9; }
    .bpk-s-dots i.on { background: var(--bpk-navy, #0b234b); }

    .bpk-s-page { padding: 14px; }
    .bpk-s-page-title { font-size: 20px; }
    .bpk-s-page input, .bpk-s-page textarea, .bpk-s-page select { font-size: 16px; } /* no zoom on iPhone */

    .bpk-s-nav { display: flex; gap: 10px; position: sticky; bottom: 0; padding: 10px 0 14px; background: linear-gradient(rgba(255,255,255,0), #fff 30%); z-index: 15; }
    .bpk-s-nav button { flex: 1; min-height: 50px; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; }
    .bpk-s-back { background: #fff; border: 1px solid #cfd6e2; color: var(--bpk-navy, #0b234b); }
    .bpk-s-next { background: var(--bpk-navy, #0b234b); border: 0; color: #fff; flex: 2 !important; }
}
.bpk-steps-on .bpk-s-page #bpkDeliveryTitle { display: none; }

/* 0.7.8.216: compact page header on phones, so “Who is it for?” is visible right away */
@media (max-width: 850px) {
    body.bpk-steps-on .bpk-brand-bar,
    body.bpk-steps-on .bpk-hero-label-row,
    body.bpk-steps-on .bpk-page-intro p,
    body.bpk-steps-on .bpk-hero-benefits,
    body.bpk-steps-on #bpkShareStatus { display: none !important; }
    body.bpk-steps-on .bpk-page-intro { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: space-between; gap: 12px; margin: 8px 12px 0 !important; padding: 12px 14px !important; min-height: 0 !important; }
    body.bpk-steps-on .bpk-page-intro::after { display: none !important; }
    body.bpk-steps-on .bpk-page-intro h1 { font-size: 21px !important; line-height: 1.2 !important; margin: 0 !important; }
    body.bpk-steps-on .bpk-page-tools { width: auto !important; flex: 0 0 auto; }
    body.bpk-steps-on .bpk-share-design { width: 44px !important; height: 44px !important; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important; display: grid !important; place-items: center; }
    body.bpk-steps-on .bpk-share-design span { display: none !important; }
    body.bpk-steps-on .bpk-share-design .bpk-button-icon { margin: 0 !important; width: 20px; height: 20px; }
    body.bpk-steps-on .bpk-breadcrumbs { font-size: 12px; margin-top: 6px !important; margin-bottom: 0 !important; padding-top: 4px !important; padding-bottom: 4px !important; }
    body.bpk-steps-on .bpk-steps { margin: 10px auto 4px !important; }
    body.bpk-steps-on .bpk-steps b { width: 26px; height: 26px; font-size: 12px; }
    body.bpk-steps-on .bpk-steps i { margin-top: 13px; }
    body.bpk-steps-on .bpk-editor { margin-top: 4px !important; padding-top: 4px !important; }
}
