:root {
    --bundled-product-font-color: #000000;
    --bundled-product-highlight-color: #F2AB18;
    --bundled-product-faded-color: #C8C8C8;
}

.marlenespetshop-product-bundle-custom-variant-options-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 1.5rem !important;

    .marlenespetshop-product-bundle-custom-variant-options {
        display: grid;
        justify-content: center;
        height: 100%;

        grid-template-columns: 1fr;
        gap: 1rem;

        min-width: 168px;

        border-radius: 24px 16px 16px 16px;

        background-color: rgba(143, 148, 173, 0.66);

        /* For child elements alignment */
        align-items: center;
        align-content: flex-start;
        justify-items: start;

        position: relative;
        overflow: hidden;

        /* Smooth transition for hover animation */
        transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;

        >div {
            width: 100%;
        }

        .product-bundle-custom-variant-header {
            height: 104px;
            align-items: flex-start;

            background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJkAAABUCAYAAACRKpXQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQwSURBVHgB7d3hUeJAGMbxJUE/cxUcViBXgWMH2oFWcF4FagfagVZwXAWHHXgdrB3wGVHufXTjcBwKhF1Jwv83kyGEOOMMD+9uNpuk5ZY0mUw6T09PR61W68CWnr3v2uaOA953nef5WXvRXgrT8/Pzd1tOLFydsM0Bi4RC5Nof7KBAnVu4zhxQghWl/ZfXeR+G6vXbVrsOWEOWZV+y2Y2j0ahHwBBR55/mMlSwn46AIZ7eWyVTH4wKhthsRKIz3VyeOwKGyDQi8RKy0ExyFIkUXkNmATt3QCJZGA87cUAimU4VOSChTOciHZCQ+mQ9BySkkHUdkIj1+b1CxnQdJFOEDEim3W4PCRlSo5IhHRu5uLeFSoZ07EzSg14JGZJRJdMrIUMyVskGem3ZaSWuCkESeZ6/TO+nkiEJayoHxTohQxLWVN4W64QMSVhTOSjWCRmiC+NjvnhPyBCdNZXX0+8JGaKbbiqFkCGqyWTya7qpFEKGqKyK3cxuYzAWMXkL2d7sRioZorGm8nLedioZYplbxYRKhijeq2JCJUMM71YxoZJhbR9VMaGSYS02JtbPsuz4w30IGdZhAdubHXz9bx8HlGTnKC8XBUyoZChFkxKtih0usy+VDGV4C9npsjsTMqzMmsnTZZrJAiHDStQP29nZGazyN4QMSwsBu3ArouOPpdiA62273T5xJVDJsNA6ARNChg9pvv46ARNChneFPtjaz3cgZJhnaH31H2U6+fMsfKgqto63gB3v7u7eu0ioZHgTZlR8ixkwIWSQl+ZRU3Z0Z0QXGc3llgtHjxd5nkcPV4GQbSnNorDqtfIpojII2Zb5zHAVCNmW2ES4CoSs2YbhZnT9TYSrQMiaZ6j7g6lqWYf+PmWHflmErBkUpL7uqKPbNqUYhlgHIXvlXb2eludtGdjyx8a2+qvMUt2EbQtZ8Yu/C794P7tDeFx2Zzwed+3zji1d69d0bf99bbfPu+7znqznQ9P3YGHy9n/cqwmsWqVaZFsmLQ7DoONVjC9IQXx8fHwLoZbw0Vdtc1MhDKF8Mx1sPaYvrOrxMEN7r8Xb/+mrXp1W0fiQ6dBdV9Y06Uurm0afuwzn4w4J2GY1tU8WfboKymtcyMI95I+to+4dKqFRzaUueLCA0TxWTGNCpvnouuChbof326ARzaU6+Nb/unKopLqHTONf6uAPHCqrziHzGp6gg199teyT6QiS8a/6qF3IOIKsn1qFTB18jiDrpy59Ms1AOKWDX0+VD5kuONUJ7irM8EQ5VQ6Zpr0oXH2HWqtkn0yj97o/vPW/CFgDZOF50d5Vw43CpbvJ0LlvjlaxMhqNevbFnljzdGDNVM99nqizVlE9rXkbNWXYhgsUtCOrLPuxQxfmrd+5DV8PiM/RWmYnzWkfj8e9MKddr7MXVcy7sMKHyuTrfiEEgIr7C6m4ywP/mY5mAAAAAElFTkSuQmCC');
            background-position: top left;
            background-repeat: no-repeat;
            background-size: 90% 100%;

            margin-top: -2px;

            .bundle-header-title {
                width: 100%;
            }
            .bundle-header-title p {
                font-family: var(--font-body-family);
                font-style: normal;
                font-weight: 700;
                font-size: 20px;
                line-height: 1.6rem;
                margin: 0;
                color: var(--bundled-product-font-color);
                text-shadow: .03125rem .03125rem 0 var(--bundled-product-font-color);

                &.highlight {
                    font-size: 22px;
                    color: var(--bundled-product-highlight-color);
                    text-shadow: .03125rem .03125rem 0 var(--bundled-product-highlight-color);
                }

                &.tiny {
                    font-size: 11px;
                    line-height: 1.3rem;
                    padding-left: 4rem;
                }
            }
        }

        /* Targeting the elements to center */
        .product-bundle-custom-variant-image,
        .product-bundle-custom-variant-footer {
            grid-template-columns: 1fr;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .product-bundle-custom-variant-image {
            margin-top: -38px;
            img {
                width: 100%;
                max-width: 100%;
                max-height: 100%;
                zoom: 100%;
            }
        }

        .product-bundle-custom-variant-footer {
            position: absolute;
            bottom: 14px;

            button {
                display: flex;
                align-items: center;
                flex-direction: row;
                gap: 4px;
                justify-content: center;
                position: relative;
                z-index: 1;
                padding: 3px 8px 3px 8px;

                box-sizing: border-box;
                border: 1px solid #FFFFFF;
                border-radius: 16px;
                background: rgba(255, 255, 255, 0.12);

                backdrop-filter: blur(9.85px);
                -webkit-backdrop-filter: blur(19.85px);

                /* Smooth transition for hover animation */
                transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;

                div {
                    padding: .2rem;
                    p {
                        font-family: var(--font-body-family);
                        font-style: normal;
                        font-weight: 500;
                        font-size: 12px;
                        line-height: 15px;
                        letter-spacing: -0.02em;
                        padding: 0;
                        margin: 0;
                        color: #FFFFFF;
                        flex: none;
                        order: 1;
                        flex-grow: 0;
                    }
                }

                &:hover {
                    cursor: pointer;
                    background: rgba(255, 255, 255, 0.22);
                    box-shadow: 0 4px 15px 0 rgba(255, 255, 255, 0.4);
                    transform: scale(1.05);
                }

                &:active {
                    background: rgba(255, 255, 255, 0.32);
                    box-shadow: 0 4px 10px 0 rgba(255, 255, 255, 0.6);
                    transform: scale(0.98);
                }
            }
        }

        .product-bundle-custom-variant-misc-element {
            position: absolute;
            top: 120px;
            left: -15px;
            z-index: 1;
        }

        &.selected,
        &:hover {
            box-shadow: 0 4px 14px 0 rgba(143, 148, 173, 0.4);
            background-color: rgb(254 180 26);
            img {
                filter: grayscale(0);
            }
        }

        &:not(.selected) {
            &:hover {
                cursor: pointer;
                .bundle-header-title p {
                    opacity: 1;
                    color: var(--bundled-product-font-color);
                    text-shadow: .03125rem .03125rem 0 var(--bundled-product-font-color);
                    &.highlight {
                        color: var(--bundled-product-highlight-color);
                        text-shadow: .03125rem .03125rem 0 var(--bundled-product-highlight-color);
                    }
                    &.tiny {
                        color: var(--bundled-product-font-color);
                    }
                }
                img {
                    filter: grayscale(0);
                    opacity: 1;
                }
                button {
                    opacity: 1;
                }
            }

            .bundle-header-title p {
                transition: all 0.2s ease;
                color: var(--bundled-product-faded-color);
                text-shadow: .03125rem .03125rem 0 var(--bundled-product-faded-color);
                opacity: 0.8;
                &.highlight,
                &.tiny {
                    color: var(--bundled-product-faded-color);
                    text-shadow: .03125rem .03125rem 0 var(--bundled-product-faded-color);
                }
            }
            img {
                filter: grayscale(100%);
            }
            button, img {
                opacity: 0.8;
                transition: all 0.2s ease;
            }
        }
    }
}

.bundle-picker-title {
    font-size: 28px;
    margin: 0;
}

.bundle-picker-product-bundle-popup-modal {
    width: 90%;
    height: auto !important;
    border-radius: 32px;

    h1 {
        text-align: center;
    }
    .product-bundle-popup-modal-content-info-text-description {
        text-align: center;
        p {
            line-height: 22px;
        }
    }
    .product-bundle-popup-modal-content-info-text-description-media {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        gap: 10px;

        p {
            margin: 0;
            padding: 0;
        }
        ul {
            list-style: none;
            padding: 0;
            margin: 0;
            li {
                margin: 0;
                padding: 0;
                font-size: 14px;
            }
        }
    }
    .highlight {
        color: var(--bundled-product-highlight-color);
    }
}

.product-bundle-popup-modal {
    background: rgba(13, 10, 11, 0.84);

    .product-popup-modal__content {
        padding: 0 1rem 0 1.5rem
    }

    .product-popup-modal__content-info {
        padding-right: 2.4rem;
    }

    button.auto-select-btn {
        margin-left: 1rem;
        margin-top: 1rem;
        margin-bottom: 2.2rem;
    }
}

.zrx-sticky-atc-bar {
    display: none;
}

.marlenespetshop-product-bundle-custom-variant-options-container.mid-width {
    width: 62%;
    margin: 0 auto !important;
    margin-bottom: 30px !important;
    .marlenespetshop-product-bundle-custom-variant-options {
        height: 100%;
        width: 140px;
        min-width: 140px;
        .product-bundle-custom-variant-header {
            .bundle-header-title {
                p {
                    font-size: 16px;
                    &.tiny {
                        padding-left: 2rem;
                    }
                    &.highlight {
                     font-size: 17px;
                    }
                }
            }
        }
        .product-bundle-custom-variant-image {
            width: 110px;
            margin: 0 auto;
            margin-top: -50px;
        }
        .product-bundle-custom-variant-footer {
            .bundle-footer-button {
                padding: 3px 5px;
                .bundle-footer-button-icon {
                    height: 17px;
                }
                >div {
                    padding: .1rem;
                }
            }
        }
        .product-bundle-custom-variant-misc-element {
            width: 43px;
            top: 105px;
            left: -17px;
            svg {
                height: 46px;
            }
        }
    }
}

.inline-bundle-picker-slogan {
    width: 190px;
    font-size: 10px;
    font-weight: 400;
    text-align: right;
    .highlight {
        font-weight: 700;
        font-size: 11px;
        color: #1C6EF9;
        line-height: 12.38px;
    }
    .highlight-time {
        color: #027600;
        font-size: 11px;
    }
}

@media screen and (min-width: 750px) {
    .marlenespetshop-product-bundle-custom-variant-options {
        .product-bundle-custom-variant-header {
            .bundle-header-title {
                padding: 1.2rem 0 0 1rem;
            }
        }
    }
    .bundle-picker-product-bundle-popup-modal {
        width: 38%;
    }
    .product-bundle-popup-modal {
        background: rgba(13, 10, 11, 0.8);

        .product-popup-modal__content-info {
            padding-right: 4.4rem;
        }
    }
}

@media screen and (max-width: 749px) {
    .marlenespetshop-product-bundle-custom-variant-options-container.mid-width {
        width: 80%;
        margin: 0 auto 20px auto !important;
        .marlenespetshop-product-bundle-custom-variant-options {
            width: 130px;
            min-width: 130px;
            .product-bundle-custom-variant-footer {
                .bundle-footer-button {
                    padding: 2px 4px;
                    .bundle-footer-button-icon {
                        height: 15px;
                    }
                    >div {
                        padding: 0;
                    }
                }
            }
        }
    }
    .marlenespetshop-product-bundle-custom-variant-options {
        .product-bundle-custom-variant-header {
            .bundle-header-title {
                padding: 1.1rem 0 0 .5rem;
            }
        }
    }
}
