/* Add testimonial page — reuses reservation form field styles */

.add-testimonial-wrap-main {
    min-height: 100vh;
    scroll-padding-top: 6.5rem;
}

.testimonial-photo-input {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid color-mix(in srgb, var(--color-outline, #8a8578) 40%, transparent);
    border-radius: 0.5rem;
    background: var(--color-surface-container-lowest, #fff);
    color: var(--color-on-surface, #1c1b16);
    font: inherit;
    cursor: pointer;
}

.testimonial-photo-input::file-selector-button {
    margin-right: 0.85rem;
    padding: 0.4rem 0.85rem;
    border: 0;
    border-radius: 0.375rem;
    background: var(--color-saddle-brown, #8b5a2b);
    color: var(--color-antique-cream, #f5f0e6);
    font: inherit;
    cursor: pointer;
}

.testimonial-photo-preview-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.testimonial-photo-preview-item {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem;
    border: 1px solid color-mix(in srgb, var(--color-outline, #8a8578) 35%, transparent);
    border-radius: 0.5rem;
    background: color-mix(in srgb, var(--color-surface, #f7f4ee) 88%, white);
}

.testimonial-photo-preview-thumb {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    border-radius: 0.375rem;
    background: #ddd;
}

.testimonial-photo-preview-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.testimonial-photo-preview-name {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.testimonial-photo-preview-size {
    font-size: 0.8rem;
    opacity: 0.75;
}

.testimonial-photo-preview-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--color-on-surface, #1c1b16);
    cursor: pointer;
}

.testimonial-photo-preview-remove:hover {
    background: color-mix(in srgb, var(--color-error, #b3261e) 12%, transparent);
    color: var(--color-error, #b3261e);
}
