﻿.cart-wrapper {
    font-family: 'DM Sans', sans-serif;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    min-height: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-header-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    /*    text-transform: uppercase;*/
    color: #8a8a9a;
}

.cart-header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #e2e2ee, transparent);
}

.cart-header-count {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    background: #f0f0ff;
    color: #5a5aff;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    color: #b0b0c0;
}

.cart-empty-icon {
    font-size: 2rem;
    opacity: 0.4;
}

.cart-empty-text {
    font-size: 0.85rem;
    font-weight: 400;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
    background: #fafafe;
    border: 1px solid #eeeef8;
    border-radius: 10px;
    padding: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    animation: slideIn 0.25s ease both;
}

    .cart-item:hover {
        border-color: #d0d0f0;
        box-shadow: 0 2px 12px rgba(90, 90, 255, 0.06);
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ebebff;
    color: #5a5aff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.cart-item-account {
    font-family: 'DM Mono', monospace;
    font-size: 0.82rem;
    font-weight: 500;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-meta {
    font-size: 0.72rem;
    color: #9090a8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-amount {
    font-family: 'DM Mono', monospace;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1a1a2e;
    white-space: nowrap;
    flex-shrink: 0;
}

    .cart-item-amount span {
        font-size: 0.7rem;
        color: #9090a8;
        font-weight: 400;
    }

.cart-remove-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #c0c0d0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    padding: 0;
}

    .cart-remove-btn:hover {
        background: #fff0f0;
        color: #e05555;
    }

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    border-top: 1px solid #eeeef8;
}

.cart-total-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #8a8a9a;
}

.cart-total-amount {
    font-family: 'DM Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a2e;
}

    .cart-total-amount span {
        font-size: 0.75rem;
        color: #9090a8;
    }


.cart-item-icon.initials {
    width: 45px;
    height: 45px;
    color: #725aff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

    .cart-item-icon.initials.initials-duplicate {
        background: #ff000025;
        color: #e02424;
        position: relative;
    }


.cart-item-invalid {
    border-color: #ff00002f;
    background: #ff0e0010;
}

.cart-item-duplicate-tag {
    color: #e02424;
    font-weight: 600;
    font-size: 12px;
}

.cart-duplicate-warning {
    background: #fdeceb;
    border: 1px solid #f3c6c2;
    color: #c81e1e;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12.5px;
}
