/* Call Button Plugin Styles */

/* Floating Button */
#cb-floating-btn {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 16px rgba(0,0,0,0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#cb-floating-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(0,0,0,0.35);
}

#cb-floating-btn:active {
    transform: scale(0.96);
}

/* Overlay */
#cb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s ease;
}

#cb-overlay.cb-visible {
    display: block;
    opacity: 1;
}

/* Popup */
#cb-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    width: 100%;
    max-width: 520px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    padding: 0 0 16px;
    box-sizing: border-box;
}

#cb-popup.cb-visible {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Center on desktop */
@media (min-width: 600px) {
    #cb-popup {
        top: 50%;
        bottom: auto;
        left: 50%;
        transform: translate(-50%, -50%) translateY(30px);
        padding: 0;
    }
    #cb-popup.cb-visible {
        transform: translate(-50%, -50%);
    }
}

#cb-popup-inner {
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 28px 24px 20px;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 600px) {
    #cb-popup-inner {
        border-radius: 20px;
        padding: 32px 28px 24px;
        box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    }
}

/* Header */
#cb-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

#cb-popup-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: #111;
    line-height: 1.2;
}

#cb-close-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
    flex-shrink: 0;
}

#cb-close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

/* Cards */
.cb-card {
    display: block;
    border-radius: 14px;
    padding: 18px 20px;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
    border: none;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.cb-card:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.cb-card:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.cb-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cb-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.cb-card-icon svg {
    display: block;
}

.cb-card-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.cb-card-sublabel {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.88rem;
    opacity: 0.92;
    margin-top: 3px;
}

.cb-card-sublabel svg {
    flex-shrink: 0;
}

/* Bullets */
.cb-bullets {
    list-style: none;
    margin: 12px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.cb-bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.95;
}

.cb-bullets li svg {
    flex-shrink: 0;
}

/* Cancel button */
.cb-cancel {
    background: #f0f0f0 !important;
    color: #333 !important;
    font-size: 1rem;
    font-weight: 500;
    text-align: center !important;
    padding: 18px 20px !important;
}

.cb-cancel:hover {
    background: #e4e4e4 !important;
}

/* Footer phone */
#cb-footer-phone {
    text-align: center;
    font-size: 0.88rem;
    color: #888;
    margin: 2px 0 0;
}

/* Animation helper */
@media (prefers-reduced-motion: reduce) {
    #cb-floating-btn,
    #cb-overlay,
    #cb-popup,
    .cb-card {
        transition: none !important;
    }
}
