/* Стили модалки «Дополнить информацию» — единые для food/entertainment/interesting */

.portal-correction-modal {
    border: none;
    border-radius: 20px;
    padding: 28px;
    max-width: 520px;
    width: calc(100% - 32px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    color: #1a1a1a;
    font-family: inherit;
    background: #fff;
}
/* Принудительно центрируем: некоторые стили шаблона/компонента перебивают
   дефолтное центрирование <dialog>, поэтому фиксируем явно. */
.portal-correction-modal[open] {
    position: fixed;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center center;
    animation: pcmModalIn 0.28s cubic-bezier(.2, .7, .3, 1.1);
}
@keyframes pcmModalIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.portal-correction-modal::backdrop {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: pcmBackdropIn 0.25s ease-out;
}
@keyframes pcmBackdropIn {
    from { background: rgba(0, 0, 0, 0); }
    to   { background: rgba(0, 0, 0, 0.55); }
}

.pcm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.pcm-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    color: #111;
}
.pcm-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #555;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}
.pcm-close:hover { background: #f97316; color: #fff; }

.pcm-sub {
    color: #555;
    font-size: 0.95rem;
    margin: 0 0 18px 0;
    line-height: 1.4;
}
.pcm-sub strong { color: #111; }

.pcm-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.pcm-types label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
    transition: 0.2s;
}
.pcm-types label:has(input:checked) {
    background: #fff5eb;
    border-color: #f97316;
    color: #f97316;
}
.pcm-types input[type="radio"] { accent-color: #f97316; }

.pcm-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 12px 0 6px;
}
#portal-correction-form textarea,
#portal-correction-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #111;
    box-sizing: border-box;
    transition: 0.2s;
}
#portal-correction-form textarea:focus,
#portal-correction-form input[type="email"]:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
#portal-correction-form textarea {
    min-height: 110px;
    resize: vertical;
}

.pcm-status {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.pcm-status--pending  { background: #fef3c7; color: #92400e; }
.pcm-status--success  { background: #dcfce7; color: #166534; }
.pcm-status--error    { background: #fee2e2; color: #991b1b; }

.pcm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}
.pcm-btn {
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}
.pcm-btn-primary {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.28);
}
.pcm-btn-primary:hover { background: #ea580c; border-color: #ea580c; }
.pcm-btn-primary:disabled { opacity: 0.6; cursor: wait; }

.pcm-btn-secondary {
    background: #fff;
    color: #6b7280;
    border-color: #e5e7eb;
}
.pcm-btn-secondary:hover { background: #f3f4f6; color: #111; }

/* Кнопка «Дополнить» в sidebar — стиль аналогичный share-кнопке */
.portal-correction-btn {
    width: 100%;
    padding: 12px 22px;
    border-radius: 999px;
    background: #fff;
    color: #f97316;
    border: 1.5px solid #f97316;
    font-weight: 700;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.25s;
    min-height: 46px;
    box-sizing: border-box;
    margin-top: 10px;
}
.portal-correction-btn:hover {
    background: #f97316;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.28);
}
.portal-correction-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .portal-correction-modal { padding: 22px; border-radius: 16px; }
    .pcm-types label { padding: 7px 12px; font-size: 0.85rem; }
    .pcm-actions { flex-direction: column-reverse; }
    .pcm-btn { width: 100%; }
}
