.bizdex-emails-wrap {
    max-width: 1600px;
}

.bizdex-emails-wrap > h1 .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    margin-right: 8px;
    vertical-align: middle;
}

.bizdex-emails-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 8px 0 24px;
}

.bizdex-emails-header__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #2271b1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bizdex-emails-header__icon .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
}

.bizdex-emails-header h1 {
    margin: 0 0 4px;
    padding: 0;
    font-size: 23px;
    font-weight: 600;
}

.bizdex-emails-header p {
    margin: 0;
    color: #646970;
    font-size: 14px;
}

.bizdex-emails-panel {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    overflow: hidden;
}

.bizdex-emails-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e4e7;
    background: #f6f7f7;
}

.bizdex-emails-panel__header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.bizdex-emails-panel__header p {
    margin: 4px 0 0;
    color: #646970;
    font-size: 13px;
}

.bizdex-emails-panel__body {
    padding: 8px 20px 20px;
}

.bizdex-emails-panel__body--flush {
    padding: 0;
}

.bizdex-emails-table {
    margin: 0;
    border: 0;
    box-shadow: none;
}

.bizdex-emails-table th {
    font-weight: 600;
}

.bizdex-emails-table td,
.bizdex-emails-table th {
    padding: 14px 16px;
    vertical-align: middle;
}

.bizdex-emails-table .column-email {
    width: 34%;
}

.bizdex-emails-table .column-recipient,
.bizdex-emails-table .column-content,
.bizdex-emails-table .column-status {
    width: 25%;
}

.bizdex-emails-table .email-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    text-decoration: none;
}

.bizdex-emails-table .email-title:hover {
    color: #2271b1;
}

.bizdex-emails-table .email-desc {
    margin: 4px 0 0;
    color: #646970;
    font-size: 12px;
    line-height: 1.45;
}

.bizdex-emails-table .email-subject {
    display: block;
    color: #50575e;
    font-size: 12px;
    margin-top: 6px;
}

.bizdex-email-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.bizdex-email-badge--enabled {
    background: #edfaef;
    color: #007017;
}

.bizdex-email-badge--disabled {
    background: #fcf0f1;
    color: #b32d2e;
}

.bizdex-email-badge--recipient {
    background: #f0f6fc;
    color: #135e96;
}

.bizdex-email-badge--content {
    background: #f6f7f7;
    color: #50575e;
}

.bizdex-email-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bizdex-emails-edit-layout {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(480px, 1.15fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 1200px) {
    .bizdex-emails-edit-layout {
        grid-template-columns: 1fr;
    }
}

.bizdex-emails-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 16px;
    text-decoration: none;
    font-size: 13px;
}

.bizdex-emails-edit-title {
    margin: 0 0 4px;
    font-size: 20px;
}

.bizdex-emails-edit-desc {
    margin: 0 0 18px;
    color: #646970;
}

.bizdex-emails-placeholders {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.bizdex-emails-placeholders code {
    display: inline-block;
    padding: 2px 6px;
    background: #f0f0f1;
    border-radius: 3px;
    font-size: 11px;
}

.bizdex-emails-preview-frame {
    width: 100%;
    min-height: 640px;
    height: calc(100vh - 220px);
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
}

.bizdex-emails-test-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.bizdex-emails-test-row input[type="email"] {
    flex: 1;
    min-width: 200px;
}

.bizdex-email-badge--toggle {
    appearance: none;
    border: 0;
    font: inherit;
    line-height: inherit;
    text-decoration: none;
    cursor: pointer;
}

.bizdex-email-badge--toggle:hover {
    opacity: 0.85;
    box-shadow: inset 0 0 0 1px currentColor;
}

.bizdex-email-badge--toggle.is-loading {
    opacity: 0.6;
    pointer-events: none;
}
