.probonoform-autoreply-settings {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.probonoform-autoreply-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.probonoform-autoreply-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.probonoform-autoreply-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.probonoform-autoreply-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.probonoform-autoreply-field > label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.probonoform-autoreply-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.probonoform-toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.probonoform-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.probonoform-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.probonoform-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.probonoform-toggle-switch input:checked + .probonoform-toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.probonoform-toggle-switch input:checked + .probonoform-toggle-slider:before {
    transform: translateX(22px);
}

.probonoform-autoreply-input {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #333;
}

.probonoform-autoreply-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.probonoform-autoreply-textarea {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #333;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
    margin-top: 8px;
}

.probonoform-autoreply-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.probonoform-autoreply-hint {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.probonoform-autoreply-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.probonoform-template-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.probonoform-template-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #333;
    background: #fafafa;
}

.probonoform-template-option:hover {
    border-color: #667eea;
    background: #f5f5ff;
}

.probonoform-template-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
    flex-shrink: 0;
}

.probonoform-template-option input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 500;
}

.probonoform-template-option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f0f4ff;
}

.probonoform-template-with-select span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.probonoform-template-select {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    min-width: 50px;
}

.probonoform-template-select:focus {
    outline: none;
    border-color: #667eea;
}

.probonoform-autoreply-guide {
    display: flex;
    flex-direction: column;
}

.probonoform-autoreply-preview-box {
    display: flex;
    flex-direction: column;
}

.probonoform-autoreply-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-autoreply-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: 350px;
    padding: 16px;
    overflow-y: auto;
}

.probonoform-autoreply-preview-empty {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-top: 140px;
}

.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-autoreply-settings {
        grid-template-columns: 1fr;
    }
}