html:has(#custom-loyaltylion-navbar),
html:has(#logged-in-wrapper) {
    overflow: visible !important;

    body {
        overflow: visible !important;
    }
}

main:has(#loyaltylion):has(#logged-in-wrapper) {
    .gryffeditor {
        > div[data-label='Heading'] {
            display: none !important;
        }
    }
}

html:not(:has(.lion-rule-item__content)) {
    #logged-in-wrapper,
    #custom-loyaltylion-navbar {
        display: none !important;
    }
}

#loyaltylion {
    .lion-birthday-entry-form__submit-button {
        background-color: #864593;
        transition: background .25s;

        &:hover {
            background-color: #000;
        }
    }
}

.page-width {
    > #custom-loyaltylion-navbar {
        @media(max-width: 889px) {
            margin-inline: -15px !important;
        }
    }
}

main:has(#loyaltylion) {
    --program-color-main: #864593;
    --program-color-grey: #39393A;

    background-color: #fafafa;

    #logged-in-wrapper {
        margin-top: -73px;
        position: relative;
        border-radius: 0 0 25px 25px;
        padding: 25px;
        display: flex;
        align-items: center;
        background: #000;
        justify-content: flex-start;
        padding-block: 30px;
        width: 100%;
        top: -1px;
        margin-bottom: 100px;

        @media(max-width: 889px) {
            margin: 0 0 50px;
        }

        .rc-login {
            display: none;
        }

        .introduction {
            content: 'Hallo!';
            color: #fff;
            font-size: 48px;
            line-height: 48px;
            font-weight: 700;
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 100px;

            .logout-link {
                color: #fff;
                font-size: 14px;
                font-weight: normal;
                line-height: 18px;
                position: absolute;
                left: 25px;
                bottom: 25px;
                text-decoration: none;
                transition: text-decoration .25s;
                display: flex;

                &:before {
                    content: '';
                    display: block;
                    background: transparent url('/cdn/shop/files/icon-logout.svg?v=1754562670') center center no-repeat;
                    width: 14px;
                    height: 14px;
                    margin-right: 8px;
                    transform: translateY(3px);
                }

                &:after {
                    content: '';
                    height: 1px;
                    display: block;
                    background-color: #fff;
                    position: absolute;
                    right: 0;
                    bottom: -2px;
                    width: calc(100% - 22px);
                    transition: height .25s;
                }

                &:hover {
                    text-decoration: none;

                    &:after {
                        height: 2px;
                    }
                }

                @media(max-width: 889px) {
                    position: relative;
                    margin-top: 30px;
                    top: initial;
                    left: initial;
                    bottom: initial;
                    width: 80px;
                    white-space: nowrap;
                }
            }
        }

        .buttons-wrapper {
            display: flex;
            flex-direction: column;
            gap: 15px;
            max-width: 100%;

            .redeem-points {
                background: var(--program-color-main);
                color: #fff;
                padding: 20px;
                height: 60px;
                border-radius: 10px;
                font-size: 18px;
                line-height: 21px;
                flex: 1;
                border: none;
                transition: outline .25s, box-shadow .25s;
                cursor: pointer;
                display: flex;
                font-weight: bold;
                justify-content: center;
                align-items: center;
                gap: 8px;
                box-sizing: border-box;

                &:before {
                    content: '';
                    display: block;
                    width: 24px;
                    height: 24px;
                    margin-left: 5px;
                    background: transparent url('/cdn/shop/files/icon-present.svg?v=1748933755') center center no-repeat;
                    background-size: cover;
                    transform: translateY(-2px);
                }

                &:focus-visible {
                    outline: 2px solid #fff;
                }

                &:hover {
                    box-shadow: 0 0 12px #fff;
                }
            }
        }

        .your-points-wrapper {
            background: #fff;
            padding: 15px;
            border-radius: 10px;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            width: 400px;
            max-width: 100%;
            align-items: center;

            .label-wrapper {
                flex: 1;
                display: flex;
                flex-direction: column;

                .your-points-label {
                    font-size: 20px;
                    line-height: 24px;
                    font-weight: 700;
                }

                .pending {
                    font-size: 14px;
                    line-height: 21px;
                    font-weight: 400;
                }
            }

            .your-points-value {
                font-size: 32px;
                line-height: 38px;
                font-weight: 700;
                display: flex;
                align-items: center;

                &:after {
                    content: '';
                    display: block;
                    width: 24px;
                    height: 24px;
                    margin-left: 5px;
                    background: transparent url('/cdn/shop/files/star-icon.svg?v=1747128867') center center no-repeat;
                    background-size: cover;
                    transform: translateY(-2px);
                }
            }
        }

        .description {
            color: #fff;
            font-size: 28px;
            line-height: 28px;
            font-weight: 700;
        }
    }

    #logged-in-service-bar {
        .service-bar-list {
            list-style-type: none !important;
            display: flex;
            gap: 20px;
            margin: 0 0 40px;
            padding: 0;

            @media(max-width: 889px) {
                flex-direction: column;
                padding-inline: 10px;
                margin: 0 0 50px;
            }
        }

        .list-item {
            list-style-type: none;
            background: #fff;
            box-shadow: 0 0 5px #fafafa;
            border-radius: 6px;
            position: relative;
            flex: 1;
            cursor: pointer;
            padding: 15px 15px 15px 65px;
            display: flex;
            justify-content: center;
            flex-direction: column;
            font-size: 14px;
            line-height: 16px;
            border: 1px solid transparent;
            transition: border .25s, box-shadow .25s;

            &:before {
                position: absolute;
                left: 15px;
                top: 0;
                bottom: 0;
                margin: auto 0;
                content: '';
                height: 32px;
                width: 32px;
                display: flex;
                align-items: center;
                justify-content: center;
                text-align: center;
                background: transparent url('/cdn/shop/files/icon-abos.svg?v=1754562668') center center no-repeat;
            }

            span {
                font-size: 20px;
                line-height: 24px;
                font-weight: 700;
                margin-bottom: 5px;
            }

            a {
                position: absolute;
                left: 0;
                top: 0;
                display: block;
                width: 100%;
                height: 100%;
                border-radius: 6px;
            }

            &:hover {
                border-color: var(--program-color-main);
                box-shadow: 0 0 10px #aaa;
            }

            &.order-history-item {
                &:before {
                    background-image: url('/cdn/shop/files/icon-order-history.svg?v=1754562669');
                }
            }

            &.konto-details {
                &:before {
                    background-image: url('/cdn/shop/files/icon-customer-details.svg?v=1754562668');
                }
            }
        }
    }

    #custom-loyaltylion-navbar {
        position: sticky;
        z-index: 100;
        padding: 0;
        top: calc(100vh - 65px);
        margin: 0;
        border-radius: 10px 10px 0 0;
        border: 1px solid #bbb;
        border-bottom: 0;
        background: #fff;
        order: 1;
        display: flex;
        gap: 5px;
        justify-content: center;

        @media(max-width: 889px) {
            border-inline: 0;
        }

        li {
            list-style-type: none !important;
            flex: 1;
            font-size: 12px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding-block: 12px;
            cursor: pointer;
            transition: color .25s;

            &:before {
                content: '';
                display: block;
                width: 24px;
                height: 24px;
                mask: url('/cdn/shop/files/icon-user.svg?v=1751955971');
                background-color: #39393A;
                transition: background .25s;
            }

            &.currently-in-view,
            &:hover {
                color: var(--program-color-main);

                &:before {
                    background-color: var(--program-color-main);
                }
            }

            &:focus-visible {
                color: var(--program-color-main);
                outline: 1.5px solid var(--program-color-main);

                &:before {
                    background-color: var(--program-color-main);
                }
            }

            &.earn {
                &:before {
                    mask: url('/cdn/shop/files/icon-collect.svg?v=1751955972');
                }
            }

            &.redeem {
                &:before {
                    mask: url('/cdn/shop/files/icon-rewards.svg?v=1751955971');
                }
            }

            &.tiers_overview {
                &:before {
                    mask: url('/cdn/shop/files/icon-steps.svg?v=1751955971');
                }
            }

            &.account_history {
                &:before {
                    mask: url('/cdn/shop/files/icon-history.svg?v=1751955971');
                }
            }
        }
    }

    .gryffeditor {
        max-width: 1300px;
        margin-inline: auto;
        position: relative;

        > div[data-label='Heading'] {
            position: absolute;
            left: 25px;
            top: 25px;
            color: #fff;
            z-index: 5;

            h1 {
                font-size: 24px !important;
                line-height: 28px !important;
                color: #fff !important;
                text-transform: none !important;
                text-align: left !important;
            }

            h2 {
                font-size: 18px !important;
                line-height: 22px !important;
                color: #fff !important;
                text-transform: none !important;
                margin-top: 50px !important;
                text-align: left !important;
            }
        }
    }

    .history_score {
        display:inline-block;
        width: 13px;
        height: 13px;
        background: transparent url('/cdn/shop/files/star-icon.svg?v=1747128867') center center no-repeat;
        background-size: contain;
        margin-left: 5px;
        vertical-align: middle;
    }

    #loyaltylion {
        position: relative;

        .lion-integrated-page-section {
            margin-bottom: 0;
        }

        .lion-available-rewards {
            margin-top: 30px;
            padding-top: 0;
        }

        .lion-integrated-page {
            overflow: visible;
        }

        .lion-integrated-page--guest {
            padding-bottom: 100px;

            @media(max-width: 889px) {
                padding-bottom: 110px;
            }

            > [data-lion-integrated-page-section-kind='header'] {
                position: relative;
                border-radius: 0 0 25px 25px;
                padding: 120px 25px 25px 25px;
                display: flex;
                align-items: flex-start;
                background: #000 url('/cdn/shop/files/bonusprogram-header.jpg?v=1747125830') no-repeat;
                background-position: right bottom;
                background-size: cover;
                margin-top: -73px;

                .lion-header__join-today {
                    text-align: left;
                    color: #fff;
                    max-width: 50%;
                }

                .lion-header__join-buttons {
                    align-items: flex-start;
                }

                .lion-action-button--primary {
                    border: 2px solid var(--program-color-main);
                    color: #fff;
                    background: var(--program-color-main);
                    text-transform: uppercase;
                    font-weight: bold;
                    border-radius: 5px;
                    transition: outline .25s;

                    &:hover {
                        outline: 2px solid #fff;
                    }
                }

                .lion-action-button--neutral {
                    border: 2px solid #fff;
                    color: #fff;
                    background: #000;
                    text-transform: uppercase;
                    font-weight: bold;
                    border-radius: 5px;
                    transition: outline .25s;

                    &:hover {
                        outline: 2px solid #fff;
                    }
                }
            }
        }

        .lion-integrated-page-section[data-lion-integrated-page-section-kind='header'] {
            position: sticky;
        }

        [data-lion-integrated-page-section-kind='redeem'],
        [data-lion-integrated-page-section-kind='tiers_overview'] {
            padding-top: 60px;
        }

        [data-lion-integrated-page-section-kind='earn'] {
            padding-top: 80px;

            .lion-rule-item__title {
                margin-bottom: 8px;
            }
        }

        .lion-earn__heading,
        .lion-redeem__heading,
        .lion-tiers-overview__heading,
        .lion-account-history__heading,
        .lion-available-rewards__heading,
        .lion-available-rewards__heading {
            text-align: left;
            margin-bottom: 0;

            > h3 {
                text-transform: inherit;
                color: var(--program-color-grey);
                font-size: 20px;
                line-height: 24px;
                font-weight: 700;
                margin-bottom: 8px !important;
            }

            > h3:before,
            > h3:after {
                display: none;
            }
        }

        .lion-rules-list,
        .lion-rewards-list,
        .lion-tier-overview,
        .lion-history-table,
        .lion-claimed-rewards-list {
            padding-inline: 0;
            grid-template-columns: 1fr 1fr 1fr;

            .lion-rule-item__actions,
            .lion-reward-item__actions {
                margin: 0;
                align-items: flex-start;

                button {
                    border: 1px solid var(--program-color-grey);
                    border-radius: 4px;
                    padding: 6px;
                    transition: background .25s, color .25s;
                    color: var(--program-color-grey);
                    font-size: 14px;

                    &:hover {
                        background-color: var(--program-color-grey);
                        color: #fff;
                    }


                    &.lion-action-button--disabled {
                        background:#fafafa;
                        opacity: .7;
                        cursor: not-allowed;

                        &:hover {
                            color: var(--program-color-grey);
                        }
                    }
                }
            }

            .lion-rule-item__content,
            .lion-reward-item__content {
                display: flex;
                flex-direction: row;
                padding: 15px 0 10px 80px;
                min-height: inherit;
                position: relative;
                flex-wrap: wrap;
                justify-content: flex-start;
            }

            .lion-rule-item__icon-wrap,
            .lion-reward-item__icon {
                display: flex;
                justify-content: center;
                align-items: center;
                position: absolute;
                left: 0;
                top: 0;
                bottom: 0;
                width: 80px;
                height: 42px;
                margin: auto 0;

                > div {
                    background-color: var(--program-color-main);
                }
            }

            .lion-reward-item__icon,
            .lion-claimed-reward-item__icon {
                background-color: var(--program-color-main);
            }

            .lion-rule-item__title,
            .lion-reward-item__title {
                flex: 1;
                justify-content: flex-start;
                text-align: left;
                box-sizing: border-box;
                flex: 0 0 100%;
                padding: 0 100px 0 0;
            }

            .lion-reward-item__meta {
                flex: 0 0 100%;
            }

            .lion-rule-item__points,
            .lion-reward-item__cost {
                position: absolute;
                right: 10px;
                top: 15px;

                .value {
                    color: var(--program-color-grey);
                    font-weight: 700;
                    font-size: 14px;
                    line-height: 20px;
                }

                .text {
                    text-indent: -10000px;
                    overflow: hidden;
                    background: transparent url('/cdn/shop/files/star-icon.svg?v=1747128867') center center no-repeat;
                    background-size: contain;
                    display: inline-block;
                    width: 13px;
                    height: 13px;
                    margin-left: 2px;
                }
            }

            .lion-reward-item__links {
                text-align: left;
                padding: 8px 0 8px 0;
                display: flex;
                gap: 10px;
                flex-wrap: wrap;
                margin-right: 10px;

                .lion-reward-item__more-info-url {
                    line-height: 30px;
                }

                a {
                    border: 1px solid var(--program-color-grey);
                    border-radius: 4px;
                    padding: 6px;
                    transition: background .25s, color .25s;
                    font-size: 14px;
                    color: var(--program-color-grey);
                }

                a:after {
                    display: none;
                }

                a:hover {
                    background-color: var(--program-color-grey);
                    color: #fff;
                    text-decoration: none;
                }
            }
        }

        .lion-claimed-rewards-list {
            padding: 0;
            border-radius: 10px;
            margin: 0;
            border: none;
        }

        .lion-tier-overview {
            padding-top: 0;
            display: flex;
            flex-direction: column;

            .lion-tier-box {
                margin-bottom: 10px;
                flex-direction: row;
                flex-wrap: wrap;
                padding: 10px 30px;
                border-radius: 10px;
                outline: none;
                position: relative;
                border: 1px solid var(--program-color-grey);

                .lion-tier-box__header {
                    padding: 0 0 0 50px;
                    flex: 1;
                    display: flex;
                    flex-direction: row;
                    flex-wrap: wrap;
                    position: relative;

                    .lion-tier-box__position {
                        position: absolute;
                        left: 0;
                        top: 0;
                        bottom: 0;
                        display: flex;
                        align-items: center;
                        border-radius: 100%;
                        background: var(--program-color-main);
                        color: #fff;
                        width: 25px;
                        height: 25px;
                        font-weight: bold;
                        justify-content: center;
                        margin-block: auto;
                    }

                    .lion-tier-box__title {
                        padding-block: 0;
                    }

                    .lion-tier-box__sub-title {
                        flex: 0 0 100%;

                        &:empty {
                            display: none;
                        }
                    }
                }

                .lion-tier-box__purchase-rule {
                    background: #fff;
                    border: none;
                    color: var(--program-color-grey);
                    align-items: flex-start;
                    padding: 0;

                    .value {
                        &:before {
                            content: '+';
                        }
                    }

                    .lion-tier-box__purchase-rule-points {
                        position: relative;
                        font-weight: 700;

                        &:after {
                            content: 'je €';
                            position: absolute;
                            right: 17px;
                            top: 0;
                        }
                    }

                    .text {
                        text-indent: -10000px;
                        overflow: hidden;
                        background: transparent url('/cdn/shop/files/star-icon.svg?v=1747128867') center center no-repeat;
                        background-size: contain;
                        display: inline-block;
                        width: 13px;
                        height: 13px;
                        margin-left: 25px;
                    }
                }

                .lion-tier-box__footer {
                    flex: 0 0 100%;
                    align-items: flex-start;
                    justify-content: flex-start;
                    padding-left: 50px;
                    position: relative;

                    .lion-tier-box__condition-text {
                        padding: 0;
                        font-size: 14px;
                        line-height: 22px;
                        color: #000;
                    }

                    &.lion-tier-box__footer--current {
                        position: absolute;
                        left: 0;
                        right: 0;
                        top: 100%;
                        margin: 0;
                        padding: 0;
                        text-align: center;
                        display: flex;
                        align-items: center;

                        .lion-tier-box__you-are-here,
                        .lion-progress-bar__container {
                            display: none;
                        }

                        .lion-tier-box__value-to-next {
                            padding-block: 14px;
                        }
                    }
                }

                &:has(.lion-tier-box__footer--current),
                &:has(+ .lion-tier-box--current),
                &:has(+ div + .lion-tier-box--current) {
                    margin-bottom: 50px;
                    background: var(--program-color-main);

                    .lion-tier-box__position {
                        background: #fff url('/cdn/shop/files/icon-check.svg?v=1747129197') center center no-repeat !important;
                        background-size: cover !important;
                        color: var(--program-color-main) !important;
                        text-indent: -10000px;
                        overflow: hidden;
                    }

                    .lion-tier-box__header,
                    .lion-tier-box__purchase-rule {
                        background: transparent;
                        color: #fff;
                    }

                    .lion-tier-box__title,
                    .lion-tier-box__sub-title,
                    .lion-tier-box__purchase-rule-points {
                        color: #fff;
                    }

                    .lion-tier-box__purchase-rule {
                        .text {
                            background-image: url('/cdn/shop/files/icon-star-white.svg?v=1747130211');
                        }
                    }
                }

                &.lion-tier-box--previous,
                &.lion-tier-box--current {
                    .lion-tier-box__header {
                        &:after {
                            content: 'aktiv';
                            flex: 0 0 100%;
                        }
                    }

                    .lion-tier-box__sub-title {
                        display: none;
                    }
                }

                &:has(+ .lion-tier-box--current),
                &:has(+ div + .lion-tier-box--current) {
                    margin-bottom: 10px;
                }
            }
        }


        .lion-history-table {
            td {
                font-size: 14px;
            }
        }
    }

    .customer.account {
        padding: 0;
        max-width: initial;

        > div {
            margin-top: -60px;

            &:has(.customer__title) {
                display: none;
            }

            > div {
                &:not(:has(.pagination)) {
                    display: none;
                }
            }
        }

        h2 {
            text-transform: inherit;
            color: var(--program-color-grey);
            font-size: 20px;
            line-height: 24px;
            font-weight: 700;
            margin-bottom: 8px !important;
        }

        .order-history {
            a {
                background: beige;
                border: none;
                box-shadow: none;
                color: var(--program-color-main) !important;
            }
        }
    }

    [data-lion-integrated-page-section-kind='account_history'] {
        padding-bottom: 60px !important;
    }

    .shopify-section,
    .lion-integrated-page-section {
        &:has(.lion-history-table ) {
            > div {
                display: flex;
                flex-direction: column;
            }

            .lion-history-table  {
                padding: 0 !important;
                border: none;

                thead {
                    display: none;
                }

                tbody {
                    display: flex;
                    flex-wrap: wrap;
                    margin-inline: -10px;

                    tr {
                        position: relative;
                        display: flex;
                        flex-wrap: wrap;
                        padding: 10px;
                        align-items: center;
                        border-radius: 10px;
                        background: #fff;
                        flex: 0 0 calc(33% - 16px);
                        margin-inline: 10px;
                        margin-bottom: 20px;

                        @media(max-width: 889px) {
                            flex: 0 0 calc(100% - 16px);
                        }

                        td {
                            flex: 0 0 50%;
                            padding: 0;
                            order: 1;

                            & + .lion-history-table__row-date {
                                order: 1;
                            }

                            &:nth-child(4) {
                                order: 2;
                                text-align: right !important;
                                font-weight: 700;
                                display: flex;
                                align-items: center;
                                justify-content: flex-end;
                            }

                            &:nth-child(2) {
                                order: 3;
                            }

                            &:nth-child(3) {
                                order: 2;
                                text-align: right !important;
                            }

                            &:last-child {
                                order: 99;
                                text-align: right !important;
                            }

                            .lion-history-table__bubble {
                                background: transparent;
                                padding: 0;
                                font-weight: 500;
                                color: var(--program-color-main);
                                pointer-events: none;
                            }

                            &[data-i18n-key] {
                                display: none;

                                + td {
                                    text-align: left !important;
                                    order: 3;
                                }

                                + td + td {
                                    order: 1;
                                }

                                + td + td + td {
                                    text-align: right !important;
                                }
                            }
                        }
                    }
                }

                &:has(.lion-history-state-bubble--approved) {
                    tbody {
                        tr {
                            td {
                                text-align: left;
                            }
                        }
                    }
                }
            }
        }
    }

    .shopify-block {
        &:has(.rc-login) {
            display: none;
        }
    }

    .shopify-app-block,
    .lion-header {
        order: 5;

        &:has(.lion-header__nav) {
            z-index: 10;
            padding: 0;
            top: calc(100vh - 65px);
            margin: 0 0 30px;
            order: 1;

            .lion-header {
                margin: 0;
                padding: 0 !important;
                position: static !important;
                background: transparent;
            }

            .lion-header__your-points,
            .lion-header__pending-points {
                display: none;
            }

            .lion-header__nav {
                padding-top: 0;
                display: none;

                a {
                    border-bottom: 0;
                    display: flex;
                    flex-direction: column;

                    &.lion-header__nav-link--earn {
                        font-size: 0;

                        &:after {
                            content: 'Sammeln';
                            font-size: 16px;
                        }
                    }

                    &:hover {
                        background: transparent;
                        color: var(--program-color-main);

                        &:before {
                            background-color: var(--program-color-main);
                        }
                    }
                }
            }
        }

        &:has([data-lion-section-configuration='available_rewards']) {
            order: 1;
        }

        &:has([data-lion-section-configuration='account_history']) {
            order: 99;
            margin-bottom: 60px;
        }
    }

    .page-width > .shopify-section:has(.order-history) {
        text-transform: inherit;
        color: var(--program-color-grey);
        font-size: 20px;
        line-height: 24px;
        font-weight: 700;
        margin-bottom: 8px !important;
        margin-top: 0px;
        order: 100;

        .customer.account {
            > div {
                > div {
                    padding: 0;
                }
            }
        }

        table {
            background: #fff;
            border: none;
            border-radius: 6px;
        }

        tr {
            @media(max-width: 889px) {
                padding: 8px;
                box-sizing: border-box;
                border: 1px solid #f5f1ee;
                border-radius: 10px;
                margin-bottom: 16px;
            }

            th {
                font-weight: 700;
                color: #000;
            }
        }

        tbody {
            @media(max-width: 889px) {
                padding-inline: 16px;
            }
        }

        td {
            @media(max-width: 889px) {
                padding: 6px 0;
                font-weight: 400;

                &:before {
                    font-weight: 700;
                    color: #000;
                }
            }

            a {
                background: #ECE1EE;
                border: none;
                box-shadow: none;
                color: var(--program-color-main) !important;
                font-weight: 700;
                border-radius: 4px;
            }

            &[data-label="Bestellung"] {
                @media(max-width: 889px) {
                    padding-top: 0;

                    &:before {
                        display: none;
                    }

                    a {
                        width: 100%;
                        text-align: center;
                    }
                }
            }
        }

        .pagination {
            margin-top: 0;

            @media(max-width: 889px) {
                margin-bottom: 110px;
            }

            li {
                list-style-type: none !important;

                a {
                    color: #000;
                    font-weight: normal;
                }
            }
        }
    }

    > .shopify-section {
        &:has(.account.logout) {
            display: none;
        }
    }
}


@media(max-width: 889px) {
    body:has(#loyaltylion) {
        .section-header.shopify-section-group-header-group {
            z-index: 1000001;
        }
    }

    main:has(#loyaltylion) {
        .gryffeditor {
            z-index: 1000000;

            > div[data-label='Heading'] {
                top: 230px;
            }
        }

        #loyaltylion {
            padding-inline: 15px;

            .lion-header {
                &:has(.lion-header__nav) {
                    top: calc(100vh - 48px);
                    margin-inline: -15px;

                    .lion-header__nav-link {
                        padding-inline: 10px;
                        font-size: 8px;
                        font-weight: bold;
                    }

                    .lion-header__nav-link--earn {
                        font-size: 0;

                        &:after {
                            font-size: 8px;
                        }
                    }

                    .lion-header__nav-link:before {
                        margin-right: 0;
                    }
                }
            }
        }

        .page-width {
            #logged-in-wrapper {
                margin-inline: -15px;
                width: 100vw;
            }

            #loyaltylion {
                padding-inline: 0;
            }
        }

        #logged-in-wrapper {
            flex-direction: column;
            position: relative;
            margin-top: -70px;

            .rc-login {
                display: none;
            }

            .introduction {
                margin-bottom: 30px;

                .name {
                    font-size: 32px;
                    line-height: 32px;
                    margin-bottom: 10px;
                }

                .description {
                    font-size: 20px;
                    line-height: 24px;
                }
            }

            .your-points-wrapper {
                flex: 0 0 100%;
            }
        }

        #MainContent:has(.lion-header__your-points) {
            .shopify-section {
                > div {
                    padding-inline: 0;
                }
            }
        }

        #loyaltylion {
            &:has(.lion-integrated-page--guest) {
                padding-inline: 10px;
                padding-bottom: 0;

                #custom-loyaltylion-navbar {
                    @media(max-width: 889px) {
                        margin-inline: -10px;
                    }
                }
            }

            .lion-integrated-page {
                overflow: visible;
            }

            .lion-integrated-page--guest {
                > [data-lion-integrated-page-section-kind='header'] {
                    padding-top: 350px;
                    background-image: url('/cdn/shop/files/bonusprogram-head-mobile.png?v=1747126045');
                    background-size: 100% auto;
                    background-position: top center;
                    margin-inline: -10px;

                    .lion-header__join-today {
                        max-width: 100%;
                    }

                    .lion-header__join-buttons {
                        flex-direction: column;
                        width: 100%;
                        display: flex;
                    }

                    .lion-action-button--primary {
                        flex: 1;
                        width: 100%;
                        margin: 0 0 10px;
                        text-align: center;
                    }

                    .lion-action-button--neutral {
                        flex: 1;
                        width: 100%;
                        text-align: center;
                    }
                }
            }

            .lion-rules-list,
            .lion-rewards-list,
            .lion-tier-overview,
            .lion-claimed-rewards-list {
                grid-template-columns: 1fr;
            }

            .lion-tier-overview {
                .lion-tier-box {
                    &:has(.lion-tier-box__footer--current) {
                        margin-bottom: 80px;
                    }

                    &:last-child {
                        margin-bottom: 0;
                    }
                }
            }
        }

        .shopify-section {
            > div {
                padding-inline: 15px;
            }

            &:has([data-lion-section-configuration='account_history']) {
                .lion-history-table  {
                    tbody {
                        margin-inline: 0;

                        tr {
                            flex: 0 0 100%;
                            margin-inline: 0;
                        }
                    }
                }
            }
        }

        .shopify-app-block {
            &:has(.lion-header__nav) {
                border-radius: 10px 10px 0 0;
                border: none;
                top: calc(100vh - 48px);

                .lion-header {
                    &:has(.lion-header__nav) {
                        margin-inline: -15px !important;
                        background: #fff;
                    }
                }

                .lion-header__nav-link {
                    padding-inline: 10px;
                    font-size: 8px;
                }
            }
        }
    }
}
