.deamon-contact-widget {
    position: fixed;
    z-index: var(--deamon-cw-z, 9000);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.deamon-contact-widget--bottom-right {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.deamon-contact-widget--bottom-left {
    left: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.deamon-contact-widget--preview {
    position: absolute;
}

.deamon-contact-widget-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    min-width: 56px;
    height: 56px;
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    background: var(--deamon-cw-color, #0f766e);
    color: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.deamon-contact-widget-fab:hover,
.deamon-contact-widget-fab:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
    outline: none;
}

.deamon-contact-widget-fab svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.deamon-contact-widget-fab-icon--chat svg,
.deamon-contact-widget-fab-icon--headset svg {
    fill: none;
}

.deamon-contact-widget-fab-close {
    display: none;
}

.deamon-contact-widget.is-open .deamon-contact-widget-fab-icon {
    display: none;
}

.deamon-contact-widget.is-open .deamon-contact-widget-fab-close {
    display: block;
}

.deamon-contact-widget-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.deamon-contact-widget--bottom-left .deamon-contact-widget-actions {
    align-items: flex-start;
}

.deamon-contact-widget-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
    transition: transform 0.15s ease, opacity 0.15s ease;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.deamon-contact-widget--glass .deamon-contact-widget-action {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.deamon-contact-widget--flat .deamon-contact-widget-action {
    background: #fff;
    border: 1px solid #e2e8f0;
}

.deamon-contact-widget.is-open .deamon-contact-widget-action {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.deamon-contact-widget-action:hover,
.deamon-contact-widget-action:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.deamon-contact-widget-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--deamon-cw-color, #0f766e);
    color: #fff;
    flex-shrink: 0;
}

.deamon-contact-widget-action-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: none;
}

.deamon-contact-widget-action-label {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.deamon-contact-widget.is-open .deamon-contact-widget-actions[hidden] {
    display: flex;
}

@media (prefers-reduced-motion: reduce) {
    .deamon-contact-widget-fab,
    .deamon-contact-widget-action {
        transition: none;
    }
}

.deamon-contact-widget-callback {
    position: absolute;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    right: 0;
    width: min(320px, calc(100vw - 32px));
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.deamon-contact-widget--bottom-left .deamon-contact-widget-callback {
    right: auto;
    left: 0;
}

.deamon-contact-widget--glass .deamon-contact-widget-callback {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.deamon-contact-widget--flat .deamon-contact-widget-callback {
    background: #fff;
    border: 1px solid #e2e8f0;
}

.deamon-contact-widget-callback-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.deamon-contact-widget-callback-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.deamon-contact-widget-callback-copy {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #475569;
}

.deamon-contact-widget-callback-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.deamon-contact-widget-callback-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.deamon-contact-widget-callback-form {
    display: grid;
    gap: 10px;
}

.deamon-contact-widget-callback-field {
    display: grid;
    gap: 4px;
    font-size: 13px;
    color: #334155;
}

.deamon-contact-widget-callback-field input,
.deamon-contact-widget-callback-field textarea,
.deamon-contact-widget-callback-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
    color: #0f172a;
    background: #fff;
}

.deamon-contact-widget-callback-submit {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: var(--deamon-cw-color, #0f766e);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.deamon-contact-widget-callback-status {
    margin: 0;
    font-size: 13px;
    color: #0f766e;
}

.deamon-contact-widget-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.deamon-contact-widget-action[type="button"] {
    border: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
}
