/* .zp-feedback-page {
    max-width: 720px;
    margin: 0 auto;
} */

body.bx-page-feedback .swpt-guest-top-bar{
    position: absolute;
}

.zp-feedback-intro {
    margin-bottom: 1rem;
    opacity: 0.85;
}

.zp-feedback-thanks-title {
    font-size: 1.4rem;
    margin: 0 0 0.5rem;
}

/* Admin */

.zp-feedback-admin {
    max-width: 1100px;
    margin: 0 auto;
}

.zp-feedback-filters {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--bx-color-page-border, rgba(0,0,0,0.1));
    border-radius: 6px;
}

.zp-feedback-filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.zp-feedback-filter {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9em;
}

.zp-feedback-filter input {
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
}

.zp-feedback-filter-label {
    font-weight: 600;
    opacity: 0.8;
}

.zp-feedback-filters-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.zp-feedback-total {
    margin-left: auto;
    opacity: 0.7;
    font-size: 0.9em;
}

.zp-feedback-empty {
    padding: 2rem;
    text-align: center;
    opacity: 0.6;
}

.zp-feedback-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.zp-feedback-card {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 6px;
    background: var(--bx-color-page-bg, transparent);
    overflow: hidden;
    transition: box-shadow 0.15s ease;
}

.zp-feedback-card:hover {
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}


.zp-feedback-card.zp-feedback-viewed {
    border-left: 3px solid #848484;
}


.zp-feedback-card.zp-feedback-unviewed {
    border-left: 3px solid #ff9800 !important;
}

.zp-feedback-card.zp-feedback-viewed {
    opacity: 0.85;
}

.zp-feedback-card-header {
    display: grid;
    grid-template-columns: 60px 1fr 2fr auto auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
}

.zp-feedback-card-id {
    font-weight: 700;
    opacity: 0.6;
}

.zp-feedback-card-author-link {
    font-weight: 600;
}

.zp-feedback-card-author-id {
    font-size: 0.85em;
    opacity: 0.6;
    margin-left: 0.25rem;
}

.zp-feedback-card-summary {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.9;
}

.zp-feedback-card-date {
    font-size: 0.85em;
    opacity: 0.6;
    white-space: nowrap;
}

.zp-feedback-card-badge {
    font-size: 0.75em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
}

.zp-feedback-unviewed .zp-feedback-card-badge {
    background: #ff9800;
    color: #fff;
}

.zp-feedback-card-chevron {
    transition: transform 0.15s ease;
}

.zp-feedback-card.is-open .zp-feedback-card-chevron {
    transform: rotate(180deg);
}

.zp-feedback-card-body {
    padding: 0.5rem 1rem 1rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.zp-feedback-card-body[hidden] {
    display: none;
}

.zp-feedback-card-fields {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4rem 1rem;
    margin: 0 0 1rem;
}

.zp-feedback-card-fields dt {
    font-weight: 600;
    opacity: 0.7;
}

.zp-feedback-card-fields dd {
    margin: 0;
    word-break: break-word;
}

.zp-feedback-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.zp-feedback-paginate {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}


form#zp_feedback .bx-form-section-divider .bx-form-section-content {

    display: flex;
    gap: 32px;
}

.bx-media-phone form#zp_feedback .bx-form-section-divider .bx-form-section-content {

    flex-direction: column;
    gap: 40px;
}


form#zp_feedback .bx-form-section-divider .bx-form-section-content .bx-form-element-wrapper {

    width: 100%;
    margin: 0;
}

form#zp_feedback #bx-form-element-description textarea.bx-form-input-textarea {

    
    font-style: normal;
    
    letter-spacing: 0.5px;
    background-color: #0000004a !important;
    padding: 15px !important;
    border: 1.5px solid;
    border-color: rgb(209 213 219) !important;
    border-radius: 4px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}


@media (max-width: 720px) {
    .zp-feedback-card-header {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "id author chevron"
            "summary summary summary"
            "date badge .";
    }
    .zp-feedback-card-id { grid-area: id; }
    .zp-feedback-card-author { grid-area: author; }
    .zp-feedback-card-summary { grid-area: summary; white-space: normal; }
    .zp-feedback-card-date { grid-area: date; }
    .zp-feedback-card-badge { grid-area: badge; justify-self: start; }
    .zp-feedback-card-chevron { grid-area: chevron; }
}

/* Floating label: quando a label sobe (input_label_preenchido) e tapa a border,
   manter background transparente para deixar passar o que está atrás do div pai.
   O backdrop-filter: blur(10px) herdado dá contraste para o texto da label. */
body.bx-page-feedback form#zp_feedback .bx-form-element-wrapper  .input_label_preenchido {
    background: transparent;
}
