.gysw-root {
    display: none !important;
    direction: rtl;
    font-family: inherit;
    position: fixed;
    z-index: 999999;
}

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    .gysw-root {
        display: block !important;
    }
}

.gysw-position-bottom-right {
    right: 14px;
    bottom: 16px;
}

.gysw-position-bottom-left {
    left: 14px;
    bottom: 16px;
}

.gysw-position-middle-right {
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.gysw-position-middle-left {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.gysw-floating-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    max-width: calc(100vw - 28px);
    padding: 8px 13px;
    border: 0;
    border-radius: 999px;
    background: var(--gysw-button-bg, #25D366);
    color: var(--gysw-button-color, #fff);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.gysw-floating-button:focus-visible,
.gysw-chat-close:focus-visible,
.gysw-primary-button:focus-visible,
.gysw-secondary-button:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.35);
    outline-offset: 3px;
}

.gysw-whatsapp-icon {
    width: var(--gysw-icon-size, 42px);
    height: var(--gysw-icon-size, 42px);
    flex: 0 0 auto;
}

.gysw-chat {
    position: absolute;
    width: min(340px, calc(100vw - 28px));
    max-height: min(74vh, 560px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: #ffffff;
    color: #172018;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.gysw-chat[hidden] {
    display: none;
}

.gysw-position-bottom-right .gysw-chat,
.gysw-position-middle-right .gysw-chat {
    right: 0;
    bottom: calc(100% + 10px);
}

.gysw-position-bottom-left .gysw-chat,
.gysw-position-middle-left .gysw-chat {
    left: 0;
    bottom: calc(100% + 10px);
}

.gysw-position-middle-right .gysw-chat,
.gysw-position-middle-left .gysw-chat {
    bottom: auto;
    top: calc(100% + 10px);
}

.gysw-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 52px;
    padding: 12px 14px;
    background: #1f8f4d;
    color: #ffffff;
}

.gysw-chat-header strong {
    font-size: 16px;
    line-height: 1.35;
}

.gysw-chat-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.gysw-chat-body {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: #f4f7f4;
}

.gysw-messages {
    display: flex;
    min-height: 140px;
    max-height: 310px;
    overflow-y: auto;
    flex-direction: column;
    gap: 8px;
    padding: 2px;
}

.gysw-message {
    max-width: 86%;
    padding: 9px 11px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.gysw-bot-message {
    align-self: flex-start;
    background: #ffffff;
    color: #18211a;
    border-bottom-right-radius: 4px;
}

.gysw-user-message {
    align-self: flex-end;
    background: #dcf8c6;
    color: #18211a;
    border-bottom-left-radius: 4px;
}

.gysw-status-message {
    align-self: center;
    background: rgba(31, 143, 77, 0.1);
    color: #1b673b;
    font-weight: 700;
}

.gysw-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gysw-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gysw-field {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfd8cf;
    border-radius: 10px;
    background: #ffffff;
    color: #172018;
    font: inherit;
    font-size: 15px;
    line-height: 1.4;
    padding: 10px 11px;
}

textarea.gysw-field {
    resize: vertical;
}

.gysw-choice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid #d7dfd7;
    border-radius: 10px;
    background: #ffffff;
    color: #172018;
    font-size: 14px;
}

.gysw-choice input {
    margin: 0;
}

.gysw-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.gysw-primary-button,
.gysw-secondary-button {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.gysw-primary-button {
    background: var(--gysw-button-bg, #25D366);
    color: var(--gysw-button-color, #ffffff);
}

.gysw-secondary-button {
    background: #e9eee9;
    color: #283029;
}

.gysw-error {
    padding: 8px 10px;
    border-radius: 10px;
    background: #fde8e8;
    color: #9b1c1c;
    font-size: 13px;
    line-height: 1.35;
}

.gysw-error[hidden] {
    display: none;
}

.gysw-muted {
    margin: 0;
    color: #687469;
    font-size: 13px;
}

.gysw-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 380px) {
    .gysw-floating-button {
        font-size: 14px;
        padding-inline: 10px;
    }

    .gysw-chat {
        width: calc(100vw - 24px);
    }

    .gysw-message {
        max-width: 92%;
    }
}

/* v1.1 polished mobile UI */
.gysw-floating-button {
    position: relative;
    isolation: isolate;
    min-height: 56px;
    padding: 7px 8px 7px 15px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)),
        var(--gysw-button-bg, #25D366);
    box-shadow: 0 14px 34px rgba(6, 95, 45, 0.32), 0 4px 12px rgba(0, 0, 0, 0.16);
}

.gysw-floating-button::before {
    content: "";
    position: absolute;
    inset: -5px;
    z-index: -1;
    border-radius: 999px;
    background: color-mix(in srgb, var(--gysw-button-bg, #25D366) 26%, transparent);
}

.gysw-floating-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--gysw-icon-size, 42px) + 8px);
    height: calc(var(--gysw-icon-size, 42px) + 8px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.gysw-floating-icon .gysw-whatsapp-icon,
.gysw-floating-icon .gysw-custom-icon {
    width: var(--gysw-icon-size, 42px);
    height: var(--gysw-icon-size, 42px);
}

.gysw-custom-icon {
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.gysw-floating-label {
    display: block;
    max-width: 130px;
    color: var(--gysw-button-color, #fff);
    text-align: right;
    overflow-wrap: anywhere;
}

.gysw-chat {
    border: 1px solid rgba(18, 140, 126, 0.14);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 58px rgba(17, 34, 26, 0.28);
}

.gysw-chat-header {
    min-height: 60px;
    padding: 14px 15px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--gysw-chat-accent, #128C7E) 94%, #ffffff 6%), #0f6f63);
}

.gysw-chat-header strong {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gysw-chat-header strong::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8ff3b1;
    box-shadow: 0 0 0 4px rgba(143, 243, 177, 0.16);
}

.gysw-chat-body {
    background:
        linear-gradient(180deg, rgba(18, 140, 126, 0.07), rgba(255, 255, 255, 0) 120px),
        #f7faf8;
}

.gysw-message {
    border: 1px solid rgba(20, 42, 28, 0.06);
    box-shadow: 0 5px 12px rgba(20, 42, 28, 0.06);
}

.gysw-bot-message {
    border-bottom-right-radius: 5px;
}

.gysw-user-message {
    background: #d9f8d3;
    border-bottom-left-radius: 5px;
}

.gysw-field {
    border-color: #d5dfd8;
    border-radius: 12px;
    box-shadow: 0 1px 0 rgba(22, 45, 30, 0.04);
}

.gysw-field:focus {
    border-color: var(--gysw-chat-accent, #128C7E);
    outline: 3px solid color-mix(in srgb, var(--gysw-chat-accent, #128C7E) 18%, transparent);
}

.gysw-choice {
    position: relative;
    min-height: 46px;
    padding: 10px 12px;
    border-color: #dce5df;
    border-radius: 13px;
    box-shadow: 0 2px 8px rgba(20, 42, 28, 0.04);
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.gysw-choice:hover {
    border-color: color-mix(in srgb, var(--gysw-chat-accent, #128C7E) 42%, #dce5df);
    box-shadow: 0 7px 16px rgba(20, 42, 28, 0.08);
}

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

.gysw-choice-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border: 2px solid #afbeb4;
    background: #ffffff;
    transition: all 0.16s ease;
}

.gysw-choice-radio .gysw-choice-mark {
    border-radius: 50%;
}

.gysw-choice-checkbox .gysw-choice-mark {
    border-radius: 7px;
}

.gysw-choice input:checked + .gysw-choice-mark {
    border-color: var(--gysw-chat-accent, #128C7E);
    background: var(--gysw-chat-accent, #128C7E);
    box-shadow: inset 0 0 0 4px #ffffff;
}

.gysw-choice-checkbox input:checked + .gysw-choice-mark::after {
    content: "";
    width: 9px;
    height: 5px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg) translate(-1px, -1px);
    box-shadow: none;
}

.gysw-choice-checkbox input:checked + .gysw-choice-mark {
    box-shadow: none;
}

.gysw-choice:has(input:checked) {
    border-color: var(--gysw-chat-accent, #128C7E);
    background: color-mix(in srgb, var(--gysw-chat-accent, #128C7E) 9%, #ffffff);
}

.gysw-choice-text {
    font-weight: 700;
    color: #1d2b21;
}

.gysw-primary-button {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)),
        var(--gysw-chat-accent, var(--gysw-button-bg, #25D366));
    box-shadow: 0 8px 18px rgba(18, 140, 126, 0.22);
}

.gysw-secondary-button {
    background: #eef3f0;
}

/* v1.1.1 theme isolation: keeps Elementor/theme button CSS out of the widget */
#gysw-root,
#gysw-root * {
    box-sizing: border-box !important;
}

#gysw-root {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: right !important;
    line-height: normal !important;
}

#gysw-root button {
    appearance: none !important;
    -webkit-appearance: none !important;
    font-family: inherit !important;
    text-decoration: none !important;
    text-transform: none !important;
}

#gysw-root .gysw-floating-button {
    all: unset;
    box-sizing: border-box !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 28px) !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 7px 8px 7px 15px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--gysw-button-bg, #25D366) !important;
    color: var(--gysw-button-color, #ffffff) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22) !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    transform: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    -webkit-tap-highlight-color: transparent !important;
}

#gysw-root .gysw-floating-button::before,
#gysw-root .gysw-floating-button::after {
    content: none !important;
    display: none !important;
}

#gysw-root .gysw-floating-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: calc(var(--gysw-icon-size, 42px) + 8px) !important;
    height: calc(var(--gysw-icon-size, 42px) + 8px) !important;
    min-width: calc(var(--gysw-icon-size, 42px) + 8px) !important;
    min-height: calc(var(--gysw-icon-size, 42px) + 8px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24) !important;
    color: inherit !important;
    overflow: hidden !important;
}

#gysw-root .gysw-floating-icon svg,
#gysw-root .gysw-floating-icon img {
    display: block !important;
    width: var(--gysw-icon-size, 42px) !important;
    height: var(--gysw-icon-size, 42px) !important;
    min-width: var(--gysw-icon-size, 42px) !important;
    min-height: var(--gysw-icon-size, 42px) !important;
    max-width: var(--gysw-icon-size, 42px) !important;
    max-height: var(--gysw-icon-size, 42px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: cover !important;
    color: inherit !important;
    fill: currentColor !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

#gysw-root .gysw-floating-label {
    display: block !important;
    width: auto !important;
    max-width: 130px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--gysw-button-color, #ffffff) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: right !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

#gysw-root .gysw-chat {
    box-sizing: border-box !important;
    font-family: inherit !important;
    text-align: right !important;
}

#gysw-root .gysw-chat button {
    all: unset;
    box-sizing: border-box !important;
    cursor: pointer !important;
    font-family: inherit !important;
}

#gysw-root .gysw-chat-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    font-size: 24px !important;
    line-height: 1 !important;
}

#gysw-root .gysw-primary-button,
#gysw-root .gysw-secondary-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* v1.1.2 professional chat window and reliable inner scrolling */
#gysw-root .gysw-chat {
    width: min(410px, calc(100vw - 22px)) !important;
    max-height: calc(100dvh - 118px) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid rgba(13, 108, 92, 0.16) !important;
    border-radius: 24px !important;
    background: #f6faf8 !important;
    color: #17231d !important;
    box-shadow: 0 26px 70px rgba(3, 18, 12, 0.34), 0 8px 24px rgba(3, 18, 12, 0.18) !important;
}

#gysw-root .gysw-chat-header {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 68px !important;
    padding: 16px 18px !important;
    border: 0 !important;
    background:
        linear-gradient(135deg, var(--gysw-chat-accent, #128C7E), #0c766b) !important;
    color: #ffffff !important;
}

#gysw-root .gysw-chat-header strong {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
}

#gysw-root .gysw-chat-header strong::before {
    content: "" !important;
    display: inline-block !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 999px !important;
    background: #a5ffc2 !important;
    box-shadow: 0 0 0 5px rgba(165, 255, 194, 0.18) !important;
}

#gysw-root .gysw-chat-close {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

#gysw-root .gysw-chat-body {
    display: flex !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 188px) !important;
    overflow-y: auto !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding: 16px !important;
    background:
        radial-gradient(circle at 18% 8%, rgba(18, 140, 126, 0.14), transparent 28%),
        linear-gradient(180deg, #eef8f4 0%, #f8fbf9 46%, #ffffff 100%) !important;
    scroll-behavior: smooth !important;
    overscroll-behavior: contain !important;
}

#gysw-root .gysw-messages {
    display: flex !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    gap: 9px !important;
    padding: 0 !important;
}

#gysw-root .gysw-message {
    position: relative !important;
    max-width: 86% !important;
    margin: 0 !important;
    padding: 11px 13px !important;
    border: 1px solid rgba(15, 31, 24, 0.06) !important;
    border-radius: 16px !important;
    color: #26332c !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.48 !important;
    letter-spacing: 0 !important;
    white-space: pre-line !important;
    overflow-wrap: anywhere !important;
    box-shadow: 0 8px 18px rgba(10, 34, 23, 0.08) !important;
}

#gysw-root .gysw-bot-message {
    align-self: flex-start !important;
    border-bottom-right-radius: 6px !important;
    background: rgba(255, 255, 255, 0.96) !important;
}

#gysw-root .gysw-user-message {
    align-self: flex-end !important;
    border-color: rgba(31, 167, 91, 0.18) !important;
    border-bottom-left-radius: 6px !important;
    background: #d9f7d7 !important;
}

#gysw-root .gysw-status-message {
    align-self: center !important;
    max-width: 96% !important;
    border-color: rgba(18, 140, 126, 0.12) !important;
    background: rgba(18, 140, 126, 0.1) !important;
    color: #10675c !important;
    font-weight: 800 !important;
    text-align: center !important;
}

#gysw-root .gysw-controls {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 2px !important;
    padding: 12px !important;
    border: 1px solid rgba(17, 74, 53, 0.08) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    box-shadow: 0 10px 24px rgba(11, 34, 22, 0.08) !important;
    backdrop-filter: blur(8px) !important;
}

#gysw-root .gysw-controls:empty {
    display: none !important;
}

#gysw-root .gysw-direct-box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(18, 140, 126, 0.12) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.68) !important;
    box-shadow: 0 8px 20px rgba(11, 34, 22, 0.06) !important;
}

#gysw-root .gysw-direct-box span {
    display: block !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    color: #53635a !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

#gysw-root .gysw-direct-whatsapp-button {
    all: unset;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    flex: 0 0 auto !important;
    padding: 0 13px !important;
    border: 1px solid rgba(18, 140, 126, 0.18) !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: var(--gysw-chat-accent, #128C7E) !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    box-shadow: 0 5px 14px rgba(11, 34, 22, 0.06) !important;
}

#gysw-root .gysw-direct-whatsapp-button:disabled {
    opacity: 0.6 !important;
    cursor: wait !important;
}

#gysw-root .gysw-input-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
}

#gysw-root .gysw-field {
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 12px 13px !important;
    border: 1px solid #d4e0d8 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: #16231b !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    box-shadow: inset 0 1px 0 rgba(16, 35, 24, 0.03) !important;
}

#gysw-root textarea.gysw-field {
    min-height: 96px !important;
    resize: vertical !important;
}

#gysw-root .gysw-field:focus {
    border-color: var(--gysw-chat-accent, #128C7E) !important;
    outline: 3px solid rgba(18, 140, 126, 0.16) !important;
}

#gysw-root .gysw-choice {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 26px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 11px !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 11px 13px !important;
    border: 1px solid #d9e6de !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    color: #17231d !important;
    cursor: pointer !important;
    box-shadow: 0 5px 16px rgba(10, 34, 23, 0.06) !important;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.16s ease !important;
}

#gysw-root .gysw-choice:hover,
#gysw-root .gysw-choice:focus-within {
    border-color: rgba(18, 140, 126, 0.42) !important;
    box-shadow: 0 8px 20px rgba(10, 34, 23, 0.1) !important;
}

#gysw-root .gysw-choice input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#gysw-root .gysw-choice-mark {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    border: 2px solid #a9bbb1 !important;
    background: #ffffff !important;
}

#gysw-root .gysw-choice-radio .gysw-choice-mark {
    border-radius: 999px !important;
}

#gysw-root .gysw-choice-checkbox .gysw-choice-mark {
    border-radius: 8px !important;
}

#gysw-root .gysw-choice input:checked + .gysw-choice-mark {
    border-color: var(--gysw-chat-accent, #128C7E) !important;
    background: var(--gysw-chat-accent, #128C7E) !important;
}

#gysw-root .gysw-choice-radio input:checked + .gysw-choice-mark {
    box-shadow: inset 0 0 0 6px #ffffff !important;
}

#gysw-root .gysw-choice-checkbox input:checked + .gysw-choice-mark::after {
    content: "" !important;
    width: 11px !important;
    height: 6px !important;
    border-right: 2px solid #ffffff !important;
    border-bottom: 2px solid #ffffff !important;
    transform: rotate(45deg) translate(-1px, -1px) !important;
}

#gysw-root .gysw-choice:has(input:checked) {
    border-color: var(--gysw-chat-accent, #128C7E) !important;
    background: #eef9f4 !important;
}

#gysw-root .gysw-choice-text {
    color: #1e2c24 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-align: right !important;
}

#gysw-root .gysw-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

#gysw-root .gysw-actions-single {
    grid-template-columns: 1fr !important;
}

#gysw-root .gysw-primary-button,
#gysw-root .gysw-secondary-button {
    min-height: 48px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

#gysw-root .gysw-primary-button {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
        var(--gysw-chat-accent, #128C7E) !important;
    color: #ffffff !important;
    box-shadow: 0 9px 18px rgba(18, 140, 126, 0.22) !important;
}

#gysw-root .gysw-secondary-button {
    background: #edf3f0 !important;
    color: #25342b !important;
}

#gysw-root .gysw-error {
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(176, 39, 39, 0.16) !important;
    border-radius: 14px !important;
    background: #fff0f0 !important;
    color: #9b1c1c !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

@media (max-width: 380px) {
    #gysw-root .gysw-chat {
        width: calc(100vw - 18px) !important;
        border-radius: 20px !important;
    }

    #gysw-root .gysw-chat-body {
        padding: 12px !important;
    }

    #gysw-root .gysw-message {
        max-width: 92% !important;
        font-size: 14px !important;
    }
}

/* v1.1.5 final mobile polish and hidden-state fix */
#gysw-root {
    font-family: "Assistant", "Heebo", "Segoe UI", Arial, sans-serif !important;
}

#gysw-root *,
#gysw-root button,
#gysw-root input,
#gysw-root textarea,
#gysw-root select {
    font-family: "Assistant", "Heebo", "Segoe UI", Arial, sans-serif !important;
}

#gysw-root .gysw-chat[hidden],
#gysw-root [hidden] {
    display: none !important;
}

#gysw-root .gysw-error:empty {
    display: none !important;
}

#gysw-root .gysw-floating-button {
    min-height: 58px !important;
    padding: 8px 9px 8px 17px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
        var(--gysw-button-bg, #22c765) !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22) !important;
}

#gysw-root .gysw-floating-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    background: rgba(255, 255, 255, 0.22) !important;
}

#gysw-root .gysw-floating-icon svg,
#gysw-root .gysw-floating-icon img {
    width: min(var(--gysw-icon-size, 38px), 38px) !important;
    height: min(var(--gysw-icon-size, 38px), 38px) !important;
    min-width: min(var(--gysw-icon-size, 38px), 38px) !important;
    min-height: min(var(--gysw-icon-size, 38px), 38px) !important;
    max-width: min(var(--gysw-icon-size, 38px), 38px) !important;
    max-height: min(var(--gysw-icon-size, 38px), 38px) !important;
}

#gysw-root .gysw-floating-label {
    font-size: 16px !important;
    font-weight: 800 !important;
}

#gysw-root .gysw-chat {
    width: min(382px, calc(100vw - 20px)) !important;
    max-height: calc(100dvh - 112px) !important;
    border-radius: 22px !important;
    background: #f8fbf9 !important;
    color: #17231d !important;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.32) !important;
}

#gysw-root .gysw-chat-header {
    min-height: 64px !important;
    padding: 15px 16px !important;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--gysw-chat-accent, #128C7E) 92%, #ffffff 8%), #08786c) !important;
}

#gysw-root .gysw-chat-header strong {
    font-size: 16px !important;
    font-weight: 900 !important;
}

#gysw-root .gysw-chat-close {
    width: 36px !important;
    height: 36px !important;
    flex-basis: 36px !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

#gysw-root .gysw-chat-body {
    max-height: calc(100dvh - 176px) !important;
    gap: 12px !important;
    padding: 14px !important;
    background:
        linear-gradient(180deg, rgba(18, 140, 126, 0.09), rgba(255, 255, 255, 0) 120px),
        #f6faf8 !important;
}

#gysw-root .gysw-direct-box {
    padding: 10px !important;
    border-color: rgba(18, 140, 126, 0.14) !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, 0.78) !important;
}

#gysw-root .gysw-direct-whatsapp-button {
    min-height: 40px !important;
    padding: 0 14px !important;
    border-color: rgba(18, 140, 126, 0.22) !important;
    background: #ffffff !important;
    color: var(--gysw-chat-accent, #128C7E) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

#gysw-root .gysw-message {
    font-size: 15px !important;
    line-height: 1.55 !important;
}

#gysw-root .gysw-controls {
    border-radius: 17px !important;
    background: rgba(255, 255, 255, 0.82) !important;
}

#gysw-root .gysw-choice {
    min-height: 54px !important;
    border-radius: 15px !important;
}

#gysw-root .gysw-choice-text {
    font-size: 15px !important;
    font-weight: 900 !important;
}
