.ewc-widget {
    --ewc-bubble: #25D366;
    --ewc-pulse-rgb: 37, 211, 102;
    --ewc-accent: #EC486F;
    --ewc-heading: #471344;
    --ewc-contact-button-bg: #25D366;
    --ewc-contact-button-text: #FFFFFF;
    --ewc-contact-button-hover: #1DBA5B;
    --ewc-modal-width: 448px;
    --ewc-overlay-opacity: .68;
    --ewc-z: 99990;
    position: fixed;
    bottom: 22px;
    z-index: var(--ewc-z);
    width: auto;
    max-width: calc(100vw - 32px);
    color: #311a38;
    font-family: inherit;
    line-height: 1.45;
}
.ewc-position-right { right: 22px; }
.ewc-position-left { left: 22px; }
.ewc-widget *, .ewc-widget *::before, .ewc-widget *::after { box-sizing: border-box; }
.ewc-widget [hidden] { display: none !important; }
.ewc-launcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--ewc-bubble);
    box-shadow: 0 7px 20px rgba(20, 150, 75, .28);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    margin-left: auto;
    position: relative;
    z-index: 2;
}
.ewc-position-left .ewc-launcher { margin-left: 0; margin-right: auto; }
.ewc-launcher:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 150, 75, .34); }
.ewc-launcher:focus-visible, .ewc-widget button:focus-visible, .ewc-widget input:focus-visible, .ewc-widget textarea:focus-visible { outline: 3px solid rgba(236, 72, 111, .35); outline-offset: 3px; }
.ewc-launcher svg { position: relative; z-index: 1; width: 29px; height: 29px; fill: currentColor; }
/* Soft expanding halo, matching the supplied WhatsApp button reference. */
.ewc-pulse-enabled .ewc-launcher::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(var(--ewc-pulse-rgb), .38);
    animation: ewc-pulse-ring 2.2s cubic-bezier(.2, .7, .3, 1) infinite;
}
@keyframes ewc-pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(var(--ewc-pulse-rgb), .38); }
    70% { box-shadow: 0 0 0 16px rgba(var(--ewc-pulse-rgb), 0); }
    100% { box-shadow: 0 0 0 16px rgba(var(--ewc-pulse-rgb), 0); }
}
.ewc-teaser {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: min(260px, calc(100vw - 32px));
    padding: 13px 13px 12px 15px;
    margin-bottom: 13px;
    border: 1px solid rgba(71, 19, 68, .06);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(56, 24, 57, .13);
    animation: ewc-rise .25s ease-out both;
    position: relative;
    z-index: 2;
}
.ewc-position-left .ewc-teaser { margin-left: 0; margin-right: auto; }
.ewc-teaser-copy { flex: 1; min-width: 0; }
.ewc-teaser strong { display: block; color: var(--ewc-heading); font-size: 14px; line-height: 1.3; font-weight: 600; margin: 0 0 3px; }
.ewc-teaser p { color: #83748b; font-size: 12.5px; line-height: 1.35; margin: 0; }
.ewc-teaser-close, .ewc-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #69546d;
    cursor: pointer;
}
.ewc-teaser-close svg, .ewc-modal-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ewc-modal { position: fixed; inset: 0; z-index: calc(var(--ewc-z) + 2); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ewc-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: rgba(18, 12, 20, var(--ewc-overlay-opacity)); cursor: default; }
.ewc-dialog {
    position: relative;
    z-index: 1;
    width: min(var(--ewc-modal-width), 100%);
    max-height: min(90vh, 760px);
    overflow-y: auto;
    padding: 23px 24px 21px;
    border: 1px solid rgba(236, 72, 111, .10);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(22, 8, 26, .24);
    animation: ewc-pop .2s ease-out both;
}
.ewc-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.ewc-dialog-header h2 { padding: 0; margin: 0; color: var(--ewc-heading); font-size: 18px; font-weight: 600; line-height: 1.3; }
.ewc-modal-close { width: 24px; height: 24px; }
.ewc-modal-close svg { width: 18px; height: 18px; }
.ewc-dialog-intro { margin: 0 0 20px; color: #81738a; font-size: 13px; line-height: 1.45; }
.ewc-chat-form { margin: 0; }
.ewc-fields-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ewc-field { min-width: 0; margin: 0 0 15px; }
.ewc-field label { display: block; margin: 0 0 6px; color: #4b3151; font-size: 13px; font-weight: 500; line-height: 1.25; }
.ewc-field label span { color: #e33f65; }
.ewc-field input, .ewc-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 39px;
    padding: 10px 12px;
    border: 1px solid #eadfeb;
    border-radius: 12px;
    outline: 0;
    background: #fffdfd;
    color: #37223d;
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(36, 13, 43, .04);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.ewc-field input::placeholder, .ewc-field textarea::placeholder { color: #93869a; opacity: 1; }
.ewc-field input:focus, .ewc-field textarea:focus { border-color: var(--ewc-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ewc-accent) 12%, transparent); }
.ewc-field textarea { min-height: 98px; resize: vertical; }
.ewc-message-field { margin-bottom: 15px; }
.ewc-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 43px;
    padding: 11px 18px;
    border: 0;
    border-radius: 11px;
    background: var(--ewc-bubble);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(37, 211, 102, .16);
    transition: filter .2s ease, transform .2s ease;
}
.ewc-submit:hover { filter: brightness(.96); transform: translateY(-1px); }
.ewc-submit-icon { display: inline-flex; width: 16px; height: 16px; }
.ewc-submit-icon svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.ewc-fine-print { margin: 13px 5px 0; color: #92859a; text-align: center; font-size: 10.5px; line-height: 1.4; }
.ewc-no-scroll { overflow: hidden !important; }
@keyframes ewc-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ewc-pop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 600px) {
    .ewc-widget { bottom: 14px; max-width: calc(100vw - 24px); }
    .ewc-position-right { right: 14px; }
    .ewc-position-left { left: 14px; }
    .ewc-launcher { width: 56px; height: 56px; }
    .ewc-teaser { width: min(250px, calc(100vw - 28px)); }
    .ewc-modal { padding: 12px; align-items: center; }
    .ewc-dialog { padding: 20px 18px 17px; border-radius: 15px; max-height: 92vh; }
}
@media (max-width: 380px) {
    .ewc-fields-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ewc-widget *, .ewc-widget *::before, .ewc-widget *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .ewc-pulse-enabled .ewc-launcher::before { animation: none !important; box-shadow: none !important; }
}
.ewc-hide-mobile { display: block; }
@media (max-width: 767px) { .ewc-hide-mobile { display: none !important; } }

/* Two-contact selection shown when an alternative WhatsApp number is configured. */
.ewc-contact-options { margin: 2px 0 0; }
.ewc-contact-heading { margin: 0 0 9px; color: #4b3151; font-size: 12.5px; font-weight: 600; }
.ewc-contact-buttons { display: grid; grid-template-columns: 1fr; gap: 9px; }
.ewc-contact-submit { justify-content: flex-start; min-height: 57px; padding: 10px 14px; text-align: left; }
.ewc-contact-details { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.3; }
.ewc-contact-details strong { display: block; max-width: 100%; color: #fff; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.ewc-contact-details small { display: block; max-width: 100%; color: rgba(255, 255, 255, .88); font-size: 11px; font-weight: 400; overflow-wrap: anywhere; }


/* Keep the two-contact choices consistent inside themes with global button styling. */
.ewc-widget .ewc-dialog .ewc-contact-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.ewc-widget .ewc-dialog .ewc-contact-buttons > button.ewc-contact-submit {
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 58px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 11px !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    background: var(--ewc-contact-button-bg) !important;
    background-image: none !important;
    color: var(--ewc-contact-button-text) !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: normal !important;
    text-align: left !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: normal !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .10) !important;
    cursor: pointer !important;
    transition: filter .18s ease, transform .18s ease, box-shadow .18s ease !important;
}
.ewc-widget .ewc-dialog .ewc-contact-buttons > button.ewc-contact-submit:hover {
    background: var(--ewc-contact-button-hover) !important;
    color: var(--ewc-contact-button-text) !important;
    transform: translateY(-1px) !important;
}
.ewc-widget .ewc-dialog .ewc-contact-buttons > button.ewc-contact-submit:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ewc-accent) 38%, transparent) !important;
    outline-offset: 3px !important;
}
.ewc-widget .ewc-dialog .ewc-contact-buttons > button.ewc-contact-submit .ewc-submit-icon {
    display: inline-flex !important;
    flex: 0 0 16px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--ewc-contact-button-text) !important;
}
.ewc-widget .ewc-dialog .ewc-contact-buttons > button.ewc-contact-submit .ewc-submit-icon svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    fill: currentColor !important;
}
.ewc-widget .ewc-dialog .ewc-contact-buttons > button.ewc-contact-submit .ewc-contact-details {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 2px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.3 !important;
}
.ewc-widget .ewc-dialog .ewc-contact-buttons > button.ewc-contact-submit .ewc-contact-details strong {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--ewc-contact-button-text) !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    text-transform: none !important;
    overflow-wrap: anywhere !important;
}
.ewc-widget .ewc-dialog .ewc-contact-buttons > button.ewc-contact-submit .ewc-contact-details small {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--ewc-contact-button-text) !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
}
.ewc-widget .ewc-dialog .ewc-contact-heading {
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #4b3151 !important;
    font-family: inherit !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    text-align: left !important;
}
