/**
 * vtkcMail Form-internes Styling (v3.11)
 * Pfad: system/mailpopup.css
 *
 * Nutzt das modernisierte #popup-System aus system/popup.css.
 * Nur die Form-Klassen innerhalb des Popups, kein eigenes Overlay mehr.
 */

.vtkc-mailpopup-loader,
.vtkc-mailpopup-fehler {
    padding: 30px;
    text-align: center;
}

.vtkc-mailpopup-fehler {
    color: #c00;
}

.vtkc-mailpopup-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.vtkc-mailpopup-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.vtkc-mailpopup-row label {
    flex: 0 0 90px;
    padding-top: 6px;
    font-weight: bold;
    color: #555;
}

.vtkc-mailpopup-row input[type="text"],
.vtkc-mailpopup-row select,
.vtkc-mailpopup-row textarea {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.vtkc-mailpopup-row textarea {
    resize: vertical;
    min-height: 280px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    padding: 10px 12px;
    background: #fdfdfd;
}

/* Body-Zeile flext mit verfügbarer Popup-Höhe */
.vtkc-mailpopup-row.vtkc-mailpopup-body-row {
    flex: 1;
    align-items: stretch;
    min-height: 0;
}

.vtkc-mailpopup-row.vtkc-mailpopup-body-row textarea {
    height: 100%;
}

.vtkc-mailpopup-hinweis {
    font-size: 11px;
    color: #888;
    margin: -8px 0 12px 90px;
}

.vtkc-mailpopup-cc-toggle {
    margin: -6px 0 12px 90px;
    font-size: 12px;
}

.vtkc-mailpopup-cc-toggle a {
    color: var(--farberand, #7B2A6E);
    text-decoration: none;
}

.vtkc-mailpopup-cc-toggle a:hover {
    text-decoration: underline;
}

.vtkc-mailpopup-radio {
    margin-right: 18px;
    font-weight: normal !important;
    color: #333 !important;
    flex: 0 0 auto !important;
    padding-top: 0 !important;
}

.vtkc-mailpopup-anhaenge {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.vtkc-mailpopup-anhaenge li {
    padding: 4px 0;
    color: #555;
}

.vtkc-mailpopup-anhaenge i {
    margin-right: 6px;
    color: var(--farberand, #7B2A6E);
}

.vtkc-mailpopup-anhang-size {
    color: #888;
    font-size: 0.9em;
}

.vtkc-mailpopup-anhang-preview {
    margin-left: 10px;
    color: var(--farberand, #7B2A6E);
    text-decoration: none;
    font-size: 0.9em;
}
.vtkc-mailpopup-anhang-preview:hover {
    text-decoration: underline;
}
.vtkc-mailpopup-anhang-preview i {
    margin-right: 3px;
    font-size: 0.85em;
}

.vtkc-mailpopup-warnung {
    margin: 10px 0;
    padding: 10px 14px;
    background: #fff4e0;
    color: #8a5a00;
    border-left: 4px solid #e0a040;
    border-radius: 3px;
    font-size: 14px;
}
.vtkc-mailpopup-warnung i {
    margin-right: 8px;
}

.vtkc-mailpopup-status {
    margin: 12px 0;
    padding: 10px 14px;
    border-radius: 3px;
    font-size: 14px;
    display: none;
}

.vtkc-mailpopup-status.info {
    display: block;
    background: #e8f0f8;
    color: #2c5e8a;
    border-left: 4px solid #4a90c4;
}

.vtkc-mailpopup-status.erfolg {
    display: block;
    background: #e8f5e8;
    color: #2d6e2d;
    border-left: 4px solid #4caf50;
}

.vtkc-mailpopup-status.fehler {
    display: block;
    background: #fde8e8;
    color: #a02020;
    border-left: 4px solid #d04040;
}

.vtkc-mailpopup-aktionen {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    text-align: right;
}

.vtkc-mailpopup-aktionen button {
    padding: 8px 18px;
    margin-left: 8px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
    border: 1px solid #ccc;
    background: #f5f5f5;
}

.vtkc-mailpopup-aktionen button#vtkc-mail-senden {
    background: var(--farberand, #7B2A6E);
    color: #fff;
    border-color: var(--farberand, #7B2A6E);
}

.vtkc-mailpopup-aktionen button#vtkc-mail-senden:hover:not([disabled]) {
    opacity: 0.9;
}

.vtkc-mailpopup-aktionen button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}
