.wa-client-control {
    display: grid;
    gap: 1.25rem;
}

.wa-first-run {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1.5rem;
    align-items: end;
    padding: 1.5rem;
    border: 1px solid #111827;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, #111827 0%, #13241b 62%, #0f3d28 100%);
    box-shadow: 0 24px 70px rgba(17, 24, 39, .18);
}

.wa-first-run h2 {
    max-width: 50rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 950;
    line-height: 1;
}

.wa-first-run p:not(.wa-client-eyebrow) {
    max-width: 48rem;
    margin-top: .7rem;
    color: #dce8e1;
    font-size: 1rem;
}

.wa-first-run .wa-client-eyebrow {
    color: #86efac;
}

.wa-first-run__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.1rem;
}

.wa-first-run__actions a,
.wa-first-run__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .75rem 1rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    font-weight: 950;
    text-decoration: none;
}

.wa-first-run__actions a {
    color: #111827;
    background: #86efac;
}

.wa-first-run__actions button {
    cursor: pointer;
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.wa-first-run__progress {
    display: grid;
    gap: .55rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
}

.wa-first-run__progress span {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 950;
}

.wa-first-run__progress strong {
    color: #dce8e1;
    font-size: .92rem;
}

.wa-first-run__progress div {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
}

.wa-first-run__progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #86efac;
}

.wa-first-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: .75rem;
    align-items: stretch;
    padding: .9rem;
    border: 1px solid #bbf7d0;
    border-radius: 18px;
    background: #f0fdf4;
}

.wa-first-guide__step {
    cursor: pointer;
    text-align: left;
    font: inherit;
    padding: .85rem;
    border: 1px solid transparent;
    border-radius: 14px;
    color: inherit;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.wa-first-guide__step.is-active {
    border-color: #16a34a;
    box-shadow: 0 16px 34px rgba(22, 163, 74, .16);
    transform: translateY(-1px);
}

.wa-first-guide strong {
    display: block;
    color: #13231b;
    font-weight: 950;
}

.wa-first-guide p {
    margin: .25rem 0 0;
    color: #52665b;
    font-size: .88rem;
}

.wa-first-guide__step span {
    display: inline-flex;
    margin-top: .7rem;
    color: #15803d;
    font-size: .78rem;
    font-weight: 900;
}

.wa-first-guide__controls {
    display: grid;
    gap: .5rem;
    min-width: 118px;
}

.wa-first-guide__controls button {
    cursor: pointer;
    border: 1px solid #111827;
    border-radius: 14px;
    color: #fff;
    background: #111827;
    font-weight: 950;
}

.wa-first-guide__controls button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.wa-guide-spotlight-root {
    position: relative !important;
    z-index: 75 !important;
}

.wa-client-control.is-guide-dimming > :not(.wa-dashboard-guide-bar):not(.wa-guide-current-section) {
    opacity: .34;
    transition: opacity .18s ease;
}

.wa-client-control.is-guide-dimming > .wa-dashboard-guide-bar,
.wa-client-control.is-guide-dimming > .wa-guide-current-section {
    opacity: 1;
}

.wa-guide-highlight {
    position: relative;
    z-index: 80 !important;
    outline: 3px solid #22c55e !important;
    outline-offset: 6px;
    border-radius: 14px;
    background-color: #fff !important;
    box-shadow: 0 0 0 12px rgba(34, 197, 94, .2), 0 24px 60px rgba(0, 0, 0, .28) !important;
    animation: wa-dashboard-guide-pulse 1.4s ease-in-out infinite;
}

@keyframes wa-dashboard-guide-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, .18), 0 24px 60px rgba(0, 0, 0, .25);
    }

    50% {
        box-shadow: 0 0 0 16px rgba(34, 197, 94, .09), 0 28px 70px rgba(0, 0, 0, .3);
    }
}

.wa-dashboard-guide-bar {
    position: fixed;
    top: 5.25rem;
    right: 1rem;
    left: clamp(1rem, 22vw, 25rem);
    z-index: 90;
    max-width: 78rem;
}

.wa-client-control__hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(22, 163, 74, .18);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, .16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f4fff8 100%);
}

.wa-client-eyebrow {
    margin: 0 0 .45rem;
    color: #15803d;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wa-client-control h2,
.wa-client-control h3,
.wa-client-control p {
    margin: 0;
}

.wa-client-control h2 {
    color: #062015;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 850;
}

.wa-client-control__hero p:not(.wa-client-eyebrow) {
    max-width: 46rem;
    margin-top: .55rem;
    color: #587064;
    font-size: .98rem;
}

.wa-client-status {
    min-width: 180px;
    padding: .9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(22, 163, 74, .18);
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 118, 73, .08);
}

.wa-client-status span {
    display: inline-flex;
    padding: .18rem .62rem;
    border-radius: 999px;
    color: #047857;
    background: #dcfce7;
    font-size: .76rem;
    font-weight: 800;
}

.wa-client-status.needs-review span {
    color: #92400e;
    background: #fef3c7;
}

.wa-client-status strong {
    display: block;
    margin-top: .65rem;
    color: #0f241a;
    font-size: .95rem;
}

.wa-client-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.wa-client-step {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid #dcebe2;
    border-radius: 18px;
    background: #fff;
}

.wa-client-step span {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    color: #fff;
    background: #16a34a;
    font-weight: 900;
}

.wa-client-step.is-pending span {
    background: #f59e0b;
}

.wa-client-step strong {
    display: block;
    color: #10231a;
    font-weight: 800;
}

.wa-client-step p {
    margin-top: .2rem;
    color: #63766d;
    font-size: .88rem;
}

.wa-client-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.wa-client-panel {
    min-height: 180px;
    padding: 1.1rem;
    border: 1px solid #dcebe2;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15, 118, 73, .06);
}

.wa-client-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
}

.wa-client-panel h3 {
    color: #10231a;
    font-size: 1rem;
    font-weight: 850;
}

.wa-client-panel a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #047857;
    font-size: .85rem;
    font-weight: 800;
    text-decoration: none;
}

.wa-client-row {
    display: grid;
    gap: .15rem;
    padding: .75rem 0;
    border-top: 1px solid #edf5f0;
}

.wa-client-row:first-of-type {
    border-top: 0;
}

.wa-client-row span {
    color: #6b7d74;
    font-size: .82rem;
}

.wa-client-row strong {
    color: #14251c;
    font-weight: 800;
}

.wa-client-empty {
    padding: 1rem;
    border-radius: 16px;
    color: #64766d;
    background: #f6fbf8;
}

.wa-client-actions {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.wa-client-actions a,
.wa-client-actions button {
    width: 100%;
    justify-content: flex-start;
    padding: .72rem .9rem;
    border: 1px solid #ccebdd;
    border-radius: 12px;
    color: #166534;
    background: #ecfdf5;
    font-weight: 800;
    text-align: left;
    text-decoration: none;
}

.wa-client-actions button {
    cursor: pointer;
    font: inherit;
}

/* Inbox: WhatsApp-style human takeover desk. */
.wa-inbox {
    display: grid;
    grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
    height: clamp(480px, calc(100svh - 390px), 650px);
    overflow: hidden;
    border: 1px solid rgba(15, 122, 57, .13);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 72px rgba(16, 35, 26, .08);
}

.fi-main:has(.wa-inbox) {
    padding-top: .75rem !important;
    padding-bottom: .75rem !important;
}

.fi-main:has(.wa-inbox) .fi-header {
    margin-bottom: .7rem !important;
}

.fi-main:has(.wa-inbox) .fi-header-heading {
    font-size: 1.45rem !important;
    line-height: 1.05 !important;
}

.wa-inbox-list {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    min-width: 0;
    border-right: 1px solid #e0ece5;
    background: linear-gradient(180deg, #fbfffc 0%, #f5fbf7 100%);
}

.wa-inbox-list__head,
.wa-inbox-chat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    padding: .72rem .85rem;
    border-bottom: 1px solid #e0ece5;
}

.wa-inbox-list__head span {
    color: #15803d;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wa-inbox-list__head h2,
.wa-inbox-chat__head h2 {
    margin: 0;
    color: #10231a;
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: 0;
}

.wa-inbox-list__head > strong {
    display: grid;
    min-width: 34px;
    height: 30px;
    place-items: center;
    border-radius: 999px;
    color: #064e3b;
    background: #d1fae5;
    font-size: .9rem;
    font-weight: 950;
}

.wa-inbox-list__close,
.wa-inbox-mobile-contacts,
.wa-inbox-mobile-backdrop {
    display: none;
}

.wa-inbox-search {
    display: grid;
    gap: .35rem;
    padding: .65rem .85rem;
    border-bottom: 1px solid #e7f0ea;
}

.wa-inbox-search span {
    color: #52665b;
    font-size: .72rem;
    font-weight: 850;
}

.wa-inbox-search input {
    width: 100%;
    min-height: 36px;
    border: 1px solid #d8e5dd;
    border-radius: 14px;
    padding: 0 .85rem;
    color: #10231a;
    background: #fff;
}

.wa-inbox-threads,
.wa-inbox-messages {
    min-height: 0;
    overflow: auto;
}

.wa-inbox-thread {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    width: 100%;
    gap: .6rem;
    align-items: center;
    padding: .62rem .85rem;
    cursor: pointer;
    border: 0;
    border-bottom: 1px solid #e8f1ec;
    color: inherit;
    background: transparent;
    text-align: left;
}

.wa-inbox-thread:hover,
.wa-inbox-thread.is-active {
    background: #eafaf1;
}

.wa-inbox-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: #053d2d;
    background: linear-gradient(135deg, #bbf7d0, #f0fdf4);
    font-weight: 950;
}

.wa-inbox-avatar.is-large {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.wa-inbox-thread__body {
    display: grid;
    min-width: 0;
    gap: .2rem;
}

.wa-inbox-thread__body strong,
.wa-inbox-contact h2 {
    overflow: hidden;
    color: #10231a;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-inbox-thread__body small,
.wa-inbox-contact p,
.wa-inbox-thread__meta small {
    overflow: hidden;
    color: #65766d;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-inbox-thread__meta {
    display: grid;
    justify-items: end;
    gap: .35rem;
}

.wa-inbox-thread__meta b {
    padding: .18rem .45rem;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: .66rem;
    font-weight: 950;
}

.wa-inbox-thread__meta b.is-bot {
    color: #047857;
    background: #d1fae5;
}

.wa-inbox-thread__meta b.is-muted {
    color: #64748b;
    background: #f1f5f9;
}

.wa-inbox-chat {
    display: grid;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background:
        linear-gradient(rgba(15, 118, 110, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 118, 110, .035) 1px, transparent 1px),
        linear-gradient(180deg, #fbfffc 0%, #f7fbf8 100%);
    background-size: 34px 34px, 34px 34px, auto;
}

.wa-inbox-contact {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .65rem;
}

.wa-inbox-contact > div {
    min-width: 0;
}

.wa-inbox-contact p {
    margin: .18rem 0 0;
}

.wa-inbox-actions {
    display: flex;
    gap: .42rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wa-inbox-actions button,
.wa-inbox-composer button {
    min-height: 38px;
    border: 1px solid #d9e5de;
    border-radius: 14px;
    padding: .52rem .72rem;
    cursor: pointer;
    color: #10231a;
    background: #fff;
    font-weight: 900;
}

.wa-inbox-actions button.is-warning {
    color: #78350f;
    border-color: #fde68a;
    background: #fffbeb;
}

.wa-inbox-actions button.is-success,
.wa-inbox-composer button {
    color: #fff;
    border-color: #111827;
    background: #111827;
}

.wa-inbox-messages {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    gap: .45rem;
    padding: .75rem;
}

.wa-inbox-message {
    display: flex;
}

.wa-inbox-message.is-outbound {
    justify-content: flex-end;
}

.wa-inbox-message > div {
    width: fit-content;
    max-width: min(76%, 680px);
    padding: .55rem .72rem .42rem;
    border: 1px solid #dbe9e1;
    border-radius: 18px 18px 18px 6px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 35, 26, .05);
}

.wa-inbox-message.is-outbound > div {
    border-color: #b8f2cf;
    border-radius: 18px 18px 6px 18px;
    background: #dcfce7;
}

.wa-inbox-message p {
    margin: 0;
    color: #10231a;
    line-height: 1.35;
    white-space: pre-wrap;
}

.wa-inbox-message footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .4rem;
    margin-top: .25rem;
    color: #6b7d73;
    font-size: .68rem;
    font-weight: 750;
}

.wa-inbox-message footer b {
    color: #047857;
}

.wa-inbox-composer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    position: relative;
    z-index: 5;
    gap: .55rem;
    align-items: center;
    padding: .7rem .75rem;
    border-top: 1px solid #e0ece5;
    background: rgba(255, 255, 255, .92);
}

.wa-inbox-composer textarea {
    width: 100%;
    min-height: 42px;
    max-height: 108px;
    resize: vertical;
    border: 1px solid #d8e5dd;
    border-radius: 14px;
    padding: .68rem .8rem;
    color: #10231a;
    background: #fff;
}

.wa-inbox-emoji-wrap {
    position: relative;
}

.wa-inbox-emoji-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #d8e5dd;
    border-radius: 14px;
    cursor: pointer;
    color: #10231a;
    background: #fff;
    font-size: 1.15rem;
    font-weight: 900;
}

.wa-inbox-emoji-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + .65rem);
    z-index: 20;
    width: min(330px, calc(100vw - 2rem));
    max-height: 310px;
    overflow: auto;
    padding: .8rem;
    border: 1px solid #d8e5dd;
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 68px rgba(16, 35, 26, .18);
}

.wa-inbox-emoji-panel section + section {
    margin-top: .65rem;
}

.wa-inbox-emoji-panel section > span {
    display: block;
    margin-bottom: .4rem;
    color: #5c6f65;
    font-size: .72rem;
    font-weight: 900;
}

.wa-inbox-emoji-panel section > div {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .35rem;
}

.wa-inbox-emoji-panel button {
    display: grid;
    min-width: 0;
    height: 38px;
    place-items: center;
    border: 1px solid #edf4ef;
    border-radius: 11px;
    cursor: pointer;
    background: #f8fcfa;
    font-size: 1.1rem;
}

.wa-inbox-emoji-panel button:hover {
    background: #dcfce7;
}

.wa-inbox-empty,
.wa-inbox-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: .5rem;
    min-height: 220px;
    padding: 1rem;
    color: #607267;
    text-align: center;
}

.wa-inbox-empty strong,
.wa-inbox-placeholder h2 {
    margin: 0;
    color: #10231a;
    font-weight: 950;
}

.wa-inbox-placeholder span {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 24px;
    color: #063b2c;
    background: #bbf7d0;
    font-weight: 950;
}

@media (max-width: 900px) {
    .wa-inbox {
        grid-template-columns: 1fr;
        position: relative;
        height: calc(100svh - 230px);
        min-height: 520px;
    }

    .wa-inbox-list {
        position: absolute;
        inset: 0 auto 0 0;
        z-index: 30;
        width: min(92vw, 390px);
        max-height: none;
        border-right: 1px solid #d7e7de;
        border-bottom: 0;
        box-shadow: 18px 0 54px rgba(16, 35, 26, .18);
        transform: translateX(-105%);
        transition: transform .22s ease;
    }

    .wa-inbox-list.is-open {
        transform: translateX(0);
    }

    .wa-inbox-mobile-backdrop {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 25;
        border: 0;
        opacity: 0;
        pointer-events: none;
        background: rgba(2, 6, 23, .22);
        transition: opacity .22s ease;
    }

    .wa-inbox-mobile-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .wa-inbox-list__close {
        display: grid;
        width: 34px;
        height: 34px;
        place-items: center;
        border: 1px solid #d8e5dd;
        border-radius: 12px;
        cursor: pointer;
        color: #10231a;
        background: #fff;
        font-size: 1.3rem;
        font-weight: 900;
    }

    .wa-inbox-mobile-contacts {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: .45rem .7rem;
        border: 1px solid #bbf7d0;
        border-radius: 12px;
        cursor: pointer;
        color: #065f46;
        background: #dcfce7;
        font-size: .82rem;
        font-weight: 950;
    }

    .wa-inbox-chat__head,
    .wa-inbox-composer {
        grid-template-columns: 1fr;
    }

    .wa-inbox-composer {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .wa-inbox-composer > button[type="submit"] {
        grid-column: 1 / -1;
    }

    .wa-inbox-chat__head {
        align-items: flex-start;
        gap: .6rem;
    }

    .wa-inbox-contact {
        width: 100%;
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr);
    }

    .wa-inbox-actions {
        justify-content: flex-start;
    }

    .wa-inbox-message > div {
        max-width: 92%;
    }
}

@media (max-width: 980px) {
    .wa-first-run,
    .wa-first-guide,
    .wa-client-control__hero,
    .wa-client-steps,
    .wa-client-grid {
        grid-template-columns: 1fr;
    }

    .wa-client-control__hero {
        display: grid;
    }

    .wa-client-status {
        width: 100%;
    }
}

.wa-launch {
    display: grid;
    gap: 1rem;
}

.wa-launch h1,
.wa-launch h2,
.wa-launch p,
.wa-launch dl {
    margin: 0;
}

.wa-launch-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1.5rem;
    align-items: end;
    padding: 1.5rem;
    border: 1px solid #d8e5de;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f7faf9 58%, #eef7f2 100%);
    box-shadow: 0 18px 50px rgba(21, 56, 39, .07);
}

.wa-launch-hero__side {
    display: grid;
    gap: .75rem;
}

.wa-launch-hero h1 {
    color: #07140f;
    font-size: clamp(2rem, 4vw, 3.7rem);
    font-weight: 900;
    line-height: .98;
    letter-spacing: 0;
}

.wa-launch-hero p:not(.wa-client-eyebrow) {
    max-width: 52rem;
    margin-top: .75rem;
    color: #52645c;
    font-size: 1rem;
}

.wa-launch-score {
    display: grid;
    gap: .5rem;
    padding: 1rem;
    border: 1px solid #dfe8e3;
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
}

.wa-launch-score span {
    color: #07140f;
    font-size: 2rem;
    font-weight: 900;
}

.wa-launch-score strong {
    color: #3d5048;
    font-size: .9rem;
}

.wa-launch-score div {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5ebe8;
}

.wa-launch-score i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #111827, #16a34a);
}

.wa-guide-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 52px;
    padding: .75rem .9rem;
    overflow: visible;
    cursor: pointer;
    border: 1px solid #111827;
    border-radius: 16px;
    color: #111827;
    background: #fff;
    box-shadow: 0 16px 36px rgba(17, 24, 39, .08);
}

.wa-guide-button::before {
    content: "";
    position: absolute;
    inset: -6px;
    z-index: -1;
    border: 1px solid rgba(17, 24, 39, .22);
    border-radius: 22px;
    animation: wa-guide-pulse 2.2s ease-out infinite;
}

.wa-guide-button span {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #111827;
}

.wa-guide-button span::after {
    content: "?";
    color: #fff;
    font-weight: 950;
}

.wa-guide-button strong {
    font-size: .92rem;
    font-weight: 950;
}

.wa-guide-button.is-active {
    color: #fff;
    background: #111827;
}

.wa-guide-button.is-active::before {
    animation: none;
    border-color: rgba(22, 163, 74, .45);
}

.wa-guide-button.is-active span {
    background: #22c55e;
}

@keyframes wa-guide-pulse {
    0% {
        opacity: .72;
        transform: scale(.98);
    }

    70% {
        opacity: 0;
        transform: scale(1.08);
    }

    100% {
        opacity: 0;
        transform: scale(1.08);
    }
}

.wa-guide-bar {
    position: sticky;
    top: .75rem;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #111827;
    border-radius: 18px;
    background: #111827;
    box-shadow: 0 20px 50px rgba(17, 24, 39, .18);
}

.wa-guide-bar h2 {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 950;
}

.wa-guide-bar p:not(.wa-client-eyebrow) {
    margin-top: .25rem;
    color: #d8e1dd;
    font-size: .94rem;
}

.wa-guide-bar .wa-client-eyebrow {
    color: #86efac;
}

.wa-guide-controls {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.wa-guide-controls button {
    min-height: 38px;
    padding: .45rem .75rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font-size: .84rem;
    font-weight: 900;
}

.wa-guide-controls button.is-quiet {
    color: #d1d8d4;
    background: transparent;
}

.wa-guide-controls button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.wa-guide-controls span {
    min-width: 44px;
    color: #fff;
    text-align: center;
    font-weight: 900;
}

.wa-creator-mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.wa-creator-mode label {
    position: relative;
    display: grid;
    gap: .35rem;
    min-height: 112px;
    padding: 1rem;
    cursor: pointer;
    border: 1px solid #dfe8e3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(20, 47, 34, .05);
}

.wa-creator-mode input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wa-creator-mode label > span {
    width: fit-content;
    padding: .22rem .55rem;
    border-radius: 999px;
    color: #166534;
    background: #dcfce7;
    font-size: .72rem;
    font-weight: 950;
}

.wa-creator-mode strong {
    color: #101f17;
    font-size: 1.05rem;
    font-weight: 950;
}

.wa-creator-mode p {
    color: #64746c;
    font-size: .9rem;
}

.wa-creator-mode label.is-selected {
    border-color: #111827;
    background: linear-gradient(135deg, #ffffff, #f4f7f5);
    box-shadow: inset 0 0 0 1px #111827, 0 18px 42px rgba(17, 24, 39, .08);
}

.wa-start-bot-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    width: fit-content;
    min-height: 54px;
    margin-top: 1.1rem;
    padding: .82rem 1rem .82rem 1.15rem;
    cursor: pointer;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    color: #111827;
    background: #fff;
    box-shadow: 0 18px 44px rgba(17, 24, 39, .22), 0 0 0 0 rgba(134, 239, 172, .22);
    animation: wa-start-bot-pulse 2.15s ease-in-out infinite;
}

.wa-start-bot-button::after {
    content: "→";
    position: relative;
    z-index: 1;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #111827;
    font-size: 1rem;
    font-weight: 950;
    pointer-events: none;
}

.wa-start-bot-button span,
.wa-start-bot-button strong {
    position: relative;
    z-index: 1;
}

.wa-start-bot-button span {
    font-size: 1rem;
    font-weight: 950;
}

.wa-start-bot-button strong {
    color: #52645a;
    font-size: .78rem;
    font-weight: 950;
}

@keyframes wa-start-bot-pulse {
    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 18px 44px rgba(17, 24, 39, .2), 0 0 0 0 rgba(134, 239, 172, .26);
    }

    50% {
        transform: translateY(-2px);
        box-shadow: 0 24px 54px rgba(17, 24, 39, .28), 0 0 0 10px rgba(134, 239, 172, .12);
    }
}

.wa-ai-builder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1rem;
    align-items: start;
}

.wa-ai-start-banner {
    position: relative;
    display: grid;
    grid-column: 1 / -1;
    gap: .25rem;
    padding: 1.15rem 1.25rem 1.15rem 4.25rem;
    border: 1px solid #111827;
    border-radius: 18px;
    color: #fff;
    background: #111827;
    box-shadow: 0 20px 50px rgba(17, 24, 39, .16);
}

.wa-ai-start-banner::before {
    content: "!";
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #111827;
    background: #86efac;
    font-size: 1.35rem;
    font-weight: 950;
    animation: wa-start-bounce 1.7s ease-in-out infinite;
}

.wa-ai-start-banner span {
    width: fit-content;
    padding: .22rem .6rem;
    border-radius: 999px;
    color: #111827;
    background: #86efac;
    font-size: .74rem;
    font-weight: 950;
    text-transform: uppercase;
}

.wa-ai-start-banner strong {
    font-size: 1.18rem;
    font-weight: 950;
}

.wa-ai-start-banner p {
    color: #d8e1dd;
    font-size: .92rem;
}

@keyframes wa-start-bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.wa-ai-stepper {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .65rem;
}

.wa-ai-stepper button {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 54px;
    padding: .65rem;
    cursor: pointer;
    border: 1px solid #dfe8e3;
    border-radius: 14px;
    color: #506158;
    background: #fff;
    text-align: left;
}

.wa-ai-stepper span {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #647067;
    background: #f0f3f1;
    font-size: .78rem;
    font-weight: 950;
}

.wa-ai-stepper strong {
    min-width: 0;
    font-size: .84rem;
    font-weight: 950;
}

.wa-ai-stepper button.is-active {
    border-color: #111827;
    color: #111827;
    background: linear-gradient(135deg, #ffffff, #f4f7f5);
    box-shadow: inset 0 0 0 1px #111827;
}

.wa-ai-stepper button.is-active span,
.wa-ai-stepper button.is-done span {
    color: #fff;
    background: #111827;
}

.wa-ai-stepper button.is-done {
    border-color: #bbf7d0;
    color: #166534;
    background: #f0fdf4;
}

.wa-ai-builder__main,
.wa-ai-builder__side {
    display: grid;
    gap: 1rem;
}

.wa-ai-mobile-summary {
    display: none;
}

.wa-ai-builder__side {
    position: sticky;
    top: 1rem;
}

.wa-ai-card,
.wa-ai-score {
    padding: 1.1rem;
    border: 1px solid #dfe8e3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(20, 47, 34, .05);
}

.wa-ai-card {
    scroll-margin-top: 5rem;
}

.wa-ai-card.is-hero {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
    gap: 1rem;
    align-items: end;
    border-color: #111827;
    background: linear-gradient(135deg, #111827 0%, #13241b 64%, #0f3d28 100%);
}

.wa-ai-card[x-show] {
    scroll-margin-top: 1rem;
}

.wa-ai-card.is-hero h2,
.wa-ai-card.is-hero .wa-client-eyebrow {
    color: #fff;
}

.wa-ai-card.is-hero p {
    color: #d8e1dd;
}

.wa-ai-card h2 {
    color: #0d1d15;
    font-size: 1.2rem;
    font-weight: 950;
}

.wa-ai-active-field {
    position: relative;
    display: grid;
    gap: .75rem;
    padding: 1rem;
    border: 2px solid #86efac;
    border-radius: 20px;
    background: #f7fcf9;
    box-shadow: 0 0 0 7px rgba(134, 239, 172, .1), 0 16px 34px rgba(20, 83, 45, .08);
    animation: wa-active-field-pulse 2.2s ease-in-out infinite;
}

.wa-form-pointer {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.wa-form-pointer b {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #111827;
    background: #86efac;
    font-weight: 950;
}

.wa-form-pointer span {
    color: #183126;
    font-size: 1rem;
    font-weight: 950;
}

@keyframes wa-active-field-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 6px rgba(134, 239, 172, .08);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(134, 239, 172, .04);
    }
}

.wa-step-demo {
    position: relative;
    display: grid;
    gap: .8rem;
    overflow: hidden;
    margin: .9rem 0 1.15rem;
    padding: 1rem;
    border: 1px solid #dbe7e0;
    border-radius: 18px;
    background: #f7faf8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.wa-step-demo::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: '';
    background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .62) 48%, transparent 62%);
    transform: translateX(-120%);
    animation: wa-step-demo-shine 6s ease-in-out infinite;
}

.wa-step-demo__caption {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .45rem;
    align-items: baseline;
    color: #5d6d64;
    font-size: .78rem;
    font-weight: 800;
}

.wa-step-demo__caption strong {
    color: #13231b;
    font-size: .82rem;
    font-weight: 950;
}

.wa-ai-card.is-hero .wa-step-demo {
    border-color: rgba(134, 239, 172, .24);
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
}

.wa-ai-card.is-hero .wa-step-demo__caption,
.wa-ai-card.is-hero .wa-step-demo__caption strong {
    color: #e8f2ed;
}

.wa-business-flow,
.wa-rules-flow,
.wa-connect-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
}

.wa-business-flow__input {
    padding: .55rem .7rem;
    border: 1px solid #cfe0d7;
    border-radius: 12px;
    color: #173326;
    background: #fff;
    font-size: .78rem;
    font-weight: 900;
    animation: wa-demo-input 5s ease-in-out infinite;
}

.wa-business-flow__core,
.wa-rules-flow__shield,
.wa-connect-flow__bot {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: #111827;
    background: #86efac;
    box-shadow: 0 0 0 0 rgba(134, 239, 172, .42);
    font-weight: 950;
    animation: wa-demo-core 2.4s ease-out infinite;
}

.wa-business-flow__outputs {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

.wa-business-flow__outputs span {
    padding: .3rem .45rem;
    border-radius: 8px;
    color: #123521;
    background: #dcfce7;
    font-size: .68rem;
    font-weight: 900;
    opacity: 0;
    transform: translateX(-5px);
    animation: wa-demo-output 5s ease-in-out infinite;
}

.wa-business-flow__outputs span:nth-child(2) { animation-delay: .25s; }
.wa-business-flow__outputs span:nth-child(3) { animation-delay: .5s; }

.wa-data-conversation {
    display: grid;
    gap: .4rem;
}

.wa-data-conversation p {
    width: fit-content;
    max-width: 84%;
    margin: 0;
    padding: .55rem .7rem;
    border-radius: 12px;
    color: #13231b;
    background: #fff;
    box-shadow: 0 6px 16px rgba(20, 47, 34, .06);
    font-size: .78rem;
    opacity: 0;
    animation: wa-demo-message 6s ease-in-out infinite;
}

.wa-data-conversation p:last-child {
    justify-self: end;
    color: #052e16;
    background: #dcfce7;
    animation-delay: .75s;
}

.wa-data-capture {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
}

.wa-data-capture span {
    display: grid;
    gap: .1rem;
    padding: .48rem .55rem;
    border: 1px solid #dbe7e0;
    border-radius: 10px;
    color: #13231b;
    background: #fff;
    font-size: .72rem;
    font-weight: 900;
    opacity: 0;
    transform: translateY(6px);
    animation: wa-demo-capture 6s ease-in-out infinite;
}

.wa-data-capture span:nth-child(2) { animation-delay: .22s; }
.wa-data-capture span:nth-child(3) { animation-delay: .44s; }

.wa-data-capture small {
    color: #718078;
    font-size: .61rem;
    font-weight: 800;
}

.wa-catalog-flow {
    display: grid;
    gap: .7rem;
}

.wa-catalog-flow__items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
}

.wa-catalog-flow__items span {
    display: grid;
    gap: .18rem;
    padding: .45rem;
    border: 1px solid #dbe7e0;
    border-radius: 11px;
    background: #fff;
    animation: wa-demo-catalog 6s ease-in-out infinite;
}

.wa-catalog-flow__items span:nth-child(2) { animation-delay: .25s; }
.wa-catalog-flow__items span:nth-child(3) { animation-delay: .5s; }

.wa-catalog-flow__items i {
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, #dfe8e3, #eef4f0);
}

.wa-catalog-flow__items b {
    color: #13231b;
    font-size: .7rem;
}

.wa-catalog-flow__items small {
    color: #6d7b73;
    font-size: .62rem;
}

.wa-catalog-flow p {
    width: fit-content;
    max-width: 90%;
    margin: 0;
    padding: .52rem .65rem;
    border-radius: 11px;
    color: #052e16;
    background: #dcfce7;
    font-size: .75rem;
    font-weight: 800;
    opacity: 0;
    animation: wa-demo-recommendation 6s ease-in-out infinite;
}

.wa-rules-flow > p {
    margin: 0;
    padding: .55rem .65rem;
    border-radius: 11px;
    color: #13231b;
    background: #fff;
    box-shadow: 0 6px 16px rgba(20, 47, 34, .06);
    font-size: .73rem;
    animation: wa-demo-input 5.5s ease-in-out infinite;
}

.wa-rules-flow > div {
    display: grid;
    gap: .28rem;
}

.wa-rules-flow > div span {
    padding: .3rem .42rem;
    border-radius: 8px;
    color: #738078;
    background: #edf2ef;
    font-size: .65rem;
    font-weight: 850;
}

.wa-rules-flow > div span.is-active {
    color: #7c2d12;
    background: #ffedd5;
    animation: wa-demo-rule 5.5s ease-in-out infinite;
}

.wa-connect-flow {
    grid-template-columns: auto minmax(46px, .5fr) minmax(92px, auto) minmax(0, 1.4fr);
}

.wa-connect-flow__line {
    position: relative;
    height: 2px;
    overflow: hidden;
    background: #cbd8d1;
}

.wa-connect-flow__line i {
    position: absolute;
    width: 38%;
    height: 100%;
    background: #16a34a;
    animation: wa-demo-connect-line 2.2s ease-in-out infinite;
}

.wa-connect-flow__phone {
    display: grid;
    gap: .1rem;
    padding: .48rem .6rem;
    border: 1px solid #bbf7d0;
    border-radius: 11px;
    color: #14532d;
    background: #f0fdf4;
    font-size: .72rem;
    font-weight: 950;
}

.wa-connect-flow__phone small {
    color: #16a34a;
    font-size: .61rem;
}

.wa-connect-flow__messages {
    display: grid;
    gap: .3rem;
}

.wa-connect-flow__messages p {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: .4rem .5rem;
    border-radius: 9px;
    color: #13231b;
    background: #fff;
    font-size: .66rem;
    opacity: 0;
    animation: wa-demo-message 5.5s ease-in-out infinite;
}

.wa-connect-flow__messages p:last-child {
    justify-self: end;
    color: #052e16;
    background: #dcfce7;
    animation-delay: .65s;
}

@keyframes wa-step-demo-shine {
    0%, 58% { transform: translateX(-120%); }
    78%, 100% { transform: translateX(120%); }
}

@keyframes wa-demo-input {
    0%, 10% { opacity: .35; transform: translateY(4px); }
    20%, 78% { opacity: 1; transform: translateY(0); }
    92%, 100% { opacity: .35; transform: translateY(-2px); }
}

@keyframes wa-demo-core {
    0% { box-shadow: 0 0 0 0 rgba(134, 239, 172, .4); }
    60%, 100% { box-shadow: 0 0 0 9px rgba(134, 239, 172, 0); }
}

@keyframes wa-demo-output {
    0%, 26% { opacity: 0; transform: translateX(-5px); }
    38%, 82% { opacity: 1; transform: translateX(0); }
    96%, 100% { opacity: 0; transform: translateX(4px); }
}

@keyframes wa-demo-message {
    0%, 12% { opacity: 0; transform: translateY(5px); }
    24%, 80% { opacity: 1; transform: translateY(0); }
    94%, 100% { opacity: 0; transform: translateY(-3px); }
}

@keyframes wa-demo-capture {
    0%, 35% { opacity: 0; transform: translateY(6px); }
    48%, 84% { opacity: 1; transform: translateY(0); }
    96%, 100% { opacity: 0; transform: translateY(-2px); }
}

@keyframes wa-demo-catalog {
    0%, 16% { border-color: #dbe7e0; transform: translateY(0); }
    28%, 58% { border-color: #4ade80; transform: translateY(-3px); box-shadow: 0 8px 18px rgba(22, 163, 74, .12); }
    75%, 100% { border-color: #dbe7e0; transform: translateY(0); }
}

@keyframes wa-demo-recommendation {
    0%, 43% { opacity: 0; transform: translateY(5px); }
    56%, 86% { opacity: 1; transform: translateY(0); }
    98%, 100% { opacity: 0; }
}

@keyframes wa-demo-rule {
    0%, 30% { box-shadow: none; transform: translateX(0); }
    42%, 76% { box-shadow: 0 0 0 2px #fdba74; transform: translateX(3px); }
    90%, 100% { box-shadow: none; transform: translateX(0); }
}

@keyframes wa-demo-connect-line {
    from { transform: translateX(-110%); }
    to { transform: translateX(280%); }
}

.wa-ai-step-callout {
    display: grid;
    gap: .25rem;
    margin-bottom: .95rem;
    padding: .8rem .9rem;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    background: #f0fdf4;
}

.wa-ai-step-callout span {
    width: fit-content;
    padding: .18rem .55rem;
    border-radius: 999px;
    color: #166534;
    background: #dcfce7;
    font-size: .74rem;
    font-weight: 950;
    text-transform: uppercase;
}

.wa-ai-step-callout strong {
    color: #13241b;
    font-weight: 950;
}

.wa-ai-prompt {
    display: grid;
    gap: .45rem;
}

.wa-ai-prompt span {
    color: #1c4f35;
    font-size: .84rem;
    font-weight: 900;
}

.wa-ai-prompt input {
    width: 100%;
    min-height: 66px;
    padding: 1rem 1.05rem;
    border: 2px solid #b9d7c7;
    border-radius: 16px;
    color: #111827;
    background: #fff;
    font-size: 1.16rem;
    font-weight: 850;
}

.wa-ai-prompt input:focus {
    border-color: #86efac;
    box-shadow: 0 0 0 4px rgba(134, 239, 172, .2);
}

.wa-ai-prompt input::placeholder {
    color: #819087;
}

.wa-ai-field-help {
    margin: -.15rem 0 0;
    color: #61746a;
    font-size: .78rem;
    line-height: 1.45;
}

.wa-data-questionnaire {
    display: grid;
    gap: .9rem;
}

.wa-data-question {
    display: grid;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid #dce7e1;
    border-radius: 16px;
    background: #fbfdfc;
}

.wa-ai-active-field.is-validation-needed,
.wa-data-question.is-validation-needed,
.wa-location-builder.is-validation-needed,
.wa-catalog-how.is-validation-needed,
.wa-response-rules.is-validation-needed,
.wa-field-grid label.is-validation-needed {
    border-color: #f59e0b !important;
    background: linear-gradient(135deg, #fff7ed, #ffffff) !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .16), 0 18px 45px rgba(146, 64, 14, .12);
}

.wa-field-grid label.is-validation-needed {
    border-radius: 16px;
    padding: .65rem;
}

.wa-ai-active-field.is-validation-needed::before,
.wa-data-question.is-validation-needed::before,
.wa-location-builder.is-validation-needed::before,
.wa-catalog-how.is-validation-needed::before,
.wa-response-rules.is-validation-needed::before,
.wa-field-grid label.is-validation-needed::before {
    content: "Completa este bloque para continuar";
    width: fit-content;
    padding: .3rem .55rem;
    border-radius: 999px;
    color: #78350f;
    background: #fde68a;
    font-size: .72rem;
    font-weight: 950;
}

.wa-data-question > header {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: .7rem;
    align-items: start;
}

.wa-data-question > header > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: #16864a;
    font-size: .78rem;
    font-weight: 950;
}

.wa-data-question > header strong {
    color: #13291d;
    font-size: .94rem;
    font-weight: 950;
}

.wa-data-question > header p {
    margin: .16rem 0 0;
    color: #607168;
    font-size: .78rem;
    line-height: 1.45;
}

.wa-data-question .wa-chip-picker,
.wa-data-question .wa-big-field {
    margin-top: 0;
}

.wa-data-question .wa-big-field input,
.wa-data-question .wa-big-field textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d6e0da;
    border-radius: 14px;
    color: #111827;
    background: #fff;
}

.wa-data-question .wa-big-field textarea {
    min-height: 92px;
    resize: vertical;
}

.wa-toggle-row {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: fit-content;
    cursor: pointer;
    user-select: none;
}

.wa-toggle-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wa-toggle-row > span {
    position: relative;
    width: 48px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #dbe5df;
    box-shadow: inset 0 0 0 1px #cbd8d1;
    transition: background .18s ease, box-shadow .18s ease;
}

.wa-toggle-row > span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
    transition: transform .18s ease;
}

.wa-toggle-row strong {
    color: #13291d;
    font-size: .9rem;
    font-weight: 950;
}

.wa-toggle-row.is-active > span {
    background: #16a34a;
    box-shadow: inset 0 0 0 1px #15803d;
}

.wa-toggle-row.is-active > span::after {
    transform: translateX(20px);
}

.wa-discovery-box {
    position: relative;
    display: grid;
    grid-template-columns: minmax(18rem, 1.25fr) minmax(16rem, .9fr) auto;
    gap: .85rem;
    align-items: center;
    overflow: hidden;
    padding: .95rem;
    border: 1px solid #bbf7d0;
    border-radius: 18px;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 58%, #eff6ff 100%);
    box-shadow: 0 18px 45px rgba(20, 184, 166, .10);
}

.wa-discovery-box::before {
    content: "";
    position: absolute;
    inset: -35% auto auto -8%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(34, 197, 94, .16);
    filter: blur(8px);
}

.wa-discovery-box__copy {
    position: relative;
    display: grid;
    gap: .18rem;
}

.wa-discovery-box__copy span {
    width: fit-content;
    padding: .22rem .58rem;
    border-radius: 999px;
    color: #047857;
    background: #d1fae5;
    font-size: .72rem;
    font-weight: 950;
}

.wa-discovery-box__copy strong {
    color: #10251a;
    font-size: .98rem;
    font-weight: 950;
}

.wa-discovery-box__copy p {
    max-width: 46rem;
    color: #51675b;
    font-size: .82rem;
    line-height: 1.45;
}

.wa-discovery-box .wa-big-field {
    position: relative;
    margin: 0;
}

.wa-discovery-box .wa-big-field span {
    color: #365243;
}

.wa-discovery-box .wa-big-field input {
    min-height: 48px;
    background: rgba(255, 255, 255, .92);
}

.wa-discovery-box button {
    position: relative;
    min-height: 48px;
    padding: .78rem 1.05rem;
    cursor: pointer;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: #101827;
    font-weight: 950;
    box-shadow: 0 14px 32px rgba(16, 24, 39, .20);
    animation: wa-create-pulse 2.7s ease-in-out infinite;
}

.wa-discovery-box button:disabled {
    cursor: wait;
    opacity: .75;
    animation: none;
}

.wa-discovery-box.is-ready {
    border-color: #86efac;
    background: linear-gradient(135deg, #f0fdf4, #fff);
}

.wa-discovery-box--hero {
    margin-bottom: 1rem;
    padding: 1.05rem;
    border-color: #86efac;
    box-shadow: 0 22px 52px rgba(22, 163, 74, .14);
}

.wa-discovery-box--hero .wa-discovery-box__copy strong {
    font-size: 1.08rem;
}

.wa-discovery-result--step1 {
    margin-bottom: 1rem;
}

.wa-email-notifications {
    margin-top: .95rem;
    padding-top: .95rem;
    border-top: 1px solid #dfe8e3;
}

.wa-discovery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(9, 18, 14, .42);
    backdrop-filter: blur(10px);
}

.wa-discovery-modal__panel {
    width: min(480px, 100%);
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid rgba(187, 247, 208, .85);
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 58%, #eef6ff 100%);
    box-shadow: 0 34px 90px rgba(0, 0, 0, .28);
}

.wa-discovery-loader {
    position: relative;
    height: 148px;
    overflow: hidden;
    border: 1px solid #cdebd8;
    border-radius: 20px;
    background:
        linear-gradient(90deg, rgba(22, 163, 74, .08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(22, 163, 74, .08) 1px, transparent 1px),
        linear-gradient(145deg, #f8fffb, #ffffff);
    background-size: 28px 28px, 28px 28px, auto;
}

.wa-discovery-loader span {
    position: absolute;
    left: 1rem;
    right: 1rem;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #d1fae5, #ecfeff);
    box-shadow: inset 0 0 0 1px rgba(20, 184, 166, .16);
}

.wa-discovery-loader span:nth-child(1) {
    top: 1.3rem;
    width: 58%;
}

.wa-discovery-loader span:nth-child(2) {
    top: 3.8rem;
    width: 78%;
}

.wa-discovery-loader span:nth-child(3) {
    top: 6.3rem;
    width: 44%;
}

.wa-discovery-loader i {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, .24) 46%, rgba(16, 185, 129, .52) 50%, rgba(16, 185, 129, .20) 54%, transparent 100%);
    animation: wa-discovery-scan 1.55s ease-in-out infinite;
}

.wa-discovery-modal__panel > div:nth-child(2) {
    display: grid;
    gap: .25rem;
}

.wa-discovery-modal__panel > div:nth-child(2) span {
    width: fit-content;
    padding: .22rem .58rem;
    border-radius: 999px;
    color: #047857;
    background: #d1fae5;
    font-size: .72rem;
    font-weight: 950;
}

.wa-discovery-modal__panel strong {
    color: #10251a;
    font-size: 1.25rem;
    font-weight: 950;
}

.wa-discovery-modal__panel p {
    color: #51675b;
    font-size: .9rem;
    line-height: 1.5;
}

.wa-discovery-modal__panel ul {
    display: grid;
    gap: .48rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wa-discovery-modal__panel li {
    position: relative;
    padding-left: 1.3rem;
    color: #24382d;
    font-size: .84rem;
    font-weight: 850;
}

.wa-discovery-modal__panel li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45rem;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 5px rgba(22, 163, 74, .12);
}

@keyframes wa-discovery-scan {
    0% {
        transform: translateY(-90%);
    }

    50% {
        transform: translateY(90%);
    }

    100% {
        transform: translateY(-90%);
    }
}

@keyframes wa-agent-build-pulse {
    0% {
        opacity: .9;
        transform: scale(.72);
    }

    70% {
        opacity: .1;
        transform: scale(1.08);
    }

    100% {
        opacity: 0;
        transform: scale(1.16);
    }
}

@keyframes wa-agent-step-dot {
    0%, 100% {
        transform: scale(.82);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, .36);
    }

    50% {
        transform: scale(1);
        box-shadow: 0 0 0 7px rgba(34, 197, 94, .12);
    }
}

.wa-discovery-result {
    display: grid;
    gap: .8rem;
    padding: .95rem;
    border: 1px solid #cde9d7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .06);
}

.wa-discovery-result > div:first-child {
    display: grid;
    gap: .22rem;
}

.wa-discovery-result span {
    width: fit-content;
    padding: .22rem .58rem;
    border-radius: 999px;
    color: #fff;
    background: #16a34a;
    font-size: .72rem;
    font-weight: 950;
}

.wa-discovery-result strong {
    color: #12251b;
    font-size: 1rem;
    font-weight: 950;
}

.wa-discovery-result p {
    color: #52665b;
    font-size: .84rem;
    line-height: 1.5;
}

.wa-discovery-result dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.wa-discovery-result dl div {
    min-width: 0;
    padding: .72rem;
    border: 1px solid #e0ebe5;
    border-radius: 14px;
    background: #f8fbfa;
}

.wa-discovery-result dt {
    color: #6b7c72;
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.wa-discovery-result dd {
    overflow-wrap: anywhere;
    color: #17261d;
    font-size: .82rem;
    font-weight: 850;
}

.wa-discovery-sources {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.wa-discovery-sources a {
    padding: .38rem .65rem;
    border-radius: 999px;
    color: #166534;
    background: #dcfce7;
    font-size: .76rem;
    font-weight: 900;
    text-decoration: none;
}

.wa-discovery-result.is-error {
    border-color: #fed7aa;
    background: #fff7ed;
}

.wa-discovery-result.is-error span {
    color: #9a3412;
    background: #ffedd5;
}

.wa-website-analyzer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: end;
    padding: .8rem;
    border: 1px solid #d7eadf;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0fdf4, #fff);
}

.wa-website-analyzer button {
    min-height: 46px;
    padding: .7rem .95rem;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: #111827;
    font-weight: 950;
}

.wa-website-analyzer button:disabled {
    cursor: wait;
    opacity: .7;
}

.wa-website-result {
    display: grid;
    gap: .25rem;
    padding: .85rem;
    border: 1px solid #dce7e1;
    border-radius: 15px;
    background: #fff;
}

.wa-website-result span {
    width: fit-content;
    padding: .2rem .55rem;
    border-radius: 999px;
    color: #315846;
    background: #eef6f1;
    font-size: .72rem;
    font-weight: 950;
}

.wa-website-result strong {
    color: #13291d;
    font-weight: 950;
}

.wa-website-result p {
    color: #52665b;
    font-size: .84rem;
    line-height: 1.5;
}

.wa-website-result.is-ready {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.wa-website-result.is-ready span {
    color: #fff;
    background: #16a34a;
}

.wa-agent-build-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(8, 13, 23, .48);
    backdrop-filter: blur(12px);
}

.wa-agent-build-modal__panel {
    width: min(520px, 100%);
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid rgba(134, 239, 172, .72);
    border-radius: 26px;
    background: linear-gradient(145deg, #ffffff 0%, #f7fffb 48%, #eef6ff 100%);
    box-shadow: 0 36px 95px rgba(0, 0, 0, .3);
}

.wa-agent-build-orb {
    position: relative;
    display: grid;
    height: 150px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #d7efe1;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 45%, rgba(134, 239, 172, .4), transparent 34%),
        linear-gradient(90deg, rgba(22, 163, 74, .08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(22, 163, 74, .08) 1px, transparent 1px),
        #fbfffd;
    background-size: auto, 30px 30px, 30px 30px, auto;
}

.wa-agent-build-orb > span {
    position: relative;
    z-index: 2;
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 24px;
    color: #fff;
    background: #111827;
    font-size: 1.4rem;
    font-weight: 950;
    box-shadow: 0 18px 44px rgba(17, 24, 39, .26);
}

.wa-agent-build-orb i,
.wa-agent-build-orb b {
    position: absolute;
    inset: auto;
    border-radius: 999px;
    border: 1px solid rgba(22, 163, 74, .35);
    animation: wa-agent-build-pulse 1.8s ease-out infinite;
}

.wa-agent-build-orb i {
    width: 112px;
    height: 112px;
}

.wa-agent-build-orb b {
    width: 148px;
    height: 148px;
    animation-delay: .45s;
}

.wa-agent-build-modal__copy {
    display: grid;
    gap: .25rem;
}

.wa-agent-build-modal__copy span {
    width: fit-content;
    padding: .22rem .58rem;
    border-radius: 999px;
    color: #047857;
    background: #d1fae5;
    font-size: .72rem;
    font-weight: 950;
}

.wa-agent-build-modal__copy strong {
    color: #10251a;
    font-size: 1.25rem;
    font-weight: 950;
}

.wa-agent-build-modal__copy p {
    color: #51675b;
    font-size: .9rem;
    line-height: 1.5;
}

.wa-agent-build-modal__copy .wa-agent-build-modal__warning {
    margin-top: .45rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(245, 158, 11, .32);
    border-radius: 16px;
    color: #3b2f13;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    font-weight: 900;
}

.wa-agent-build-steps {
    display: grid;
    gap: .55rem;
}

.wa-agent-build-steps div {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: .62rem;
    align-items: center;
    padding: .65rem .75rem;
    border: 1px solid #dcefe5;
    border-radius: 14px;
    background: rgba(255, 255, 255, .75);
}

.wa-agent-build-steps span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .42);
    animation: wa-agent-step-dot 1.25s ease-in-out infinite;
}

.wa-agent-build-steps div:nth-child(2) span { animation-delay: .18s; }
.wa-agent-build-steps div:nth-child(3) span { animation-delay: .36s; }
.wa-agent-build-steps div:nth-child(4) span { animation-delay: .54s; }
.wa-agent-build-steps div:nth-child(5) span { animation-delay: .72s; }

.wa-agent-build-steps strong {
    color: #24382d;
    font-size: .84rem;
    font-weight: 900;
}

.wa-website-result.is-error {
    border-color: #fed7aa;
    background: #fff7ed;
}

.wa-website-result.is-error span {
    color: #9a3412;
    background: #ffedd5;
}

.wa-location-builder {
    display: grid;
    gap: .75rem;
    padding: .85rem;
    border: 1px solid #d7eadf;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fffb, #fff);
}

.wa-location-builder > div:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: end;
}

.wa-location-builder button {
    min-height: 46px;
    padding: .7rem .95rem;
    cursor: pointer;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: #111827;
    font-weight: 950;
}

.wa-location-builder button:disabled {
    cursor: wait;
    opacity: .7;
}

.wa-location-result {
    display: grid;
    gap: .25rem;
    padding: .8rem;
    border: 1px solid #dce8e2;
    border-radius: 14px;
    background: #fff;
}

.wa-location-result span {
    width: fit-content;
    padding: .2rem .55rem;
    border-radius: 999px;
    color: #166534;
    background: #dcfce7;
    font-size: .72rem;
    font-weight: 950;
}

.wa-location-result strong {
    color: #13231b;
    font-weight: 950;
}

.wa-location-result p,
.wa-location-result a {
    color: #52665b;
    font-size: .84rem;
}

.wa-location-result a {
    color: #15803d;
    font-weight: 950;
}

.wa-location-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.wa-location-toggles label {
    position: relative;
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: .52rem .75rem;
    cursor: pointer;
    border: 1px solid #d6e0da;
    border-radius: 999px;
    color: #35463e;
    background: #fff;
}

.wa-location-toggles input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wa-location-toggles strong {
    font-size: .82rem;
    font-weight: 900;
}

.wa-location-toggles label.is-selected {
    border-color: #111827;
    color: #fff;
    background: #111827;
}

.wa-hours-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.wa-hours-grid label {
    display: grid;
    gap: .35rem;
}

.wa-hours-grid span {
    color: #25352d;
    font-size: .8rem;
    font-weight: 850;
}

.wa-hours-grid input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d6e0da;
    border-radius: 13px;
    color: #111827;
    background: #fff;
}

.wa-example-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.wa-example-chips button {
    min-height: 36px;
    padding: .45rem .65rem;
    cursor: pointer;
    border: 1px solid #cfe0d7;
    border-radius: 999px;
    color: #264b38;
    background: #fff;
    font-size: .82rem;
    font-weight: 900;
}

.wa-example-chips button:hover {
    color: #111827;
    background: #86efac;
}

.wa-ai-toggle {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .9rem;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    background: #f0fdf4;
}

.wa-ai-toggle strong {
    display: block;
    color: #13241b;
    font-weight: 950;
}

.wa-ai-toggle small {
    display: block;
    margin-top: .2rem;
    color: #52665b;
    font-size: .85rem;
}

.wa-chip-picker {
    display: grid;
    gap: .65rem;
    margin-top: .9rem;
}

.wa-chip-picker > span {
    color: #25352d;
    font-size: .84rem;
    font-weight: 850;
}

.wa-chip-picker > div {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.wa-chip-picker label {
    position: relative;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: .55rem .8rem;
    cursor: pointer;
    border: 1px solid #d6e0da;
    border-radius: 999px;
    color: #35463e;
    background: #fbfcfb;
}

.wa-chip-picker input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wa-chip-picker strong {
    font-size: .84rem;
    font-weight: 900;
}

.wa-chip-picker label.is-selected {
    border-color: #111827;
    color: #fff;
    background: #111827;
}

.wa-response-rules {
    display: grid;
    gap: .8rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #fff);
}

.wa-response-rules strong {
    color: #111827;
    font-weight: 950;
}

.wa-response-rules p {
    margin-top: .2rem;
    color: #526276;
    font-size: .9rem;
}

.wa-phone-block-list {
    display: grid;
    gap: .65rem;
}

.wa-phone-block-row {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) auto;
    gap: .6rem;
    align-items: end;
    padding: .75rem;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #fff;
}

.wa-phone-block-row label {
    display: grid;
    gap: .35rem;
}

.wa-phone-block-row span {
    color: #25352d;
    font-size: .78rem;
    font-weight: 850;
}

.wa-phone-block-row select,
.wa-phone-block-row input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d6e0da;
    border-radius: 12px;
    background: #fbfcfb;
    color: #111827;
    font-size: .92rem;
}

.wa-phone-block-row button,
.wa-add-phone-button {
    min-height: 42px;
    padding: .55rem .75rem;
    cursor: pointer;
    border-radius: 12px;
    font-weight: 900;
}

.wa-phone-block-row button {
    border: 1px solid #fecaca;
    color: #991b1b;
    background: #fff1f2;
}

.wa-add-phone-button {
    width: fit-content;
    border: 1px solid #111827;
    color: #fff;
    background: #111827;
}

.wa-command-preview {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    padding: .8rem;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    background: #f0fdf4;
}

.wa-command-preview strong {
    width: 100%;
    color: #14532d;
    font-weight: 950;
}

.wa-command-preview span {
    display: inline-flex;
    padding: .28rem .55rem;
    border-radius: 999px;
    color: #111827;
    background: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .8rem;
    font-weight: 850;
}

.wa-admin-chat-demo {
    overflow: hidden;
    border: 1px solid #d6e0da;
    border-radius: 18px;
    background:
        linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .88)),
        repeating-linear-gradient(45deg, #e7f5ee 0 8px, #f7fbf8 8px 16px);
    box-shadow: 0 16px 38px rgba(20, 47, 34, .08);
}

.wa-admin-chat-demo__top {
    display: flex;
    gap: .55rem;
    align-items: center;
    padding: .75rem;
    border-bottom: 1px solid #dfe8e3;
    background: #111827;
}

.wa-admin-chat-demo__top span {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: #111827;
    background: #86efac;
    font-weight: 950;
}

.wa-admin-chat-demo__top strong {
    color: #fff;
    font-weight: 950;
}

.wa-admin-chat-demo__body {
    display: grid;
    gap: .45rem;
    padding: .85rem;
}

.wa-admin-chat-demo__body p {
    width: fit-content;
    max-width: min(92%, 32rem);
    margin: 0;
    padding: .62rem .75rem;
    border-radius: 14px;
    color: #14231b;
    background: #fff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, .06);
    font-size: .88rem;
    opacity: 0;
    transform: translateY(8px);
    animation: wa-admin-chat-in 9s ease-in-out infinite;
}

.wa-admin-chat-demo__body .is-admin {
    justify-self: end;
    color: #052e16;
    background: #dcfce7;
}

.wa-admin-chat-demo__body .is-bot {
    justify-self: start;
}

.wa-admin-chat-demo__body .is-reminder {
    border: 1px solid #fde68a;
    background: #fffbeb;
}

.wa-admin-chat-demo__body p:nth-child(1) { animation-delay: 0s; }
.wa-admin-chat-demo__body p:nth-child(2) { animation-delay: .7s; }
.wa-admin-chat-demo__body p:nth-child(3) { animation-delay: 1.4s; }
.wa-admin-chat-demo__body p:nth-child(4) { animation-delay: 2.1s; }
.wa-admin-chat-demo__body p:nth-child(5) { animation-delay: 2.8s; }

@keyframes wa-admin-chat-in {
    0%,
    6% {
        opacity: 0;
        transform: translateY(8px);
    }

    10%,
    72% {
        opacity: 1;
        transform: translateY(0);
    }

    88%,
    100% {
        opacity: 0;
        transform: translateY(-4px);
    }
}

.wa-admin-reminders {
    display: grid;
    gap: .8rem;
}

.wa-catalog-list {
    display: grid;
    gap: .75rem;
    margin-top: .9rem;
}

.wa-catalog-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px auto;
    gap: .6rem;
    align-items: start;
    padding: .75rem;
    border: 1px solid #dfe8e3;
    border-radius: 16px;
    background: #fbfcfb;
}

.wa-catalog-item textarea {
    grid-column: 1 / -2;
    min-height: 72px;
    resize: vertical;
}

.wa-catalog-item input,
.wa-catalog-item textarea {
    width: 100%;
    border: 1px solid #d6e0da;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: .9rem;
}

.wa-catalog-item button {
    min-height: 42px;
    padding: .55rem .75rem;
    cursor: pointer;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
    background: #fff1f2;
    font-weight: 900;
}

.wa-ai-score {
    display: grid;
    gap: .55rem;
}

.wa-ai-score span {
    color: #07140f;
    font-size: 2.2rem;
    font-weight: 950;
}

.wa-ai-score strong {
    color: #3d5048;
    font-size: .92rem;
}

.wa-ai-score div {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5ebe8;
}

.wa-ai-score i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #111827, #16a34a);
}

.wa-ai-wizard-controls {
    position: sticky;
    bottom: .75rem;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem;
    padding: .85rem;
    border: 1px solid #111827;
    border-radius: 18px;
    background: #111827;
    box-shadow: 0 20px 50px rgba(17, 24, 39, .18);
}

.wa-ai-wizard-controls button {
    min-height: 42px;
    padding: .6rem .9rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    color: #111827;
    background: #86efac;
    font-weight: 950;
}

.wa-ai-wizard-controls button.is-secondary {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.wa-ai-wizard-controls button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.wa-ai-wizard-controls span {
    min-width: 48px;
    color: #fff;
    text-align: center;
    font-weight: 950;
}

.wa-ai-wizard-controls button span {
    min-width: 0;
    color: inherit;
}

.wa-plan-required {
    display: grid;
    gap: .55rem;
    padding: 1rem;
    border: 1px solid #fde68a;
    border-radius: 18px;
    background: linear-gradient(135deg, #fffbeb, #fff);
}

.wa-plan-required span {
    width: fit-content;
    padding: .22rem .6rem;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: .75rem;
    font-weight: 950;
}

.wa-plan-required strong {
    color: #111827;
    font-size: 1.1rem;
    font-weight: 950;
}

.wa-plan-required p {
    color: #65513a;
    font-size: .92rem;
}

.wa-plan-required a {
    display: inline-flex;
    width: fit-content;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: .6rem .9rem;
    border: 1px solid #111827;
    border-radius: 12px;
    color: #fff;
    background: #111827;
    font-weight: 950;
    text-decoration: none;
}

.wa-agent-activation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .9rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #86efac;
    border-radius: 18px;
    background: #f0fdf4;
}

.wa-agent-activation > span {
    padding: .28rem .62rem;
    border-radius: 999px;
    color: #166534;
    background: #dcfce7;
    font-size: .75rem;
    font-weight: 950;
}

.wa-agent-activation strong,
.wa-agent-activation p {
    display: block;
}

.wa-agent-activation strong {
    color: #111827;
    font-weight: 950;
}

.wa-agent-activation p {
    margin-top: .2rem;
    color: #4b6355;
    font-size: .9rem;
}

.wa-agent-activation button {
    min-height: 44px;
    padding: .65rem .9rem;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: #15803d;
    font-weight: 950;
}

@media (max-width: 760px) {
    .wa-agent-activation {
        grid-template-columns: 1fr;
    }

    .wa-agent-activation > span {
        width: fit-content;
    }

    .wa-website-analyzer {
        grid-template-columns: 1fr;
    }

    .wa-website-analyzer button {
        width: 100%;
    }

    .wa-discovery-box {
        grid-template-columns: 1fr;
    }

    .wa-discovery-box button {
        width: 100%;
    }

    .wa-discovery-result dl {
        grid-template-columns: 1fr;
    }

    .wa-discovery-modal {
        align-items: flex-end;
        padding: .75rem;
    }

    .wa-discovery-modal__panel {
        border-radius: 22px;
        padding: 1rem;
    }

    .wa-discovery-loader {
        height: 126px;
    }

    .wa-location-builder > div:first-child {
        grid-template-columns: 1fr;
    }

    .wa-location-builder button {
        width: 100%;
    }
}

.wa-final-checks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .7rem;
    margin-bottom: 1rem;
}

.wa-final-checks article {
    display: grid;
    gap: .35rem;
    padding: .85rem;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    background: #f0fdf4;
}

.wa-final-checks span {
    width: fit-content;
    padding: .18rem .5rem;
    border-radius: 999px;
    color: #fff;
    background: #16a34a;
    font-size: .72rem;
    font-weight: 950;
}

.wa-final-checks strong {
    color: #13231b;
    font-weight: 950;
}

.wa-final-checks p {
    color: #52665b;
    font-size: .84rem;
}

.wa-agent-result {
    display: grid;
    gap: .9rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #c7ead5;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0fdf4, #fff);
}

.wa-agent-result__hero {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
}

.wa-agent-result__hero > span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: #fff;
    background: #111827;
    font-size: .78rem;
    font-weight: 950;
}

.wa-agent-result__hero h3 {
    margin: .1rem 0 0;
    color: #0f1f17;
    font-size: 1.05rem;
    font-weight: 950;
}

.wa-agent-result__hero p:not(.wa-client-eyebrow) {
    margin-top: .25rem;
    color: #52665b;
    font-size: .88rem;
    line-height: 1.45;
}

.wa-agent-result__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
}

.wa-agent-result__grid article {
    display: grid;
    gap: .22rem;
    padding: .85rem;
    border: 1px solid #dce8e2;
    border-radius: 14px;
    background: rgba(255, 255, 255, .78);
}

.wa-agent-result__grid small {
    color: #64746c;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.wa-agent-result__grid strong {
    color: #13231b;
    font-weight: 950;
}

.wa-agent-result__grid p {
    color: #52665b;
    font-size: .82rem;
    line-height: 1.35;
}

.wa-agent-prompt-box {
    overflow: hidden;
    border: 1px solid #d7e4dd;
    border-radius: 15px;
    background: #fff;
}

.wa-prompt-editor {
    display: grid;
    gap: .8rem;
    padding: .9rem;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.wa-prompt-editor__head {
    display: flex;
    gap: .8rem;
    justify-content: space-between;
}

.wa-prompt-editor__head span {
    display: inline-flex;
    width: fit-content;
    padding: .22rem .55rem;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: .72rem;
    font-weight: 950;
}

.wa-prompt-editor__head strong {
    display: block;
    margin-top: .3rem;
    color: #111827;
    font-weight: 950;
}

.wa-prompt-editor__head p,
.wa-prompt-editor__empty p {
    margin-top: .2rem;
    color: #526276;
    font-size: .86rem;
    line-height: 1.45;
}

.wa-prompt-section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.wa-prompt-section-tabs button {
    min-height: 34px;
    padding: .42rem .65rem;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #334155;
    background: #fff;
    font-size: .8rem;
    font-weight: 950;
}

.wa-prompt-section-tabs button.is-active {
    border-color: #111827;
    color: #fff;
    background: #111827;
}

.wa-prompt-editor__empty {
    padding: .85rem;
    border: 1px dashed #93c5fd;
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
}

.wa-prompt-editor__empty strong {
    color: #111827;
    font-weight: 950;
}

.wa-prompt-editor__field {
    display: grid;
    gap: .4rem;
}

.wa-prompt-editor__field span {
    color: #111827;
    font-size: .82rem;
    font-weight: 950;
}

.wa-prompt-editor__field textarea {
    width: 100%;
    min-height: 280px;
    resize: vertical;
    padding: .85rem;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    color: #111827;
    background: #fff;
    font-size: .9rem;
    line-height: 1.55;
}

.wa-prompt-editor__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: flex-end;
}

.wa-prompt-editor__actions button {
    min-height: 40px;
    padding: .58rem .85rem;
    cursor: pointer;
    border: 1px solid #111827;
    border-radius: 12px;
    color: #fff;
    background: #111827;
    font-weight: 950;
}

.wa-prompt-editor__actions button.is-secondary {
    color: #111827;
    background: #fff;
}

.wa-agent-prompt-box summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .85rem;
    cursor: pointer;
    list-style: none;
}

.wa-agent-prompt-box summary::-webkit-details-marker {
    display: none;
}

.wa-agent-prompt-box summary span {
    color: #15803d;
    font-size: .82rem;
    font-weight: 950;
}

.wa-agent-prompt-box summary strong {
    color: #13231b;
    font-size: .88rem;
    font-weight: 950;
}

.wa-agent-prompt-box pre {
    max-height: 360px;
    margin: 0;
    overflow: auto;
    padding: .95rem;
    border-top: 1px solid #e2ebe6;
    color: #d1fae5;
    background: #0f172a;
    font-size: .78rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.wa-agent-result__preview {
    display: grid;
    gap: .45rem;
    padding: .85rem;
    border: 1px solid #dce8e2;
    border-radius: 15px;
    background: #fff;
}

.wa-agent-result__preview span {
    color: #52665b;
    font-size: .75rem;
    font-weight: 950;
    text-transform: uppercase;
}

.wa-agent-result__preview p {
    width: fit-content;
    max-width: 86%;
    padding: .55rem .7rem;
    border-radius: 14px;
    font-size: .85rem;
    line-height: 1.35;
}

.wa-agent-result__preview .is-user {
    justify-self: end;
    color: #0f1f17;
    background: #dcfce7;
}

.wa-agent-result__preview .is-bot {
    color: #17251d;
    background: #f1f5f9;
}

.wa-agent-result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.wa-agent-result__actions button {
    min-height: 42px;
    padding: .65rem .9rem;
    cursor: pointer;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: #111827;
    font-weight: 950;
}

.wa-agent-result__actions button.is-secondary {
    color: #111827;
    background: #e8f5ed;
}

.wa-launch-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .7rem;
}

.wa-launch-strip div {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 54px;
    padding: .75rem;
    border: 1px solid #e0e8e3;
    border-radius: 14px;
    background: #fff;
}

.wa-launch-strip span {
    display: inline-grid;
    width: 34px;
    height: 28px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    color: #647067;
    background: #f0f3f1;
    font-size: .72rem;
    font-weight: 900;
}

.wa-launch-strip .is-done span {
    color: #fff;
    background: #111827;
}

.wa-launch-strip strong {
    min-width: 0;
    color: #15231c;
    font-size: .88rem;
}

.wa-launch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1rem;
    align-items: start;
}

.wa-launch-main,
.wa-launch-side {
    display: grid;
    gap: 1rem;
}

.wa-launch-side {
    position: sticky;
    top: 1rem;
}

.wa-launch-block,
.wa-preview,
.wa-launch-actions {
    padding: 1.1rem;
    border: 1px solid #dfe8e3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(20, 47, 34, .05);
}

.is-guide-on .wa-launch-block,
.is-guide-on .wa-launch-side {
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.is-guide-on .wa-launch-block:not(.is-guide-focus),
.is-guide-on .wa-launch-side:not(.is-guide-focus) {
    opacity: .62;
}

.is-guide-focus {
    position: relative;
    z-index: 2;
}

.wa-launch-block.is-guide-focus,
.wa-launch-side.is-guide-focus .wa-preview,
.wa-launch-side.is-guide-focus .wa-launch-actions {
    border-color: #111827;
    box-shadow: 0 24px 70px rgba(17, 24, 39, .16);
}

.wa-guide-note {
    display: grid;
    gap: .25rem;
    margin-top: 1rem;
    padding: .85rem;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: #f0fdf4;
}

.wa-guide-note strong {
    color: #14532d;
    font-weight: 950;
}

.wa-guide-note p {
    color: #315846;
    font-size: .9rem;
}

.wa-launch-block__head {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.wa-launch-block__head > span {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: #111827;
    font-weight: 900;
}

.wa-launch-block h2,
.wa-preview h2 {
    color: #0d1d15;
    font-size: 1.2rem;
    font-weight: 900;
}

.wa-launch-block p {
    margin-top: .2rem;
    color: #67766e;
    font-size: .92rem;
}

.wa-choice-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .7rem;
}

.wa-choice {
    display: grid;
    gap: .4rem;
    min-height: 168px;
    padding: .85rem;
    cursor: pointer;
    border: 1px solid #dfe8e3;
    border-radius: 16px;
    background: #fbfcfb;
}

.wa-choice b {
    display: inline-grid;
    width: 42px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: #111827;
    font-size: .78rem;
    font-weight: 950;
}

.wa-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wa-choice strong {
    color: #13241b;
    font-weight: 900;
}

.wa-choice span {
    color: #64746c;
    font-size: .86rem;
}

.wa-choice em {
    align-self: end;
    color: #166534;
    font-size: .78rem;
    font-style: normal;
    font-weight: 900;
}

.wa-choice.is-selected {
    border-color: #111827;
    background: #f4f7f5;
    box-shadow: inset 0 0 0 1px #111827;
}

.wa-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.wa-field-grid label,
.wa-big-field {
    display: grid;
    gap: .4rem;
}

.wa-field-grid span,
.wa-big-field span {
    color: #25352d;
    font-size: .84rem;
    font-weight: 850;
}

.wa-field-grid input,
.wa-field-grid select,
.wa-big-field textarea,
.wa-chat-preview input {
    width: 100%;
    border: 1px solid #d6e0da;
    border-radius: 14px;
    background: #fbfcfb;
    color: #111827;
    font-size: .95rem;
}

.wa-field-grid input,
.wa-field-grid select,
.wa-chat-preview input {
    min-height: 46px;
}

.wa-preset-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .85rem;
    padding: .9rem;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.wa-preset-callout strong {
    color: #11251a;
    font-weight: 950;
}

.wa-preset-callout p {
    margin-top: .2rem;
    color: #4f6258;
    font-size: .88rem;
}

.wa-preset-callout button,
.wa-example-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: .6rem .85rem;
    cursor: pointer;
    border: 1px solid #111827;
    border-radius: 12px;
    color: #fff;
    background: #111827;
    font-size: .84rem;
    font-weight: 900;
    white-space: nowrap;
}

.wa-example-button {
    margin-top: .75rem;
    color: #13231b;
    border-color: #d9e3dd;
    background: #fff;
}

.wa-big-field {
    margin-top: .85rem;
}

.wa-big-field textarea {
    min-height: 120px;
    resize: vertical;
}

.wa-check-row,
.wa-toggle-grid {
    display: grid;
    gap: .7rem;
}

.wa-check-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 1rem;
}

.wa-check-row label,
.wa-toggle-grid label {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .8rem;
    border: 1px solid #dfe8e3;
    border-radius: 14px;
    background: #fbfcfb;
}

.wa-check-row span,
.wa-toggle-grid strong {
    color: #14231b;
    font-weight: 850;
}

.wa-toggle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wa-toggle-grid small {
    display: block;
    margin-top: .15rem;
    color: #65746c;
    font-size: .84rem;
}

.wa-agenda-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}

.wa-agenda-card {
    display: grid;
    gap: .5rem;
    min-height: 150px;
    padding: .95rem;
    cursor: pointer;
    border: 1px solid #dfe8e3;
    border-radius: 16px;
    background: #fbfcfb;
}

.wa-agenda-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wa-agenda-card > span {
    width: fit-content;
    padding: .2rem .55rem;
    border-radius: 999px;
    color: #166534;
    background: #dcfce7;
    font-size: .72rem;
    font-weight: 950;
}

.wa-agenda-card strong {
    color: #111827;
    font-size: 1rem;
    font-weight: 950;
}

.wa-agenda-card p {
    color: #64746c;
    font-size: .88rem;
}

.wa-agenda-card.is-selected {
    border-color: #111827;
    background: #f4f7f5;
    box-shadow: inset 0 0 0 1px #111827;
}

.wa-sheet-setup {
    display: grid;
    gap: .9rem;
    margin-top: .9rem;
    padding: .95rem;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    background: #f0fdf4;
}

.wa-sheet-setup__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.wa-sheet-setup__head strong {
    color: #11251a;
    font-weight: 950;
}

.wa-sheet-setup__head p {
    margin-top: .2rem;
    color: #3f5d4d;
    font-size: .88rem;
}

.wa-sheet-setup code {
    color: #14532d;
    font-weight: 850;
}

.wa-sheet-setup__head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: .55rem .8rem;
    flex: 0 0 auto;
    border: 1px solid #111827;
    border-radius: 12px;
    color: #fff;
    background: #111827;
    font-size: .84rem;
    font-weight: 900;
    text-decoration: none;
}

.wa-whatsapp-connect {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #fde68a;
    border-radius: 18px;
    background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.wa-whatsapp-connect.is-ready {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.wa-whatsapp-status {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.wa-whatsapp-status > span {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: #f59e0b;
    font-weight: 950;
}

.wa-whatsapp-connect.is-ready .wa-whatsapp-status > span {
    background: #16a34a;
}

.wa-whatsapp-status strong {
    color: #111827;
    font-size: 1.08rem;
    font-weight: 950;
}

.wa-whatsapp-status p {
    margin-top: .18rem;
    color: #56665e;
    font-size: .92rem;
}

.wa-whatsapp-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem;
    border: 1px solid #dce7e1;
    border-radius: 16px;
    background: #fff;
}

.wa-whatsapp-code span {
    display: block;
    color: #607167;
    font-size: .84rem;
    font-weight: 850;
}

.wa-whatsapp-code small {
    display: block;
    margin-top: .2rem;
    color: #6b7b72;
    font-size: .76rem;
    font-weight: 750;
    line-height: 1.35;
}

.wa-whatsapp-code strong {
    color: #111827;
    font-size: 1.6rem;
    font-weight: 950;
    letter-spacing: .08em;
}

.wa-whatsapp-trust-note,
.wa-whatsapp-waiting {
    display: flex;
    gap: .75rem;
    padding: .9rem;
    border: 1px solid rgba(245, 158, 11, .22);
    border-radius: 16px;
    background: rgba(255, 251, 235, .78);
}

.wa-whatsapp-trust-note::before {
    content: "!";
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #92400e;
    background: #fde68a;
    font-weight: 950;
}

.wa-whatsapp-trust-note strong,
.wa-whatsapp-waiting strong {
    display: block;
    color: #17251e;
    font-size: .9rem;
    font-weight: 950;
}

.wa-whatsapp-trust-note p,
.wa-whatsapp-waiting p {
    margin-top: .18rem;
    color: #63736a;
    font-size: .82rem;
    line-height: 1.45;
}

.wa-whatsapp-waiting {
    align-items: center;
    border-color: rgba(20, 184, 166, .2);
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

.wa-whatsapp-waiting > span {
    position: relative;
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(20, 184, 166, .14);
}

.wa-whatsapp-waiting > span::before,
.wa-whatsapp-waiting > span::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.wa-whatsapp-waiting > span::before {
    width: 12px;
    height: 12px;
    background: #14b8a6;
}

.wa-whatsapp-waiting > span::after {
    inset: 4px;
    border: 2px solid rgba(20, 184, 166, .35);
    animation: wa-whatsapp-waiting-pulse 1.6s ease-in-out infinite;
}

.wa-whatsapp-actions,
.wa-whatsapp-code-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.wa-whatsapp-code-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.wa-whatsapp-code-form label {
    display: grid;
    gap: .35rem;
}

.wa-phone-number-control {
    display: grid;
    grid-template-columns: minmax(155px, .85fr) minmax(130px, 1fr);
    overflow: hidden;
    border: 1px solid #d6e0da;
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wa-phone-number-control:focus-within {
    border-color: #22a85e;
    box-shadow: 0 0 0 3px rgba(34, 168, 94, .12);
}

.wa-phone-number-control select,
.wa-phone-number-control input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 0;
    border-radius: 0;
    color: #17251e;
    background: #fff;
    font-size: .86rem;
}

.wa-phone-number-control select {
    padding: 0 2rem 0 .7rem;
    border-right: 1px solid #e1e8e4;
    cursor: pointer;
    font-weight: 850;
}

.wa-phone-number-control input:focus,
.wa-phone-number-control select:focus {
    outline: none;
    box-shadow: none;
}

.wa-whatsapp-code-form label > small {
    color: #6a7b72;
    font-size: .72rem;
    line-height: 1.4;
}

.wa-whatsapp-code-form span {
    color: #25352d;
    font-size: .84rem;
    font-weight: 850;
}

.wa-whatsapp-code-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d6e0da;
    border-radius: 14px;
    background: #fff;
    color: #111827;
}

.wa-whatsapp-code-form .wa-phone-number-control input {
    min-height: 46px;
    border: 0;
    border-radius: 0;
}

.wa-whatsapp-actions button,
.wa-whatsapp-code-form button {
    align-self: start;
    min-height: 44px;
    margin-top: 1.55rem;
    padding: .65rem .85rem;
    cursor: pointer;
    border: 1px solid #111827;
    border-radius: 14px;
    color: #fff;
    background: #111827;
    font-weight: 900;
}

.wa-whatsapp-actions button:disabled,
.wa-whatsapp-code-form button:disabled {
    cursor: not-allowed;
    color: #64746b;
    border-color: #d9e3dd;
    background: #eef5f1;
    box-shadow: none;
}

.wa-whatsapp-actions button:nth-child(2) {
    color: #13231b;
    border-color: #d9e3dd;
    background: #fff;
}

.wa-whatsapp-code-form button.is-generate-code-pulse {
    position: relative;
    isolation: isolate;
    overflow: visible;
    border-color: #16a34a;
    background: linear-gradient(135deg, #111827, #064e3b);
    box-shadow: 0 14px 34px rgba(22, 163, 74, .22);
}

.wa-whatsapp-code-form button.is-generate-code-pulse::before,
.wa-whatsapp-code-form button.is-generate-code-pulse::after {
    content: "";
    position: absolute;
    inset: -8px;
    z-index: -1;
    border: 2px solid rgba(34, 197, 94, .48);
    border-radius: 18px;
    animation: wa-generate-code-pulse 1.75s ease-out infinite;
}

.wa-whatsapp-code-form button.is-generate-code-pulse::after {
    inset: -14px;
    border-color: rgba(34, 197, 94, .22);
    animation-delay: .45s;
}

@keyframes wa-generate-code-pulse {
    0% {
        opacity: .9;
        transform: scale(.96);
    }

    72% {
        opacity: 0;
        transform: scale(1.08);
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

.wa-whatsapp-error {
    padding: .8rem;
    border: 1px solid #fecaca;
    border-radius: 14px;
    color: #991b1b;
    background: #fff1f2;
    font-size: .88rem;
}

@keyframes wa-whatsapp-waiting-pulse {
    0% {
        opacity: .85;
        transform: scale(.88);
    }

    70% {
        opacity: .15;
        transform: scale(1.55);
    }

    100% {
        opacity: 0;
        transform: scale(1.7);
    }
}

.wa-launch-block__subhead {
    margin: 1.05rem 0 .75rem;
}

.wa-launch-block__subhead h3 {
    margin: 0;
    color: #13231b;
    font-size: 1rem;
    font-weight: 950;
}

.wa-launch-block__subhead p {
    margin-top: .2rem;
}

.wa-preview {
    display: grid;
    gap: 1rem;
}

.wa-build-plan {
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid #111827;
    border-radius: 18px;
    color: #fff;
    background: #111827;
    box-shadow: 0 18px 48px rgba(17, 24, 39, .16);
}

.wa-ai-prompt-status {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem;
    border: 1px solid #e1e8e4;
    border-radius: 13px;
    background: #f7faf8;
}

.wa-ai-prompt-status > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    color: #52645a;
    background: #e8eeeb;
    font-size: .7rem;
    font-weight: 950;
}

.wa-ai-prompt-status.is-ready {
    border-color: #bce5cc;
    background: #f0fdf4;
}

.wa-ai-prompt-status.is-ready > span {
    color: #fff;
    background: #16864a;
}

.wa-ai-prompt-status div {
    display: grid;
    min-width: 0;
}

.wa-ai-prompt-status strong {
    color: #183126;
    font-size: .78rem;
    font-weight: 950;
}

.wa-ai-prompt-status small {
    color: #66776e;
    font-size: .68rem;
    line-height: 1.35;
}

.wa-agent-built-status {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: 1rem;
    padding: .9rem;
    border: 1px solid #cce8d7;
    border-radius: 15px;
    background: #f3fbf6;
}

.wa-agent-built-status > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 11px;
    color: #fff;
    background: #19864b;
    font-size: .72rem;
    font-weight: 950;
}

.wa-agent-built-status strong {
    color: #123421;
    font-weight: 950;
}

.wa-agent-built-status p {
    margin: .2rem 0 0;
    color: #587064;
    font-size: .8rem;
    line-height: 1.45;
}

.wa-build-plan h2 {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 950;
}

.wa-build-plan .wa-client-eyebrow {
    color: #86efac;
}

.wa-build-plan > div {
    display: grid;
    gap: .6rem;
}

.wa-build-plan article {
    display: flex;
    gap: .7rem;
    padding: .7rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
}

.wa-build-plan article span {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #111827;
    background: #86efac;
    font-size: .8rem;
    font-weight: 950;
}

.wa-build-plan article strong {
    color: #fff;
    font-weight: 950;
}

.wa-build-plan article p {
    margin-top: .15rem;
    color: #d5ddd8;
    font-size: .84rem;
}

.wa-preview dl {
    display: grid;
    gap: .55rem;
}

.wa-preview dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px solid #eef3f0;
}

.wa-preview dt {
    color: #6b756f;
    font-size: .82rem;
}

.wa-preview dd {
    color: #111827;
    font-weight: 850;
    text-align: right;
}

.wa-chat-preview {
    display: grid;
    gap: .45rem;
    padding: .85rem;
    border-radius: 16px;
    background: #f3f6f4;
}

.wa-chat-preview input {
    padding: .7rem .8rem;
}

.wa-chat-preview span {
    color: #66756d;
    font-size: .75rem;
    font-weight: 850;
    text-transform: uppercase;
}

.wa-chat-preview p {
    padding: .7rem .8rem;
    border-radius: 14px;
    color: #18251d;
    background: #fff;
    font-size: .9rem;
}

.wa-chat-preview p:last-child {
    color: #fff;
    background: #111827;
}

.wa-launch-actions {
    display: grid;
    gap: .6rem;
}

.wa-launch-actions button,
.wa-launch-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .75rem 1rem;
    border: 1px solid #111827;
    border-radius: 14px;
    color: #fff;
    background: #111827;
    font-weight: 900;
    text-decoration: none;
}

.wa-launch-actions button.is-secondary,
.wa-launch-actions a {
    color: #13231b;
    border-color: #d9e3dd;
    background: #fff;
}

@media (max-width: 1180px) {
    .wa-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .wa-launch-hero,
    .wa-launch-layout,
    .wa-launch-strip,
    .wa-creator-mode,
    .wa-ai-builder,
    .wa-ai-stepper,
    .wa-ai-card.is-hero,
    .wa-phone-block-row,
    .wa-final-checks,
    .wa-guide-bar,
    .wa-field-grid,
    .wa-agenda-grid,
    .wa-check-row,
    .wa-toggle-grid,
    .wa-whatsapp-actions,
    .wa-whatsapp-code-form {
        grid-template-columns: 1fr;
    }

    .wa-whatsapp-code-form button {
        margin-top: .15rem;
    }

    .wa-agent-result__grid {
        grid-template-columns: 1fr;
    }

    .wa-launch-side {
        position: static;
    }

    .wa-ai-builder__side {
        display: none;
    }

    .wa-ai-mobile-summary {
        display: grid;
        grid-column: 1;
        gap: .8rem;
    }

    .wa-guide-controls {
        flex-wrap: wrap;
    }

    .wa-dashboard-guide-bar {
        top: .75rem;
        right: .75rem;
        left: .75rem;
    }

    .wa-preset-callout {
        display: grid;
    }

    .wa-sheet-setup__head {
        display: grid;
    }

    .wa-preset-callout button,
    .wa-sheet-setup__head a,
    .wa-example-button {
        width: 100%;
    }

    .wa-catalog-item {
        grid-template-columns: 1fr;
    }

    .wa-catalog-item textarea {
        grid-column: auto;
    }

    .wa-ai-wizard-controls {
        flex-wrap: wrap;
        justify-content: space-between;
        bottom: .5rem;
    }

    .wa-start-bot-button {
        width: 100%;
        justify-content: space-between;
    }

    .wa-agent-result__actions {
        display: grid;
    }

    .wa-agent-result__actions button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .wa-phone-number-control {
        grid-template-columns: minmax(138px, .9fr) minmax(0, 1.1fr);
    }

    .wa-phone-number-control select,
    .wa-phone-number-control input {
        font-size: .78rem;
    }

    .wa-hours-grid {
        grid-template-columns: 1fr;
    }

    .wa-data-question {
        padding: .85rem;
    }
}

@media (max-width: 640px) {
    .wa-launch-hero h1 {
        font-size: 2.25rem;
    }

    .wa-choice-grid {
        grid-template-columns: 1fr;
    }

    .wa-launch-hero,
    .wa-launch-block,
    .wa-preview,
    .wa-launch-actions {
        border-radius: 16px;
        padding: 1rem;
    }

    .wa-step-demo {
        padding: .8rem;
    }

    .wa-business-flow,
    .wa-rules-flow,
    .wa-connect-flow {
        grid-template-columns: 1fr;
    }

    .wa-business-flow__core,
    .wa-rules-flow__shield,
    .wa-connect-flow__bot {
        justify-self: center;
    }

    .wa-business-flow__outputs,
    .wa-rules-flow > div {
        justify-content: center;
    }

    .wa-rules-flow > div {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wa-rules-flow > div span {
        text-align: center;
    }

    .wa-connect-flow__line {
        width: 2px;
        height: 28px;
        justify-self: center;
    }

    .wa-connect-flow__line i {
        width: 100%;
        height: 38%;
        animation-name: wa-demo-connect-line-mobile;
    }

    .wa-connect-flow__phone {
        justify-self: center;
        text-align: center;
    }

    .wa-data-capture,
    .wa-catalog-flow__items {
        gap: .3rem;
    }

    .wa-catalog-flow__items span {
        padding: .35rem;
    }
}

@keyframes wa-demo-connect-line-mobile {
    from { transform: translateY(-110%); }
    to { transform: translateY(280%); }
}

@media (prefers-reduced-motion: reduce) {
    .wa-step-demo::after,
    .wa-business-flow__input,
    .wa-business-flow__core,
    .wa-business-flow__outputs span,
    .wa-data-conversation p,
    .wa-data-capture span,
    .wa-catalog-flow__items span,
    .wa-catalog-flow p,
    .wa-rules-flow > p,
    .wa-rules-flow__shield,
    .wa-rules-flow > div span.is-active,
    .wa-connect-flow__bot,
    .wa-connect-flow__line i,
    .wa-connect-flow__messages p {
        animation: none;
    }

    .wa-business-flow__outputs span,
    .wa-data-conversation p,
    .wa-data-capture span,
    .wa-catalog-flow p,
    .wa-connect-flow__messages p {
        opacity: 1;
        transform: none;
    }
}

/* The launcher main column is intentionally narrow beside its live preview. */
.wa-media-demo,
.wa-catalog-how,
.wa-media-gallery,
.wa-media-builder .wa-field-grid {
    grid-template-columns: 1fr;
}

.wa-media-demo__question {
    opacity: 1;
    animation: none;
}

.wa-media-demo__search,
.wa-media-demo__result {
    min-width: 0;
}

/* Animated device-link guide in the final AI setup step. */
.wa-device-guide {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid #cfe7d9;
    border-radius: 18px;
    background: #f7fcf9;
}

.wa-device-guide__head {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.wa-device-guide__head > span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    flex: 0 0 auto;
    padding: .3rem .55rem;
    border-radius: 8px;
    color: #fff;
    background: #15803d;
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.wa-device-guide__head h3 {
    margin: 0;
    color: #10281c;
    font-size: 1.05rem;
    font-weight: 950;
}

.wa-device-guide__head p {
    margin: .2rem 0 0;
    color: #557064;
    font-size: .85rem;
    line-height: 1.45;
}

.wa-device-guide__stage {
    display: grid;
    grid-template-columns: minmax(220px, 258px) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.wa-device-phone {
    position: relative;
    width: 100%;
    height: 424px;
    justify-self: center;
    overflow: hidden;
    border: 7px solid #17211c;
    border-radius: 30px;
    color: #13231b;
    background: #fff;
    box-shadow: 0 18px 40px rgba(25, 68, 46, .16);
}

.wa-device-phone__status {
    position: relative;
    z-index: 20;
    display: flex;
    height: 30px;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    color: #16251d;
    background: #fff;
    font-size: .61rem;
    font-style: normal;
}

.wa-device-phone__status b {
    margin-right: auto;
}

.wa-device-phone__status span {
    width: 11px;
    height: 8px;
    border-radius: 8px 8px 2px 2px;
    background: #17211c;
}

.wa-device-phone__status i {
    width: 10px;
    height: 7px;
    border: 2px solid #17211c;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
}

.wa-device-phone__status em {
    padding: 1px 4px;
    border-radius: 4px;
    color: #fff;
    background: #17211c;
    font-size: .55rem;
    font-style: normal;
}

.wa-device-scene {
    position: absolute;
    z-index: 1;
    inset: 30px 0 0;
    padding: 14px;
    opacity: 0;
    background: #fff;
    transform: translateX(12px);
    pointer-events: none;
    animation: wa-device-scene-1 20s ease-in-out infinite;
}

.wa-device-scene--2 { animation-name: wa-device-scene-2; }
.wa-device-scene--3 { animation-name: wa-device-scene-3; }
.wa-device-scene--4 { animation-name: wa-device-scene-4; }
.wa-device-scene--5 { animation-name: wa-device-scene-5; }

.wa-device-appbar,
.wa-device-page-title {
    display: flex;
    min-height: 34px;
    align-items: center;
    gap: .5rem;
}

.wa-device-appbar strong {
    font-size: 1.25rem;
    font-weight: 950;
}

.wa-device-avatar {
    display: grid;
    width: 30px;
    height: 30px;
    margin-left: auto;
    place-items: center;
    border: 2px solid #1e9b55;
    border-radius: 50%;
    color: #fff;
    background: #263a30;
    font-size: .7rem;
    font-weight: 950;
}

.wa-device-search {
    margin: 10px 0 8px;
    padding: 8px 10px;
    border-radius: 9px;
    color: #77847d;
    background: #eef2f0;
    font-size: .65rem;
}

.wa-device-chats {
    display: grid;
}

.wa-device-chats article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 58px;
    border-bottom: 1px solid #e9efec;
}

.wa-device-chats article > i,
.wa-device-profile > i,
.wa-device-session > i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #287e55;
    font-size: .57rem;
    font-style: normal;
    font-weight: 900;
}

.wa-device-chats article:nth-child(2) > i { background: #d97706; }
.wa-device-chats article:nth-child(3) > i { background: #475569; }

.wa-device-chats span,
.wa-device-profile span,
.wa-device-session span,
.wa-device-methods span,
.wa-device-ready span {
    display: grid;
    min-width: 0;
}

.wa-device-chats b,
.wa-device-profile b,
.wa-device-session b,
.wa-device-methods b,
.wa-device-ready b {
    overflow: hidden;
    font-size: .68rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-device-chats small,
.wa-device-profile small,
.wa-device-session small,
.wa-device-methods small,
.wa-device-ready small {
    overflow: hidden;
    color: #75827b;
    font-size: .57rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-device-chats time {
    color: #168147;
    font-size: .55rem;
}

.wa-device-nav {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 10px 8px 12px;
    border-top: 1px solid #e0e8e4;
    background: #fff;
}

.wa-device-nav span {
    color: #7c8982;
    font-size: .55rem;
    font-weight: 800;
    text-align: center;
}

.wa-device-nav .is-target {
    color: #15803d;
    font-weight: 950;
}

.wa-device-page-title {
    justify-content: center;
    font-size: .75rem;
}

.wa-device-page-title > span {
    position: absolute;
    left: 14px;
    color: #178849;
    font-size: .68rem;
    font-weight: 850;
}

.wa-device-page-title strong {
    font-weight: 950;
}

.wa-device-profile,
.wa-device-session,
.wa-device-ready {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    padding: 10px;
    border: 1px solid #e2eae6;
    border-radius: 12px;
    background: #f8fbf9;
}

.wa-device-menu {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid #e2eae6;
    border-radius: 12px;
}

.wa-device-menu > div,
.wa-device-methods > div {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    min-height: 49px;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border-bottom: 1px solid #e6ece9;
    font-size: .66rem;
    font-weight: 850;
}

.wa-device-menu > div:last-child,
.wa-device-methods > div:last-child {
    border-bottom: 0;
}

.wa-device-menu i,
.wa-device-methods i {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 8px;
    color: #176c40;
    background: #e5f7ed;
    font-size: .57rem;
    font-style: normal;
    font-weight: 950;
}

.wa-device-menu .is-target,
.wa-device-methods .is-target {
    position: relative;
    color: #0f6a39;
    background: #eaf9f0;
    box-shadow: inset 3px 0 #17a65a;
}

.wa-device-link-art {
    display: flex;
    height: 86px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 14px 0 4px;
}

.wa-device-link-art span,
.wa-device-link-art b {
    display: grid;
    width: 50px;
    height: 62px;
    place-items: center;
    border: 2px solid #173426;
    border-radius: 12px;
    color: #173426;
    background: #dff8e8;
    font-size: 1.2rem;
    font-weight: 950;
}

.wa-device-link-art b {
    width: 68px;
    border-radius: 8px;
    background: #22c66d;
}

.wa-device-link-art i {
    width: 28px;
    height: 2px;
    background: #22a85e;
}

.wa-device-copy {
    margin: 7px auto 0;
    max-width: 190px;
    color: #62736a;
    font-size: .64rem;
    line-height: 1.45;
    text-align: center;
}

.wa-device-link-button,
.wa-device-done {
    width: 100%;
    min-height: 40px;
    margin-top: 14px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #19a858;
    font-size: .7rem;
    font-weight: 950;
}

.wa-device-session {
    margin-top: 12px;
}

.wa-device-code-demo {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto repeat(4, 1fr);
    gap: 6px;
    align-items: center;
    margin: 18px 0;
}

.wa-device-code-demo span {
    height: 28px;
    border: 2px solid #d9e4de;
    border-radius: 9px;
    background: #f8fffb;
}

.wa-device-code-demo span:first-child {
    border-color: #19a858;
    box-shadow: 0 0 0 3px rgba(25, 168, 88, .15);
    animation: wa-device-code-cursor 1.4s ease-in-out infinite;
}

.wa-device-code-demo b {
    width: 9px;
    height: 2px;
    border-radius: 999px;
    background: #66766c;
}

.wa-device-methods {
    overflow: hidden;
    border: 1px solid #dfe9e4;
    border-radius: 12px;
}

.wa-device-methods > div {
    grid-template-columns: 30px minmax(0, 1fr);
}

@keyframes wa-device-code-cursor {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(25, 168, 88, .1);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(25, 168, 88, .22);
    }
}

.wa-device-success {
    position: relative;
    display: grid;
    width: 92px;
    height: 92px;
    margin: 42px auto 14px;
    place-items: center;
    border-radius: 24px;
    color: #fff;
    background: #14281d;
    box-shadow: 0 16px 30px rgba(23, 128, 61, .2);
}

.wa-device-success > span {
    font-size: 2.25rem;
    font-weight: 950;
}

.wa-device-success > i {
    position: absolute;
    right: -7px;
    bottom: -7px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #18aa58;
    font-size: .8rem;
    font-style: normal;
}

.wa-device-success-title {
    display: block;
    color: #10271b;
    font-size: 1.05rem;
    font-weight: 950;
    text-align: center;
}

.wa-device-ready {
    margin-top: 20px;
}

.wa-device-ready > i {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 5px #dcfce7;
}

.wa-device-tap {
    position: absolute;
    z-index: 10;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(23, 166, 88, .9);
    border-radius: 50%;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 0 0 0 rgba(23, 166, 88, .4);
    animation: wa-device-tap 1.1s ease-out infinite;
}

.wa-device-tap--account { right: 27px; bottom: 23px; }
.wa-device-tap--devices { right: 25px; top: 184px; }
.wa-device-tap--link { right: 30px; top: 192px; }

.wa-device-guide__steps {
    display: grid;
    gap: .45rem;
}

.wa-device-guide-step {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: .65rem;
    align-items: start;
    padding: .62rem;
    border: 1px solid transparent;
    border-radius: 12px;
    opacity: .58;
    transition: opacity .2s ease, background .2s ease, border-color .2s ease;
    animation: wa-device-step-1 20s ease-in-out infinite;
}

.wa-device-guide-step--2 { animation-name: wa-device-step-2; }
.wa-device-guide-step--3 { animation-name: wa-device-step-3; }
.wa-device-guide-step--4 { animation-name: wa-device-step-4; }
.wa-device-guide-step--5 { animation-name: wa-device-step-5; }

.wa-device-guide-step > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    color: #176b3e;
    background: #dff6e8;
    font-size: .72rem;
    font-weight: 950;
}

.wa-device-guide-step strong {
    color: #183126;
    font-size: .78rem;
    font-weight: 950;
}

.wa-device-guide-step p {
    margin: .1rem 0 0;
    color: #61746a;
    font-size: .68rem;
    line-height: 1.4;
}

.wa-device-guide__safety {
    margin: .15rem 0 0;
    padding: .65rem .75rem;
    border-left: 3px solid #f59e0b;
    border-radius: 0 10px 10px 0;
    color: #71541c;
    background: #fffbeb;
    font-size: .7rem;
    line-height: 1.45;
}

@keyframes wa-device-scene-1 {
    0%, 18% { opacity: 1; transform: translateX(0); }
    20%, 98% { opacity: 0; transform: translateX(-12px); }
    99% { opacity: 0; transform: translateX(12px); }
}

@keyframes wa-device-scene-2 {
    0%, 18% { opacity: 0; transform: translateX(12px); }
    20%, 38% { opacity: 1; transform: translateX(0); }
    40%, 100% { opacity: 0; transform: translateX(-12px); }
}

@keyframes wa-device-scene-3 {
    0%, 38% { opacity: 0; transform: translateX(12px); }
    40%, 58% { opacity: 1; transform: translateX(0); }
    60%, 100% { opacity: 0; transform: translateX(-12px); }
}

@keyframes wa-device-scene-4 {
    0%, 58% { opacity: 0; transform: translateX(12px); }
    60%, 78% { opacity: 1; transform: translateX(0); }
    80%, 100% { opacity: 0; transform: translateX(-12px); }
}

@keyframes wa-device-scene-5 {
    0%, 78% { opacity: 0; transform: translateX(12px); }
    80%, 98% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(-12px); }
}

@keyframes wa-device-step-1 {
    0%, 18% { opacity: 1; border-color: #b9e5ca; background: #fff; }
    20%, 100% { opacity: .58; border-color: transparent; background: transparent; }
}

@keyframes wa-device-step-2 {
    0%, 18%, 40%, 100% { opacity: .58; border-color: transparent; background: transparent; }
    20%, 38% { opacity: 1; border-color: #b9e5ca; background: #fff; }
}

@keyframes wa-device-step-3 {
    0%, 38%, 60%, 100% { opacity: .58; border-color: transparent; background: transparent; }
    40%, 58% { opacity: 1; border-color: #b9e5ca; background: #fff; }
}

@keyframes wa-device-step-4 {
    0%, 58%, 80%, 100% { opacity: .58; border-color: transparent; background: transparent; }
    60%, 78% { opacity: 1; border-color: #b9e5ca; background: #fff; }
}

@keyframes wa-device-step-5 {
    0%, 78%, 100% { opacity: .58; border-color: transparent; background: transparent; }
    80%, 98% { opacity: 1; border-color: #b9e5ca; background: #fff; }
}

@keyframes wa-device-tap {
    0% { opacity: 1; transform: scale(.7); box-shadow: 0 0 0 0 rgba(23, 166, 88, .45); }
    70%, 100% { opacity: 0; transform: scale(1); box-shadow: 0 0 0 12px rgba(23, 166, 88, 0); }
}

@keyframes wa-device-scan {
    from { top: 22px; }
    to { top: 94px; }
}

@media (max-width: 760px) {
    .wa-device-guide__stage {
        grid-template-columns: 1fr;
    }

    .wa-device-phone {
        width: min(100%, 270px);
    }

    .wa-device-guide__head {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-device-scene,
    .wa-device-guide-step,
    .wa-device-tap,
    .wa-device-code-demo span:first-child {
        animation: none;
    }

    .wa-device-scene--1 {
        opacity: 1;
        transform: none;
    }

    .wa-device-guide-step {
        opacity: 1;
    }
}

/* Guided multimedia catalog inside the bot launcher. */
.wa-media-demo {
    display: grid;
    grid-template-columns: minmax(0, .9fr) auto minmax(0, 1.1fr);
    gap: .7rem;
    align-items: center;
}

.wa-media-demo__question {
    margin: 0;
    padding: .65rem .75rem;
    border-radius: 12px;
    color: #052e16;
    background: #dcfce7;
    font-size: .76rem;
    font-weight: 800;
    opacity: 0;
    animation: wa-media-question 7s ease-in-out infinite;
}

.wa-media-demo__search {
    display: flex;
    gap: .55rem;
    align-items: center;
    min-width: 190px;
    padding: .6rem;
    border: 1px solid #dbe7e0;
    border-radius: 12px;
    background: #fff;
    opacity: 0;
    animation: wa-media-search 7s ease-in-out infinite;
}

.wa-media-demo__search > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #111827;
    background: #86efac;
    font-weight: 950;
}

.wa-media-demo__search > div {
    display: grid;
    gap: .28rem;
    min-width: 0;
}

.wa-media-demo__search small {
    color: #526159;
    font-size: .61rem;
    font-weight: 850;
}

.wa-media-demo__search b {
    display: flex;
    gap: .22rem;
    flex-wrap: wrap;
}

.wa-media-demo__search i {
    padding: .18rem .3rem;
    border-radius: 5px;
    color: #166534;
    background: #f0fdf4;
    font-size: .54rem;
    font-style: normal;
}

.wa-media-demo__result {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: .55rem;
    align-items: center;
    padding: .55rem;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(22, 163, 74, .1);
    opacity: 0;
    animation: wa-media-result 7s ease-in-out infinite;
}

.wa-media-demo__result > div {
    position: relative;
    height: 54px;
    overflow: hidden;
    border-radius: 8px;
    background: #e6ece8;
}

.wa-media-demo__result > div span {
    position: absolute;
    right: 9px;
    bottom: 12px;
    left: 9px;
    height: 17px;
    border-radius: 10px 14px 5px 5px;
    background: #5f7067;
}

.wa-media-demo__result > div i {
    position: absolute;
    right: 16px;
    bottom: 7px;
    left: 16px;
    height: 9px;
    border-right: 7px solid #26372f;
    border-left: 7px solid #26372f;
}

.wa-media-demo__result p {
    margin: 0;
    color: #405048;
    font-size: .67rem;
    line-height: 1.35;
}

.wa-media-demo__result b {
    display: block;
    margin-bottom: .15rem;
    color: #13231b;
    font-size: .72rem;
}

.wa-catalog-how {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
    margin: 1rem 0;
}

.wa-catalog-how > div {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    padding: .8rem;
    border: 1px solid #dbe7e0;
    border-radius: 12px;
    background: #f8fbf9;
}

.wa-catalog-how > div > span,
.wa-media-builder__head > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #052e16;
    background: #86efac;
    font-size: .75rem;
    font-weight: 950;
}

.wa-catalog-how p {
    display: grid;
    gap: .2rem;
    margin: 0;
}

.wa-catalog-how b {
    color: #13231b;
    font-size: .8rem;
}

.wa-catalog-how small {
    color: #66756d;
    font-size: .7rem;
    line-height: 1.4;
}

.wa-existing-catalogs {
    display: grid;
    gap: .7rem;
    margin-top: 1rem;
    padding: .85rem;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: #f0fdf4;
}

.wa-existing-catalogs > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}

.wa-existing-catalogs strong {
    color: #14532d;
    font-weight: 950;
}

.wa-existing-catalogs a {
    color: #166534;
    font-size: .76rem;
    font-weight: 900;
}

.wa-folder-picker {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .1rem;
}

.wa-folder-picker button {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .05rem .45rem;
    min-width: 170px;
    padding: .55rem .65rem;
    border: 1px solid #cce7d6;
    border-radius: 10px;
    text-align: left;
    background: #fff;
}

.wa-folder-picker button > span {
    display: grid;
    width: 28px;
    height: 28px;
    grid-row: span 2;
    place-items: center;
    border-radius: 7px;
    color: #fff;
    background: #166534;
    font-size: .7rem;
    font-weight: 950;
}

.wa-folder-picker b {
    overflow: hidden;
    color: #13231b;
    font-size: .73rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-folder-picker small {
    color: #718078;
    font-size: .62rem;
}

.wa-media-builder {
    display: grid;
    gap: .9rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 2px solid #111827;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(17, 24, 39, .08);
}

.wa-media-builder__head {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
}

.wa-media-builder__head > span {
    width: auto;
    padding: 0 .65rem;
    border-radius: 7px;
    white-space: nowrap;
}

.wa-media-builder__head > div {
    display: grid;
    gap: .2rem;
}

.wa-media-builder__head strong {
    color: #101a14;
    font-size: .95rem;
    font-weight: 950;
}

.wa-media-builder__head p {
    margin: 0;
    color: #66756d;
    font-size: .76rem;
}

.wa-media-upload {
    display: flex;
    gap: .8rem;
    align-items: center;
    min-height: 112px;
    padding: .85rem;
    border: 2px dashed #86efac;
    border-radius: 14px;
    cursor: pointer;
    background: #f5fcf7;
}

.wa-media-upload:hover {
    border-color: #16a34a;
    background: #effcf3;
}

.wa-media-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.wa-media-upload img {
    width: 118px;
    height: 88px;
    flex: 0 0 auto;
    border-radius: 9px;
    object-fit: cover;
}

.wa-media-upload > span:not(.wa-media-upload__icon) {
    display: grid;
    gap: .2rem;
}

.wa-media-upload b {
    color: #14532d;
    font-size: .85rem;
}

.wa-media-upload small {
    color: #66756d;
    font-size: .7rem;
}

.wa-media-upload__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: #fff;
    background: #16a34a;
    font-size: 1.65rem;
    font-weight: 600;
}

.wa-ai-instruction-field {
    padding: .85rem;
    border: 1px solid #fde68a;
    border-radius: 12px;
    background: #fffbeb;
}

.wa-ai-instruction-field textarea {
    background: #fff;
}

.wa-field-error {
    color: #b91c1c !important;
    font-size: .7rem !important;
    font-weight: 850;
}

.wa-save-media-button {
    min-height: 48px;
    padding: .75rem 1rem;
    border: 1px solid #111827;
    border-radius: 12px;
    color: #fff;
    background: #111827;
    font-weight: 950;
}

.wa-save-media-button:disabled {
    cursor: wait;
    opacity: .65;
}

.wa-media-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin-top: 1rem;
}

.wa-media-gallery article {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: .65rem;
    align-items: center;
    min-width: 0;
    padding: .6rem;
    border: 1px solid #dbe7e0;
    border-radius: 12px;
    background: #f8faf9;
}

.wa-media-gallery img {
    width: 82px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
}

.wa-media-gallery article > div {
    display: grid;
    gap: .12rem;
    min-width: 0;
}

.wa-media-gallery span {
    color: #16803c;
    font-size: .61rem;
    font-weight: 900;
    text-transform: uppercase;
}

.wa-media-gallery strong,
.wa-media-gallery small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-media-gallery strong {
    color: #13231b;
    font-size: .76rem;
}

.wa-media-gallery small {
    color: #718078;
    font-size: .65rem;
}

.wa-media-gallery button {
    padding: .42rem .5rem;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    background: #fff;
    font-size: .66rem;
    font-weight: 850;
}

@keyframes wa-media-question {
    0%, 7% { opacity: 0; transform: translateY(5px); }
    14%, 82% { opacity: 1; transform: translateY(0); }
    94%, 100% { opacity: 0; }
}

@keyframes wa-media-search {
    0%, 20% { opacity: 0; transform: translateY(5px); }
    29%, 82% { opacity: 1; transform: translateY(0); }
    94%, 100% { opacity: 0; }
}

@keyframes wa-media-result {
    0%, 42% { opacity: 0; transform: translateY(5px); }
    52%, 84% { opacity: 1; transform: translateY(0); }
    96%, 100% { opacity: 0; }
}

@media (max-width: 760px) {
    .wa-media-demo,
    .wa-catalog-how,
    .wa-media-gallery {
        grid-template-columns: 1fr;
    }

    .wa-media-demo__search {
        min-width: 0;
    }

    .wa-media-builder__head,
    .wa-existing-catalogs > div:first-child {
        align-items: flex-start;
        flex-direction: column;
    }

    .wa-media-gallery article {
        grid-template-columns: 72px minmax(0, 1fr) auto;
    }

    .wa-media-gallery img {
        width: 72px;
        height: 62px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-media-demo__question,
    .wa-media-demo__search,
    .wa-media-demo__result {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Final catalog layout for the launcher's narrow content column. */
.wa-media-demo,
.wa-catalog-how,
.wa-media-gallery,
.wa-media-builder .wa-field-grid {
    grid-template-columns: 1fr;
}

.wa-media-demo__question {
    opacity: 1;
    animation: none;
}

.wa-media-demo__search,
.wa-media-demo__result {
    min-width: 0;
}
