.page-affiliates-getting-started {
    --affiliate-widgets-grid-template-columns: 1fr 1fr 1fr;

    --next-steps-item-button-width: 50%;
    --next-steps-grid-template-columns: 1fr 1fr;

    @media (width <= 1080px) {
        --affiliate-widgets-grid-template-columns: 1fr;
    }

    @media (width <= 920px) {
        --next-steps-grid-template-columns: 1fr;
    }

    @container next-steps-item (width <= 440px) {
        .next-steps {
            .step-item {
                a {
                    --next-steps-item-button-width: 100%;
                }
            }
        }
    }

    .section-header {
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: start;
        gap: 12px;
    }

    .affiliate-widgets {
        display: grid;
        grid-template-columns: var(--affiliate-widgets-grid-template-columns);
        gap: var(--report-grid-gap);

        .widget-container {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: start;
            gap: 24px;
            padding: 24px;
            border-radius: 16px;
            background-color: rgb(from #fff r g b / 0.95);
            box-shadow: 0 0 0 1px rgb(from var(--color-btm-dark-blue) r g b / 0.15);

            .widget-header {
                flex: 1;
                display: flex;
                flex-direction: column;
                align-items: start;
                justify-content: start;
                gap: 12px;

                h3 {
                    font-size: 20px;
                    line-height: 1;
                    font-weight: 600;
                    text-transform: uppercase;
                    color: var(--color-btm-dark-blue);
                    font-family: 'IBM Plex Sans', sans-serif;
                }

                .header-details {
                    flex: 1;
                    display: flex;
                    flex-direction: column;
                    align-items: start;
                    justify-content: center;
                    gap: 8px;

                    p {
                        font-size: 18px;
                        line-height: 1.325;
                        color: rgb(from var(--color-btm-dark-blue) r g b / 0.75);
                        font-family: 'Roboto', sans-serif;
                    }
                }
            }

            .widget-body {
                flex: 1;
                position: relative;
                padding: 16px;
                border-radius: 16px;
                background-color: rgb(from var(--color-btm-orange) r g b / 0.05);

                &.body-qr {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;

                    img {
                        height: 100px;
                        aspect-ratio: 1;
                        border-radius: 8px;
                        box-shadow: 0 0 0 1px rgb(from var(--color-btm-dark-blue) r g b / 0.25);
                    }
                }

                &.body-link {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;

                    font-size: 20px;
                    line-height: 1.325;
                    font-weight: 400;
                    color: var(--color-btm-dark-blue);
                    font-family: 'IBM Plex Sans', sans-serif;
                }

                &.body-code {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;

                    font-size: 24px;
                    line-height: 1;
                    font-weight: 700;
                    text-transform: uppercase;
                    color: var(--color-btm-dark-blue);
                    font-family: 'IBM Plex Sans', sans-serif;
                }

                .body-copied {
                    --opacity: 1;

                    &.fade-copied {
                        --opacity: 0;
                    }

                    position: absolute;
                    z-index: 100;
                    inset: 0;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    opacity: var(--opacity);
                    border-radius: 16px;
                    font-size: 18px;
                    line-height: 1;
                    font-weight: 700;
                    text-transform: uppercase;
                    font-family: 'IBM Plex Sans', sans-serif;
                    color: #fff;
                    transition: all .3s linear;
                    background-color: var(--color-btm-dark-blue);
                }
            }

            .widget-footer {
                a,
                button {
                    --background-color: var(--color-da-purple);

                    &:hover {
                        --background-color: var(--color-da-orange);
                    }

                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-content: center;
                    width: 100%;
                    height: 44px;
                    margin: 0;
                    padding: 0;
                    border: 0;
                    border-radius: 8px;
                    cursor: pointer;
                    font-size: 16px;
                    line-height: 1;
                    font-weight: 600;
                    text-decoration: none;
                    color: #fff;
                    transition: all 0.3s linear;
                    font-family: 'Roboto', sans-serif;
                    background-color: var(--background-color);
                }
            }
        }
    }

    .next-steps {
        display: grid;
        grid-template-columns: var(--next-steps-grid-template-columns);
        flex-direction: column;
        align-items: stretch;
        justify-content: start;
        gap: calc(var(--report-grid-gap) / 2);

        .step-item {
            container-type: inline-size;
            container-name: next-steps-item;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: start;
            gap: 24px;
            padding: 24px;
            border-radius: 16px;
            background-color: rgb(from #fff r g b / 0.95);
            box-shadow: 0 0 0 1px rgb(from var(--color-btm-dark-blue) r g b / 0.15);

            .item-header {
                display: flex;
                flex-direction: row;
                align-items: start;
                justify-content: start;
                gap: 12px;

                &:before {
                    content: attr(data-index);
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    width: 36px;
                    height: 36px;
                    border-radius: 50%;
                    font-size: 24px;
                    line-height: 1;
                    font-weight: 500;
                    color: rgb(from var(--color-btm-dark-blue) r g b / 0.75);
                    background-color: rgb(from var(--color-btm-dark-blue) r g b / 0.15);
                    font-family: 'Roboto Condensed', sans-serif;
                }

                h3 {
                    display: flex;
                    flex-direction: column;
                    align-items: start;
                    justify-content: center;
                    height: 36px;
                    font-size: 20px;
                    line-height: 1;
                    font-weight: 600;
                    text-transform: uppercase;
                    color: var(--color-btm-dark-blue);
                    font-family: 'IBM Plex Sans', sans-serif;
                }
            }

            .item-body {
                flex: 1;
                display: flex;
                flex-direction: column;
                align-items: start;
                justify-content: start;
                gap: 24px;

                .paragraph-highlight {
                    padding: 24px;
                    border-radius: 16px;
                    background-color: rgb(from var(--color-da-orange) r g b / 0.1);
                }

                p {
                    font-size: 18px;
                    line-height: 1.325;
                    color: rgb(from var(--color-btm-dark-blue) r g b / 0.75);
                    font-family: 'Roboto', sans-serif;
                }
            }

            .item-footer {
                a {
                    --text-color: rgb(from var(--color-btm-dark-blue) r g b / 0.75);
                    --background-color: rgb(from var(--color-da-purple) r g b / 0.075);

                    &:hover {
                        --text-color: #fff;
                        --background-color: var(--color-da-purple);
                    }

                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-content: center;
                    gap: 8px;
                    width: var(--next-steps-item-button-width);
                    min-width: 240px;
                    height: 36px;
                    border-radius: 8px;
                    font-size: 16px;
                    font-weight: 500;
                    line-height: 1;
                    text-decoration: none;
                    transition: all 0.3s linear;
                    color: var(--text-color);
                    background-color: var(--background-color);
                    box-shadow: 0 0 0 1px rgb(from var(--color-btm-dark-blue) r g b / 0.25);

                    &:after {
                        content: '';
                        display: block;
                        width: 16px;
                        height: 16px;
                        transition: all 0.3s linear;
                        background-color: var(--text-color);
                        mask: url('/assets/svg/arrows/right-simple-Sgb4HTd.svg') no-repeat center center / contain;
                    }
                }
            }
        }
    }
}
