.fss-product-topping {
    font-size: 0.8rem;
}

.fss-topping-checkbox > .optional {
    display: none;
}

.fss-hide {
    display: none;
}

#FS_TOPPING_PARENT_ID h2 {
    font-weight: bold;
    font-size: 1.6rem;
    margin-block: 0.5rem;
}

#FS_TOPPING_PARENT_ID h3 {
    font-weight: bold;
    font-size: 1.2rem;
    margin-block: 0.5rem;
}

#FS_TOPPING_PARENT_ID .input-checkbox {
    border: 1px solid var(--wc-form-border-color, lightgray);
    border-radius: var(--wc-form-border-radius, 0.5rem);
    padding: 0.5rem;
}

#FS_TOPPING_PARENT_ID .input-checkbox * {
    user-select: none;
}

#FS_TOPPING_PARENT_ID .input-checkbox label {
    cursor: pointer;
}

#freya_sync_commentary {
    resize: vertical;
    max-height: 10rem;
}

.fss-custom-price {
    display: block;
    font-size: 0.9rem;
}

ul.fss-cart-topping-list {
    list-style-type: none;
    font-size: 0.9rem;
    border-top: 1px solid lightgray;
    margin: 0.25rem 0 0 0;
    padding-top: 0.25rem;
}

.fss-topping-label {
    font-size: 0.9rem;
}

.fss-topping-quantity {
    text-align: center;
}

#FS_TOPPING_PARENT_ID label.fss-topping-checkbox[data-autocheck] {
    cursor: default;
    pointer-events: none;

    & > input {
        filter: grayscale();
        pointer-events: none;
        cursor: default;
    }
}

dialog#fss-topping-dialog {
    border-radius: var(--wc-form-border-radius);
    border-width: var(--wc-form-border-width);
    max-inline-size: min(80vw, 400px);
    display: flex;
    flex-direction: column;
    gap: 1rem;

    &::backdrop {
        background: rgba(0, 0, 0 / 40);
        backdrop-filter: blur(0.1rem);
    }

    &[open] {
        animation: fss-scale-up 0.3s cubic-bezier(0.25, 0, 0.3, 1);
    }

    &:not([open]) {
        opacity: 0;
        pointer-events: none;
    }

    & h1 {
        line-height: normal;
        font-size: 1.5rem;
        font-weight: bold;
        margin: 0;
    }

    & ul {
        margin: 0;
        list-style: disc;
        padding-inline-start: 2rem;

        & li::marker {
            display: inline !important;
            content: normal;
        }
    }

    & .fss-topping-close-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@keyframes fss-scale-up {
    0% {
        transform: scale(0.2);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}
