.adpick-simple-editor {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.adpick-simple-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.125rem;
    padding: 0.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #f9fafb;
}

.adpick-simple-editor__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.625rem;
    height: 1.625rem;
    border: none;
    border-radius: 0.25rem;
    background: transparent;
    color: #475569;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.adpick-simple-editor__btn svg {
    width: 0.875rem;
    height: 0.875rem;
}

.adpick-simple-editor__btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.adpick-simple-editor__btn:active,
.adpick-simple-editor__btn.is-active {
    background: #dbeafe;
    color: #2563eb;
}

.adpick-simple-editor__divider {
    width: 1px;
    height: 1rem;
    margin: 0 0.0625rem;
    background: #d1d5db;
}

.adpick-simple-editor__select {
    height: 1.625rem;
    max-width: 6.5rem;
    padding: 0 1.375rem 0 0.375rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.3rem center;
    color: #374151;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.adpick-simple-editor__select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}

.adpick-simple-editor__select[data-editor-font-size] {
    max-width: 4.25rem;
}

.adpick-simple-editor__panel {
    padding: 0.625rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    background: #f8fafc;
}

.adpick-simple-editor__panel.hidden {
    display: none !important;
}

.adpick-simple-editor__panel-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.adpick-simple-editor__panel-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.adpick-simple-editor__panel-input {
    flex: 1 1 12rem;
    min-width: 0;
    padding: 0.5rem 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: #fff;
    color: #111827;
    font-size: 0.875rem;
}

.adpick-simple-editor__panel-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}

.adpick-simple-editor__panel-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: #fff;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.adpick-simple-editor__panel-btn:hover {
    background: #f3f4f6;
}

.adpick-simple-editor__panel-btn--primary {
    border-color: #0ea5e9;
    background: #0ea5e9;
    color: #fff;
}

.adpick-simple-editor__panel-btn--primary:hover {
    background: #0284c7;
    border-color: #0284c7;
}

.adpick-simple-editor__body {
    min-height: 8.75rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.625rem;
    background: #fff;
    color: #111827;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-y: auto;
    word-break: break-word;
}

.adpick-simple-editor__body:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}

.adpick-simple-editor__body:empty:before {
    content: attr(data-placeholder);
    color: #9ca3af;
    pointer-events: none;
}

.adpick-simple-editor__body a {
    color: #2563eb;
    text-decoration: underline;
}

.adpick-simple-editor__body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.375rem 0;
    border-radius: 0.375rem;
}

.adpick-simple-editor__body p {
    margin: 0 0 0.5rem;
}

.adpick-simple-editor__body p:last-child {
    margin-bottom: 0;
}
