/* Base styles */
:root {
    --waply-theme-color: #25D366;
    --waply-btn-bg-color: #25D366;
    --waply-popup-font: inherit;
}

/* Ensure CSS variables are applied to all elements */
html, body, .waply-btn, .waply-fab {
    --waply-theme-color: #25D366;
    --waply-btn-bg-color: #25D366;
    --waply-popup-font: inherit;
}

/* Button styles */
.waply-btn {
    background: transparent;
    color: #fff;
    border-radius: 0;
    padding: 0;
    min-width: 56px;
    min-height: 56px;
    display: flex;
    align-items: center;
    box-shadow: none;
    cursor: pointer;
    transition: opacity 0.2s;
    outline: none;
}

.waply-btn:focus, .waply-btn:hover {
    box-shadow: none;
    opacity: 0.95;
}

.waply-btn-icon {
    width: 173px;
    height: 60px;
    margin-right: 0;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Button styles for different types */
.waply-btn-style-default .waply-btn-icon,
.waply-fab.waply-btn-style-default .waply-btn-icon {
    background-image: url('../img/whats-app-buttons-1.png') !important;
}

.waply-btn-style-rounded .waply-btn-icon,
.waply-fab.waply-btn-style-rounded .waply-btn-icon {
    background-image: url('../img/whats-app-buttons-2.png') !important;
}

.waply-btn-style-square .waply-btn-icon,
.waply-fab.waply-btn-style-square .waply-btn-icon {
    background-image: url('../img/whats-app-buttons-3.png') !important;
}

.waply-btn-style-circle .waply-btn-icon,
.waply-fab.waply-btn-style-circle .waply-btn-icon {
    background-image: url('../img/whats-app-buttons-4.png') !important;
}

.waply-btn-style-outline .waply-btn-icon,
.waply-fab.waply-btn-style-outline .waply-btn-icon {
    background-image: url('../img/whats-app-buttons-5.png') !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    width: 173px !important;
    height: 60px !important;
}

.waply-btn-style-custom .waply-btn-icon,
.waply-fab.waply-btn-style-custom .waply-btn-icon {
    background-image: url('../img/whatsapp-icon-white.svg') !important;
    background-size: 50% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: block !important;
}

.waply-btn-style-rounded { border-radius: 32px; }
.waply-btn-style-square { border-radius: 4px; }
.waply-btn-style-circle { border-radius: 50%; min-width:56px; min-height:56px; justify-content:center; }
.waply-btn-style-outline {
    background: transparent !important;
    color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.waply-btn-style-custom {
    border-radius: 50% !important;
    min-width: 60px !important;
    min-height: 60px !important;
    width: 60px !important;
    height: 60px !important;
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
    background-color: var(--waply-btn-bg-color, #25D366) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15) !important;
    position: relative !important;
    border: none !important;
}

/* Additional selector to ensure color is applied */
[class*="waply-btn-style-custom"] {
    background-color: var(--waply-btn-bg-color, #25D366) !important;
}

/* Floating Action Button (FAB) */
.waply-fab {
    position: fixed !important;
    width: 173px;
    height: 60px;
    background: transparent !important;
    color: #fff;
    border-radius: 0;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2147483647 !important; /* Maximum possible z-index value */
    transition: none;
    transform: translateZ(0) !important; /* Force hardware acceleration */
    -webkit-transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    perspective: 1000px !important;
    -webkit-perspective: 1000px !important;
    border: none !important;
}

.waply-fab .waply-btn-icon {
    width: 173px;
    height: 60px;
    margin-right: 0;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: relative;
}

.waply-fab:hover {
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0.95;
}

/* Ensure outline style has no border in FAB context */
.waply-fab.waply-btn-style-outline {
    background: transparent !important;
    color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure custom style shows background color in FAB context */
.waply-fab.waply-btn-style-custom {
    border-radius: 50% !important;
    min-width: 60px !important;
    min-height: 60px !important;
    width: 60px !important;
    height: 60px !important;
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
    background-color: var(--waply-btn-bg-color, #25D366) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
}

/* Additional selector for FAB custom button */
.waply-fab[class*="waply-btn-style-custom"] {
    background-color: var(--waply-btn-bg-color, #25D366) !important;
}

/* Popup styles */
.waply-popup {
    position: absolute;
    right: 0;
    bottom: 70px; /* Position above the button with padding */
    background: #fff;
    color: #222;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    width: 320px;
    max-width: 90vw;
    overflow: visible; /* Changed to visible to show the arrow */
    display: none;
    z-index: 100000;
    font-family: var(--waply-popup-font);
    margin-bottom: 15px; /* Add padding between popup and button */
}

/* Add arrow pointing to the button */
.waply-popup:after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff; /* Match popup background color */
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* Popup header container - NEW */
.waply-popup-header-container {
    background: var(--waply-theme-color);
    color: white;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    overflow: hidden; /* Ensure no gaps */
}

/* Popup header */
.waply-popup-header {
    padding: 18px 20px 0; /* Remove bottom padding completely */
    background: transparent; /* Use container background */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none !important; /* Ensure no border */
    margin: 0 !important; /* Ensure no margin */
    box-shadow: none !important; /* Ensure no shadow */
}

/* Default message below popup title */
.waply-popup-default-message {
    padding: 0 20px 10px; /* Move padding to bottom only */
    background: transparent; /* Use container background */
    color: white;
    font-size: 14px;
    margin: 0 !important; /* Ensure no gap */
    border: none !important; /* Ensure no border */
    box-shadow: none !important; /* Ensure no shadow */
}

.waply-popup-default-message p {
    margin: 0;
    opacity: 0.9;
}

.waply-popup-header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.waply-popup-header-logo {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    object-fit: contain;
}

.waply-popup-header-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-decoration: none !important;
}

/* Remove underline from any links inside the title */
.waply-popup-header-title a,
.waply-popup-header-title a:hover,
.waply-popup-header-title a:focus,
.waply-popup-header-title a:active {
    text-decoration: none !important;
    color: white !important;
    border-bottom: none !important;
}

.waply-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.waply-popup-close:hover {
    opacity: 1;
}

/* Popup body */
.waply-popup-body {
    padding: 20px;
}

/* Container for all accounts */
.waply-popup-accounts-container {
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 8px;
}

/* Individual account styling */
.waply-popup-account {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.waply-popup-account:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.waply-popup-account.waply-active {
    background-color: rgba(0, 0, 0, 0.08);
}

.waply-mode-dark .waply-popup-account:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.waply-mode-dark .waply-popup-account.waply-active {
    background-color: rgba(255, 255, 255, 0.15);
}

.waply-popup-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.waply-popup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.waply-popup-account-info {
    flex: 1;
}

.waply-popup-account-name {
    font-weight: 600;
    font-size: 15px;
}

.waply-popup-account-title {
    font-size: 13px;
    opacity: 0.7;
}

.waply-online-status {
    font-size: 12px;
    color: #25d366;
    display: flex;
    align-items: center;
    margin-top: 3px;
}

.waply-online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #25d366;
    border-radius: 50%;
    margin-right: 5px;
}

/* Shortcode Button Styles */
.waply-shortcode-button {
    margin: 10px 0;
    max-width: 100%;
    display: block; /* Ensure proper display */
    border-radius: 12px; /* Ensure consistent border radius */
}

/* Force styles to override any theme conflicts */
.waply-shortcode-button a {
    text-decoration: none !important;
}

/* Horizontal layout (default) */
.waply-layout-horizontal a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 15px !important;
    border-radius: 12px !important; /* More rectangular with rounded corners to match image */
    text-decoration: none !important;
    color: white !important;
    font-family: var(--waply-popup-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important; /* Add subtle shadow */
    width: 100% !important;
    max-width: 320px !important;
    position: relative !important;
    overflow: hidden !important;
}

.waply-layout-horizontal a:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    opacity: 0.95 !important;
    color: white !important;
    text-decoration: none !important;
}

.waply-layout-horizontal .waply-shortcode-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: none; /* Remove border to match image */
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.waply-layout-horizontal .waply-shortcode-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.waply-layout-horizontal .waply-shortcode-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.waply-layout-horizontal .waply-shortcode-whatsapp-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12C2 13.9 2.5 15.6 3.4 17.1L2.1 21.9L7 20.6C8.4 21.4 10.2 22 12 22C17.52 22 22 17.52 22 12S17.52 2 12 2M12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20C10.4 20 8.9 19.5 7.6 18.7L6.5 18.2L5.5 18.5L4 19L4.5 17.5L4.8 16.5L4.3 15.4C3.5 14.1 3 12.6 3 12C3 7.58 6.58 4 12 4M8.5 7.5C8.3 7.5 8 7.6 7.8 7.8C7.3 8.3 6.8 9.3 6.8 10.2C6.8 11.3 7.4 12.3 7.7 12.7C7.7 12.7 8.3 13.5 9.4 14.6C10.5 15.7 12.2 16.9 14.2 17C14.6 17 15 17 15.3 17C16.1 17 16.7 16.8 17.2 16.4C17.5 16.2 17.7 15.9 17.8 15.6C17.9 15.3 17.9 15.1 17.9 15C17.9 14.9 17.9 14.8 17.8 14.7C17.7 14.5 17.5 14.5 17.3 14.4L15.7 13.6C15.5 13.5 15.3 13.5 15.2 13.6L14.6 14.2C14.5 14.3 14.3 14.3 14.1 14.2C13.5 14 12.8 13.5 12.2 12.9C11.6 12.3 11.1 11.7 10.9 11.1C10.8 10.9 10.8 10.7 10.9 10.6L11.5 10C11.6 9.9 11.6 9.7 11.5 9.5L10.7 7.9C10.6 7.7 10.5 7.5 10.3 7.5C10.2 7.5 10.1 7.5 10 7.5H9.5C9.2 7.5 8.7 7.5 8.5 7.5Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
    z-index: 2;
}

.waply-layout-horizontal .waply-shortcode-name {
    font-weight: 600;
    margin-bottom: 0; /* Remove margin to match image */
    font-size: 14px !important; /* Slightly larger font */
    line-height: 1.2 !important;
}

.waply-layout-horizontal .waply-shortcode-text {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.2 !important;
}

.waply-layout-horizontal .waply-shortcode-footer {
    font-size: 11px;
    font-style: italic;
    margin-top: 2px;
    opacity: 0.8;
    line-height: 1.2 !important;
}

.waply-layout-horizontal .waply-shortcode-online {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    margin-top: 2px;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 1px 5px;
    border-radius: 10px;
    font-weight: 500;
}

/* Style variations for the horizontal buttons */
.waply-button-style-blue a {
    background-color: #0078FF !important;
}

.waply-button-style-green a {
    background-color: #25D366 !important;
}

.waply-button-style-pink a {
    background-color: #E1306C !important;
}

.waply-button-style-gray a {
    background-color: #E5E5E5 !important;
    color: #333 !important;
}

/* New Pro Button Styles */
.waply-button-style-alex a {
    background: linear-gradient(135deg, #8A2BE2, #4B0082) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    padding: 12px 15px !important;
}

.waply-button-style-alex .waply-shortcode-avatar {
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5) !important;
}

.waply-button-style-alex .waply-shortcode-footer {
    background-color: rgba(0, 0, 0, 0.2) !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    margin-top: 4px !important;
    display: inline-block !important;
}

.waply-button-style-sophia a {
    background: linear-gradient(135deg, #20B2AA, #008080) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    padding: 12px 15px !important;
}

.waply-button-style-sophia .waply-shortcode-avatar {
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 10px rgba(32, 178, 170, 0.5) !important;
}

.waply-button-style-sophia .waply-shortcode-name {
    font-size: 15px !important;
    letter-spacing: 0.5px !important;
}

.waply-button-style-lucas a {
    background-color: #121212 !important;
    border: 1px solid #333 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    padding: 12px 15px !important;
}

.waply-button-style-lucas .waply-shortcode-avatar {
    border: 2px solid #333 !important;
}

.waply-button-style-lucas .waply-shortcode-name {
    color: #fff !important;
}

.waply-button-style-lucas .waply-shortcode-text {
    color: #ccc !important;
}

.waply-button-style-lucas .waply-shortcode-footer {
    color: #999 !important;
    border-top: 1px solid #333 !important;
    padding-top: 4px !important;
    margin-top: 4px !important;
    width: 100% !important;
}

.waply-button-style-emma a {
    background: linear-gradient(135deg, #FF8C00, #FF4500) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    padding: 12px 15px !important;
}

.waply-button-style-emma .waply-shortcode-avatar {
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5) !important;
}

.waply-button-style-emma .waply-shortcode-name {
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
}

/* Additional Premium Button Styles */
.waply-button-style-style9 a {
    background: linear-gradient(135deg, #0078FF, #0056B3) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    padding: 12px 15px !important;
}

.waply-button-style-style9 .waply-shortcode-avatar {
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 10px rgba(0, 120, 255, 0.5) !important;
}

.waply-button-style-style10 a {
    background: linear-gradient(135deg, #8A2BE2, #4B0082) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    padding: 12px 15px !important;
}

.waply-button-style-style10 .waply-shortcode-avatar {
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5) !important;
}

.waply-button-style-style11 a {
    background: linear-gradient(135deg, #FF8C00, #FF4500) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    padding: 12px 15px !important;
}

.waply-button-style-style11 .waply-shortcode-avatar {
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5) !important;
}

.waply-button-style-style12 a {
    background: linear-gradient(135deg, #FF4500, #B22222) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    padding: 12px 15px !important;
}

.waply-button-style-style12 .waply-shortcode-avatar {
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.5) !important;
}

.waply-button-style-style13 a {
    background: linear-gradient(135deg, #20B2AA, #008080) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    padding: 12px 15px !important;
}

.waply-button-style-style13 .waply-shortcode-avatar {
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 10px rgba(32, 178, 170, 0.5) !important;
}

.waply-button-style-style14 a {
    background-color: #121212 !important;
    border: 1px solid #333 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    padding: 12px 15px !important;
}

.waply-button-style-style14 .waply-shortcode-avatar {
    border: 2px solid #333 !important;
}

.waply-button-style-style14 .waply-shortcode-name {
    color: #fff !important;
}

.waply-button-style-style14 .waply-shortcode-text {
    color: #ccc !important;
}

.waply-button-style-style14 .waply-shortcode-footer {
    color: #999 !important;
    border-top: 1px solid #333 !important;
    padding-top: 4px !important;
    margin-top: 4px !important;
    width: 100% !important;
}

/* Exact matches for the image styles */
.waply-button-style-hayden a {
    background-color: #0078FF !important; /* Blue */
}

.waply-button-style-maria a {
    background-color: #E1306C !important; /* Pink */
}

.waply-button-style-julian a {
    background-color: #E5E5E5 !important;
    color: #333 !important;
}

.waply-button-style-daniel a {
    background-color: #25D366 !important; /* Green */
}

.waply-button-style-gray .waply-shortcode-whatsapp-icon,
.waply-button-style-julian .waply-shortcode-whatsapp-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2325D366"><path d="M12 2C6.48 2 2 6.48 2 12C2 13.9 2.5 15.6 3.4 17.1L2.1 21.9L7 20.6C8.4 21.4 10.2 22 12 22C17.52 22 22 17.52 22 12S17.52 2 12 2M12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20C10.4 20 8.9 19.5 7.6 18.7L6.5 18.2L5.5 18.5L4 19L4.5 17.5L4.8 16.5L4.3 15.4C3.5 14.1 3 12.6 3 12C3 7.58 6.58 4 12 4M8.5 7.5C8.3 7.5 8 7.6 7.8 7.8C7.3 8.3 6.8 9.3 6.8 10.2C6.8 11.3 7.4 12.3 7.7 12.7C7.7 12.7 8.3 13.5 9.4 14.6C10.5 15.7 12.2 16.9 14.2 17C14.6 17 15 17 15.3 17C16.1 17 16.7 16.8 17.2 16.4C17.5 16.2 17.7 15.9 17.8 15.6C17.9 15.3 17.9 15.1 17.9 15C17.9 14.9 17.9 14.8 17.8 14.7C17.7 14.5 17.5 14.5 17.3 14.4L15.7 13.6C15.5 13.5 15.3 13.5 15.2 13.6L14.6 14.2C14.5 14.3 14.3 14.3 14.1 14.2C13.5 14 12.8 13.5 12.2 12.9C11.6 12.3 11.1 11.7 10.9 11.1C10.8 10.9 10.8 10.7 10.9 10.6L11.5 10C11.6 9.9 11.6 9.7 11.5 9.5L10.7 7.9C10.6 7.7 10.5 7.5 10.3 7.5C10.2 7.5 10.1 7.5 10 7.5H9.5C9.2 7.5 8.7 7.5 8.5 7.5Z"/></svg>');
}

.waply-button-style-gray .waply-shortcode-online,
.waply-button-style-julian .waply-shortcode-online {
    color: #25D366;
    background-color: rgba(37, 211, 102, 0.1);
}

/* Vertical layout */
.waply-layout-vertical a {
    display: inline-block;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    font-family: var(--waply-popup-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 200px;
}

.waply-layout-vertical a:hover {
    background-color: #f0f0f0;
}

.waply-layout-vertical .waply-shortcode-avatar-vertical {
    margin: 0 auto 10px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.waply-layout-vertical .waply-shortcode-avatar-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.waply-layout-vertical .waply-shortcode-content-vertical {
    text-align: center;
}

.waply-layout-vertical .waply-shortcode-name {
    font-weight: bold;
    color: #0078ff;
}

.waply-layout-vertical .waply-shortcode-text {
    margin: 5px 0;
    font-size: 14px;
}

.waply-layout-vertical .waply-shortcode-footer {
    font-size: 12px;
    font-style: italic;
    margin-top: 5px;
}

.waply-layout-vertical .waply-shortcode-online {
    font-size: 12px;
    color: #25d366;
    margin-top: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.waply-shortcode-online-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: #fff;
    border-radius: 50%;
    margin-right: 3px;
}

.waply-popup-message {
    background: #f1f1f1;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.waply-mode-dark .waply-popup-message {
    background: #333;
}

.waply-popup-message p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.waply-mode-dark .waply-popup-message p {
    color: #f5f5f5;
}

.waply-popup-input {
    display: flex;
    gap: 10px;
}

.waply-popup-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.waply-mode-dark .waply-popup-input input {
    background: #333;
    border-color: #444;
    color: #f5f5f5;
}

.waply-popup-send {
    background: var(--waply-theme-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 15px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.waply-popup-send:hover {
    opacity: 0.9;
    color: white;
    text-decoration: none;
}

/* Animation classes */
.waply-animation-fade {
    animation-duration: 0.3s;
}

.waply-animation-slide {
    animation-duration: 0.3s;
}

.waply-animation-bounce {
    animation-duration: 0.5s;
}

.waply-animation-zoom {
    animation-duration: 0.3s;
}

@keyframes waplyFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes waplySlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes waplyBounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes waplyZoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.waply-animation-fade.waply-popup-visible { animation-name: waplyFadeIn; }
.waply-animation-slide.waply-popup-visible { animation-name: waplySlideIn; }
.waply-animation-bounce.waply-popup-visible { animation-name: waplyBounceIn; }
.waply-animation-zoom.waply-popup-visible { animation-name: waplyZoomIn; }

/* Dark mode */
.waply-mode-dark {
    background: #222;
    color: #f5f5f5;
}

/* Dark mode arrow */
.waply-mode-dark:after {
    border-top-color: #222; /* Match dark mode background */
}

/* Dark mode default message */
.waply-mode-dark .waply-popup-default-message {
    background: var(--waply-theme-color);
}

/* Force button to stay on top of all elements */
.waply-floating-btns {
    position: fixed !important;
    z-index: 2147483647 !important;
    width: 173px !important;
    height: 60px !important;
    overflow: visible !important;
}

/* Ensure the button is visible on all devices */
@media (max-width: 980px) {
    .waply-floating-btns,
    .waply-fab {
        z-index: 2147483647 !important;
        position: fixed !important;
    }

    .waply-popup {
        right: 0;
        max-width: 85vw;
        bottom: 70px; /* Maintain position above button */
    }
}

/* Divi Theme specific overrides */
body.et_divi_theme .waply-floating-btns,
body.et-db #et-boc .et-l .waply-floating-btns,
body.et_pb_pagebuilder_layout .waply-floating-btns,
body.et_vertical_nav .waply-floating-btns,
body.et_full_width_page .waply-floating-btns,
body.et_divi_builder .waply-floating-btns {
    z-index: 2147483647 !important;
    position: fixed !important;
}

