/* ═════════════════════════════════════════════════════════
   SmartDeal — PDP CRO widgets (2026-05-06)
   3 bloques: real-time activity + risk reversal + vs nuevo
   ═════════════════════════════════════════════════════════ */

/* ─── Widget #1: REAL-TIME ACTIVITY ─── */
.sd-activity {
    margin: 12px 0 16px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 100%);
    border: 1px solid #FDBA74;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #422006;
}
.sd-activity__row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sd-activity__row strong { color: #9a3412; font-weight: 700; }
.sd-activity__icon {
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}
.sd-activity__row--viewers strong { color: #047857; }
.sd-activity__pulse {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
    position: relative;
    animation: sdPulse 1.6s ease-in-out infinite;
}
.sd-activity__pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #10b981;
    opacity: 0;
    animation: sdPulseRing 1.6s ease-out infinite;
}
@keyframes sdPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}
@keyframes sdPulseRing {
    0%   { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(2.0); opacity: 0; }
}
.sd-activity__row--last { color: #57534e; font-size: 12.5px; }
.sd-activity__row--last strong { color: #422006; }
@media (max-width: 480px) {
    .sd-activity__viewers-label { font-size: 12px; }
}

/* ─── Widget #2: RISK REVERSAL HERO ─── */
.sd-risk-reversal {
    margin: 18px 0 0;
    padding: 18px;
    background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
    border: 1.5px solid #16a34a;
    border-radius: 12px;
}
.sd-risk-reversal__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
    color: #14532d;
    letter-spacing: -0.01em;
}
.sd-risk-reversal__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.sd-risk-reversal__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.sd-risk-reversal__list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.sd-risk-reversal__list strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #14532d;
    line-height: 1.3;
    margin-bottom: 2px;
}
.sd-risk-reversal__list span {
    display: block;
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
}
@media (max-width: 600px) {
    .sd-risk-reversal__list { grid-template-columns: 1fr; gap: 10px; }
    .sd-risk-reversal { padding: 14px; }
}

/* ─── Widget #3: VS NUEVO EXPANDIBLE ─── */
.sd-vs-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin: 8px 0 0;
    padding: 8px 12px;
    background: rgba(22, 163, 74, 0.06);
    border: 1px dashed #86efac;
    border-radius: 8px;
    color: #14532d;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.sd-vs-toggle:hover {
    background: rgba(22, 163, 74, 0.1);
    border-color: #4ade80;
    border-style: solid;
}
.sd-vs-toggle__chevron {
    flex-shrink: 0;
    transition: transform 0.22s ease;
}
.sd-vs-toggle[aria-expanded="true"] .sd-vs-toggle__chevron { transform: rotate(180deg); }

.sd-vs-detail {
    margin-top: 8px;
    padding: 14px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    animation: sdVsFade 0.28s ease;
}
@keyframes sdVsFade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sd-vs-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.sd-vs-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #1f2937;
}
.sd-vs-mark {
    flex-shrink: 0;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    margin-top: 1px;
}
.sd-vs-list__yes .sd-vs-mark {
    background: #d1fae5;
    color: #047857;
}
.sd-vs-list__no .sd-vs-mark {
    background: #f3f4f6;
    color: #6b7280;
}
.sd-vs-list__no { color: #6b7280; }

.sd-vs-savings-eq {
    padding: 10px 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-radius: 8px;
    font-size: 13px;
    color: #422006;
    line-height: 1.4;
    text-align: center;
}
.sd-vs-savings-eq strong {
    color: #9a3412;
    font-weight: 800;
}
