/* new small cart */
.ia-count {
    top: -10px;
    height: 17px;
    max-height: 17px;
    width: 17px;
    max-width: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px 2px 0px 2px;
    border-radius: 4px;
    font-size: 10px !important;
    color: var(--color-default) !important;
    background: var(--color-accent);
    border: solid 1px var(--color-accent);
    line-height: 100%;
}

.ia-smallcart {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 9999;
    background: rgba(23, 23, 23, 0.8);
    padding: 80px 20px;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-default);
}

.ia-smallcart * {
    font-family: 'Aeroport', sans-serif;
    letter-spacing: 0;
}

.ia-smallcart.is-active {
    opacity: 1;
    pointer-events: visible;
}

.ia-smallcart__wrapper {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 1360px;
    height: 100%;
}

.ia-smallcart__basket {
    position: absolute;
    top: 27px; 
    right: 0;
    padding: 20px;
    z-index: 999;
    width: 668px;
    max-width: 100%;
    height: auto;
    min-height: 300px;
    max-height: calc(100vh - 107px);
    border-radius: var(--border-radius-default);
    background: var(--color-default);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ia-smallcart__title {
    padding-bottom: 20px;
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 0px;
}

.ia-smallcart__list {
    overflow-y: auto; 
    max-height: 55vh;
    scrollbar-width: thin; 
    scrollbar-color: var(--color-primary) var(--color-surface-grey);
    padding: 15px 0 0;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
}

.ia-smallcart__info {
    padding: 30px 0 0;
    font-weight: 300;
    font-size: 14px;
    line-height: 140%;
}

.ia-smallcart__footer {
    margin-top: 13px;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    line-height: 140%;
}

.ia-smallcart__total {
    padding: 0 5px;
    white-space: nowrap;
}

.ia-smallcart__old {
    font-weight: 700;
    font-size: 14px;
    line-height: 140%;
    text-decoration: line-through;
    color: var(--color-secondary);
    white-space: nowrap;

}

.ia-smallcart__btn {
    margin-left: auto;
    min-width: 227px;
}



.ia-smallcart__basket-empty {
    text-align: center;
    margin: auto;
}

.ia-smallcart__title-empty {
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    text-align: center;
}

.ia-smallcart__info-empty {
    font-weight: 300;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0;
    text-align: center;
}

.ia-smallcart__btn-empty {
    margin: 20px auto 0;
    min-width: 227px;
}

.cart-item {
    padding: 19px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-dark-grey);
    gap: 22px;
}

.cart-item__img {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    background: var(--color-surface-grey);
    border-radius: var(--border-radius-image);
    overflow: hidden;
    align-items: center;
    justify-content: center;
    flex: none;
}

.cart-item__img img {
    mix-blend-mode: multiply;
    filter: brightness(1.05);
    object-fit: contain;
    object-position: center;
}

.cart-item__img a {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.cart-item__actions, .cart-item__counter {
    display: flex;
    align-items: center;
}

.cart-item__name {
    width: 41%;
    font-weight: 300;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0;
}

.cart-item__counter {
    border: 1px solid var(--color-grey);
    border-radius: var(--border-radius-input);
    margin-right: 8px;
}

.cart-item__btn {
    width: 22px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 300;
    font-size: 13px;
    line-height: 1;
}

.cart-item__quantity {
    border: none;
    width: 34px;
    text-align: center;
    appearance: none;
    height: 26px;
    font-size: 14px;
    line-height: 1;
}

.cart-item__delete {
    width: 24px;
    height: 24px;
    border: 1px solid var(--color-grey);
    border-radius: var(--border-radius-input);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}


.cart-item__delete svg {
    width: 12px;
    height: 13px;
    fill: var(--color-primary);
    pointer-events: none;
}

.cart-item__price {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.cart-item__price span {
    font-weight: 300;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0;
    white-space: nowrap;
}

.cart-item__old-price {
    font-weight: 300;
    font-size: 12px;
    line-height: 140%;
    letter-spacing: 0;
    vertical-align: middle;
    text-decoration: line-through;
    color: var(--color-secondary);

}

@media screen and (max-width: 1024px), 
       screen and (hover: none) {

        .ia-smallcart.is-active {
            display: none;
        }
}
