
.fast-cart-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.5); }

html.modal-open {
    overflow: hidden;
    height: 100%;
}

#fast-cart-modal{
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity .3s ease-out;
    justify-content: center;
    align-items: center;
}
#fast-cart-modal.open{
    opacity: 1;
    display: flex;
}
.fast-cart-content {
    position: relative;
    background: #fff;
    width: 800px;
    height: auto;
    padding: 15px;
    border: 3px solid #e0e0e0;
    box-shadow: 3px 3px 5px 0 #000000;
    overflow: auto;
    max-height: 80vh;
    max-width: 95vw;
}
.fast-cart-close {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 20px;
    padding: 5px 5px 0;
    cursor: pointer;
}
.fast-cart-product{
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}
.fast-cart-product .fc-gallery{
    width: 150px;
}
.fast-cart-product .fc-summary{
    flex: 1;
}
.fast-cart-product .fc-summary .fc-brand a{
    color: rgb(141, 144, 145);
    font-weight: 600;
}
.fast-cart-product .fc-summary .product_title{
    margin-bottom: 5px;
    font-size: 24px;
}
.fast-cart-product .price{
    color: #18c139;
    font-weight:700;
    font-size: 1.5em;
    line-height: 1;
    margin-bottom: 9px;
}
.fast-cart-product .price ins {
    text-decoration:none;
}
.fast-cart-product .price del {
    color: #ed1c24;
    font-size: 0.9em;
    opacity: .5;
    font-weight:400;
}
.fast-cart-product .fc-add-to-cart{
    flex: 1 1 100%;
    margin-top: 13px;
}
.fast-cart-product .fc-add-to-cart .add-to-cart-wrap{
    display: flex;
    gap: 5px;
}
.fast-cart-product .fc-add-to-cart .add-to-cart-wrap button.button{
    flex: 1;
    margin-bottom: 0;
    margin-top: 0;
    border: none;
    background-color: #ed1c24;
}
.fast-cart-product .fc-add-to-cart .add-to-cart-wrap button.button:hover{
    background-color: #000000;
    color: #ffffff;
}
.fast-cart-product .fc-add-to-cart .add-to-cart-wrap button.button.disabled{
    cursor: not-allowed;
    background-color: #e77676;
}
.fast-cart-product .fc-add-to-cart .add-to-cart-wrap button.button.disabled:hover{
    background-color: #8d9091;
}

.fast-cart-product .fc-add-to-cart div.stock{
    min-height: 22px;
    margin-bottom: 5px;
}
.fast-cart-product .fc-add-to-cart p.stock {
    font-size: 1em;
    font-weight: 900;
    margin: 0;
}
.fast-cart-product .fc-add-to-cart p.stock{
    color: #18c139;
}
.fast-cart-product .fc-add-to-cart p.out-of-stock {
    color: #aa0000;
}

#fast-cart-body div.quantity{
    position: relative;
    width: 5em;
}
#fast-cart-body div.quantity input[type="number"]{
    width: 100%;
    height: 100%;
    padding-right: 0;
    padding: 0.4em 0em 0.4em 0.8em;
}
#fast-cart-body div.quantity span{
    display: block;
    position: absolute;
    z-index: 1;
    right: 0;
    width: 1.5em;
    height: 50%;
    text-align: center;
    cursor: pointer;
    background-color: #ed1c24;
    color: #ffffff;
}
#fast-cart-body div.quantity span:hover{
    background-color: #411867;
}
#fast-cart-body div.quantity span.quantity_inc{
    top:0;
}
#fast-cart-body div.quantity span.quantity_dec{
    bottom:0;
    border-top:1px solid #ffffff;
}
#fast-cart-body div.quantity span:before{
    font-family:'fontello';
}
#fast-cart-body div.quantity span.quantity_inc:before{
    content:'\e835';
}
#fast-cart-body div.quantity span.quantity_dec:before{
    content:'\e828';
}

#fast-cart-body .fc-dropdown {
    position: relative;
    width: 100%;
}

#fast-cart-body .fc-single-attribute{
    padding: 0.563em 1.2em;
    max-width: 100%;
    width: 280px;
    display: inline-block;
    color: #8d9091;
    border: 3px solid #e0e0e0;
    box-sizing: border-box;
    line-height: 1.2857em;
}
#fast-cart-body .fc-dropdown-toggle {
    width: 280px;
    background: #ffffff;
    text-align: left;
    display: inline-block;
    cursor: pointer;
    padding: 0.563em 1.2em;
    max-width: 100%;
    color: #8d9091;
    border: 3px solid #e0e0e0;
    box-sizing: border-box;
    line-height: 1.2857em;

    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItY2hldnJvbi1kb3duIj48cG9seWxpbmUgcG9pbnRzPSI2IDkgMTIgMTUgMTggOSI+PC9wb2x5bGluZT48L3N2Zz4=) no-repeat;
    background-size: 16px;
    -webkit-background-size: 16px;
    background-position: calc(100% - 12px) 50%;
    -webkit-background-position: calc(100% - 12px) 50%;
}

#fast-cart-body  table.variations th {
    text-align: right;
    padding-right: 15px;
    color: #8d9091;
}

#fast-cart-body .fc-dropdown-menu{
    display: none;
}

.fc-floating-dropdown {
    border: 3px solid #e0e0e0;
    background: #fff;
    max-height: 140px;
    overflow-y: auto;
    position: absolute;
    z-index: 10000;
}

.fc-floating-dropdown .fc-dropdown-menu{
    margin: 0;
    padding: 0;
}

.fc-floating-dropdown .fc-option {
    padding: 8px 12px;
    cursor: pointer;
    margin: 0;
}

.fc-floating-dropdown .fc-option:hover {
    background: #51b7ff;
}

.fc-floating-dropdown .fc-option.selected {
    background: #51b7ff;
    font-weight: 500;
}

.fc-floating-dropdown .fc-option.out-of-stock {
    background: #8080801c;
    color: #8080807a;
}

/* Success notification */
.fc-success-notification {
    position: fixed;
    bottom: 5%;
    left: 15%;
    right: 15%;
    background: rgba(24, 193, 57, 0.99);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    z-index: 10001;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}

.fc-success-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: #0f8a2f;
}

/* Error notification */
.fc-error-notification {
    position: fixed;
    top: 5%;
    left: 15%;
    right: 15%;
    background: rgba(237, 28, 36, 0.99);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    z-index: 10001;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.fc-error-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: #b0141a;
}

/* Loading animation */
.fc-loading {
    min-height: 275px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.fc-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #ed1c24;
    border-radius: 50%;
    animation: fcspin 1s linear infinite;
    margin-bottom: 15px;
}

.fc-loading .loading-text {
    color: #8d9091;
    font-size: 16px;
    font-weight: 500;
}

@keyframes fcspin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media screen and (max-width: 599px){
    .fast-cart-product .fc-summary .product_title{
        margin-bottom: 5px;
        font-size: 16px;
    }
    .fast-cart-product .price{
        font-size: 1.2em;
    }
    .fast-cart-product .fc-summary .variations{
        font-size: 14px;
    }
    #fast-cart-body table.variations th{
        padding-right: 6px;
    }
    .fast-cart-product .fc-summary .variations td{
        width: 100%;
    }
    #fast-cart-body .fc-dropdown-toggle {
        width: 100%;
        padding: 7px 25px 5px 10px;
        border: 2px solid #e0e0e0;
        line-height: 1;
        background-size: 14px;
        -webkit-background-size: 14px;
        background-position: calc(100% - 4px) 50%;
        -webkit-background-position: calc(100% - 4px) 50%;
    }
    #fast-cart-body .fc-single-attribute{
        width: 100%;
        padding: 7px 25px 5px 10px;
        border: 2px solid #e0e0e0;
        line-height: 1;
    }

    .fc-floating-dropdown{
        border-width: 2px;
        font-size: 14px;
        line-height: 16px;
    }
    .fc-floating-dropdown .fc-option {
        padding: 5px 10px;
    }

    .fc-error-notification,
    .fc-success-notification{
        left: 5%;
        right: 5%;
    }
}
@media screen and (max-width: 475px){
    .fast-cart-product {
        gap: 0 10px;
    }
    .fast-cart-product .fc-gallery {
        flex: 1;
    }
    .fast-cart-product .fc-summary {
        min-width: 220px;
    }

    .fc-error-notification,
    .fc-success-notification{
        padding: 10px;
        font-size: 14px;
    }
}