.nativedesk-form-container,
.nativedesk-portal-wrapper {
    box-sizing: border-box;
    width: 100%;
}

.nativedesk-portal-ticket-id {
    padding: 0;
}

.nativedesk-portal-list-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
}

.nativedesk-portal-list-link:last-child {
    border-bottom: 0;
}

.nativedesk-portal-message {
    display: flex;
    margin-bottom: 15px;
}

.nativedesk-portal-message.is-agent {
    justify-content: flex-start;
}

.nativedesk-portal-message.is-customer {
    justify-content: flex-end;
}

.nativedesk-portal-message__bubble {
    max-width: min(100%, 640px);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}

.nativedesk-portal-message.is-agent .nativedesk-portal-message__bubble {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.nativedesk-portal-message.is-customer .nativedesk-portal-message__bubble {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.nativedesk-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.nativedesk-portal-reply-panel,
.nativedesk-portal-notice,
.nativedesk-portal-unauthorized {
    width: 100%;
    box-sizing: border-box;
}

.nativedesk-form-field {
    margin-bottom: 15px;
}

#nativedesk-ticket-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
}

#nativedesk-ticket-form > * {
    grid-column: 1 / -1;
}

#nativedesk-ticket-form > .nativedesk-form-field--half {
    grid-column: span 1;
}

@media (max-width: 600px) {
    #nativedesk-ticket-form > .nativedesk-form-field--half {
        grid-column: 1 / -1;
    }
}

.nativedesk-form-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
}

.nativedesk-form-field input,
.nativedesk-form-field textarea,
.nativedesk-form-field select,
.nativedesk-form-container select,
.nativedesk-form-container .nd-category-dropdown,
#nd-ticket-category,
.nativedesk-portal-reply-panel textarea {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

.nativedesk-portal-reply-panel textarea {
    padding: 10px;
    margin-bottom: 15px;
}

.screen-reader-text,
.screen-reader-only {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Astra / theme page title on the Support Tickets portal page */
.nativedesk-support-portal-page .entry-header,
.nativedesk-support-portal-page header.entry-header {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
