.bpb-container {
    position: fixed;
    z-index: 9999;
    box-sizing: border-box;
}

/* Module Mode overrides (for shortcode) */
.bpb-module {
    position: relative !important;
    z-index: 1 !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    margin: 10px 0 !important;
}

/* Flat style: Bottom full width */
.bpb-style-flat {
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
}

.bpb-style-flat .bpb-button {
    flex: 1;
    text-align: center;
    color: white;
    padding: 12px 0;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border-right: 1px dashed rgba(255, 255, 255, 0.4) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bpb-style-flat .bpb-button:last-child {
    border-right: none !important;
}

/* Floating style: Bottom corner floating */
.bpb-style-floating {
    bottom: 20px;
    right: 20px;
    left: auto;
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Floating style in module mode */
.bpb-module.bpb-style-floating {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.bpb-style-floating .bpb-button {
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.bpb-style-floating .bpb-button-label {
    margin-top: 0;
    margin-right: 8px;
}


.bpb-button-icon {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bpb-button-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.bpb-style-flat .bpb-button-label {
    margin-top: 5px;
}

@media (min-width: 1025px) {
    .bpb-hide-desktop { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .bpb-hide-tablet { display: none !important; }
}
@media (max-width: 767px) {
    .bpb-hide-mobile { display: none !important; }
}

/* Label Positions */
.bpb-label-bottom-inside .bpb-button {
    flex-direction: column !important;
    padding: 10px !important;
}
.bpb-label-bottom-inside .bpb-button-label {
    margin-top: 5px;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.bpb-label-bottom-outside .bpb-button {
    flex-direction: column !important;
    overflow: visible !important;
}
.bpb-label-bottom-outside .bpb-button-label {
    position: absolute;
    bottom: -25px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px !important;
    white-space: nowrap;
}
.bpb-label-bottom-outside .bpb-button-icon {
    margin: 0 !important;
}
/* Ensure main container has space if bottom outside */
.bpb-style-floating.bpb-label-bottom-outside {
    margin-bottom: 25px;
}


/* Shape Classes */
.bpb-shape-oval .bpb-button {
    border-radius: 50px;
}
.bpb-shape-circle .bpb-button {
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}
.bpb-shape-rectangle .bpb-button {
    border-radius: 0;
}
.bpb-shape-rounded .bpb-button {
    border-radius: 10px;
}

/* Flat style overrides for shapes */
.bpb-style-flat.bpb-shape-circle .bpb-button,
.bpb-style-flat.bpb-shape-oval .bpb-button,
.bpb-style-flat.bpb-shape-rounded .bpb-button {
    margin: 5px;
}

/* Icon only */
.bpb-icon-only {
    padding: 15px !important;
    flex-direction: row !important;
}
.bpb-icon-only .bpb-button-label {
    display: none !important;
}
.bpb-icon-only .bpb-button-icon {
    margin: 0 !important;
}

/* Animations */
@keyframes bpb-shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-5deg); }
    50% { transform: translateX(5px) rotate(5deg); }
    75% { transform: translateX(-5px) rotate(-5deg); }
    100% { transform: translateX(0); }
}

@keyframes bpb-glow {
    0% { box-shadow: 0 0 5px currentColor; }
    50% { box-shadow: 0 0 20px currentColor, 0 0 30px currentColor; }
    100% { box-shadow: 0 0 5px currentColor; }
}

.bpb-anim-shake {
    animation: bpb-shake 2s infinite;
}

.bpb-anim-glow {
    animation: bpb-glow 2s infinite;
}
@media (max-width: 767px) {
    .bpb-hide-mobile {
        display: none !important;
    }
}

/* Shape Classes */
.bpb-shape-oval .bpb-button {
    border-radius: 50px;
}
.bpb-shape-circle .bpb-button {
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}
.bpb-shape-rectangle .bpb-button {
    border-radius: 0;
}
.bpb-shape-rounded .bpb-button {
    border-radius: 10px;
}

/* Flat style overrides for shapes */
.bpb-style-flat.bpb-shape-circle .bpb-button,
.bpb-style-flat.bpb-shape-oval .bpb-button,
.bpb-style-flat.bpb-shape-rounded .bpb-button {
    margin: 5px;
}

/* Icon only */
.bpb-icon-only {
    padding: 15px !important;
    flex-direction: row !important;
}
.bpb-icon-only .bpb-button-label {
    display: none !important;
}
.bpb-icon-only .bpb-button-icon {
    margin: 0 !important;
}

/* Animations */
@keyframes bpb-shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-5deg); }
    50% { transform: translateX(5px) rotate(5deg); }
    75% { transform: translateX(-5px) rotate(-5deg); }
    100% { transform: translateX(0); }
}

@keyframes bpb-glow {
    0% { box-shadow: 0 0 5px currentColor; }
    50% { box-shadow: 0 0 20px currentColor, 0 0 30px currentColor; }
    100% { box-shadow: 0 0 5px currentColor; }
}

.bpb-anim-shake {
    animation: bpb-shake 2s infinite;
}

.bpb-anim-glow {
    animation: bpb-glow 2s infinite;
}

/* Modals */
.bpb-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99998;
}
.bpb-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    z-index: 99999;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 350px;
    font-family: inherit;
}
.bpb-modal.bpb-dir-rtl {
    text-align: right !important;
    direction: rtl !important;
}
.bpb-modal.bpb-dir-ltr {
    text-align: left !important;
    direction: ltr !important;
}
.bpb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.bpb-modal-header h3 {
    margin: 0;
    font-size: 18px;
}
.bpb-modal-close {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #888;
}
.bpb-modal-close:hover {
    color: #333;
}
.bpb-modal-body p {
    margin: 0 0 10px 0;
    color: #444;
}
.bpb-copy-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px dashed #ccc;
    margin-bottom: 15px;
}
.bpb-number-text {
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
    direction: ltr;
    display: inline-block;
}
.bpb-copy-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}
.bpb-copy-btn:hover {
    background: #0056b3;
}
.bpb-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #28a745;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.bpb-call-btn:hover {
    background: #218838;
}

.bpb-email-providers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bpb-email-provider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    color: #333;
    border: 1px solid #ddd;
    transition: all 0.2s;
}
.bpb-email-provider-btn img, .bpb-email-provider-btn svg {
    display: block;
}
.bpb-gmail-btn {
    border-color: #ea4335;
    color: #ea4335;
}
.bpb-gmail-btn:hover {
    background: rgba(234, 67, 53, 0.1);
}
.bpb-outlook-btn {
    border-color: #0078d4;
    color: #0078d4;
}
.bpb-outlook-btn:hover {
    background: rgba(0, 120, 212, 0.1);
}
.bpb-apple-btn {
    border-color: #000;
    color: #000;
}
.bpb-apple-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Inline Floating style */
.bpb-style-inline_floating {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
}

.bpb-style-inline_floating .bpb-button {
    color: white !important;
    padding: 8px 15px 8px 8px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none !important;
    border-radius: 50px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    min-width: 140px;
}

.bpb-style-inline_floating .bpb-button-label {
    margin: 0 10px 0 10px;
    text-align: right;
    line-height: 1.4;
    white-space: pre-wrap;
}

.bpb-style-inline_floating .bpb-button-icon {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Twin Card style: title bar + two side-by-side pill buttons (e.g. insurance/branch banner) */
.bpb-style-twin_card {
    bottom: 15px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    display: flex;
    flex-flow: row wrap;
    align-items: stretch;
    width: 92%;
    max-width: 480px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 14px;
    box-sizing: border-box;
    gap: 10px;
}

/* When used inline via shortcode, .bpb-module resets position so it flows with content */
.bpb-module.bpb-style-twin_card {
    transform: none;
    width: 100%;
    margin: 0 auto;
}

.bpb-twin-card-title {
    order: -1;
    flex: 1 0 100%;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #1a2b3c;
    background: #eef1f5;
    border-radius: 12px;
    padding: 10px 16px;
    box-sizing: border-box;
}

.bpb-style-twin_card .bpb-button {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: bold;
}

.bpb-style-twin_card .bpb-button-icon {
    background: rgba(255,255,255,0.18);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
}
.bpb-style-twin_card .bpb-button-icon svg {
    width: 18px;
    height: 18px;
}

.bpb-style-twin_card .bpb-button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    line-height: 1.5;
}

.bpb-style-twin_card .bpb-button-label {
    font-size: 12px;
    font-weight: normal;
    opacity: 0.85;
}

.bpb-style-twin_card .bpb-button-value {
    font-size: 14px;
    font-weight: bold;
    direction: ltr;
}

/* Popup Banner */
.bpb-popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}
.bpb-popup-box {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    font-family: inherit;
    text-align: center;
}
.bpb-popup-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    transition: 0.2s;
    z-index: 10;
}
.bpb-popup-close:hover {
    background: rgba(0,0,0,0.1);
    color: #000;
}
.bpb-popup-box[dir="ltr"] .bpb-popup-close {
    left: auto;
    right: 15px;
}
.bpb-popup-image-container {
    width: 100%;
    text-align: center;
    padding-top: 30px;
}
.bpb-popup-image-container img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
}
.bpb-popup-content {
    padding: 16px 30px 30px;
}
.bpb-popup-badge {
    display: inline-block;
    background: #ffc107;
    color: #4a3600;
    font-size: 13px;
    font-weight: bold;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.bpb-popup-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}
.bpb-popup-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}
.bpb-popup-desc b, .bpb-popup-desc strong {
    color: #333;
}
.bpb-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.bpb-popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff !important;
    text-decoration: none !important;
    padding: 13px 20px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.bpb-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.bpb-popup-btn-icon {
    display: flex;
    align-items: center;
}
.bpb-popup-btn-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.bpb-popup-footer {
    font-size: 12px;
    color: #999;
}
