:root {
    --ek22-pink: #e85aa6;
    --ek22-pink-bright: #ff78b9;
    --ek22-cyan: #70dfff;
    --ek22-bg: #080914;
    --ek22-panel: rgba(18, 20, 42, .92);
    --ek22-panel-soft: rgba(255, 255, 255, .035);
    --ek22-line: rgba(255, 255, 255, .12);
    --ek22-text: #f8f7ff;
    --ek22-muted: rgba(248, 247, 255, .7);
}

/* Registration age confirmation: one semantic input, one custom visual box. */
.erokami-auth--register .ek-register-adult {
    position: relative;
    display: block !important;
    margin: 18px 0 22px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.erokami-auth--register .ek-register-adult__input {
    position: absolute !important;
    inline-size: 1px !important;
    block-size: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    appearance: none !important;
}

.erokami-auth--register .ek-register-adult__label {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 1px solid var(--ek22-line) !important;
    border-radius: 15px !important;
    color: var(--ek22-text) !important;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
    font-size: .95rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
}

.erokami-auth--register .ek-register-adult__box,
.erokami-auth--login .ek-login-remember__box {
    display: grid !important;
    place-items: center !important;
    inline-size: 22px !important;
    block-size: 22px !important;
    border: 1px solid rgba(255,255,255,.25) !important;
    border-radius: 7px !important;
    background: rgba(5,6,16,.76) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
    transition: .18s ease !important;
}

.erokami-auth--register .ek-register-adult__box::after,
.erokami-auth--login .ek-login-remember__box::after {
    content: "" !important;
    inline-size: 6px !important;
    block-size: 11px !important;
    border-right: 2px solid #fff !important;
    border-bottom: 2px solid #fff !important;
    transform: translateY(-1px) rotate(45deg) scale(0) !important;
    transition: transform .16s ease !important;
}

.erokami-auth--register .ek-register-adult__input:checked + .ek-register-adult__label .ek-register-adult__box,
.erokami-auth--login .ek-login-remember__input:checked + .ek-login-remember__label .ek-login-remember__box {
    border-color: transparent !important;
    background: linear-gradient(180deg, var(--ek22-pink-bright), var(--ek22-pink)) !important;
    box-shadow: 0 0 0 4px rgba(232,90,166,.13), 0 8px 20px rgba(232,90,166,.2) !important;
}

.erokami-auth--register .ek-register-adult__input:checked + .ek-register-adult__label .ek-register-adult__box::after,
.erokami-auth--login .ek-login-remember__input:checked + .ek-login-remember__label .ek-login-remember__box::after {
    transform: translateY(-1px) rotate(45deg) scale(1) !important;
}

.erokami-auth--register .ek-register-adult__input:focus-visible + .ek-register-adult__label,
.erokami-auth--login .ek-login-remember__input:focus-visible + .ek-login-remember__label {
    outline: 2px solid var(--ek22-cyan) !important;
    outline-offset: 3px !important;
}

.erokami-auth--register .ek-register-adult .invalid-feedback,
.erokami-auth--register .ek-register-adult ul {
    margin: 9px 0 0 36px !important;
    color: #ff8caa !important;
}

/* Login remember-me, scoped so checkout and other forms stay untouched. */
.erokami-auth--login .ek-login-remember {
    position: relative !important;
    display: block !important;
    margin: 14px 0 20px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.erokami-auth--login .ek-login-remember__input {
    position: absolute !important;
    inline-size: 1px !important;
    block-size: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    opacity: 0 !important;
    appearance: none !important;
}

.erokami-auth--login .ek-login-remember__label {
    display: inline-grid !important;
    grid-template-columns: 22px auto !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--ek22-text) !important;
    font-size: .94rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
}

/* Checkout returns to the same visual system as the shop. */
body[data-route^="sylius_shop_checkout"] .ek-checkout-page {
    min-height: 100vh !important;
    color: var(--ek22-text) !important;
    background:
        radial-gradient(circle at 8% 8%, rgba(232,90,166,.15), transparent 25%),
        radial-gradient(circle at 88% 18%, rgba(112,223,255,.09), transparent 20%),
        linear-gradient(180deg, #080914 0%, #0b0d1b 56%, #06070f 100%) !important;
}

body[data-route^="sylius_shop_checkout"] .ek-checkout-stage {
    padding-top: 185px !important;
}

body[data-route^="sylius_shop_checkout"] .ek-checkout-header {
    width: min(1320px, calc(100% - 40px)) !important;
    margin: 0 auto 22px !important;
    border: 1px solid var(--ek22-line) !important;
    border-radius: 22px !important;
    background: rgba(14,16,34,.82) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,.25) !important;
    backdrop-filter: blur(18px) saturate(135%) !important;
}

body[data-route^="sylius_shop_checkout"] .ek-checkout-header__inner {
    max-width: none !important;
    min-height: 92px !important;
    padding: 18px 22px !important;
}

body[data-route^="sylius_shop_checkout"] .ek-checkout-main {
    padding: 0 20px 38px !important;
}

body[data-route^="sylius_shop_checkout"] .ek-checkout-shell {
    width: min(1320px, 100%) !important;
    margin: 0 auto !important;
    gap: 22px !important;
    align-items: start !important;
}

body[data-route^="sylius_shop_checkout"] .ek-checkout-content,
body[data-route^="sylius_shop_checkout"] .ek-checkout-sidebar {
    border: 1px solid var(--ek22-line) !important;
    border-radius: 22px !important;
    background: rgba(16,18,38,.88) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,.25) !important;
    backdrop-filter: blur(18px) saturate(135%) !important;
}

body[data-route^="sylius_shop_checkout"] .ek-checkout-content {
    padding: clamp(22px, 3vw, 38px) !important;
}

body[data-route^="sylius_shop_checkout"] .ek-checkout-sidebar {
    padding: 24px !important;
    position: sticky !important;
    top: 170px !important;
}

body[data-route^="sylius_shop_checkout"] .ek-checkout-page .card,
body[data-route^="sylius_shop_checkout"] .ek-checkout-page fieldset,
body[data-route^="sylius_shop_checkout"] .ek-checkout-page .list-group-item,
body[data-route^="sylius_shop_checkout"] .ek-checkout-page .accordion-item {
    border-color: rgba(255,255,255,.1) !important;
    background: rgba(255,255,255,.025) !important;
    color: var(--ek22-text) !important;
}

body[data-route^="sylius_shop_checkout"] .ek-checkout-page input:not([type="checkbox"]):not([type="radio"]),
body[data-route^="sylius_shop_checkout"] .ek-checkout-page select,
body[data-route^="sylius_shop_checkout"] .ek-checkout-page textarea {
    min-height: 50px !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 13px !important;
    color: var(--ek22-text) !important;
    background: rgba(5,6,16,.7) !important;
}

body[data-route^="sylius_shop_checkout"] .ek-checkout-page input:focus,
body[data-route^="sylius_shop_checkout"] .ek-checkout-page select:focus,
body[data-route^="sylius_shop_checkout"] .ek-checkout-page textarea:focus {
    border-color: rgba(112,223,255,.7) !important;
    box-shadow: 0 0 0 4px rgba(112,223,255,.1) !important;
    outline: 0 !important;
}

body[data-route^="sylius_shop_checkout"] .ek-checkout-page input[type="checkbox"],
body[data-route^="sylius_shop_checkout"] .ek-checkout-page input[type="radio"] {
    inline-size: 19px !important;
    block-size: 19px !important;
    margin: 0 9px 0 0 !important;
    accent-color: var(--ek22-pink) !important;
    appearance: auto !important;
    box-shadow: none !important;
    vertical-align: middle !important;
}

body[data-route^="sylius_shop_checkout"] .ek-checkout-page .btn-primary,
body[data-route^="sylius_shop_checkout"] .ek-checkout-page button[type="submit"] {
    min-height: 50px !important;
    border: 0 !important;
    border-radius: 14px !important;
    color: #fff !important;
    background: linear-gradient(180deg, var(--ek22-pink-bright), var(--ek22-pink)) !important;
    box-shadow: 0 13px 28px rgba(232,90,166,.22) !important;
    font-weight: 850 !important;
}

body[data-route^="sylius_shop_checkout"] .ek-checkout-trust {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    width: min(1320px, calc(100% - 40px)) !important;
    margin: 0 auto 58px !important;
}

body[data-route^="sylius_shop_checkout"] .ek-checkout-trust span {
    display: grid !important;
    gap: 4px !important;
    min-height: 84px !important;
    padding: 17px 19px !important;
    border: 1px solid var(--ek22-line) !important;
    border-radius: 17px !important;
    background: rgba(255,255,255,.028) !important;
}

body[data-route^="sylius_shop_checkout"] .ek-checkout-trust b {
    color: var(--ek22-text) !important;
}

body[data-route^="sylius_shop_checkout"] .ek-checkout-trust small {
    color: var(--ek22-muted) !important;
}

@media (max-width: 980px) {
    body[data-route^="sylius_shop_checkout"] .ek-checkout-stage { padding-top: 128px !important; }
    body[data-route^="sylius_shop_checkout"] .ek-checkout-shell { grid-template-columns: 1fr !important; }
    body[data-route^="sylius_shop_checkout"] .ek-checkout-sidebar { position: static !important; }
    body[data-route^="sylius_shop_checkout"] .ek-checkout-trust { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
    body[data-route^="sylius_shop_checkout"] .ek-checkout-header,
    body[data-route^="sylius_shop_checkout"] .ek-checkout-trust { width: min(100% - 20px, 1320px) !important; }
    body[data-route^="sylius_shop_checkout"] .ek-checkout-main { padding-inline: 10px !important; }
    body[data-route^="sylius_shop_checkout"] .ek-checkout-content,
    body[data-route^="sylius_shop_checkout"] .ek-checkout-sidebar { border-radius: 17px !important; }
}
