/* WhatsApp Button Base Style */
.pwb-whatsapp-button, .pwb-call-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    line-height: 1;
    white-space: nowrap; /* Prevent text from wrapping */
}

/* Base Hover Effect */
.pwb-whatsapp-button:hover, .pwb-call-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Icon Styling (Applies to SVG, Font Awesome, and Image) */
.pwb-whatsapp-button svg, 
.pwb-call-button svg,
.pwb-fa-icon,
.pwb-image-icon {
    margin-right: 10px;
    /* CurrentColor makes SVG/FA icon color match the button text color */
    color: currentColor; 
    /* Size control for FA icons and image icons */
    width: 20px; 
    height: 20px;
}

/* Responsive icon size */
@media (max-width: 1024px) {
    .pwb-whatsapp-button svg, .pwb-call-button svg, .pwb-fa-icon, .pwb-image-icon {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
}

@media (max-width: 768px) {
    .pwb-whatsapp-button svg, .pwb-call-button svg, .pwb-fa-icon, .pwb-image-icon {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
}

/* --- Wrapper and Dual Button Fixes --- */

/* Wrapper div to ensure the button(s) is a block-level element */
.pwb-button-wrapper {
    /* Ensures it takes the full width and forces the button(s) onto a new line */
    display: block; 
    /* Add top and bottom padding as requested */
    padding: 15px 0; 
    /* Flex container for dual buttons */
    display: flex;
    gap: 15px; /* Spacing between the WhatsApp and Call button */
}

/* Ensure single button is centered if not using full width (default) */
.pwb-dual-buttons-disabled {
    justify-content: center;
}

/* Dual Button Styling: Make both buttons take up equal space */
.pwb-dual-buttons-enabled .pwb-whatsapp-button,
.pwb-dual-buttons-enabled .pwb-call-button {
    flex-grow: 1; 
    width: 100%; /* Important for centering content inside */
}

/* --- Feature: Icon Only Mode --- */

/* Hide the text */
.pwb-icon-only .pwb-button-text {
    display: none !important;
}

/* Remove the spacing next to the icon so it is centered */
.pwb-icon-only svg, .pwb-icon-only .pwb-fa-icon, .pwb-icon-only .pwb-image-icon {
    margin-right: 0 !important;
}

/* Adjust padding for a more compact, round icon-only button (overrides dynamic padding) */
.pwb-icon-only {
    /* Example symmetrical padding for a square/round button */
    padding: 12px !important; 
    /* If full width is desired for icon-only, use: */
    /* width: auto !important; */
}

/* Responsive adjustments for Icon-Only Padding (optional, relies on dynamic padding in PHP) */
@media (max-width: 1024px) {
    .pwb-icon-only {
        padding: 10px !important;
    }
}

@media (max-width: 768px) {
    .pwb-icon-only {
        padding: 8px !important;
    }
}