/* Shared visual finish for the photobooth landing page and its five-step tunnel. */
.ee-photo-page,
.ee-photobooth-tunnel-page {
    --ee-photo-premium-navy: #0a3556;
    --ee-photo-premium-ink: #173246;
    --ee-photo-premium-orange: #eb661f;
    --ee-photo-premium-teal: #177b77;
    --ee-photo-premium-line: #ccdadd;
    --ee-photo-premium-mist: #edf5f3;
    --ee-photo-premium-blush: #fbf1ed;
    --ee-photo-premium-paper: #fff;
}

.ee-photobooth-tunnel-page {
    color: var(--ee-photo-premium-ink);
    background: #f8faf9;
}

.ee-photobooth-tunnel-page .ee-entry__content {
    background: #f8faf9;
}

.ee-photobooth-tunnel-page .ee-photo-progress {
    margin-top: 14px;
    border: 1px solid var(--ee-photo-premium-line);
    border-top: 3px solid var(--ee-photo-premium-orange);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 26px rgba(20, 52, 71, .05);
}

.ee-photobooth-tunnel-page :is(
    .ee-photo-choice__intro h2,
    .ee-photo-information__intro h1,
    .ee-photo-decor__hero h1,
    .ee-photo-accessories__hero h1,
    .ee-photo-summary__hero h1
) {
    letter-spacing: 0;
    text-wrap: balance;
}

.ee-photobooth-tunnel-page :is(
    .ee-photo-choice-card,
    .ee-photo-choice-summary,
    .ee-photo-information-summary,
    .ee-photo-information-form,
    .ee-decor-preset,
    .ee-accessory-card,
    .ee-accessory-summary,
    .ee-summary-card,
    .ee-summary-note,
    .ee-summary-total
) {
    border-color: var(--ee-photo-premium-line);
    border-radius: 4px;
    box-shadow: 0 12px 34px rgba(20, 52, 71, .065);
}

.ee-photobooth-tunnel-page :is(button, a, input, select, textarea):focus-visible {
    outline: 3px solid rgba(235, 102, 31, .3);
    outline-offset: 3px;
}

/* Choice: selected models use the available width instead of leaving an empty third column. */
.ee-photo-choice__models {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: stretch;
}

.ee-photo-choice-card {
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ee-photo-choice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(20, 52, 71, .11);
}

.ee-photo-choice-card__media {
    height: 255px;
    background: #f1f5f4;
}

.ee-photo-choice-card__body {
    position: relative;
    z-index: 1;
    padding: 24px;
    background: #fff;
}

.ee-photo-choice__add-another {
    border-left: 4px solid var(--ee-photo-premium-orange);
    background: var(--ee-photo-premium-blush);
}

.ee-photo-choice-summary {
    border-top-color: var(--ee-photo-premium-orange);
    background: #f2f7f6;
}

/* Information: warmer hierarchy without making the form decorative. */
.ee-photo-information__intro h1 {
    color: var(--ee-photo-premium-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.08;
}

.ee-photo-information-summary {
    background: var(--ee-photo-premium-mist);
}

.ee-photo-information-form {
    border-top: 4px solid var(--ee-photo-premium-teal);
}

.ee-photo-information-form__section:nth-child(even) {
    background: #fcfdfd;
}

.ee-photo-information-form__heading > span {
    box-shadow: 0 0 0 6px var(--ee-photo-premium-mist);
}

/* Decor: make the tool feel like a studio rather than an admin utility. */
.ee-photo-decor__hero,
.ee-photo-accessories__hero {
    border-left-width: 4px;
    background: #0b344f;
    box-shadow: 0 14px 34px rgba(11, 52, 79, .12);
}

.ee-decor-presets {
    padding: 34px;
    border: 1px solid var(--ee-photo-premium-line);
    background: #fff;
    box-shadow: 0 12px 34px rgba(20, 52, 71, .055);
}

.ee-decor-preset {
    min-height: 112px;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ee-decor-preset:hover,
.ee-decor-preset:focus-visible {
    transform: translateY(-2px);
}

.ee-decor-preset.is-selected {
    background: var(--ee-photo-premium-mist);
    box-shadow: 0 10px 26px rgba(23, 123, 119, .12);
}

.ee-decor-preset__visual--background {
    display: grid;
    place-items: center;
}

.ee-decor-preset__faceted-crop {
    position: absolute;
    bottom: 19px;
    left: 50%;
    width: 53px;
    height: 53px;
    overflow: hidden;
    filter: drop-shadow(0 3px 4px rgba(20, 52, 71, .18));
    transform: translateX(-50%);
}

.ee-decor-preset__faceted-crop img,
.ee-decor-stage-background__crop img {
    position: absolute;
    top: -1.7%;
    left: -8.4%;
    display: block;
    width: 116.7% !important;
    height: 113.6% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: fill !important;
    user-select: none;
    pointer-events: none;
}

.ee-decor-stage {
    height: clamp(360px, 42vw, 500px);
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .5), 0 16px 38px rgba(20, 52, 71, .08);
}

.ee-decor-stage-background {
    position: absolute;
    bottom: calc(20% - 4px);
    z-index: 0;
    display: block;
    border: 0;
    cursor: grab;
    touch-action: none;
    filter: drop-shadow(0 12px 16px rgba(20, 52, 71, .15));
}

.ee-decor-stage-background:active {
    cursor: grabbing;
}

.ee-decor-stage-background:focus {
    outline: none;
}

.ee-decor-stage-background:focus-visible {
    outline: 3px solid var(--ee-photo-premium-orange);
    outline-offset: 3px;
}

.ee-decor-stage-background__crop {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ee-decor-stage-background__placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 80%;
    padding: 10px 14px;
    border: 1px solid var(--ee-photo-premium-line);
    background: rgba(255, 255, 255, .92);
    color: var(--ee-photo-premium-navy);
    font-weight: 800;
    text-align: center;
    transform: translate(-50%, -50%);
}

.ee-decor-workbench {
    padding: 34px;
    border: 1px solid var(--ee-photo-premium-line);
    border-top: 0;
    background: #fff;
}

.ee-decor-totals {
    box-shadow: 0 14px 34px rgba(20, 52, 71, .1);
}

/* Accessories: a horizontal project bar and a wider, denser catalogue. */
@media (min-width: 901px) {
    .ee-photo-accessories__layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .ee-accessory-summary {
        position: sticky;
        z-index: 15;
        top: calc(var(--wp-admin--admin-bar--height, 0px) + 88px);
        order: -1;
        display: grid;
        grid-template-columns: minmax(170px, .55fr) minmax(250px, 1.3fr) minmax(190px, .7fr) minmax(230px, .75fr);
        grid-template-rows: auto auto auto;
        gap: 24px;
        align-items: center;
        padding: 20px 24px;
        background: rgba(245, 249, 248, .97);
        backdrop-filter: blur(8px);
        max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 104px);
        overflow: auto;
    }

    .ee-accessory-summary > .ee-photo-accessories__eyebrow {
        grid-column: 1;
        grid-row: 1;
        align-self: end;
        margin: 0;
    }

    .ee-accessory-summary h2 {
        grid-column: 1;
        grid-row: 2 / span 2;
        align-self: start;
        margin: 0 !important;
    }

    .ee-accessory-summary__items {
        grid-column: 2;
        grid-row: 1 / span 3;
        max-height: 116px;
        overflow: auto;
        padding: 0 18px 0 0;
        border-right: 1px solid var(--ee-photo-premium-line);
        border-bottom: 0;
    }

    .ee-accessory-summary dl {
        grid-column: 3;
        grid-row: 1 / span 3;
        margin: 0;
    }

    .ee-accessory-summary__continue {
        grid-column: 4;
        grid-row: 1;
    }

    .ee-accessory-summary__clear,
    .ee-accessory-summary__feedback {
        grid-column: 4;
        margin: 0;
    }

    .ee-accessory-summary__clear {
        grid-row: 2;
    }

    .ee-accessory-summary__feedback {
        grid-row: 3;
        min-height: 0;
        margin: 0 !important;
    }

    .ee-accessory-summary__feedback:empty {
        display: none;
    }

    .ee-accessory-grid,
    .ee-accessory-grid--recommended {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
}

.ee-accessory-recommendations {
    padding: 34px;
    border: 1px solid var(--ee-photo-premium-line);
    border-top: 4px solid var(--ee-photo-premium-orange);
    background: var(--ee-photo-premium-blush);
}

.ee-accessory-browser {
    padding: 34px;
    border: 1px solid var(--ee-photo-premium-line);
    background: #fff;
}

.ee-accessory-card {
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ee-accessory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(20, 52, 71, .1);
}

.ee-accessory-card__media {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #f2f6f5;
}

.ee-accessory-card__body {
    padding: 18px;
}

.ee-accessory-card__add,
.ee-accessory-summary__continue {
    transition: background-color .18s ease, transform .18s ease;
}

.ee-accessory-card__add:hover,
.ee-accessory-summary__continue:hover {
    transform: translateY(-1px);
}

/* Summary: keep the final decision calm and reassuring. */
.ee-photo-summary__hero h1 {
    max-width: 760px;
}

.ee-summary-total {
    background: #f3f8f7;
}

.ee-summary-total__notice {
    border-left: 3px solid var(--ee-photo-premium-teal);
    background: #e7f2f0;
}

.ee-summary-total > button {
    transition: background-color .18s ease, transform .18s ease;
}

.ee-summary-total > button:hover {
    transform: translateY(-1px);
}

/* Landing: a little more depth while keeping the existing editorial rhythm. */
.ee-photo-page .ee-photo-offer {
    border-radius: 4px;
    box-shadow: 0 18px 38px rgba(20, 52, 71, .095);
    transition: box-shadow .18s ease, transform .18s ease;
}

.ee-photo-page .ee-photo-offer:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 46px rgba(20, 52, 71, .14);
}

.ee-photo-page .ee-photo-section--offers {
    background: #fff;
}

.ee-photo-page .ee-photo-section--comparison,
.ee-photo-page .ee-photo-section--frame,
.ee-photo-page .ee-photo-section--faq {
    background: #fcfdfd;
}

@media (max-width: 1050px) {
    .ee-decor-presets,
    .ee-decor-workbench,
    .ee-accessory-recommendations,
    .ee-accessory-browser {
        padding: 26px;
    }

    .ee-accessory-summary {
        order: -1;
        background: #f3f8f7;
    }
}

@media (max-width: 820px) {
    .ee-photobooth-tunnel-page .ee-photo-progress {
        margin-top: 8px;
    }

    .ee-photo-choice-card:hover,
    .ee-decor-preset:hover,
    .ee-accessory-card:hover,
    .ee-photo-page .ee-photo-offer:hover {
        transform: none;
    }

    .ee-decor-presets,
    .ee-decor-workbench,
    .ee-accessory-recommendations,
    .ee-accessory-browser {
        padding: 22px 18px;
    }

    .ee-decor-presets {
        margin-top: 28px;
    }

    .ee-decor-stage {
        height: clamp(330px, 66vw, 440px);
    }
}

/* Tunnel controls and responsive refinements introduced in 1.28.8. */
.ee-photobooth-tunnel-page .ee-photo-progress li > a {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: inherit;
    text-decoration: none;
}

.ee-photobooth-tunnel-page .ee-photo-progress li > a:hover,
.ee-photobooth-tunnel-page .ee-photo-progress li > a:focus-visible {
    color: var(--ee-photo-premium-navy);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ee-decor-stage__layers {
    position: absolute;
    z-index: 50;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 7px;
    padding: 7px;
    border: 1px solid rgba(20, 52, 71, .18);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 22px rgba(20, 52, 71, .12);
}

.ee-decor-stage__layers[hidden] {
    display: none !important;
}

.ee-decor-stage__layers button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #aabdc2;
    background: #fff;
    color: var(--ee-photo-premium-navy);
    font-size: 21px;
    font-weight: 900;
    cursor: pointer;
}

.ee-decor-featured-backgrounds {
    margin-top: 28px;
    padding: 30px 34px 34px;
    border: 1px solid var(--ee-photo-premium-line);
    background: #fff;
}

.ee-decor-featured-backgrounds__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ee-decor-background-card {
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--ee-photo-premium-line);
    border-top: 4px solid var(--ee-photo-premium-teal);
    background: #fff;
}

.ee-decor-background-card.is-selected {
    border-color: var(--ee-photo-premium-orange);
    border-top-color: var(--ee-photo-premium-orange);
}

.ee-decor-background-card__media {
    display: grid;
    min-height: 230px;
    place-items: center;
    padding: 16px;
    background: #f2f6f5;
}

.ee-decor-background-card__media img {
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: contain !important;
}

.ee-decor-background-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
}

.ee-decor-background-card h4 {
    margin: 0 0 8px;
    color: var(--ee-photo-premium-navy);
    font-size: 20px;
}

.ee-decor-background-card p {
    margin: 0;
    color: #5a6f7c;
    line-height: 1.5;
}

.ee-decor-background-card strong {
    color: var(--ee-photo-premium-teal);
}

.ee-decor-background-card button {
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    border: 1px solid var(--ee-photo-premium-navy);
    background: var(--ee-photo-premium-navy);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.ee-decor-totals {
    grid-template-columns: minmax(150px, .45fr) minmax(260px, 1fr) auto;
}

.ee-accessory-card__media img {
    display: block;
    position: absolute !important;
    inset: 12px !important;
    width: calc(100% - 24px) !important;
    height: calc(100% - 24px) !important;
    min-width: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center;
}

.ee-accessory-card__selected.is-empty {
    grid-template-columns: minmax(0, 1fr) auto;
}

.ee-accessory-card__quantity-hint {
    color: #607580;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.ee-accessory-card__remove--full {
    width: 100%;
    margin-top: auto;
}

.ee-accessory-bottom-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 22px 24px;
    border: 1px solid var(--ee-photo-premium-line);
    border-left: 4px solid var(--ee-photo-premium-orange);
    background: #f7faf9;
}

.ee-accessory-bottom-action p {
    margin: 0;
    color: #5c707c;
}

.ee-accessory-bottom-action button {
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--ee-photo-premium-orange);
    background: var(--ee-photo-premium-orange);
    color: #173044;
    font-weight: 900;
    cursor: pointer;
}

.ee-summary-total {
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 88px) !important;
    bottom: auto !important;
    align-self: start !important;
    height: auto !important;
    max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 104px);
    overflow-y: auto;
}

@media (min-width: 721px) {
    .ee-decor-row__actions > button:not(.ee-decor-row__remove) {
        display: none;
    }

    .ee-decor-row__actions {
        display: block;
    }

    .ee-decor-row__remove {
        width: 76px !important;
    }
}

@media (max-width: 900px) {
    .ee-photo-accessories__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ee-photo-accessories__catalogue,
    .ee-accessory-recommendations,
    .ee-accessory-browser,
    .ee-accessory-bottom-action,
    .ee-accessory-summary {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .ee-accessory-grid,
    .ee-accessory-grid--recommended {
        grid-template-columns: minmax(0, 1fr);
    }

    .ee-summary-total {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 820px) {
    .ee-photobooth-tunnel-page .ee-photo-progress > p {
        display: none !important;
    }

    .ee-photobooth-tunnel-page .ee-photo-progress ol {
        display: grid !important;
    }

    .ee-photobooth-tunnel-page .ee-photo-progress li,
    .ee-photobooth-tunnel-page .ee-photo-progress li > a {
        gap: 0;
        font-size: 0;
    }

    .ee-photobooth-tunnel-page .ee-photo-progress li small {
        display: none;
    }

    .ee-photobooth-tunnel-page .ee-photo-progress li span {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .ee-decor-featured-backgrounds {
        padding: 24px 20px;
    }

    .ee-decor-featured-backgrounds__grid {
        grid-template-columns: 1fr;
    }

    .ee-decor-background-card {
        grid-template-columns: minmax(130px, .65fr) minmax(0, 1fr);
    }

    .ee-accessory-bottom-action {
        align-items: stretch;
        flex-direction: column;
    }

    .ee-accessory-bottom-action button {
        width: 100%;
    }

    .ee-decor-totals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ee-decor-totals > p,
    .ee-decor-continue {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .ee-decor-background-card {
        grid-template-columns: 1fr;
    }

    .ee-decor-background-card__media {
        min-height: 190px;
    }

    .ee-decor-stage__layers {
        top: 10px;
        right: 10px;
    }

    .ee-decor-totals {
        grid-template-columns: 1fr;
    }

    .ee-decor-totals > p,
    .ee-decor-continue {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .ee-photo-choice-card__media,
    .ee-accessory-card__media {
        height: 220px;
    }

    .ee-photo-information__intro h1 {
        font-size: 35px;
    }

    .ee-photo-decor__hero,
    .ee-photo-accessories__hero {
        box-shadow: none;
    }
}
