/* Container Positioning */
.bpc-floating-contact {
    position: fixed;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    max-width: calc(100vw - 30px);
}

.bpc-floating-contact.bpc-pos-bottom-right {
    align-items: flex-end;
}

.bpc-floating-contact.bpc-pos-bottom-left {
    align-items: flex-start;
}

/* Actions Popover Wrapper */
.bpc-contact-actions {
    position: absolute;
    bottom: calc(100% + 12px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    white-space: nowrap;
}

.bpc-pos-bottom-right .bpc-contact-actions {
    right: 0;
    align-items: flex-end;
}

.bpc-pos-bottom-left .bpc-contact-actions {
    left: 0;
    align-items: flex-start;
}

/* Individual Action Items */
.bpc-contact-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    
    /* Animation initial state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px) scale(0.85);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.bpc-contact-action:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.bpc-contact-action:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

/* Staggered Animations */
.bpc-floating-contact.is-open .bpc-whatsapp {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
}

.bpc-floating-contact.is-open .bpc-call {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0.06s;
}

.bpc-floating-contact.is-open .bpc-live-chat-trigger {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0.12s;
}

.bpc-floating-contact.is-open .bpc-live-chat-trigger {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0.12s;
}

.bpc-floating-contact.is-open .bpc-live-chat-trigger {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0.12s;
}

/* Icons within action items */
.bpc-contact-action .bpc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bpc-contact-action .bpc-icon svg {
    display: block;
}

.bpc-contact-action .bpc-label {
    line-height: 1;
}

/* Main Floating Toggle Button */
.bpc-floating-toggle {
    border-radius: 50%;
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    padding: 0;
    position: relative;
    z-index: 2;
}

.bpc-floating-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.38);
}

.bpc-floating-toggle:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 3px;
}

.bpc-main-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bpc-main-icon svg {
    display: block;
}

.bpc-floating-toggle .bpc-icon-chat {
    display: flex;
}

.bpc-floating-toggle .bpc-icon-close {
    display: none;
}

/* Open State Main Toggle Icons */
.bpc-floating-contact.is-open .bpc-floating-toggle .bpc-icon-chat {
    display: none;
}

.bpc-floating-contact.is-open .bpc-floating-toggle .bpc-icon-close {
    display: flex;
}

/* WooCommerce Checkout Error Formatting */
.bpc-field-error-msg {
    color: #d9534f;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.woocommerce-field-error input#billing_phone {
    border-color: #d9534f !important;
}
.bpc-admin-wrap {
    max-width: 900px;
}

.bpc-admin-wrap h1 {
    margin-bottom: 20px;
}

.bpc-admin-wrap .form-table th {
    width: 240px;
    font-weight: 600;
}

.bpc-admin-wrap h2 {
    margin-top: 30px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ccc;
    font-size: 1.15em;
    color: #1d2327;
}

.bpc-admin-wrap .wp-picker-container {
    display: inline-block;
}