.probonoform-email-settings {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.probonoform-email-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.probonoform-email-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.probonoform-email-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.probonoform-email-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.probonoform-email-field > label:first-child {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.probonoform-email-input {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #f5f5f5;
    color: #666;
}

.probonoform-email-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.probonoform-email-input.editable {
    background: white;
    color: #333;
}

.probonoform-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    font-weight: normal;
}

.probonoform-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #667eea;
}

.probonoform-subject-reset-btn {
    background: #f0f0f1;
    border: 1px solid #ccd0d4;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #50575e;
    align-self: flex-start;
    margin-top: 4px;
}

.probonoform-subject-reset-btn:hover {
    background: #e0e0e0;
    border-color: #999;
}

.probonoform-email-body-info {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.probonoform-email-guide {
    display: flex;
    flex-direction: column;
}

.probonoform-email-preview-box {
    display: flex;
    flex-direction: column;
}

.probonoform-email-preview-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.probonoform-email-preview {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-height: 300px;
    padding: 16px;
    overflow-y: auto;
}

.probonoform-email-preview-empty {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-top: 120px;
}

.probonoform-mail-client {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.probonoform-mail-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 16px;
}

.probonoform-mail-row {
    display: flex;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.probonoform-mail-row:first-child {
    padding-top: 0;
}

.probonoform-mail-row:last-child {
    padding-bottom: 0;
}

.probonoform-mail-label {
    width: 50px;
    color: #666;
    font-weight: 500;
    flex-shrink: 0;
}

.probonoform-mail-value {
    color: #333;
    flex: 1;
}

.probonoform-mail-subject {
    font-weight: 600;
}

.probonoform-mail-body {
    padding: 20px;
    font-size: 14px;
    line-height: 2;
    color: #333;
    white-space: pre-wrap;
}

@media screen and (max-width: 1200px) {
    .probonoform-email-settings {
        grid-template-columns: 1fr;
    }
}