.fbrp-popup {
    position: fixed !important;
    bottom: 0 !important;
    z-index: 100000 !important;
    isolation: isolate;
}

.fbrp-popup[data-position="right"] {
    right: 15px !important;
    left: auto !important;
}

.fbrp-popup[data-position="left"] {
    left: 15px !important;
    right: auto !important;
}

.fbrp-toggle {
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    position: fixed !important;
    bottom: 23px !important;
    width: 280px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    transition: opacity 0.3s ease;
}

.fbrp-popup[data-position="right"] .fbrp-toggle {
    right: 15px !important;
    left: auto !important;
}

.fbrp-popup[data-position="left"] .fbrp-toggle {
    left: 15px !important;
    right: auto !important;
}

.fbrp-toggle:hover {
    opacity: 1;
}

.fbrp-content {
    display: none;
    position: fixed !important;
    bottom: 0 !important;
    z-index: 100001 !important;
}

.fbrp-popup[data-position="right"] .fbrp-content {
    right: 15px !important;
    left: auto !important;
}

.fbrp-popup[data-position="left"] .fbrp-content {
    left: 15px !important;
    right: auto !important;
}

.fbrp-content.active {
    display: block;
}

.fbrp-container {
    position: relative; /* For absolute positioning of close button */
    max-width: 300px;
    padding: 10px;
    background-color: white;
}

.fbrp-close {
    color: white;
    padding: 6px 10px; /* Smaller padding for compact design */
    border: none;
    cursor: pointer;
    width: auto;
    position: absolute;
    top: 5px;
    right: 5px;
    opacity: 0.7;
    border-radius: 3px;
    font-size: 11px; /* Smaller font */
    white-space: nowrap;
    font-weight: 600;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.fbrp-close:hover {
    opacity: 1;
    transform: scale(1.05);
}

.fbrp-contact-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.fbrp-contact-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.fbrp-contact-button:hover {
    opacity: 0.9;
}

.fbrp-phone-button {
    background-color: #007bff;
}

.fbrp-zalo-button {
    background-color: #00a6ff;
}

.fbrp-contact-button i {
    margin-right: 5px;
}

html body .fbrp-popup,
html body .fbrp-content,
html body .fbrp-toggle {
    position: fixed !important;
    bottom: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}