/* ============================================================
   CF Widget — Kit Items
   Lista vertical de productos complementarios del kit.
   ============================================================ */

.cw-kit-items {
    width: 100%;
}

.cw-kit-items__title {
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 20px;
    padding: 0;
}

/* ── Lista ────────────────────────────────────────────────── */

.cw-kit-items__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Tarjeta ──────────────────────────────────────────────── */

.cw-kit-items__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #E8E0D5;
    border-radius: 12px;
    box-sizing: border-box;
    width: 100%;
}

/* ── Link (imagen + cuerpo) ───────────────────────────────── */

.cw-kit-items__card-link {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.cw-kit-items__card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* ── Imagen ───────────────────────────────────────────────── */

.cw-kit-items__card-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #F5F0EA;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cw-kit-items__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Cuerpo de texto ──────────────────────────────────────── */

.cw-kit-items__card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cw-kit-items__card-name {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    display: block;
}

.cw-kit-items__card-desc {
    color: #888888;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Precio ───────────────────────────────────────────────── */

.cw-kit-items__card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.cw-kit-items__price-sale {
    color: #C09850;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}

.cw-kit-items__price-regular {
    color: #999999;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    text-decoration: line-through;
}

/* ── Botón "+" ────────────────────────────────────────────── */

.cw-kit-items__card-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #C09850;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 200ms ease, transform 150ms ease;
    appearance: none;
    -webkit-appearance: none;
}

.cw-kit-items__card-btn:not(:disabled):hover {
    background: #A07838;
}

.cw-kit-items__card-btn:not(:disabled):active {
    transform: scale(0.92);
}

.cw-kit-items__card-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cw-kit-items__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
}

/* Font Awesome y otros icon-fonts */
.cw-kit-items__icon-wrap i {
    display: block;
    line-height: 1;
    font-size: inherit;
}

/* SVGs de Elementor (e-font-icon-svg) — sin width/height propios, los ponemos en 1em */
.cw-kit-items__icon-wrap svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* ── Spinner ──────────────────────────────────────────────── */

.cw-kit-items__card-btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cw-kit-items-spin 0.7s linear infinite;
    position: absolute;
}

.cw-kit-items__card-btn.cw-loading .cw-kit-items__icon-wrap        { display: none; }
.cw-kit-items__card-btn.cw-loading .cw-kit-items__card-btn-spinner { display: block; }

@keyframes cw-kit-items-spin {
    to { transform: rotate(360deg); }
}
