/* ── WRAPPER ──────────────────────────────────────────────── */
.ciw-wrapper {
    width: 100%;
}

/* ── LIST ─────────────────────────────────────────────────── */
.ciw-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── SPINNER ──────────────────────────────────────────────── */
.ciw-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e5e5e5;
    border-top-color: #999;
    border-radius: 50%;
    animation: ciw-spin 0.7s linear infinite;
    margin: 32px auto;
}
@keyframes ciw-spin { to { transform: rotate(360deg); } }

/* ── EMPTY ────────────────────────────────────────────────── */
.ciw-empty {
    color: #aaa;
    font-size: 14px;
    margin: 0;
    padding: 32px 0;
    text-align: center;
}

/* ── ITEM ─────────────────────────────────────────────────── */
.ciw-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fff;
    position: relative;
    transition: opacity 0.2s ease;
}
.ciw-item:last-child {
    border-bottom: none;
}
.ciw-item.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

/* ── IMAGE ────────────────────────────────────────────────── */
.ciw-img {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f5f5;
}
.ciw-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── BODY ─────────────────────────────────────────────────── */
.ciw-body {
    flex: 1;
    min-width: 0;
}

.ciw-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin: 0 0 3px;
    line-height: 1.3;
}

.ciw-meta {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

/* ── PRICE ────────────────────────────────────────────────── */
.ciw-price {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #111;
}
.ciw-price del {
    font-weight: 400;
    margin-right: 4px;
}
.ciw-price del .woocommerce-Price-amount {
    color: #aaa;
}
.ciw-price ins {
    text-decoration: none;
}
.ciw-price.is-sale ins .woocommerce-Price-amount {
    color: #cc0000;
}

/* ── QTY ──────────────────────────────────────────────────── */
.ciw-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    background-color: #f5f5f5;
    margin-top: 10px;
}

.ciw-qty-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    transition: background-color 0.15s;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}
.ciw-qty-btn:hover:not(:disabled) {
    background-color: rgba(0,0,0,0.06);
}
.ciw-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.ciw-qty-btn i,
.ciw-qty-btn svg {
    font-size: 11px;
    width: 11px;
    height: 11px;
    display: block;
    pointer-events: none;
}

.ciw-qty-value {
    min-width: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    user-select: none;
}

/* ── REMOVE ───────────────────────────────────────────────── */
.ciw-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    flex-shrink: 0;
    transition: color 0.2s;
    line-height: 1;
    align-self: flex-start;
}
.ciw-remove:hover {
    color: #cc0000;
}
.ciw-remove i,
.ciw-remove svg {
    font-size: 14px;
    width: 14px;
    height: 14px;
    display: block;
    pointer-events: none;
}
