@keyframes a2cFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes a2cFadeOut {
    from { opacity: 1; }
    to { opacity: 0; height: 0; }
}

@keyframes a2cSlide {
    from { margin-bottom: 0 }
    to {  height: 0; margin-bottom: -90px; }
}

#persistentATCContainer {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 200;
    background: white;
    box-shadow: 0 3px 5px 0 rgb(0 0 0 / 20%);
    animation: a2cFadeIn 0.3s ease-out;
}

#persistentATCContainer.hiddenATC {
    animation: a2cFadeOut 0.4s forwards;
    overflow: hidden;
    /*display: none;*/
}

#persistentATCContainer .productTitle {
    flex: 1 0 40%;
    padding: 1rem 1rem 1rem 0;
}

#persistentATCContainer .product-actions {
    flex: 1 0 60%;
    display: flex;
    /* align-items: center; */
    padding: 1rem 0;
}

#persistentATCContainer .tableOfContents {
    flex: 0 1 100%;
    background-color: #f0f0f0;
    padding: 1.1rem 1rem;
}

#persistentATCContainer .tableOfContents a {
    margin-right: 24px;
    text-transform: capitalize;
}

#persistentATCContainer .tableOfContents a:last-child {
    margin-right: 0;
}

#persistentATCContainer .custom-select {
    flex: 0 1 100%;
}

#persistentATCContainer .product-actions > div:first-child {
    width: 100%;
    flex: 1 0 60%;
}

#persistentATCContainer .product-actions >div:first-child .custom-select.select {
    margin-bottom: 0;
}

#persistentATCContainer .product-actions .attribute-container {
    font-size: 0.85rem;
    margin-top: 5px;
}

#persistentATCContainer .product-actions .attribute-container a {
    text-decoration: underline;
}


#persistentATCContainer .product-actions .attribute-container .selected-attributes-heading {
    font-weight: bold;
}

#persistentATCContainer .custom-select.select .selected-element,
#persistentATCContainer .custom-select.select .select-item {
    padding: 0.7rem 1rem;
}

#persistentATCContainer .product-actions .button {
    flex: 1 1 40%;
    margin-left: 1.25rem;
    line-height: 0;
    max-height: 3.5em;
    text-transform: capitalize;
}

#persistentATCContainer .yotpo .yotpo-bottomline {
    align-items: center;
}

#persistentATCContainer .yotpo .yotpo-bottomline .yotpo-stars {
    margin-right: 8px;
}

#persistentATCContainer .yotpo .yotpo-bottomline .yotpo-stars .rating-star {
    background-image: none !important;
    color: #f7941f !important;
}

@media screen and (max-width: 1023px ) {
    #persistentATCContainer > .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media screen and (max-width: 768px) {
    #persistentATCContainer .product-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        background: white;
        box-shadow: 0 -3px 5px 0 rgb(0 0 0 / 20%);
        padding: 1rem;
        width: 100%;
    }

    #persistentATCContainer.hiddenATC .product-actions {
        animation: a2cSlide 0.4s forwards;
    }


    #persistentATCContainer .tableOfContents {
        display: none;
    }

    #persistentATCContainer .custom-select.select .select-items {
        bottom: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 -3px 5px 0 rgb(0 0 0 / 20%);
        border-width: 0 0 1px 0;
        transform: none;
    }

    #persistentATCContainer .custom-select.select .select-item {
        padding: 0.5rem 1rem;
    }

    #persistentATCContainer .custom-select.select {
        border: 0;
        position: static;
    }

    #persistentATCContainer .custom-select.select::after {
        display: none;
    }

    #persistentATCContainer .custom-select.select:hover {
        box-shadow: none;
    }

    #persistentATCContainer .custom-select.select .selected-element {
        padding: 0;
    }

    #persistentATCContainer .custom-select.select .selected-element .term-name {
        font-size: 14px;
    }

    #persistentATCContainer .custom-select.select .selected-element .term-name::after {
        border: 3px solid #4a4a4a;
        border-radius: 2px;
        border-right: 0;
        border-top: 0;
        content: " ";
        display: inline-block;
        height: 0.625em;
        pointer-events: none;
        transform: rotate(-45deg);
        transform-origin: center;
        width: 0.625em;
        position: relative;
        left: 12px;
        top: -2px;
    }

    #persistentATCContainer .custom-select.select .select-item .term-name {
        font-size: 16px;
    }

    #persistentATCContainer .custom-select.select .selected-element .term-price {
        display: block;
        float: none;
    }

    #persistentATCContainer .custom-select.select .select-item .term-price {
        margin-right: 0;
    }

    #persistentATCContainer .product-actions > div:first-child {
        width: 100%;
        flex: 1 1 45%;
    }

    #persistentATCContainer .product-actions .button {
        flex: 1 1 55%;
        margin-left: 1rem;
    }
}

.term-dimensions {
    display: none;
}

@media (min-width:768px) and (max-width:980px) {

    #persistentATCContainer .productTitle {
        flex: 1 0 20%;
    }

    #persistentATCContainer .productTitle .productName {
        font-size: 22px;
    }

    #persistentATCContainer .product-actions > div:first-child {
        padding-right: 1.25em;
        border-collapse: inherit;
    }

    #persistentATCContainer .product-actions .button {
        flex: 1 1 auto;
        padding-left: 30px;
        margin-left: 0;
    }

    #persistentATCContainer .product-actions {
        flex: 1 0 60%;
    }

    #persistentATCContainer .custom-select span {
        font-size: 16px;
    }

    #persistentATCContainer .custom-select.select .select-item .term-price {
        margin-top: 2px;
    }
}

@media (min-width:300px) and (max-width:382px) {
    #persistentATCContainer .product-actions .button:lang(fr-CA) {
        font-size: 12px;
    }

    #persistentATCContainer .custom-select span:lang(fr-CA) {
        font-size: 13px!important;
    }

    #persistentATCContainer .custom-select.select .select-item .term-price:lang(fr-CA) {
        margin-top: 6px;
    }
}
