.prc-legal-notice,
.prc-short-notice,
.prc-declaration,
.prc-login-required {
    box-sizing: border-box;
}

.prc-legal-notice {
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid #d9dfe7;
    border-radius: 6px;
    background: #f7f9fb;
    font-size: 13px;
    line-height: 1.55;
}

.prc-legal-notice__title {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.prc-legal-notice__text p {
    margin: 0 0 8px;
}

.prc-legal-notice__text p:last-child {
    margin-bottom: 0;
}

.prc-legal-links {
    margin-top: 8px;
    font-size: 12px;
}

.prc-short-notice {
    margin: 8px 0 14px;
    font-size: 12px;
    line-height: 1.45;
    opacity: .82;
}

.prc-declaration {
    margin: 14px 0;
    padding: 12px 14px;
    border-left: 3px solid currentColor;
    background: rgba(0, 0, 0, .035);
    font-size: 13px;
    line-height: 1.5;
}

.prc-declaration__label,
.prc-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
}

.prc-declaration__label input,
.prc-check input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 2px;
}

.prc-declaration__note {
    display: block;
    margin: 7px 0 0 26px;
    opacity: .78;
}

.prc-form-error,
.prc-report-message--error {
    margin-top: 8px;
    color: #b32d2e;
    font-weight: 600;
}

.prc-login-required {
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid #d9dfe7;
    border-radius: 4px;
}

.prc-login-required p {
    margin: 0;
}

.prc-report-wrap {
    margin-top: 8px;
    text-align: right;
}

.prc-report-button {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 12px;
    text-decoration: underline;
    opacity: .72;
    cursor: pointer;
}

.prc-report-button:hover,
.prc-report-button:focus {
    opacity: 1;
}

body.prc-modal-open {
    overflow: hidden;
}

.prc-modal[hidden] {
    display: none !important;
}

.prc-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.prc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .62);
}

.prc-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    color: #1d2327;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .3);
}

.prc-modal__dialog h2 {
    margin: 0 40px 8px 0;
    font-size: 24px;
}

.prc-modal__intro {
    margin: 0 0 18px;
    color: #50575e;
}

.prc-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #50575e;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.prc-field {
    display: block;
    margin: 0 0 15px;
}

.prc-field > span {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.prc-field input,
.prc-field select,
.prc-field textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    color: #1d2327;
    font: inherit;
}

.prc-field textarea {
    min-height: 90px;
    resize: vertical;
}

.prc-field small,
.prc-privacy-info {
    color: #646970;
    font-size: 12px;
}

.prc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.prc-check {
    margin: 5px 0 15px;
    font-size: 13px;
}

.prc-privacy-info {
    margin: 0 0 15px;
    line-height: 1.5;
}

.prc-submit-report {
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: 4px;
    background: #2271b1;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.prc-submit-report:disabled {
    opacity: .6;
    cursor: wait;
}

.prc-report-message {
    margin: 0 0 12px;
    font-weight: 600;
}

.prc-report-message--success {
    color: #008a20;
}

.prc-honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 640px) {
    .prc-modal {
        padding: 10px;
    }

    .prc-modal__dialog {
        max-height: calc(100vh - 20px);
        padding: 18px;
    }

    .prc-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* 1.0.2 — pozycjonowanie krótkiej informacji przy średniej ocenie */
.prc-short-notice--inside-summary {
    display: block;
    margin: 7px 0 0;
    max-width: 320px;
    font-size: 11px;
    line-height: 1.4;
    opacity: .76;
}

.prc-short-notice--summary-top {
    display: block;
    margin: 0 0 12px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 4px;
    background: rgba(0, 0, 0, .025);
    font-size: 11px;
    line-height: 1.45;
    opacity: .82;
}

.prc-form-error--status {
    color: inherit;
    font-weight: 400;
    opacity: .75;
}

/* 1.1.5 — komunikat wewnątrz wykrytego pola wyniku ogólnego */
.prc-short-notice--aggregate-card {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 8px 0 0;
    padding: 0 12px 10px;
    text-align: center;
}

/* 1.2.0 — neutralne oznaczenie pola średniej ocen użytkowników */
.prc-average-heading {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 6px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    text-align: center;
}
