.fm-cart-trigger-container {
    display: flex;
}

.fm-cart-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fm-cart-trigger .icon {
    display: flex;
}

.fm-cart-trigger .icon svg {
    width: 25px;
    height: 25px;
}

.fm-cart-trigger .label {
    line-height: 1;
}

.fm-cart-trigger .fm-cart-count {
    position: absolute;
    top: -10px;
    right: 5px;
    font-size: 10px;
    width: 18px;
    font-weight: 600;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    border-radius: 50%;
}

.fm-cart {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    width: 400px;
    max-width: 100%;
    overflow-y: auto;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
    z-index: 999999;
}

.fm-cart.open {
    transform: translateX(0) !important;
}

.fm-cart-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease-in-out;
    z-index: 999998;
}

.fm-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.fm-cart .fm-cart-empty {
    display: none;
}

.fm-cart.empty .fm-cart-empty {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.7rem;
    z-index: 10;
}

.fm-cart.empty .fm-cart-empty .icon svg {
    width: 50px;
    height: 100%;
}

.fm-cart.empty .fm-cart-empty .fm-cart-close {
    background: none !important;
    border: none;
    padding: 0;
    color: #000;
    outline: none;
    font-size: 30px;
    line-height: 1;
    position: absolute;
    top: 15px;
    right: 15px;
}

.fm-cart .fm-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background-color: #428bca;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.fm-cart .fm-cart-header button {
    background: none !important;
    border: none;
    padding: 0;
    color: #fff;
    outline: none;
    font-size: 30px;
    line-height: 1;
}

.fm-cart .fm-cart-close svg {
    width: 30px;
    height: 30px;
}

.fm-cart .fm-cart-header button svg path {
    fill: #fff;
}

.fm-cart .cart-item {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid #e7eaee;
    position: relative;
    gap: 10px;
    background-color: #fff;
}

.fm-cart .cart-item .cart-item-image {
    width: 25%;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fm-cart .cart-item .cart-item-content {
    width: 100%;
    flex-shrink: 1;
    padding-left: 8px;
}

.fm-cart .cart-item .cart-item-content .cart-item-info {
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3;
    font-size: 1rem;
    color: #000;
    text-align: left;
    font-weight: 600;
}

.fm-cart .cart-item .cart-item-data {
    font-size: 12px;
    font-weight: normal;
}

.fm-cart .cart-item .cart-item-data .variation {
    display: inline-grid;
    grid-template-columns: auto auto;
}

.fm-cart .cart-item .cart-item-data dd {
    margin: 0;
}

.fm-cart .cart-item .cart-item-data p {
    margin: 0;
}

.fm-cart .cart-item .cart-item-content .cart-item-info .cart-item-sku {
    font-size: 0.7rem;
    color: #8d8d8d;
    margin: 3px 0;
}

.fm-cart .cart-item .cart-item-content .cart-item-info .cart-item-price {
    font-weight: 400;
}

.fm-cart .cart-item .cart-item-content > div {
    margin-bottom: 2px;
}

.fm-cart .cart-item .cart-item-controls .cart-item-quantity {
    display: flex;
    padding-top: 7px;
}

.fm-cart .cart-item .cart-item-controls .cart-item-quantity > div {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e7eaee;
    padding: 2px;
    margin-right: 8px;
}

.fm-cart .cart-item .cart-item-controls .cart-item-quantity > div button {
    width: 40px;
    height: 38px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #000;
    border-radius: 0;
    background-color: #fff;
    padding: 0;
    box-shadow: none;
}

.fm-cart
    .cart-item
    .cart-item-controls
    .cart-item-quantity
    > div
    button:first-child {
    border-right: 1px solid #e7eaee;
}

.fm-cart
    .cart-item
    .cart-item-controls
    .cart-item-quantity
    > div
    button:last-child {
    border-left: 1px solid #e7eaee;
}

.fm-cart .cart-item .cart-item-controls .cart-item-quantity > div input {
    flex-shrink: 0;
    width: 40px;
    height: 38px;
    font-size: 16px;
    line-height: 22px;
    border-radius: 0;
    border: 0;
    text-align: center;
    padding: 0;
    outline: none;
    background-color: #fff;
    color: #000;
}

.fm-cart .cart-item .cart-item-controls .cart-item-quantity .cart-item-remove {
    color: #000;
    border: 1px solid #e7eaee;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    outline: none;
    border-radius: 0;
    background-color: #fff;
    padding: 0;
    box-shadow: none;
}

.fm-cart
    .cart-item
    .cart-item-controls
    .cart-item-quantity
    .cart-item-remove
    svg {
    width: 13px;
    height: 13px;
}

.fm-cart .fm-cart-footer {
    width: 100%;
    position: -webkit-sticky;
    position: sticky;
    top: 100%;
    flex-shrink: 0;
    padding: 16px;
    box-shadow: 0 0 32px 0 rgb(0 0 0 / 10%);
    background-color: #fff;
}

.fm-cart .fm-cart-footer .totals > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
}

.fm-cart .fm-cart-footer .totals > div:last-child {
    font-weight: bold;
}

.fm-cart .fm-cart-footer .fm-cart-checkout {
    display: inline-flex;
    min-width: 8.5rem;
    padding: 0.75rem 1.5rem;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    letter-spacing: 0.0625rem;
    font-weight: 700;
    height: 3rem;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0.875rem;
    color: #fff;
    background-color: #428bca;
    width: 100%;
    border: none;
    margin-bottom: 10px;
}

.fm-cart-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.fm-cart-loader .fm-loader {
    width: 48px;
    height: 48px;
    border: 5px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

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