


.zdtf-ticket-widget {
    display: inline-flex;
    flex-direction: column;
    gap: 0.75rem;
    font: inherit;
    color: inherit;
}

.zdtf-open-modal {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 0.95rem;
    line-height: 1.45;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.zdtf-open-modal:hover {
    color: var(--zdtf-accent, #2563eb);
}

.zdtf-open-modal:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.zdtf-inline-feedback {
    font-size: 0.8rem;
    line-height: 1.35;
    color: #000;
}

.zdtf-inline-feedback[data-status="error"],
.zdtf-inline-feedback[data-status="error"] a {
    color: #b42318;
}

.zdtf-inline-feedback[data-status="success"],
.zdtf-inline-feedback[data-status="success"] a {
    color: #1a7f37;
}

.zdtf-modal {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: min(320px, calc(100% - 32px));
    background: #ffffff;
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    padding: 14px;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: none;
    z-index: 99999;
}

.zdtf-modal[data-visible="1"] {
    display: block;
}

.zdtf-modal__backdrop {
    display: none;
}

.zdtf-modal__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #000000;
}

.zdtf-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.zdtf-modal__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #000000 !important;
}

.zdtf-close-modal {
    border: none;
    background: none;
    color: #000000 !important;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
}

.zdtf-close-modal:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.zdtf-modal__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.zdtf-ticket-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    font: inherit;
    color: #000000;
}

.zdtf-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.zdtf-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: #000000;
}

.zdtf-textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.5rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #cfcfcf;
    background: #ffffff !important;
    color: #000000 !important;
    font: inherit;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zdtf-textarea::placeholder {
    color: rgba(17, 24, 39, 0.45);
}

.zdtf-textarea:focus {
    outline: none;
    border-color: var(--zdtf-accent, #2563eb);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.zdtf-actions {
    display: flex;
    justify-content: flex-end;
}

.zdtf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    border-radius: 5px;
    border: none;
    background: #111111;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.zdtf-submit:hover {
    background: #000000;
}

.zdtf-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.zdtf-messages {
    min-height: 1.15rem;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #000000;
}

.zdtf-messages[data-status="error"] {
    color: #b42318;
}

.zdtf-messages[data-status="success"] {
    color: #000000;
}

.zdtf-footnote {
    font-size: 0.72rem;
    color: #444444;
    line-height: 1.35;
    margin: 0;
}

@media (prefers-color-scheme: dark) {
    .zdtf-open-modal:hover,
    .zdtf-close-modal:hover,
    .zdtf-cancel:hover {
        background-color: rgba(255, 255, 255, 0.08);
    }

    .zdtf-modal,
    .zdtf-modal__content {
        background: #ffffff;
        color: #000000;
    }

    .zdtf-modal__title,
    .zdtf-label,
    .zdtf-inline-feedback,
    .zdtf-messages,
    .zdtf-footnote,
    .zdtf-close-modal {
        color: #000000;
    }

    .zdtf-textarea {
        border-color: #cfcfcf;
        color: #000000;
        background: #ffffff;
    }

    .zdtf-textarea::placeholder {
        color: rgba(17, 24, 39, 0.45);
    }

    .zdtf-submit {
        background: #111111;
        color: #ffffff;
    }
}

@media (max-width: 600px) {
    .zdtf-modal__content {
        width: calc(100% - 1.5rem);
        padding: 1.5rem;
        border-radius: 14px;
    }

    .zdtf-modal__title {
        font-size: 1.125rem;
    }
}


