/*
 * Anzeige melden auf der Produktdetailseite.
 *
 * Wichtig:
 * Eingeloggt ist es ein <button>.
 * Ausgeloggt ist es ein <a>.
 *
 * Beide sollen gleich aussehen:
 * - kleiner grauer Textlink
 * - kein schwarzer Button
 * - keine grosse Produkt-Button-Optik
 */

.product-action-panel .product-report-entry {
    margin-top: 14px;
    margin-bottom: 22px;
}

/*
 * Sehr spezifisch, weil globale Button-Styles aus der product-action-panel
 * sonst den Button schwarz und gross machen.
 */
.product-action-panel .product-report-link,
.product-action-panel button.product-report-link,
.product-action-panel a.product-report-link {
    all: unset;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    font: inherit;
    font-size: 14px;
    line-height: 1.4;

    color: #6b7280;
    text-decoration: underline;

    cursor: pointer;
    width: auto;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.product-action-panel .product-report-link:hover {
    color: #374151;
}

.product-action-panel .product-report-link:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 3px;
}

/* Modal */
.product-report-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;
    background: rgba(0, 0, 0, 0.58);
}

.product-report-modal-backdrop.hidden {
    display: none;
}

.product-report-modal {
    position: relative;

    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;

    padding: 26px;
    border-radius: 18px;

    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.product-report-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;

    border: 0;
    background: transparent;

    font-size: 28px;
    cursor: pointer;
}

.product-report-progress {
    height: 6px;
    margin: 12px 0 18px;

    border-radius: 999px;
    background: #e5e7eb;
}

.product-report-progress-bar {
    width: 100%;
    height: 100%;

    border-radius: 999px;
    background: #111827;
}

.product-report-intro {
    margin-bottom: 8px;
    font-weight: 800;
}

.product-report-help {
    color: #4b5563;
    line-height: 1.5;
}

.product-report-reasons {
    display: grid;
    gap: 12px;

    margin: 18px 0;
}

.product-report-reasons label {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;

    cursor: pointer;
}

.product-report-modal textarea {
    width: 100%;
    resize: vertical;

    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
}

.product-report-submit {
    width: 100%;

    margin-top: 18px;
    padding: 13px 18px;

    border: 0;
    border-radius: 999px;

    background: #111827;
    color: #fff;

    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 640px) {
    .product-report-modal {
        padding: 22px;
        border-radius: 16px;
    }
}

.form-message-error {
	color: red;
}

#messageError {
	color: red;
}

/*
 * Hinweis, wenn der User die Anzeige bereits gemeldet hat.
 */
.product-report-modal .form-message-info {
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #f6950c2b;
    color: #374151;
    line-height: 1.45;
}