.wsapp-container {
    position: fixed;
    z-index: 9999;
}

.wsapp-floating-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--wsapp-brand, #25D366);
    color: var(--wsapp-text, #ffffff);
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.wsapp-floating-button .wsapp-icon {
    display: inline-flex;
}

.wsapp-label {
    font-weight: 600;
}

.wsapp-shape-circle {
    border-radius: 999px;
}

.wsapp-shape-pill {
    border-radius: 24px;
}

.wsapp-shape-square {
    border-radius: 8px;
}

.wsapp-bottom-right {
    right: var(--wsapp-offset-x, 24px);
    bottom: var(--wsapp-offset-y, 24px);
}

.wsapp-bottom-left {
    left: var(--wsapp-offset-x, 24px);
    bottom: var(--wsapp-offset-y, 24px);
}

.wsapp-top-right {
    right: var(--wsapp-offset-x, 24px);
    top: var(--wsapp-offset-y, 24px);
}

.wsapp-top-left {
    left: var(--wsapp-offset-x, 24px);
    top: var(--wsapp-offset-y, 24px);
}

.wsapp-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
}

.wsapp-modal.wsapp-inline {
    inset: auto;
    background: transparent;
    bottom: calc(var(--wsapp-offset-y, 24px) + 60px);
    right: var(--wsapp-offset-x, 24px);
    left: auto;
}

.wsapp-modal.wsapp-inline .wsapp-modal-card {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.wsapp-modal.is-open {
    display: flex;
}

.wsapp-modal-card {
    width: min(420px, 92vw);
    background: #ffffff;
    border-radius: 12px;
    padding: 26px 56px 20px 20px;
    position: relative;
}

.wsapp-close {
    position: absolute;
    right: 16px;
    top: 16px;
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.wsapp-summary {
    margin-right: 8px;
}

.wsapp-step {
    padding-right: 12px;
}

.wsapp-question {
    font-weight: 600;
    margin-bottom: 12px;
}

.wsapp-options-list {
    display: grid;
    gap: 8px;
}

.wsapp-option-item {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
}

.wsapp-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
}

.wsapp-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: flex-end;
}

.wsapp-actions button {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #f0f0f0;
}

.wsapp-actions .wsapp-send {
    background: var(--wsapp-brand, #25D366) !important;
    color: var(--wsapp-text, #ffffff) !important;
}

.wsapp-actions .wsapp-send.wsapp-disabled,
.wsapp-actions .wsapp-send[disabled] {
    background: var(--wsapp-brand, #25D366) !important;
    color: var(--wsapp-text, #ffffff) !important;
    opacity: 0.9;
    cursor: pointer;
}

@media (max-width: 600px) {
    .wsapp-modal-card {
        width: 94vw;
        padding: 16px;
    }
}
