/* Contact Buttons Plugin - Frontend Styles */
.cbp-contact-buttons {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

/* Vị trí nút */
.cbp-contact-buttons.bottom-right {
   right: 15px;
		bottom: 18px;
		gap: 10px;
}


.cbp-contact-buttons.bottom-left {
    bottom: 20px;
    left: 20px;
}

.cbp-contact-buttons.top-right {
    top: 20px;
    right: 20px;
}

.cbp-contact-buttons.top-left {
    top: 20px;
    left: 20px;
}

/* Nút liên hệ */
.cbp-contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.cbp-contact-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cbp-contact-button:active {
    transform: scale(0.95);
}

/* Kích thước nút */
.cbp-contact-button.small {
    width: 40px;
    height: 40px;
	padding: 2px
}

.cbp-contact-button.medium {
    width: 50px;
    height: 50px;
	padding: 2px
}

.cbp-contact-button.large {
    width: 55px;
    height: 55px;
	padding: 3px
}

/* Icon trong nút */
.cbp-contact-button img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
	border-radius: 100px;
	width: 100%;
}

.cbp-contact-button.small img {
  max-width: 100%;
    max-height: 100%;
    object-fit: contain;
	border-radius: 100px;
	width: 100%;
}

.cbp-contact-button.large img {
      max-width: 100%;
    max-height: 100%;
    object-fit: contain;
	border-radius: 100px;
	width: 100%;
}

/* Tooltip */
.cbp-contact-button::before {
    content: attr(data-title);
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10000;
}

.cbp-contact-buttons.bottom-right .cbp-contact-button::before,
.cbp-contact-buttons.top-right .cbp-contact-button::before {
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
}

.cbp-contact-buttons.bottom-left .cbp-contact-button::before,
.cbp-contact-buttons.top-left .cbp-contact-button::before {
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
}

.cbp-contact-buttons.bottom-right .cbp-contact-button::after,
.cbp-contact-buttons.top-right .cbp-contact-button::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cbp-contact-buttons.bottom-left .cbp-contact-button::after,
.cbp-contact-buttons.top-left .cbp-contact-button::after {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cbp-contact-button:hover::before,
.cbp-contact-button:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Animation cho nút */
@keyframes cbp-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.cbp-contact-button.animated {
    animation: cbp-pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .cbp-contact-buttons {
        gap: 8px;
    }
    
    .cbp-contact-buttons.bottom-right,
    .cbp-contact-buttons.bottom-left {
        bottom: 15px;
    }
    
    .cbp-contact-buttons.top-right,
    .cbp-contact-buttons.top-left {
        top: 15px;
    }
    
    .cbp-contact-buttons.bottom-right,
    .cbp-contact-buttons.top-right {
        right: 15px;
    }
    
    .cbp-contact-buttons.bottom-left,
    .cbp-contact-buttons.top-left {
        left: 15px;
    }
    
    .cbp-contact-button {
        width: 50px;
        height: 50px;
    }
    
    .cbp-contact-button.small {
        width: 45px;
        height: 45px;
    }
    
    .cbp-contact-button.large {
        width: 55px;
        height: 55px;
    }
    
    .cbp-contact-button::before {
        display: none;
    }
    
    .cbp-contact-button::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .cbp-contact-buttons {
        gap: 6px;
    }
    
    .cbp-contact-button {
        width: 45px;
        height: 45px;
    }
    
    .cbp-contact-button.small {
        width: 40px;
        height: 40px;
    }
    
    .cbp-contact-button.large {
        width: 50px;
        height: 50px;
    }
}

/* Hiệu ứng ripple */
.cbp-contact-button .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cbp-contact-button::before {
        background: rgba(255, 255, 255, 0.9);
        color: #000;
    }
    
    .cbp-contact-buttons.bottom-right .cbp-contact-button::after,
    .cbp-contact-buttons.top-right .cbp-contact-button::after {
        border-left-color: rgba(255, 255, 255, 0.9);
    }
    
    .cbp-contact-buttons.bottom-left .cbp-contact-button::after,
    .cbp-contact-buttons.top-left .cbp-contact-button::after {
        border-right-color: rgba(255, 255, 255, 0.9);
    }
}

/* Accessibility */
.cbp-contact-button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .cbp-contact-buttons {
        display: none !important;
    }
} 