:root {
    --wrap-w: 1440px;
    --cpw-white: #FFFFFF;
    --cpw-black: #000000;
    --cpw-orange: #FF8137;
    --cpw-yellow: #FFCD05;
    --cpw-grey: #455064;
    --cpw-dark-blue: #111F30;
    --cp-sm: 640px;
    --cp-md: 768px;
    --cp-lg: 1024px;
}

.cpw-section-wrap {
    max-width: var(--wrap-w);
    margin: 0 auto 4rem;
}

.cpw-promotion {
    font-family: "Inter",sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--cpw-orange);
    position: relative;

    .cpw-promotion-content {
        padding: 8px 0;
        overflow: hidden;
        margin-bottom: 0;

        ul {
            margin: 0;
            padding: 0;
            display: flex;
            align-items: center;
            transition: transform 0.6s ease;
            will-change: transform;

            li {
                list-style: none;
                min-width: 100%;

                > div {
                    display: flex;
                    justify-content: center;
                    margin: 0 3rem;
                }

                p {
                    font-family: "Inter Tight", sans-serif;
                    font-size: 1rem;
                    color: var(--cpw-white);
                    display: inline-block;
                    margin: 0 1rem 0;
                }

                .cpw-promotion-content-cta {
                    text-decoration: underline;
                    color: var(--cpw-white);
                    font-size: 1rem;
                    font-weight: 600;
                    display: inline-block;
                }

            }
        }

        .cpw-promotion-dots {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            margin-top: 0.3rem;

            button {
                width: 5px;
                height: 5px;
                border-radius: 9999px;
                /* background-color: rgba(255, 255, 255, 0.45); */
                /* border: none; */
                background-color: transparent;
                border: 1px solid rgba(255, 255, 255, 0.45);
                padding: 0;
                cursor: pointer;
            }

            button.is-active {
                background-color: rgba(255, 255, 255, 1);
            }
        }
    }

    .cpw-promotion-close-btn {
        cursor: pointer;
        position: absolute;
        top: 13px;
        /* top: 18px; //with dots navigation carousel */
        right: 20px;
    }

    img {
        display: block;
    }

}

@media (max-width: 640px) {

    .cpw-promotion {
        .cpw-promotion-content {

            ul {
                li {

                    > div {
                        flex-direction: column;
                    }

                    p {
                        font-size: 1rem;
                        font-weight: 500;
                        display: block;
                        text-align: center;
                        line-height: 1.3;
                        margin-right: 0;
                    }

                    .cpw-promotion-content-cta {
                        font-size: 0.8125rem;
                        font-weight: 700;
                        display: block;
                        text-align: center;
                    }
                }
            }

            .cpw-promotion-dots {
                display: none;
            }
        }
    }
    
}

.cpw-header {
    font-family: "Inter",sans-serif;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    background-color: var(--cp-white);
    border-bottom: 1px solid var(--cp-grey-tint-1);
    max-width: var(--wrap-w);
    margin: 0 auto;

    > div {
        &:first-child {
            a {
                img {
                    max-width: 250px;
                }
            }
        }
    }

    nav {
        ul {
            display: inline-block;
            margin: 0;
            padding: 0;
            list-style: none;
            transform: skew(-10deg);

            li {
                
                background-color: var(--cpw-grey);
                float: left;
                color: #555;
                transition: all 0.3s linear;

                &:first-child {
                    border-radius: 7px 0 0 7px;
                }

                &:last-child {
                    border-radius: 0 7px 7px 0;
                }

                &:hover,
                    &:active {
                    background-color: var(--cpw-orange);
                    color: var(--cpw-white);
                }

                a {
                    display: block;
                    padding: 1.125rem 1rem;
                    font-size: 1.125rem;
                    font-weight: 500;
                    color: var(--cpw-white);
                    text-decoration: none;
                    transform: skew(10deg);
                }

                .cpw-email-icon {
                    width: 18px;
                    display: inline-block;
                    margin-right: 0.4rem;
                }
            }

        }
    }

    .cpw-header-mobile{
        display: none;
        gap: 0.5rem;
    }

}

/* Mobile Overlay Menu */
body.no-scroll {
    overflow: hidden;
}

.cpw-mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
    z-index: 999;
    display: flex;
    justify-content: flex-end;
}

.cpw-mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.cpw-mobile-menu-panel {
    width: 82%;
    max-width: 380px;
    height: 100%;
    background: var(--cpw-grey);
    padding: 1.25rem 0 2rem;
    transform: translateX(100%);
    transition: transform 250ms ease;
    position: relative;
}

.cpw-mobile-menu-overlay.is-open .cpw-mobile-menu-panel {
    transform: translateX(0);
}

.cpw-menu-open,
.cpw-menu-close {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.cpw-menu-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.cpw-mobile-nav ul {
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.cpw-mobile-nav a {
    font-family: "Inter Tight", sans-serif;
    font-size: 1.25rem;
    display: block;
    padding: 0.7rem 2rem;
    text-decoration: none;
    color: var(--cpw-white);
    font-weight: 400;
    transition: background-color 0.3s ease;

    &:hover,
    &:active {
        background-color: var(--cpw-orange);
    }

    .cpw-email-icon {
        display: inline-block;
        margin-right: 0.5rem;
    }
}

/* Responsive */
@media (max-width: 1500px) {

    .cpw-header {
        margin: 0 1rem;
    }
    
}

@media (max-width: 1430px) {

    .cpw-header {

        nav {
            display: none;
        }

        .cpw-header-mobile {
            display: flex;
            gap: 0.5rem;
        }

    }

}

@media (max-width: 640px) {

    .cpw-header {
        padding: 1rem 0;
    
        > div {
            &:first-child {
                a {
                    img {
                        max-width: 165px;
                    }
                }
            }
        }

    }

}
