/*render sticky menu*/
.ast-desktop header#masthead, .ast-header-break-point header#masthead{
    position: sticky;
    top: 0;
}

/* Change search bar button in woocommerce pages*/

.woocommerce .wc-block-product-search__fields button{
    border-style: none !important;
    border-radius: 0 !important;
}

/* css for custom product style*/

.digital-code-custom-product-flow-title-wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
}

.digital-code-custom-product-wrapper {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    padding: 15px;
    height: 100%;
    gap: 10px;
}

.digital-code-custom-product-flow-title-wrapper h2 {
    font-size: 18px;
    margin: 0;
    text-align: left;
}

.digital-code-custom-product-image-and-title-and-desc-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.digital-code-custom-product-image-wrapper img {
    width: 150px;
    height: auto;
}

.digital-code-custom-product-desc-wrapper {
    flex: 1;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.digital-code-custom-product-price {
    text-align: center;
    font-size: 1rem;
    margin-top: 10px;
    font-weight: bold;
}

.digital-code-custom-product-cart-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    text-align: left;
}


/* position sticky for archive*/
.archive .sidebar-main{
    position: sticky;
    top: 95px;
}

/* style onsale span*/

.woocommerce span.onsale {
    background-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    padding: 8px 8px !important;
    height: 0.8rem !important;
    min-height: fit-content !important;
    line-height: 0.8rem !important;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 100Vmax !important;
    z-index: 10;
}

/* style description paragraph to keep just 3 lines and then ellipsis*/
.digital-code-custom-product-wrapper .custom-product-description{
    display: -webkit-box;
    -webkit-line-clamp: 4;       /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* arrange footer divs inside to be centered*/
footer .ast-footer-copyright, footer .footer-navigation #astra-footer-menu{
    text-align: center;
}


