u-boxfun{
    display: block;
    --popup-padding-inline:37px;
}

u-boxfun .u-boxfun-slider{
    position: relative;
}

u-boxfun .u-boxfun-container{
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 3);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

u-boxfun .u-boxfun-container::-webkit-scrollbar{
    display: none;
}

u-boxfun .u-boxfun-container > .boxfun-item{
    min-width: 0;
    scroll-snap-align: start;
}

u-boxfun .u-boxfun-navigation{
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    color: #fff;
    cursor: pointer;
    background: rgba(237, 128, 0, .8);
    border: 1px solid #ED8000;
    border-radius: 50%;
    transform: translateY(-50%);
}

u-boxfun .u-boxfun-navigation[hidden]{
    display: none;
}

u-boxfun .u-boxfun-navigation--prev{
    left: 12px;
}

u-boxfun .u-boxfun-navigation--next{
    right: 12px;
}

u-boxfun .u-boxfun-navigation svg{
    width: 24px;
    height: 24px;
}

u-boxfun .boxfun-item{
    padding: 26px 38px;
    background-color: #ffffff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

u-boxfun .boxfun-item-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    height: 60px;
}

u-boxfun .boxfun-item-header-icon img{
    display: block;
    width: clamp(90px, 11.25vw, 100px);
    max-width: 100%;
    height: auto;
}

u-boxfun .boxfun-item-header-title{
    font-family: var(--font-akzidenz-grotesk-super);
    font-size: 24px;
    font-weight: 800;
    line-height: normal;
    text-transform: uppercase;
    margin-bottom: 8px;
}

u-boxfun .boxfun-item-header-content{
    font-family: var(--font-gotham-medium);
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
}

u-boxfun .boxfun-item-image{
    border-radius: 16px;
    overflow: hidden;
    display: flex;
}

u-boxfun .boxfun-item-price{
    font-family: var(--font-akzidenz-grotesk-super);
    font-size: 20px;
    font-weight: 800;
    line-height: normal;
    color: #686868;
    text-decoration: line-through;
    white-space: nowrap;
}

u-boxfun .boxfun-item-button{
    
}
u-boxfun .boxfun-item-button-font{
    font-family: var(--font-gotham-medium);
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
    color: #ffffff !important;
    background-color: #ED8000;
    border-radius: 50px;
    padding: 12px 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}
u-boxfun .boxfun-item-footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

u-boxfun .boxfun-sidebar{
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-index-fixed, 1020) + 10);
    visibility: hidden;
    pointer-events: none;
}

u-boxfun .boxfun-sidebar.is-open{
    visibility: visible;
    pointer-events: auto;
}

u-boxfun .boxfun-sidebar-backdrop{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: default;
}

u-boxfun .boxfun-sidebar.is-open .boxfun-sidebar-backdrop{
    opacity: 1;
}

u-boxfun .boxfun-sidebar-panel{
    position: absolute;
    top: 0;
    right: 0;
    width: min(620px, 92vw);
    height: 100%;
    overflow-y: auto;
    background-color: #ffffff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.35s ease;
}

u-boxfun .boxfun-sidebar.is-open .boxfun-sidebar-panel{
    transform: translateX(0);
}

u-boxfun .boxfun-sidebar-close{
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    width: 36px;
    height: 36px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: inherit;
    background-color: #ffffff;
    cursor: pointer;
}

u-boxfun .boxfun-sidebar-media{
    width: 100%;
    overflow: hidden;
}

u-boxfun .boxfun-sidebar-main{
    width: 100%;
}

u-boxfun .boxfun-sidebar-media{
    position: relative;
}

u-boxfun .boxfun-sidebar-nav{
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(237, 128, 0, 0.85);
    border: 1px solid #ED8000;
    color: #fff;
    cursor: pointer;
}

u-boxfun .boxfun-sidebar-nav--prev{ left: 12px; }
u-boxfun .boxfun-sidebar-nav--next{ right: 12px; }

u-boxfun .boxfun-sidebar-main .sidebar-image-item{
    aspect-ratio: 16/9;
}

u-boxfun .boxfun-sidebar-main .sidebar-image-item img,
u-boxfun .boxfun-sidebar-main .sidebar-image-item svg{
    height: 100%;
    object-fit: cover;
}

u-boxfun .boxfun-sidebar-thumbs{
    width: 100%;
    margin-top: 10px;
    padding-inline:var(--popup-padding-inline);
}

u-boxfun .boxfun-sidebar-thumbs .sidebar-image-item{
    aspect-ratio: 16/9;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.55;
    cursor: pointer;
    border-radius: 16px;
}

u-boxfun .boxfun-sidebar-thumbs .sidebar-image-item.swiper-slide-thumb-active{
    border-color: currentColor;
    opacity: 1;
}

u-boxfun .boxfun-sidebar-thumbs .sidebar-image-item img,
u-boxfun .boxfun-sidebar-thumbs .sidebar-image-item svg{
    height: 100%;
    object-fit: cover;
}

u-boxfun .sidebar-image-item img,
u-boxfun .sidebar-image-item svg{
    display: block;
    width: 100%;
    height: auto;
}

u-boxfun .boxfun-sidebar-body{
    padding-inline:var(--popup-padding-inline);
    padding-block:40px;
}

u-boxfun .boxfun-sidebar-title{
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 80;
    line-height: 37.4px;
    color:#000;
    font-family: var(--font-akzidenz-grotesk-super);
}

u-boxfun .boxfun-sidebar-price{
    margin-bottom: 44px;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    color:#686868;
    text-decoration: line-through;
    font-family: var(--font-gotham-medium);
}

u-boxfun .boxfun-sidebar-content{
    border-radius: 16px;
    background-color: #EEE;
    padding: 40px 32px;
    font-size: 16px;
    line-height: 28.7px;
    font-weight: 500;
    font-family: var(--font-gotham-medium);
}

u-boxfun .boxfun-sidebar-content strong{
    font-size: 18px;
    font-weight: 600;
    line-height: normal;
}

u-boxfun .boxfun-sidebar-button{
    width: 100%;
    margin-top: 48px;
    padding: 16px 24px;
    border: 0;
    border-radius: 50px;
    color: #ffffff;
    background-color: #ED8000;
    cursor: pointer;
    font-family: var(--font-gotham-medium);
}

u-boxfun .boxfun-sidebar-footer{
    margin-top: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    background-color: #EEE;
    border-radius: 16px;
    padding: 12px 20px;
}

u-boxfun .popup-form{
    display: grid;
    gap: 12px;
}

u-boxfun .popup-form-body{
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-index-fixed, 1020) + 20);
    display: flex;
    padding: 24px;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
}

u-boxfun .popup-form-body.is-open{
    visibility: visible;
    pointer-events: auto;
}

u-boxfun .popup-form-backdrop{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    cursor: default;
    transition: opacity 0.3s ease;
}

u-boxfun .popup-form-body.is-open .popup-form-backdrop{
    opacity: 1;
}

u-boxfun .popup-form-dialog{
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 48px);
    padding: 48px 32px 32px;
    overflow-y: auto;
    border-radius: 16px;
    background-color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

u-boxfun .popup-form-body.is-open .popup-form-dialog{
    opacity: 1;
    transform: translateY(0);
}

u-boxfun .popup-form-dialog-close{
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    width: 36px;
    height: 36px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

u-boxfun .popup-form-field{
    display: grid;
    gap: 12px;
}
u-boxfun .popup-form-field.button-group{
    grid-template-columns: repeat(2,1fr);
    gap: 27.5px;
}
u-boxfun .popup-form-field input:not([type="button"]):not([type="submit"]){
    width: 100%;
    min-height: 58px;
    padding: 0 30px;
    border: 1px solid #d2d2d2;
    border-radius: 10px;
    outline: none;
    color: inherit;
    background-color: #eeeeee;
    font-family: var(--font-gotham-medium);
    font-size: 14px;
}

u-boxfun .popup-form-field input:not([type="button"]):not([type="submit"]):focus{
    border-color: #8c8c8c;
}

u-boxfun .popup-form-field input:not([type="button"]):not([type="submit"]):user-invalid{
    border-color: #c62828;
}

u-boxfun .boxfun-sidebar-button{
    width: 100%;
}

u-boxfun .popup-close{
    background-color: #BFBFBF;
}

u-boxfun .form-title{
    font-size: 20px;
    font-weight: 800;
    line-height: normal;
    font-family: var(--font-akzidenz-grotesk-super);
}

u-boxfun .form-content{
    font-size: 16px;
    font-weight: 500;
    line-height: 27px;
    opacity: 0.8;
    font-family: var(--font-gotham-medium);
}

u-boxfun .popup-form label{
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    font-family: var(--font-gotham-medium);
}

u-boxfun .popup-form-confirmation{
    font-size: 14px;
    font-weight: 500;
    line-height: 26.5px;
    opacity: 0.8;
    font-family: var(--font-gotham-medium);
}

u-boxfun .popup-form-success-modal{
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-index-fixed, 1020) + 30);
    display: flex;
    padding: 24px;
    align-items: center;
    justify-content: center;
}
u-boxfun .popup-form-success-modal[hidden]{
    display: none;
}
u-boxfun .boxfun-access-toast{
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: calc(var(--z-index-fixed, 1020) + 40);
    width: min(calc(100% - 32px), 480px);
    padding: 14px 20px;
    color: #fff;
    font-size: 22px;
    line-height: 1.4;
    text-align: center;
    background: rgba(25, 25, 25, 0.94);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translate(-50%, calc(-50% - 12px));
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-weight: 700;
}
u-boxfun .boxfun-access-toast.is-visible{
    opacity: 1;
    transform: translate(-50%, -50%);
}
u-boxfun .boxfun-access-toast[hidden]{
    display: none;
}
u-boxfun .popup-form-success-backdrop{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.65);
}
u-boxfun .popup-form-success-dialog{
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    padding: 56px 36px 36px;
    color: #1b1b1b;
    text-align: center;
    background: #fff;
    border-radius: 16px;
}
u-boxfun .popup-form-success-close{
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    width: 36px;
    height: 36px;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: inherit;
    cursor: pointer;
    background: transparent;
    border: 0;
}
u-boxfun .popup-form-success-message{
    color: #2E7D32;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    font-family: var(--font-gotham-medium);
}
u-boxfun .popup-form-success-button{
    width: fit-content;
    margin: 28px auto 0;
    text-decoration: none;
    opacity: 1;
    white-space: nowrap;
}
u-boxfun .form-header{
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
    text-align: var(--form-header-text-align);
}
@media (max-width: 768px){
    u-boxfun{
        --popup-padding-inline:6.6667vw;
    }
    u-boxfun .boxfun-item-header{
        height: 80px;
    }
    u-boxfun .boxfun-item{
        padding: 3.0667vw 1.8667vw;
    }
    u-boxfun .boxfun-item-header-title{
        font-size: 18px;
    }

    u-boxfun .boxfun-item-header-content{
        font-size: 14px;
    }

    u-boxfun .boxfun-item-price{
        font-size: 16px;
    }

    u-boxfun .boxfun-item-button-font{
        font-size: 16px;
        padding: 2.1333vw 2.6667vw;
    }
    u-boxfun .boxfun-sidebar-button{
        margin-top: 8vw;
    }
    u-boxfun .boxfun-sidebar-title{
        font-size: 18px;
        line-height: 6.2667vw;
        margin-bottom: 3.6vw;
    }

    u-boxfun .boxfun-sidebar-price{
        font-size: 14px;
        margin-bottom: 6.6667vw;
    }

    u-boxfun .boxfun-sidebar-content{
        font-size: 14px;
        line-height: 4.8vw;
        padding: 6.6667vw 5.3333vw;
    }

    u-boxfun .boxfun-sidebar-content strong{
        font-size: 16px;
    }

    u-boxfun .form-title{
        font-size: 18px;
    }

    u-boxfun .form-content{
        font-size: 14px;
        line-height: 3.6vw;
    }

    u-boxfun .popup-form label{
        font-size: 14px;
    }

    u-boxfun .popup-form-confirmation{
        font-size: 12px;
        line-height: 3.5333vw;
    }

    u-boxfun .boxfun-sidebar-panel{
        width: min(100%, 420px);
    }

    u-boxfun .boxfun-sidebar-body{
        padding-block: 6.6667vw;
    }

    u-boxfun .u-boxfun-container{
        grid-auto-columns: calc((100% - 16px) / 1.5);
        gap: 16px;
    }

    u-boxfun .u-boxfun-navigation{
        width: 40px;
        height: 40px;
    }

    u-boxfun .boxfun-item{
        min-width: 0;
        scroll-snap-align: start;
    }

    u-boxfun .boxfun-item-button{
        padding: 4px;
    }
    u-boxfun .boxfun-item-footer{
        gap: 0;
    }
    u-boxfun .popup-form{
        gap: 6vw;
    }
    u-boxfun .popup-form-dialog{
        padding: 8vw 6.6667vw 7.4667vw;
    }
    u-boxfun .popup-form-success-modal{
        padding: 16px;
    }
    u-boxfun .popup-form-success-dialog{
        padding: 52px 24px 28px;
    }
    u-boxfun .popup-form-success-message{
        font-size: 18px;
    }
    u-boxfun .popup-form-field.button-group{
        gap: 3.6667vw;
    }
}

@media (prefers-reduced-motion: reduce){
    u-boxfun .boxfun-sidebar-backdrop,
    u-boxfun .boxfun-sidebar-panel,
    u-boxfun .popup-form-backdrop,
    u-boxfun .popup-form-dialog{
        transition: none;
    }
}