.popabot-settings {
    max-width: 800px;
}

.popabot-header {
    margin-bottom: 20px;
}

.popabot-subtitle {
    font-size: 14px;
    color: #646970;
    margin-top: 4px;
}

.popabot-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 16px 24px;
    margin-bottom: 20px;
}

.popabot-card h2 {
    margin-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f1;
}

.popabot-help ol {
    margin-left: 20px;
}

.popabot-help li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Status banner */
.popabot-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
}

.popabot-status--connected {
    border-color: #00a32a;
    background: #f0faf0;
}

.popabot-status--disabled {
    border-color: #dba617;
    background: #fcf9e8;
}

.popabot-status--empty {
    border-color: #c3c4c7;
    background: #f6f7f7;
}

.popabot-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.popabot-status-dot--green {
    background: #00a32a;
}

.popabot-status-dot--yellow {
    background: #dba617;
}

.popabot-status-dot--grey {
    background: #a7aaad;
}

.popabot-preview-link {
    margin-left: auto;
    text-decoration: none;
    color: #2271b1;
    font-weight: 400;
}

.popabot-preview-link:hover {
    color: #135e96;
}

.popabot-disconnect-link {
    text-decoration: none;
    color: #b32d2e;
    font-weight: 400;
    margin-left: 8px;
}

.popabot-disconnect-link:hover {
    color: #8a2424;
}

.popabot-save-note {
    color: #646970;
    font-size: 13px;
    font-style: italic;
    margin-top: 0;
}

/* Toggle switch — accessible hidden checkbox */
.popabot-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    vertical-align: middle;
}

.popabot-toggle input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
}

.popabot-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.popabot-toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
}

.popabot-toggle input:checked + .popabot-toggle-slider {
    background-color: #2271b1;
}

.popabot-toggle input:checked + .popabot-toggle-slider::before {
    transform: translateX(22px);
}

.popabot-toggle input:focus + .popabot-toggle-slider {
    box-shadow: 0 0 0 2px #2271b1;
}
