/* Theme palettes take precedence. For compiled themes use the rendered primary button. */
:where(.e1-enroll, .e1-heading, .e1-message, .e1-total) {
    --e1-accent: var(--wp--preset--color--primary, var(--global-palette1, var(--ast-global-color-0, var(--bs-primary, var(--e1-button-accent, currentColor)))));
}
.e1-enroll {
    width: 100%; max-width: 1200px; margin: 24px auto;
    font: inherit; line-height: 1.55;
}
.e1-enroll *, .e1-enroll, .e1-heading { box-sizing: border-box; }
.e1-page { padding: 0 16px 48px; }
.e1-enroll .e1-enroll { margin: 0; }
.e1-heading {
    padding: 28px 32px; background: #303030; border-radius: 4px;
    border-top: 5px solid var(--e1-accent); color: white;
}
.e1-heading > span { color: #fff; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; }
.e1-heading h2 { margin: .45rem 0 0; color: white; font-size: clamp(1.6rem, 4vw, 2.25rem); }
.e1-steps { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 18px 0; gap: .65rem; font-size: .85rem; }
.e1-steps li { margin: 0; }
.e1-steps li + li::before { content: '/'; margin-right: .65rem; }
.e1-steps [aria-current] { font-weight: 650; }
.e1-enroll section, .e1-class-card {
    margin: 18px 0; padding: 25px; background: #f4f6f8;
    border: 1px solid #ddd; border-radius: 4px; color: #303030;
}
.e1-enroll h3 { font-size: 1.18rem; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--e1-accent); color: inherit; }
.e1-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 18px 24px; }
.e1-enroll label { display: block; font-size: .92rem; font-weight: 600; min-width: 0; }
.e1-mobile-contact > a { display: inline-block; margin-top: .45rem; }
.e1-grid label { color: color-mix(in srgb,var(--e1-accent) 66%,#151515); }
.e1-enroll input:not([type=radio]):not([type=checkbox]):not([type=hidden]), .e1-enroll select {
    display: block; width: 100%; max-width: 100%; min-width: 0; height: 46px; margin: 7px 0 0;
    padding: 9px 12px; border: 1px solid #b9bec5; border-radius: 4px;
    background-color: white; color: #303030; color-scheme: light; font: inherit; font-weight: 400;
}
.e1-enroll select[name="e1_fields[gender]"] { max-width: 220px; }
.e1-enroll input[type=checkbox], .e1-enroll input[type=radio] { width: auto; margin-right: .5rem; accent-color: var(--e1-accent); }
.e1-enroll :focus-visible { outline: 3px solid var(--e1-accent); outline-offset: 3px; }
.e1-shirt { grid-column: 1/-1; display: flex; align-items: center; gap: 22px; padding: 16px; border: 1px solid #ddd; border-radius: 4px; background: white; }
.e1-shirt img { display: block; width: 150px; max-width: 100%; height: auto; }
.e1-shirt-details { flex: 1; min-width: 0; }
.e1-shirt-details > p:first-child { margin-top: 0; }
.e1-class-card { padding: 18px; }
.e1-class span small { display: block; margin-left: 1.6rem; font-weight: 400; }
.e1-class-details summary { cursor: pointer; }
.e1-enroll .e1-check { display: flex; gap: .5rem; align-items: baseline; margin: .75rem 0; }
.e1-actions { margin: 24px 0; }
.e1-summary { display: grid; grid-template-columns: minmax(8rem,1fr) 2fr; }
.e1-summary dt, .e1-summary dd { padding: 12px; margin: 0; border-bottom: 1px solid #ddd; overflow-wrap: anywhere; }
.e1-summary dt { font-weight: 600; background: #f4f6f8; color: #303030; }
.e1-message, .e1-total { padding: 18px; border-left: 4px solid var(--e1-accent); background: #f4f6f8; color: #303030; }
.e1-total { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; background: #303030; color: white; border-radius: 4px; }
.e1-return-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.e1-return-number strong { display: block; font-size: 1.4rem; }
@media (max-width: 620px) {
    .e1-grid, .e1-summary { grid-template-columns: 1fr; }
    .e1-heading, .e1-enroll section { padding: 18px; }
    .e1-shirt { flex-direction: column; align-items: stretch; }
    .e1-shirt img { max-width: 120px; }
    .e1-actions button { max-width: 100%; white-space: normal; }
}

.e1-consent { min-width: 0; margin: 1rem 0; padding: 1rem 1.25rem; border: 1px solid #ccc; border-radius: 4px; }
.e1-consent legend { padding: 0 .4rem; font-weight: 650; }
.e1-consent label { margin: .35rem 0; font-weight: 400; }

/* Booking receipt, shared by the shortcode and the personal payment link. */
.e1-receipt {
    --e1-accent: var(--wp--preset--color--primary, var(--global-palette1, var(--ast-global-color-0, var(--bs-primary, var(--e1-button-accent, currentColor)))));
    --e1-inset: clamp(1.25rem, 4vw, 2.5rem);
    max-width: 58rem;
    margin: 1.5rem auto;
    border: 1px solid #dce0dc;
    border-radius: 12px;
    background: #fff;
    color: #252a27;
    box-shadow: 0 8px 26px rgba(25, 34, 29, .07);
    line-height: 1.55;
}
.e1-receipt, .e1-receipt * { box-sizing: border-box; }
.e1-receipt-head {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: clamp(.875rem, 2vw, 1.5rem);
    padding: var(--e1-inset);
    background: #252a27;
    color: white;
    border-top: 4px solid var(--e1-accent);
    border-radius: 11px 11px 0 0;
}
.e1-receipt-head::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: -1.5rem;
    bottom: 0;
    width: 8rem;
    transform: skewX(-20deg);
    background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,.05) 14px 28px);
}
.e1-receipt-check {
    flex: none;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--e1-accent);
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.e1-receipt-check::before {
    content: "";
    width: .66rem;
    height: 1.2rem;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: translateY(-2px) rotate(45deg);
}
.e1-receipt .e1-receipt-season {
    margin: 0 0 .5rem;
    font-size: .77rem;
    line-height: 1.35;
    font-weight: 700;
    color: #e1e6e1;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.e1-receipt-season span { padding: 0 .35em; }
.e1-receipt-head h2 {
    margin: 0;
    color: white;
    font-size: clamp(1.55rem, 3.5vw, 2.25rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.e1-receipt-body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem var(--e1-inset);
    padding: var(--e1-inset);
}
.e1-receipt-detail { flex: 2 1 20rem; min-width: 0; }
.e1-receipt .e1-receipt-detail h3 {
    margin: 0 0 .5rem;
    padding: 0;
    border: 0;
    color: #252a27;
    font-size: 1.45rem;
    line-height: 1.25;
}
.e1-receipt-detail p { margin: 0; max-width: 46ch; color: #475149; }
.e1-receipt-amount {
    flex: 1 1 13.5rem;
    min-width: 0;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    background: #f3f5f3;
}
.e1-receipt-amount > span { display: block; font-size: .85rem; font-weight: 600; color: #49534c; }
.e1-receipt-amount > strong, .e1-receipt-detail .e1-receipt-number {
    display: block;
    margin-top: .25rem;
    font-size: clamp(1.65rem, 3.8vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    color: #252a27;
    overflow-wrap: anywhere;
}
.e1-receipt-amount form, .e1-receipt-amount .e1-actions { margin: 0; }
.e1-receipt-amount .e1-actions button {
    width: 100%;
    min-height: 44px;
    margin: 1rem 0 0;
    white-space: normal;
}
.e1-receipt .e1-receipt-note {
    margin: 0 var(--e1-inset);
    padding: 1rem 0 1.25rem;
    border-top: 1px solid #dce0dc;
    color: #49534c;
    font-size: .9rem;
}
.e1-receipt-bank { margin: 1rem 0 0; }
.e1-receipt-bank > div { display: flex; flex-wrap: wrap; gap: .125rem 1rem; padding: .6rem 0; border-bottom: 1px solid #e4e8e4; }
.e1-receipt-bank dt { flex: 1 1 9rem; margin: 0; color: #49534c; }
.e1-receipt-bank dd { flex: 2 1 12rem; min-width: 0; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 620px) {
    .e1-receipt-check { width: 2.5rem; height: 2.5rem; }
    .e1-receipt-amount { flex-basis: 100%; }
}

.e1-shirt-zoom { display: inline-block; cursor: zoom-in; }
dialog.e1-shirt-dialog {
    box-sizing: border-box; position: fixed; inset: 0; margin: auto;
    width: max-content; max-width: calc(100% - 2rem); max-height: 94vh;
    padding: clamp(.75rem, 2vw, 1.25rem); overflow: auto; overscroll-behavior: contain;
    border: 0; border-radius: .65rem; background: white; box-shadow: 0 1rem 4rem #0006;
}
.e1-shirt-dialog::backdrop { background: rgb(15 20 16 / 82%); }
.e1-shirt-dialog button { display: block; margin: 0 0 .75rem auto; }
.e1-shirt-dialog img { display: block; max-width: 100%; max-height: calc(94vh - 6rem); width: auto; height: auto; object-fit: contain; margin: 0 auto; }
