/*
 * Copyright 2026 All Rights Reserved - neofire | Deutschland
 * Simeonscarré 2, 32423 Minden
 *
 * Tickets: Knopf, Fenster „Ticket erstellen“ und Bereich im Kundenkonto. Schwarz auf Weiß, hellgraue Linien, Arial.
 */

/* ---------- Knopf (Designer-Baustein) ---------- */

.neofire-tickets-button-wrap {
    display: block;
}

.neofire-tickets-align-left {
    text-align: left;
}

.neofire-tickets-align-center {
    text-align: center;
}

.neofire-tickets-align-right {
    text-align: right;
}

.neofire-tickets-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    max-width: 100%;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 9px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
    box-sizing: border-box;
}

.neofire-tickets-button svg {
    flex: 0 0 auto;
}

.neofire-tickets-button--full {
    width: 100%;
}

.neofire-tickets-button--dark {
    background: #0D1F33;
    color: #FFFFFF;
    border: 1px solid #0D1F33;
}

.neofire-tickets-button--dark:hover {
    background: #111111;
    border-color: #111111;
}

.neofire-tickets-button--light {
    background: #FFFFFF;
    color: #111111;
    border: 1px solid #d6dbe1;
}

.neofire-tickets-button--light:hover {
    background: #F2F4F6;
    border-color: #b9c0c8;
}

/* wie der Termin-Knopf: Farben des Themes */
.neofire-tickets-button--theme {
    color: var(--main-largebutton-color, #FFFFFF);
    background: var(--main-largebutton-background, #111111);
    border: var(--main-largebutton-border, 1px solid #111111);
}

.neofire-tickets-button--theme:hover {
    color: var(--main-largebutton-hover-color, #FFFFFF);
    background: var(--main-largebutton-hover-background, #000000);
}

.neofire-tickets-button:focus-visible,
.neofire-tickets-btn:focus-visible,
.neofire-tickets-close:focus-visible,
.neofire-tickets-link:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

/* ---------- Fenster ---------- */

html.neofire-tickets-locked,
html.neofire-tickets-locked body {
    overflow: hidden;
}

.neofire-tickets-overlay {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(17, 17, 17, .45);
    opacity: 0;
    transition: opacity .18s ease;
    box-sizing: border-box;
}

.neofire-tickets-overlay.is-open {
    opacity: 1;
}

.neofire-tickets-dialog {
    position: relative;
    width: 100%;
    max-width: 580px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 30px 30px 26px;
    border: 1px solid #d6dbe1;
    border-radius: 14px;
    background: #FFFFFF;
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 20px 60px rgba(17, 17, 17, .18);
    transform: translateY(8px);
    transition: transform .18s ease;
    box-sizing: border-box;
}

.neofire-tickets-overlay.is-open .neofire-tickets-dialog {
    transform: none;
}

.neofire-tickets-dialog:focus {
    outline: none;
}

.neofire-tickets-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #5b6472;
    cursor: pointer;
}

.neofire-tickets-close:hover {
    border-color: #d6dbe1;
    color: #111111;
}

.neofire-tickets-title {
    margin: 0 44px 6px 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #111111;
}

.neofire-tickets-intro {
    margin: 0 0 20px;
    color: #5b6472;
    font-size: 14.5px;
}

.neofire-tickets-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

.neofire-tickets-field {
    display: block;
    margin: 0 0 14px;
}

.neofire-tickets-field > span {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #111111;
}

.neofire-tickets-field input,
.neofire-tickets-field textarea {
    display: block;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d6dbe1;
    border-radius: 9px;
    background: #FFFFFF;
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}

.neofire-tickets-field textarea {
    min-height: 130px;
    resize: vertical;
}

.neofire-tickets-field input:focus,
.neofire-tickets-field textarea:focus {
    outline: none;
    border-color: #111111;
    box-shadow: inset 0 0 0 1px #111111;
}

.neofire-tickets-field .is-invalid,
.neofire-tickets-check.is-invalid {
    border-color: #111111;
    box-shadow: inset 0 0 0 1px #111111;
}

.neofire-tickets-check.is-invalid {
    padding: 8px 10px;
    border: 1px solid #111111;
    border-radius: 9px;
}

/* Honigtopf: für Menschen unsichtbar, für Programme ein normales Feld */
.neofire-tickets-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.neofire-tickets-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 18px;
    font-size: 13.5px;
    color: #333333;
    cursor: pointer;
}

.neofire-tickets-check input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: #111111;
}

.neofire-tickets-check a {
    color: #111111;
    text-decoration: underline;
}

.neofire-tickets-error {
    margin: 0 0 16px;
    padding: 11px 14px;
    border-left: 3px solid #111111;
    border-radius: 4px;
    background: #F2F4F6;
    color: #111111;
    font-size: 14px;
    font-weight: 600;
}

.neofire-tickets-error[hidden] {
    display: none;
}

.neofire-tickets-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.neofire-tickets-actions--center {
    justify-content: center;
}

.neofire-tickets-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 9px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.neofire-tickets-btn[disabled] {
    opacity: .6;
    cursor: default;
}

.neofire-tickets-btn--dark {
    background: #0D1F33;
    color: #FFFFFF;
    border: 1px solid #0D1F33;
}

.neofire-tickets-btn--dark:hover {
    background: #111111;
    border-color: #111111;
}

.neofire-tickets-btn--light {
    background: #FFFFFF;
    color: #111111;
    border: 1px solid #d6dbe1;
}

.neofire-tickets-btn--light:hover {
    background: #F2F4F6;
}

.neofire-tickets-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.neofire-tickets-spinner {
    width: 26px;
    height: 26px;
    border: 2px solid #d6dbe1;
    border-top-color: #111111;
    border-radius: 50%;
    animation: neofire-tickets-spin .8s linear infinite;
}

@keyframes neofire-tickets-spin {
    to {
        transform: rotate(360deg);
    }
}

.neofire-tickets-failed {
    padding: 20px 0 4px;
    text-align: center;
}

.neofire-tickets-failed p {
    margin: 0 0 18px;
}

/* Erfolg */
.neofire-tickets-success {
    padding: 8px 0 0;
    text-align: center;
}

.neofire-tickets-success .neofire-tickets-title {
    margin: 0 0 14px;
}

.neofire-tickets-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 0 14px;
    border: 1px solid #d6dbe1;
    border-radius: 50%;
    color: #111111;
}

.neofire-tickets-success-label {
    margin: 0 0 4px;
    color: #5b6472;
    font-size: 13px;
}

.neofire-tickets-number,
.neofire-tickets-mono {
    font-family: "Courier New", Courier, monospace;
    letter-spacing: .08em;
}

.neofire-tickets-number {
    display: inline-block;
    margin: 0 0 18px;
    padding: 8px 16px;
    border: 1px solid #d6dbe1;
    border-radius: 9px;
    background: #F2F4F6;
    font-size: 22px;
    font-weight: 700;
}

@media (max-width: 560px) {
    .neofire-tickets-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .neofire-tickets-dialog {
        max-height: 92vh;
        max-height: 92dvh;
        padding: 24px 18px 20px;
        border-radius: 14px 14px 0 0;
    }

    .neofire-tickets-pair {
        grid-template-columns: 1fr;
    }

    .neofire-tickets-actions .neofire-tickets-btn {
        flex: 1 1 auto;
    }
}

/* ---------- Kundenkonto ---------- */

.neofire-tickets-account {
    font-family: Arial, Helvetica, sans-serif;
}

.neofire-tickets-row[data-neofire-tickets-show] {
    cursor: pointer;
}

.neofire-tickets-row[data-neofire-tickets-show]:hover td,
.neofire-tickets-row[data-neofire-tickets-show]:focus td {
    background: #F2F4F6;
}

.neofire-tickets-row:focus {
    outline: none;
}

.neofire-tickets-link {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-family: "Courier New", Courier, monospace;
    font-size: inherit;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
}

.neofire-tickets-cell-subject {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.neofire-tickets-muted {
    color: #5b6472;
}

.neofire-tickets-status {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #d6dbe1;
    border-radius: 999px;
    background: #FFFFFF;
    color: #111111;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.neofire-tickets-status--in_progress {
    background: #F2F4F6;
}

.neofire-tickets-status--waiting {
    border-color: #111111;
}

.neofire-tickets-status--closed {
    color: #5b6472;
    background: #F2F4F6;
    border-color: #F2F4F6;
}

.neofire-tickets-back {
    gap: 6px;
}

.neofire-tickets-account .neofire-customer-sec-akt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.neofire-tickets-account .neofire-customer-sec-akt .neofire-customer-btn,
.neofire-tickets-account .neofire-customer-sec-akt .neofire-customer-ofil-btn {
    width: auto;
}

.neofire-tickets-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
    margin: 4px 0 22px;
    padding: 0 0 18px;
    border-bottom: 1px solid #d6dbe1;
}

.neofire-tickets-facts div {
    min-width: 0;
}

.neofire-tickets-facts dt {
    margin: 0 0 3px;
    color: #5b6472;
    font-size: 12px;
}

.neofire-tickets-facts dd {
    margin: 0;
    font-size: 14.5px;
    font-weight: 600;
}

.neofire-tickets-thread {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.neofire-tickets-msg {
    margin: 0 0 14px;
    padding: 14px 16px;
    border: 1px solid #d6dbe1;
    border-radius: 12px;
    background: #FFFFFF;
}

.neofire-tickets-msg--team {
    background: #F2F4F6;
    border-color: #F2F4F6;
}

.neofire-tickets-msg-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 6px;
    font-size: 13px;
}

.neofire-tickets-msg-head time,
.neofire-tickets-event time {
    color: #5b6472;
    white-space: nowrap;
}

.neofire-tickets-msg-body {
    font-size: 14.5px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.neofire-tickets-msg-body p {
    margin: 0 0 8px;
}

.neofire-tickets-msg-body p:last-child {
    margin-bottom: 0;
}

.neofire-tickets-event {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0 0 14px;
    color: #5b6472;
    font-size: 12.5px;
}

.neofire-tickets-label {
    display: block;
    margin: 0 0 6px;
    font-size: 12.5px;
    font-weight: 600;
}

.neofire-tickets-reply textarea {
    min-height: 120px;
    resize: vertical;
    font-family: Arial, Helvetica, sans-serif;
}

.neofire-tickets-reply-actions {
    display: flex;
    justify-content: flex-end;
}

.neofire-tickets-reply-actions .neofire-customer-btn {
    width: auto;
}

.neofire-tickets-hint {
    margin: 0;
    padding: 14px 16px;
    border: 1px dashed #d6dbe1;
    border-radius: 12px;
    color: #5b6472;
    font-size: 14px;
}

@media (max-width: 640px) {
    .neofire-tickets-cell-subject {
        max-width: 180px;
    }

    .neofire-tickets-msg-head {
        flex-direction: column;
        gap: 2px;
    }
}
