.edai-widget.edai-pro-polished {
    --edai-pro-surface: #ffffff;
    --edai-pro-soft: #f6f8fb;
    --edai-pro-border: #dbe3ee;
    --edai-pro-border-strong: #cbd5e1;
    --edai-pro-ink: #111827;
    --edai-pro-muted: #64748b;
    --edai-pro-faint: #f8fafc;
    --edai-pro-accent: var(--edai-primary, #2563eb);
    --edai-pro-accent-dark: #1d4ed8;
    --edai-pro-accent-soft: #eff6ff;
    --edai-pro-success: #0f9f6e;
    --edai-pro-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
    color: var(--edai-pro-ink);
}

.edai-widget.edai-pro-polished,
.edai-widget.edai-pro-polished * {
    letter-spacing: 0;
}

.edai-widget.edai-pro-polished .edai-toggle {
    width: 64px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.28);
}

.edai-widget.edai-pro-polished .edai-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.34);
}

.edai-widget.edai-pro-polished .edai-toggle:focus-visible,
.edai-widget.edai-pro-polished button:focus-visible,
.edai-widget.edai-pro-polished a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.24);
    outline-offset: 3px;
}

.edai-widget.edai-pro-polished .edai-panel {
    width: min(432px, calc(100vw - 28px));
    max-height: min(780px, calc(100vh - 94px));
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 20px;
    overflow: hidden;
    background: var(--edai-pro-surface);
    box-shadow: var(--edai-pro-shadow);
    isolation: isolate;
}

.edai-widget.edai-pro-polished .edai-panel-header {
    min-height: 70px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(219, 227, 238, 0.92);
    background:
        radial-gradient(circle at 16% 0%, rgba(37, 99, 235, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: var(--edai-pro-ink);
}

.edai-widget.edai-pro-polished .edai-panel-header-brand,
.edai-widget.edai-pro-polished .edai-chat-header-brand {
    min-width: 0;
    gap: 10px;
}

.edai-widget.edai-pro-polished .edai-panel-header-logo,
.edai-widget.edai-pro-polished .edai-chat-header-logo {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border: 1px solid rgba(37, 99, 235, 0.2);
    background: linear-gradient(180deg, #eef4ff 0%, #dbeafe 100%);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.72), 0 8px 18px rgba(37, 99, 235, 0.1);
}

.edai-widget.edai-pro-polished .edai-panel-header-title,
.edai-widget.edai-pro-polished .edai-chat-title {
    color: var(--edai-pro-ink);
    font-size: 16px;
    font-weight: 760;
    line-height: 1.25;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edai-widget.edai-pro-polished .edai-panel-header-slogan,
.edai-widget.edai-pro-polished .edai-panel-header-status,
.edai-widget.edai-pro-polished .edai-chat-header-slogan,
.edai-widget.edai-pro-polished .edai-chat-header-status {
    color: var(--edai-pro-muted);
    font-size: 12px;
    line-height: 1.35;
}

.edai-widget.edai-pro-polished .edai-panel-header-copy,
.edai-widget.edai-pro-polished .edai-chat-header-copy {
    min-width: 0;
}

.edai-widget.edai-pro-polished .edai-panel-header-actions {
    gap: 8px;
}

.edai-widget.edai-pro-polished .edai-header-save,
.edai-widget.edai-pro-polished .edai-close-header,
.edai-widget.edai-pro-polished .edai-close-mobile {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 1px solid var(--edai-pro-border);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.edai-widget.edai-pro-polished .edai-header-save:hover,
.edai-widget.edai-pro-polished .edai-close-header:hover,
.edai-widget.edai-pro-polished .edai-close-mobile:hover {
    border-color: #c7d2fe;
    color: var(--edai-pro-accent);
    background: var(--edai-pro-accent-soft);
}

.edai-widget.edai-pro-polished .edai-header-save-label {
    display: none;
}

.edai-widget.edai-pro-polished .edai-panel-body {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 42%);
}

.edai-widget.edai-pro-polished .edai-ai-chat {
    background: transparent;
}

.edai-widget.edai-pro-polished .edai-chat-header {
    min-height: 46px;
    padding: 9px 16px;
    border-bottom: 1px solid rgba(219, 227, 238, 0.76);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.92) 100%);
}

.edai-widget.edai-pro-polished .edai-chat-first-header {
    min-height: 42px;
}

.edai-widget.edai-pro-polished .edai-chat-first-header .edai-chat-header-brand {
    width: 100%;
    align-items: center;
}

.edai-widget.edai-pro-polished .edai-chat-first-header .edai-chat-header-logo {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
    border: 0;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.edai-widget.edai-pro-polished .edai-chat-first-header .edai-chat-header-logo img,
.edai-widget.edai-pro-polished .edai-chat-first-header .edai-chat-header-logo-fallback {
    display: none;
}

.edai-widget.edai-pro-polished .edai-chat-first-header .edai-chat-title {
    font-size: 14px;
    font-weight: 780;
}

.edai-widget.edai-pro-polished .edai-chat-first-header .edai-chat-header-slogan,
.edai-widget.edai-pro-polished .edai-chat-first-header .edai-chat-header-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-left: auto;
    padding: 3px 9px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 999px;
    background: rgba(240, 253, 244, 0.9);
    color: #047857;
    font-size: 11px;
    font-weight: 760;
}

.edai-widget.edai-pro-polished .edai-chat-nav-header .edai-back,
.edai-widget.edai-pro-polished .edai-subscreen-header .edai-back {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--edai-pro-border);
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 760;
}

.edai-widget.edai-pro-polished .edai-chat-messages {
    padding: 16px 16px 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

.edai-widget.edai-pro-polished .edai-chat-date-separator,
.edai-widget.edai-pro-polished .edai-chat-day-separator {
    margin: 10px auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef2f7;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.edai-widget.edai-pro-polished .edai-modern-home {
    padding: 18px 18px 16px;
}

.edai-widget.edai-pro-polished .edai-modern-home-hero {
    margin: 0 0 14px;
    padding: 16px;
    border: 1px solid var(--edai-pro-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.edai-widget.edai-pro-polished .edai-modern-home-eyebrow {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eaf7f2;
    color: #047857;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.edai-widget.edai-pro-polished .edai-modern-home-title {
    color: var(--edai-pro-ink);
    font-size: 22px;
    font-weight: 780;
    line-height: 1.18;
}

.edai-widget.edai-pro-polished .edai-modern-home-description {
    max-width: 34ch;
    color: var(--edai-pro-muted);
    font-size: 13px;
    line-height: 1.5;
}

.edai-widget.edai-pro-polished .edai-modern-home-actions {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 16px;
}

.edai-widget.edai-pro-polished .edai-modern-home-action {
    min-height: 44px;
    justify-content: center;
    border-radius: 10px;
    border-color: var(--edai-pro-border);
    background: #fff;
    color: #1f2937;
    font-size: 13px;
    font-weight: 760;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.edai-widget.edai-pro-polished .edai-modern-home-action:first-child {
    border-color: var(--edai-pro-accent);
    background: var(--edai-pro-accent);
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.edai-widget.edai-pro-polished .edai-modern-home-action:hover,
.edai-widget.edai-pro-polished .edai-modern-product:hover,
.edai-widget.edai-pro-polished .edai-commerce-product:hover {
    transform: translateY(-1px);
}

.edai-widget.edai-pro-polished .edai-modern-section-heading {
    margin: 0 0 10px;
    color: var(--edai-pro-ink);
    font-size: 12px;
    font-weight: 820;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.edai-widget.edai-pro-polished .edai-modern-products,
.edai-widget.edai-pro-polished .edai-commerce-chat {
    gap: 10px;
}

.edai-widget.edai-pro-polished .edai-modern-product,
.edai-widget.edai-pro-polished .edai-commerce-product {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 11px;
    border: 1px solid var(--edai-pro-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.edai-widget.edai-pro-polished .edai-modern-product:hover,
.edai-widget.edai-pro-polished .edai-commerce-product:hover {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.edai-widget.edai-pro-polished .edai-modern-product-image,
.edai-widget.edai-pro-polished .edai-commerce-product-image {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    border-radius: 10px;
    background: var(--edai-pro-soft);
}

.edai-widget.edai-pro-polished .edai-modern-product-heading strong,
.edai-widget.edai-pro-polished .edai-commerce-product-heading strong {
    color: var(--edai-pro-ink);
    font-size: 13px;
    font-weight: 760;
}

.edai-widget.edai-pro-polished .edai-modern-product-heading span,
.edai-widget.edai-pro-polished .edai-commerce-product-heading span {
    border-radius: 999px;
    background: #dcfce7;
    color: #047857;
    font-size: 9px;
    font-weight: 820;
}

.edai-widget.edai-pro-polished .edai-modern-product-price,
.edai-widget.edai-pro-polished .edai-commerce-product-price {
    margin-top: 5px;
    color: #334155;
    font-size: 12px;
    font-weight: 760;
}

.edai-widget.edai-pro-polished .edai-modern-product-action,
.edai-widget.edai-pro-polished .edai-commerce-product-action {
    min-height: 30px;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #eff6ff;
    color: var(--edai-pro-accent-dark);
    font-size: 11px;
    font-weight: 800;
}

.edai-widget.edai-pro-polished .edai-chat-area,
.edai-widget.edai-pro-polished .edai-chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.edai-widget.edai-pro-polished .edai-chat-area::-webkit-scrollbar,
.edai-widget.edai-pro-polished .edai-chat-messages::-webkit-scrollbar,
.edai-widget.edai-pro-polished textarea::-webkit-scrollbar {
    width: 6px;
}

.edai-widget.edai-pro-polished .edai-chat-area::-webkit-scrollbar-thumb,
.edai-widget.edai-pro-polished .edai-chat-messages::-webkit-scrollbar-thumb,
.edai-widget.edai-pro-polished textarea::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd5e1;
}

.edai-widget.edai-pro-polished .edai-chat-message {
    gap: 10px;
    margin-bottom: 10px;
}

.edai-widget.edai-pro-polished .edai-chat-avatar,
.edai-widget.edai-pro-polished .edai-chat-avatar img,
.edai-widget.edai-pro-polished .edai-chat-avatar .edai-avatar-placeholder {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 999px;
}

.edai-widget.edai-pro-polished .edai-chat-avatar .edai-avatar-placeholder {
    background: #eaf1ff;
}

.edai-widget.edai-pro-polished .edai-chat-bubble,
.edai-widget.edai-pro-polished .edai-message-bubble {
    max-width: min(320px, 82%);
    padding: 12px 14px;
    border: 1px solid var(--edai-pro-border);
    border-radius: 16px 16px 16px 6px;
    background: #fff;
    color: #1f2937;
    font-size: 13px;
    line-height: 1.52;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    overflow-wrap: break-word;
    word-break: normal;
}

.edai-widget.edai-pro-polished .edai-chat-user .edai-chat-bubble {
    min-width: 48px;
    width: fit-content;
    max-width: min(300px, 78%);
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
    border-color: var(--edai-pro-accent);
    background: var(--edai-pro-accent);
    color: #fff;
    border-radius: 16px 16px 6px 16px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.edai-widget.edai-pro-polished .edai-chat-bubble p {
    margin: 0 0 8px;
}

.edai-widget.edai-pro-polished .edai-chat-bubble p:last-child {
    margin-bottom: 0;
}

.edai-widget.edai-pro-polished .edai-chat-bubble a {
    color: var(--edai-pro-accent-dark);
    font-weight: 720;
    text-underline-offset: 2px;
}

.edai-widget.edai-pro-polished .edai-chat-user .edai-chat-bubble a {
    color: #ffffff;
}

.edai-widget.edai-pro-polished .edai-chat-time,
.edai-widget.edai-pro-polished .edai-message-time {
    color: #94a3b8;
    font-size: 11px;
}

.edai-widget.edai-pro-polished .edai-chat-starters,
.edai-widget.edai-pro-polished .edai-followups {
    display: grid;
    gap: 8px;
    max-width: 100%;
    overflow: visible;
}

.edai-widget.edai-pro-polished .edai-chat-starters button,
.edai-widget.edai-pro-polished .edai-followups button,
.edai-widget.edai-pro-polished .edai-followups .edai-followup {
    min-height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.35);
    background: #fff;
    color: var(--edai-pro-accent-dark);
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 12px;
    font-weight: 720;
    line-height: 1.3;
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.07);
}

.edai-widget.edai-pro-polished .edai-chat-starters button:hover,
.edai-widget.edai-pro-polished .edai-followups button:hover,
.edai-widget.edai-pro-polished .edai-followups .edai-followup:hover {
    border-color: rgba(37, 99, 235, 0.58);
    background: var(--edai-pro-accent-soft);
}

.edai-widget.edai-pro-polished .edai-save-chat,
.edai-widget.edai-pro-polished .edai-save-chat-card,
.edai-widget.edai-pro-polished .edai-chat-form-bubble form,
.edai-widget.edai-pro-polished .edai-smart-lead-form {
    border: 1px solid var(--edai-pro-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.edai-widget.edai-pro-polished .edai-chat-bubble.edai-chat-form-bubble {
    width: min(330px, 100%);
    max-width: min(330px, calc(100vw - 92px)) !important;
    padding: 0 !important;
    border: 0;
    border-radius: 16px;
    background: transparent !important;
    box-shadow: none;
    overflow: visible;
}

.edai-widget.edai-pro-polished .edai-inline-appointment-form {
    width: 100%;
}

.edai-widget.edai-pro-polished .edai-inline-appointment-form form {
    display: grid;
    gap: 11px;
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.edai-widget.edai-pro-polished .edai-inline-form-header {
    display: grid;
    gap: 5px;
    margin: 0 0 2px;
    padding-bottom: 11px;
    border-bottom: 1px solid #edf2f7;
}

.edai-widget.edai-pro-polished .edai-inline-form-header strong {
    color: var(--edai-pro-ink);
    font-size: 15px;
    font-weight: 780;
    line-height: 1.25;
    letter-spacing: 0;
}

.edai-widget.edai-pro-polished .edai-inline-form-header span {
    color: var(--edai-pro-muted);
    font-size: 12px;
    line-height: 1.45;
}

.edai-widget.edai-pro-polished .edai-inline-form-field {
    display: grid;
    gap: 5px;
    margin: 0;
}

.edai-widget.edai-pro-polished .edai-inline-form-field input,
.edai-widget.edai-pro-polished .edai-inline-form-field select,
.edai-widget.edai-pro-polished .edai-inline-form-field textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #dbe3ee;
    border-radius: 11px;
    background: #fdfefe;
    color: var(--edai-pro-ink);
    font-size: 13px;
    line-height: 1.4;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

.edai-widget.edai-pro-polished .edai-inline-form-field textarea {
    min-height: 88px;
    max-height: 150px;
    resize: vertical;
    overflow-y: auto;
}

.edai-widget.edai-pro-polished .edai-inline-form-field select {
    appearance: auto;
    color: #334155;
}

.edai-widget.edai-pro-polished .edai-inline-form-field input::placeholder,
.edai-widget.edai-pro-polished .edai-inline-form-field textarea::placeholder {
    color: #94a3b8;
}

.edai-widget.edai-pro-polished .edai-inline-form-field input:focus,
.edai-widget.edai-pro-polished .edai-inline-form-field select:focus,
.edai-widget.edai-pro-polished .edai-inline-form-field textarea:focus {
    border-color: var(--edai-pro-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
    outline: none;
}

.edai-widget.edai-pro-polished .edai-inline-form-submit {
    min-height: 44px;
    margin-top: 2px;
    padding: 11px 14px;
    border: 0;
    border-radius: 12px;
    background: var(--edai-pro-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.edai-widget.edai-pro-polished .edai-inline-form-submit:hover {
    background: var(--edai-pro-accent-dark);
    filter: none;
}

.edai-widget.edai-pro-polished .edai-inline-form-submit:disabled {
    opacity: 0.72;
    cursor: wait;
}

.edai-widget.edai-pro-polished .edai-inline-form-submit svg {
    width: 15px;
    height: 15px;
}

.edai-widget.edai-pro-polished .edai-inline-form-success {
    align-items: flex-start;
    margin-top: 10px;
    padding: 13px;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: #f0fdf4;
    color: #047857;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.edai-widget.edai-pro-polished .edai-inline-form-success svg {
    width: 19px;
    height: 19px;
    color: #059669;
}

.edai-widget.edai-pro-polished .edai-chat-bubble:has(.edai-inline-card),
.edai-widget.edai-pro-polished .edai-chat-card-bubble {
    width: min(340px, 100%);
    max-width: min(340px, calc(100vw - 92px)) !important;
    padding: 0 !important;
    border: 0;
    border-radius: 16px;
    background: transparent !important;
    box-shadow: none;
    overflow: visible;
}

.edai-widget.edai-pro-polished .edai-inline-card {
    width: 100% !important;
    padding: 15px !important;
    border: 1px solid rgba(37, 99, 235, 0.16) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1) !important;
    overflow: hidden;
}

.edai-widget.edai-pro-polished .edai-inline-card .edai-card-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 11px !important;
    margin: 0 0 13px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #edf2f7 !important;
}

.edai-widget.edai-pro-polished .edai-inline-card .edai-card-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 12px !important;
    background: var(--edai-pro-accent-soft) !important;
    color: var(--edai-pro-accent) !important;
}

.edai-widget.edai-pro-polished .edai-inline-card .edai-card-icon svg {
    width: 19px !important;
    height: 19px !important;
}

.edai-widget.edai-pro-polished .edai-inline-card .edai-card-title {
    color: var(--edai-pro-ink) !important;
    font-size: 15px !important;
    font-weight: 790 !important;
    line-height: 1.25 !important;
}

.edai-widget.edai-pro-polished .edai-inline-card .edai-card-body,
.edai-widget.edai-pro-polished .edai-inline-card .edai-card-status-note,
.edai-widget.edai-pro-polished .edai-handoff-subtitle {
    color: var(--edai-pro-muted) !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.edai-widget.edai-pro-polished .edai-inline-card .edai-card-action,
.edai-widget.edai-pro-polished .edai-inline-callback-form button,
.edai-widget.edai-pro-polished .edai-human-handoff-form button[type="submit"],
.edai-widget.edai-pro-polished .edai-engage-form button.edai-engage-card-action {
    min-height: 44px !important;
    padding: 11px 14px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--edai-pro-accent) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25) !important;
}

.edai-widget.edai-pro-polished .edai-inline-card .edai-card-action:hover,
.edai-widget.edai-pro-polished .edai-inline-callback-form button:hover,
.edai-widget.edai-pro-polished .edai-human-handoff-form button[type="submit"]:hover,
.edai-widget.edai-pro-polished .edai-engage-form button.edai-engage-card-action:hover {
    background: var(--edai-pro-accent-dark) !important;
    filter: none !important;
    transform: translateY(-1px);
}

.edai-widget.edai-pro-polished .edai-inline-callback-form,
.edai-widget.edai-pro-polished .edai-human-handoff-form,
.edai-widget.edai-pro-polished .edai-engage-form {
    display: grid !important;
    gap: 11px !important;
    margin: 0 !important;
}

.edai-widget.edai-pro-polished .edai-inline-callback-form input,
.edai-widget.edai-pro-polished .edai-inline-callback-form select,
.edai-widget.edai-pro-polished .edai-inline-callback-form textarea,
.edai-widget.edai-pro-polished .edai-human-handoff-form input,
.edai-widget.edai-pro-polished .edai-human-handoff-form select,
.edai-widget.edai-pro-polished .edai-human-handoff-form textarea,
.edai-widget.edai-pro-polished .edai-engage-form input,
.edai-widget.edai-pro-polished .edai-engage-form select,
.edai-widget.edai-pro-polished .edai-engage-form textarea {
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 11px !important;
    background: #fdfefe !important;
    color: var(--edai-pro-ink) !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03) !important;
}

.edai-widget.edai-pro-polished .edai-inline-callback-form textarea,
.edai-widget.edai-pro-polished .edai-human-handoff-form textarea,
.edai-widget.edai-pro-polished .edai-engage-form textarea {
    min-height: 88px !important;
    max-height: 150px !important;
    resize: vertical !important;
    overflow-y: auto !important;
}

.edai-widget.edai-pro-polished .edai-inline-callback-form input:focus,
.edai-widget.edai-pro-polished .edai-inline-callback-form select:focus,
.edai-widget.edai-pro-polished .edai-inline-callback-form textarea:focus,
.edai-widget.edai-pro-polished .edai-human-handoff-form input:focus,
.edai-widget.edai-pro-polished .edai-human-handoff-form select:focus,
.edai-widget.edai-pro-polished .edai-human-handoff-form textarea:focus,
.edai-widget.edai-pro-polished .edai-engage-form input:focus,
.edai-widget.edai-pro-polished .edai-engage-form select:focus,
.edai-widget.edai-pro-polished .edai-engage-form textarea:focus {
    border-color: var(--edai-pro-accent) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13) !important;
    outline: none !important;
}

.edai-widget.edai-pro-polished .edai-inline-callback-form input::placeholder,
.edai-widget.edai-pro-polished .edai-inline-callback-form textarea::placeholder,
.edai-widget.edai-pro-polished .edai-human-handoff-form input::placeholder,
.edai-widget.edai-pro-polished .edai-human-handoff-form textarea::placeholder,
.edai-widget.edai-pro-polished .edai-engage-form input::placeholder,
.edai-widget.edai-pro-polished .edai-engage-form textarea::placeholder {
    color: #94a3b8 !important;
}

.edai-widget.edai-pro-polished .edai-handoff-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 0 13px !important;
}

.edai-widget.edai-pro-polished .edai-handoff-chip,
.edai-widget.edai-pro-polished .edai-contact-option {
    min-height: 34px !important;
    padding: 7px 11px !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 999px !important;
    background: var(--edai-pro-accent-soft) !important;
    color: var(--edai-pro-accent-dark) !important;
    font-size: 12px !important;
    font-weight: 760 !important;
    text-decoration: none !important;
}

.edai-widget.edai-pro-polished .edai-contact-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
}

.edai-widget.edai-pro-polished .edai-contact-option {
    justify-content: center !important;
    border-radius: 12px !important;
}

.edai-widget.edai-pro-polished .edai-inline-callback-success,
.edai-widget.edai-pro-polished .edai-human-handoff-success {
    align-items: flex-start !important;
    gap: 9px !important;
    margin-top: 10px !important;
    padding: 13px !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 14px !important;
    background: #f0fdf4 !important;
    color: #047857 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05) !important;
}

.edai-widget.edai-pro-polished .edai-inline-callback-success:not(.edai-hidden),
.edai-widget.edai-pro-polished .edai-human-handoff-success:not(.edai-hidden) {
    display: flex !important;
}

.edai-widget.edai-pro-polished .edai-chat-input-area {
    padding: 12px 14px 13px;
    border-top: 1px solid var(--edai-pro-border);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.edai-widget.edai-pro-polished .edai-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: end;
    gap: 10px;
}

.edai-widget.edai-pro-polished #edai-chat-input,
.edai-widget.edai-pro-polished .edai-chat-form input,
.edai-widget.edai-pro-polished .edai-chat-form textarea {
    min-height: 46px;
    max-height: 126px;
    padding: 12px 14px;
    border: 1px solid var(--edai-pro-border);
    border-radius: 16px;
    background: #fff;
    color: var(--edai-pro-ink);
    font-size: 14px;
    line-height: 1.42;
    resize: none;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

.edai-widget.edai-pro-polished #edai-chat-input:focus,
.edai-widget.edai-pro-polished .edai-chat-form input:focus,
.edai-widget.edai-pro-polished .edai-chat-form textarea:focus {
    border-color: var(--edai-pro-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    outline: none;
}

.edai-widget.edai-pro-polished .edai-chat-send {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 999px;
    background: var(--edai-pro-accent);
    color: #fff;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.edai-widget.edai-pro-polished .edai-chat-send:hover {
    background: var(--edai-pro-accent-dark);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32);
    transform: translateY(-1px);
}

.edai-widget.edai-pro-polished .edai-chat-language {
    display: grid;
    grid-template-columns: auto minmax(130px, 1fr);
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-top: 1px solid rgba(219, 227, 238, 0.72);
    background: #ffffff;
}

.edai-widget.edai-pro-polished .edai-chat-language-label {
    color: #475569;
    font-size: 11px;
    font-weight: 820;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.edai-widget.edai-pro-polished .edai-chat-language-select {
    min-height: 38px;
    border: 1px solid var(--edai-pro-border);
    border-radius: 11px;
    background: #fff;
    color: var(--edai-pro-ink);
    font-size: 13px;
    font-weight: 650;
}

.edai-widget.edai-pro-polished .edai-footer {
    min-height: 56px;
    padding: 10px 14px;
    border-top: 1px solid var(--edai-pro-border);
    background: #fff;
}

.edai-widget.edai-pro-polished .edai-panel-footer,
.edai-widget.edai-pro-polished .edai-footer-bar {
    background: #ffffff;
}

.edai-widget.edai-pro-polished .edai-footer-status {
    gap: 6px;
    font-size: 13px;
    font-weight: 780;
}

.edai-widget.edai-pro-polished .edai-footer-chat-tools {
    gap: 7px;
}

.edai-widget.edai-pro-polished .edai-chat-tool-btn {
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid var(--edai-pro-border);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.edai-widget.edai-pro-polished .edai-chat-tool-btn:hover {
    border-color: #bfdbfe;
    background: var(--edai-pro-accent-soft);
    color: var(--edai-pro-accent-dark);
}

.edai-widget.edai-pro-polished .edai-modern-nav {
    border-top: 1px solid var(--edai-pro-border);
    background: #ffffff;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.04);
}

.edai-widget.edai-pro-polished .edai-modern-nav-button {
    position: relative;
    min-height: 60px;
    color: #64748b;
    font-size: 10px;
    font-weight: 760;
    transition: color 0.14s ease, background 0.14s ease;
}

.edai-widget.edai-pro-polished .edai-modern-nav-button:hover {
    background: #f8fbff;
    color: var(--edai-pro-accent-dark);
}

.edai-widget.edai-pro-polished .edai-modern-nav-button.is-active {
    color: var(--edai-pro-accent);
}

.edai-widget.edai-pro-polished .edai-modern-nav-button.is-active::after {
    content: "";
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
}

.edai-widget.edai-pro-polished .edai-turnstile-panel,
.edai-widget.edai-pro-polished #edai-chat-turnstile {
    margin: 10px 16px 0;
    padding: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #f8fbff;
}

.edai-widget.edai-pro-polished .edai-chat-save {
    margin: 0;
    padding: 12px 16px;
    border-top: 1px solid rgba(219, 227, 238, 0.76);
    background: #ffffff;
}

.edai-widget.edai-pro-polished .edai-chat-save-toggle {
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--edai-pro-border);
    border-radius: 14px;
    background: #fff;
    color: var(--edai-pro-ink);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.edai-widget.edai-pro-polished .edai-chat-save-toggle-text {
    font-size: 13px;
    font-weight: 760;
}

.edai-widget.edai-pro-polished .edai-chat-save-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--edai-pro-accent-soft);
    color: var(--edai-pro-accent);
    font-size: 18px;
    font-weight: 800;
}

.edai-widget.edai-pro-polished .edai-chat-save-panel {
    margin-top: 10px;
    padding: 13px;
    border: 1px solid var(--edai-pro-border);
    border-radius: 14px;
    background: #fbfdff;
}

.edai-widget.edai-pro-polished .edai-chat-save-copy {
    margin-bottom: 10px;
}

.edai-widget.edai-pro-polished .edai-chat-save-copy strong {
    color: var(--edai-pro-ink);
    font-size: 13px;
}

.edai-widget.edai-pro-polished .edai-chat-save-copy span {
    color: var(--edai-pro-muted);
    font-size: 12px;
    line-height: 1.4;
}

.edai-widget.edai-pro-polished .edai-chat-save-form {
    gap: 8px;
}

.edai-widget.edai-pro-polished .edai-chat-save-form input {
    min-height: 39px;
    border: 1px solid var(--edai-pro-border);
    border-radius: 11px;
    background: #ffffff;
    font-size: 13px;
}

.edai-widget.edai-pro-polished .edai-chat-save-form button {
    min-height: 39px;
    border-radius: 11px;
    background: var(--edai-pro-accent);
    font-size: 12px;
    font-weight: 800;
}

.edai-widget.edai-pro-polished .edai-chat-save-status {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.edai-widget.edai-pro-polished .edai-powered-by {
    border-bottom: 1px solid rgba(219, 227, 238, 0.72);
    background: #ffffff;
    color: #94a3b8;
}

.edai-widget.edai-pro-polished .edai-subscreen {
    background: #ffffff;
}

.edai-widget.edai-pro-polished .edai-subscreen-header {
    border-bottom: 1px solid var(--edai-pro-border);
    background: #fbfdff;
}

.edai-widget.edai-pro-polished .edai-engage-contact-card,
.edai-widget.edai-pro-polished .edai-engage-form-card {
    border: 1px solid var(--edai-pro-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.edai-widget.edai-pro-polished .edai-form-success {
    border-radius: 14px;
    background: #f0fdf4;
    color: #047857;
}

@media (max-width: 480px) {
    .edai-widget.edai-pro-polished.active .edai-panel {
        width: calc(100vw - 14px);
        max-height: calc(100vh - 76px);
        border-radius: 18px;
    }

    .edai-widget.edai-pro-polished .edai-panel-header {
        min-height: 62px;
        padding: 12px 14px;
    }

    .edai-widget.edai-pro-polished .edai-chat-bubble,
    .edai-widget.edai-pro-polished .edai-message-bubble {
        max-width: min(300px, 84vw);
    }

    .edai-widget.edai-pro-polished .edai-modern-home {
        padding: 14px;
    }

    .edai-widget.edai-pro-polished .edai-modern-home-actions {
        grid-template-columns: 1fr;
    }

    .edai-widget.edai-pro-polished .edai-chat-language {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .edai-widget.edai-pro-polished .edai-chat-save-form {
        grid-template-columns: 1fr;
    }

    .edai-widget.edai-pro-polished .edai-footer {
        flex-wrap: wrap;
        gap: 8px;
    }
}
