:root {
  --cw-bg: #ffffff;
  --cw-text: #1f2937;
  --cw-text-light: #ffffff;
  --cw-primary: #2563eb;
  --cw-danger: #ef4444;
  --cw-success: #34c759;
  --cw-warning: #f59e0b;
  --cw-held: #e5e7eb;
  --cw-radius: 16px;
  --cw-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --ds-call-status-height: 44px;
  --cw-bg-light: #f9f9f9;
  --cw-bg-gray: #f3f4f6;
  --cw-border-color: #e5e7eb;
}

#cw-incoming-call-toast {
    position: fixed;
    top: 3rem;
    right: 1rem;
    width: 450px;
    min-width: 300px;
    max-width: 550px;
    z-index: 400;
    
    background-color: white;
    border-radius: 1rem;
    padding-inline: 2rem;
    padding-block: 2rem;
    
    border: solid 1px #ddd;
    box-shadow: -4px 4px 10px rgba(90,90,90, 0.2);
    
    transform: translateX(110%);
    opacity: 0;
    
    transition: transform 300ms cubic-bezier(.22, 1, .36, 1), opacity 200ms ease;
}

#cw-incoming-call-toast.show {
    transform: translateX(0%);
     opacity: 1;
}

#cw-reason-text {
    font-size: 0.85rem;
    color: var(--cw-warning);
    text-align: left;
    font-style: italic;
}

#cw-toast-event {
    font-weight: 400;
}

.cw-btn-round {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    
    cursor: pointer;
    
    border: none;
    outline: 0;
    
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s;
    
    position: relative;
    z-index: 1; 
}

.cw-btn-fill-primary {
    color: white;
    background-color: var(--cw-primary);
    /*outline-color: rgba(80, 100, 220, 0.15);*/
}

.cw-btn-fill-danger {
    color: white;
    background-color: var(--cw-danger);
    /*outline-color: rgba(220, 100, 100, 0.15);*/
}

.cw-btn-fill-success {
    color: white;
    background-color: var(--cw-success);
    /*outline-color: rgba(220, 100, 100, 0.15);*/
}


.cw-btn-round:hover { transform: scale(1.1); }
.cw-btn-round:active { transform: scale(0.95); }

.cw-btn-highlight::after {
    content: '';
    position: absolute;
    z-index: -1; /* Place it behind the button */
    
    /* Match the button's shape and position */
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    border-radius: 50%; 
    
    /* The color of the glow */
    background-color: rgba(80, 220, 100, 0.75); /* Same blue as your badge */
    
    /* The Animation */
    animation: cw-pulse-animation 2s infinite;
}

/* 3. The Animation Keyframes */
@keyframes cw-pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.35); /* Expands to 135% size */
        opacity: 0;             /* Fades out completely */
    }
}


.cw-toast-header {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    width: 100%;
}

.cw-toast-header > * {
    margin-block: 0!important;
}

.cw-toast-header {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: solid 2px var(--cw-border-color);
}

.cw-toast-body {
    /*min-height: 100px;*/
}


/* 1. Base Badge Structure */
/* 2. Pill Modifier */
.cw-badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    font-size: 0.75rem; /* Readable small text */
    font-weight: 700;
    line-height: 1;
    
    /* Shape & Size */
    padding: 0.35em 0.8em; /* Slightly wider padding for the outlined look */
    min-width: 1.8em;      /* Ensures single numbers aren't too thin */
    
    /* The Stroke Setup */
    border: 1px solid transparent; /* Prepare for the colored border */
    
    vertical-align: middle;
    transition: all 0.2s ease-in-out;
    border-radius: 999px;
}

/* 3. Theme Variants (Text + Tint Bg + Border) */

/* Blue (Feature) */
.cw-badge-pill.primary {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1); /* Very light blue */
    border-color: rgba(0, 123, 255, 0.2);      /* Subtle border */
}

/* Green (Improvement) */
.cw-badge-pill.success {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.2);
}

/* Red (Bug / Unread Count) */
.cw-badge-pill.danger {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
}
