/* Calls + Voicemail additions. Loaded after portal.css. */

/* --- Voicemail row buttons ------------------------------------------ */

.zc-vm-del,
.zc-vm-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    background: #fff;
    color: #64748B;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.zc-vm-mark:hover { background: #F1F5F9; border-color: #CBD5E1; color: #0F172A; }
.zc-vm-del:hover  { background: #FEF2F2; border-color: #FCA5A5; color: #DC2626; }

.zc-vm-del:disabled,
.zc-vm-mark:disabled { cursor: default; }

/* Armed state: the first click on delete asks for a second one. */
.zc-vm-del.zc-armed {
    background: #DC2626;
    border-color: #DC2626;
    color: #fff;
    animation: zc-arm-pulse 1.1s ease-in-out infinite;
}

@keyframes zc-arm-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); }
    50%      { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .zc-vm-del.zc-armed { animation: none; }
}

/* --- Call recording upsell ------------------------------------------ */

.zc-rec-upsell {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #F8FAFC;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.zc-rec-upsell-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.zc-rec-upsell-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #E1FCEF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zc-rec-upsell-title {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
}

.zc-rec-upsell-tag {
    display: inline-block;
    vertical-align: 2px;
    margin-left: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #EFF6FF;
    color: #2563EB;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.zc-rec-upsell-sub {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #64748B;
    max-width: 560px;
}

.zc-rec-upsell-feats {
    list-style: none;
    margin: 14px 0 16px;
    padding: 0 0 0 58px;
}

.zc-rec-upsell-feats li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 8px;
    font-size: 13.5px;
    color: #374151;
}

.zc-rec-upsell-feats svg { flex-shrink: 0; margin-top: 2px; }

.zc-rec-upsell-btn {
    margin-left: 58px;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    background: #1D9E75;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.zc-rec-upsell-btn:hover:not(:disabled) { background: #17805E; }
.zc-rec-upsell-btn:disabled { opacity: .6; cursor: default; }

.zc-rec-upsell-done {
    margin-left: 58px;
    padding: 10px 16px;
    border: 1px solid #6EE7B7;
    border-radius: 8px;
    background: #D1FAE5;
    color: #065F46;
    font-size: 13.5px;
    display: inline-block;
}

@media (max-width: 640px) {
    .zc-rec-upsell-feats,
    .zc-rec-upsell-btn,
    .zc-rec-upsell-done { margin-left: 0; padding-left: 0; }
}

/* --- "Not linked yet" notice ---------------------------------------- */

.zc-pbx-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    background: #EFF6FF;
    color: #1E3A5F;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 13.5px;
    line-height: 1.55;
}

.zc-pbx-notice-icon { flex-shrink: 0; margin-top: 1px; }

/* --- Toast ----------------------------------------------------------- */

.zc-pbx-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    max-width: 340px;
    padding: 12px 18px;
    border-radius: 8px;
    background: #0a1628;
    color: #fff;
    font-size: 13.5px;
    line-height: 1.45;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .22);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s;
}

.zc-pbx-toast-in  { opacity: 1; transform: translateY(0); }
.zc-pbx-toast-err { background: #B91C1C; }
