/* CSS cho Hotline Bar - hỗ trợ kéo trên cả mobile và desktop */
.hotline-widget {
    position: fixed;
    top: 60%;           /* vị trí mặc định nếu chưa lưu */
    right: 30px;        /* vị trí mặc định nếu chưa lưu */
    left: auto;
    z-index: 9999;
    touch-action: none; /* bắt buộc cho pointer events trên touch */
    -webkit-tap-highlight-color: transparent;
    /* LƯU Ý: không dùng transform ở đây để dễ tính toán left/top */
}

.hotline-widget.dragging {
    user-select: none;
    pointer-events: auto;
}

.hotline-bar {
    background: linear-gradient(135deg, #CD853F 0%, #A0522D 100%);
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 25px rgba(205,133,63, 0.4);
    cursor: grab;
    transition: all 0.15s;
    text-decoration: none;
}

.hotline-bar:active { cursor: grabbing; }

.hotline-bar:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(205,133,63, 0.5);
}

.icon-phone {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ring 1.5s infinite;
    flex-shrink: 0;
}

.icon-phone svg {
    width: 20px;
    height: 20px;
    fill: #A0522D;
}

.hotline-text { color: white; }

.hotline-label {
    font-size: 0.85em;
    opacity: 0.9;
    margin-bottom: 2px;
}

.hotline-number {
    font-size: 1.2em;
    font-weight: bold;
    white-space: nowrap;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

/* Responsive cho tablet - KHÔNG ép bottom, giữ khả năng kéo */
@media (max-width: 768px) {
    .hotline-widget {
        right: 15px;
        /* không set top:auto hoặc bottom để vẫn dùng left/top */
    }
    .hotline-bar { padding: 10px 15px; gap: 12px; }
    .hotline-label { font-size: 0.60em; }
    .hotline-number { font-size: 0.90em; }
    .icon-phone { width: 26px; height: 26px; }
    .icon-phone svg { width: 15px; height: 15px; }
}

/* Responsive cho mobile nhỏ - vẫn giữ left/top để kéo được */
@media (max-width: 480px) {
    .hotline-widget { right: 10px; /* không set bottom */ }
    .hotline-bar { padding: 10px 15px; gap: 10px; border-radius: 40px; }
    .hotline-label { font-size: 0.7em; margin-bottom: 1px; }
    .hotline-number { font-size: 0.95em; }
    .icon-phone { width: 32px; height: 32px; }
    .icon-phone svg { width: 16px; height: 16px; }
}

/* Cho màn hình rất nhỏ (dưới 360px) */
@media (max-width: 360px) {
    .hotline-bar { padding: 8px 12px; gap: 8px; }
    .hotline-label { font-size: 0.65em; }
    .hotline-number { font-size: 0.85em; }
    .icon-phone { width: 28px; height: 28px; }
    .icon-phone svg { width: 14px; height: 14px; }
}