.sc-badge {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sc-badge-main {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    user-select: none;
}

.sc-badge-main:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.sc-badge-main:active {
    transform: scale(0.95);
}

.sc-badge-circular .sc-badge-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.sc-badge-circular .sc-badge-main i {
    font-size: 24px;
}

.sc-badge-pill .sc-badge-main {
    height: 56px;
    padding: 0 20px;
    border-radius: 28px;
    gap: 10px;
}

.sc-badge-pill .sc-badge-main i {
    font-size: 20px;
}

.sc-badge-pill .sc-badge-text {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.sc-badge-pulse .sc-badge-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: inherit;
    opacity: 0.6;
    animation: sc-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) 3;
}

@keyframes sc-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.15);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.sc-badge-menu {
    position: absolute;
    bottom: 70px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sc-badge-right .sc-badge-menu {
    right: 0;
}

.sc-badge-left .sc-badge-menu {
    left: 0;
}

.sc-badge-menu.sc-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* After Hours Message */
.sc-after-hours-message {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
    margin-bottom: 12px;
    max-width: 280px;
}

.sc-after-hours-icon {
    text-align: center;
    font-size: 32px;
    color: #FF9800;
    margin-bottom: 12px;
}

.sc-after-hours-schedule {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #1a1a1a;
}

.sc-after-hours-schedule strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.sc-hours-text {
    padding-left: 10px;
    border-left: 3px solid #FF9800;
    white-space: pre-line;
    color: #1a1a1a;
}

.sc-after-hours-text {
    font-size: 13px;
    line-height: 1.5;
    color: #444444;
    font-style: italic;
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

.sc-channel-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #ffffff;
    border: none;
    border-radius: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-decoration: none;
    color: #333333;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    min-height: 48px;
}

.sc-channel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sc-channel-btn:active {
    transform: translateY(0);
}

.sc-channel-btn i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.sc-channel-phone {
    color: #0088CC;
}

.sc-channel-phone:hover {
    background: #0088CC;
    color: #ffffff;
}

.sc-channel-whatsapp {
    color: #25D366;
}

.sc-channel-whatsapp:hover {
    background: #25D366;
    color: #ffffff;
}

.sc-channel-email {
    color: #EA4335;
}

.sc-channel-email:hover {
    background: #EA4335;
    color: #ffffff;
}

.sc-channel-form {
    color: #5E35B1;
}

.sc-channel-form:hover {
    background: #5E35B1;
    color: #ffffff;
}

.sc-channel-telegram {
    color: #0088CC;
}

.sc-channel-telegram:hover {
    background: #0088CC;
    color: #ffffff;
}

@media (max-width: 768px) {
    .sc-badge-main {
        width: 60px;
        height: 60px;
    }

    .sc-badge-circular .sc-badge-main {
        width: 60px;
        height: 60px;
    }

    .sc-badge-circular .sc-badge-main i {
        font-size: 26px;
    }

    .sc-badge-pill .sc-badge-main {
        height: 60px;
        padding: 0 22px;
    }

    .sc-badge-menu {
        bottom: 75px;
        gap: 12px;
        max-width: calc(100vw - 40px);
    }

    .sc-channel-btn {
        padding: 14px 22px;
        font-size: 16px;
        min-height: 52px;
    }

    .sc-channel-btn i {
        font-size: 22px;
        width: 26px;
    }
}

@media (max-width: 480px) {
    .sc-badge-pill .sc-badge-text {
        display: none;
    }

    .sc-badge-pill .sc-badge-main {
        width: 60px;
        padding: 0;
        border-radius: 50%;
    }
}

.sc-badge-menu.sc-entering {
    animation: sc-menu-enter 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sc-menu-enter {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.sc-channel-btn {
    animation: sc-btn-enter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.sc-channel-btn:nth-child(1) { animation-delay: 0.05s; }
.sc-channel-btn:nth-child(2) { animation-delay: 0.1s; }
.sc-channel-btn:nth-child(3) { animation-delay: 0.15s; }
.sc-channel-btn:nth-child(4) { animation-delay: 0.2s; }
.sc-channel-btn:nth-child(5) { animation-delay: 0.25s; }

@keyframes sc-btn-enter {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.sc-badge-main:focus {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.sc-channel-btn:focus {
    outline: 2px solid #0088CC;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .sc-badge-main,
    .sc-badge-menu,
    .sc-channel-btn {
        transition: none;
        animation: none;
    }

    .sc-badge-pulse .sc-badge-main::before {
        animation: none;
    }
}
