/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-7it0rnwtao] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-7it0rnwtao] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-r1zhygs9xj],
.components-reconnect-repeated-attempt-visible[b-r1zhygs9xj],
.components-reconnect-failed-visible[b-r1zhygs9xj],
.components-pause-visible[b-r1zhygs9xj],
.components-resume-failed-visible[b-r1zhygs9xj],
.components-rejoining-animation[b-r1zhygs9xj] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-r1zhygs9xj],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-r1zhygs9xj],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-r1zhygs9xj],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-r1zhygs9xj],
#components-reconnect-modal.components-reconnect-retrying[b-r1zhygs9xj],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-r1zhygs9xj],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-r1zhygs9xj],
#components-reconnect-modal.components-reconnect-failed[b-r1zhygs9xj],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-r1zhygs9xj] {
    display: block;
}


#components-reconnect-modal[b-r1zhygs9xj] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-r1zhygs9xj 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-r1zhygs9xj 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-r1zhygs9xj 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-r1zhygs9xj]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-r1zhygs9xj 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-r1zhygs9xj {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-r1zhygs9xj {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-r1zhygs9xj {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-r1zhygs9xj] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-r1zhygs9xj] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-r1zhygs9xj] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-r1zhygs9xj] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-r1zhygs9xj] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-r1zhygs9xj] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-r1zhygs9xj] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-r1zhygs9xj 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-r1zhygs9xj] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-r1zhygs9xj {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/BeerPage.razor.rz.scp.css */
/* Тема страницы = база (data-base) × акцент (data-accent).
   База задаёт фон/поверхности/текст, акцент — герой/кнопку/подписи/аватар. */

.bp-root[data-base="dark"][b-8sbi4dmavu] {
    --bg: #17100D;
    --surface: #241813;
    --surface-2: #2C1E17;
    --line: #3E2C22;
    --ink: #F0E5CC;
    --ink-soft: #DDCDAF;
    --muted: #A98C6E;
    --field-bg: #2C1E17;
    --field-border: #4A382C;
    --ring: rgba(244, 233, 209, 0.9);
    --pill-bg: #3A2A22;
    --empty-border: #4A382C;
    --shadow: rgba(0, 0, 0, 0.7);
}

.bp-root[data-base="light"][b-8sbi4dmavu] {
    --bg: #EFE4CC;
    --surface: #FBF5E7;
    --surface-2: #F4E8CF;
    --line: #E3D6B8;
    --ink: #241612;
    --ink-soft: #3A2A22;
    --muted: #7A5A45;
    --field-bg: #FFFFFF;
    --field-border: #D9C39A;
    --ring: rgba(58, 17, 22, 0.28);
    --pill-bg: #EADFC4;
    --empty-border: #D8C7A2;
    --shadow: rgba(36, 22, 18, 0.35);
}

.bp-root[data-accent="sunrise"][b-8sbi4dmavu] {
    --accent: #E89A52;
    --btn-top: #C4622C; --btn-bottom: #A9481F;
    --hero-top: #5A1F26; --hero-bottom: #2E1013;
    --av-top: #7A2A32; --av-bottom: #4A171C;
    --glow: rgba(224, 135, 58, 0.5);
}
.bp-root[data-accent="amber"][b-8sbi4dmavu] {
    --accent: #E0A93B;
    --btn-top: #C9892A; --btn-bottom: #9E6A18;
    --hero-top: #4A3212; --hero-bottom: #281A08;
    --av-top: #6E4E18; --av-bottom: #3E2C0C;
    --glow: rgba(224, 169, 59, 0.45);
}
.bp-root[data-accent="oxblood"][b-8sbi4dmavu] {
    --accent: #D06770;
    --btn-top: #9E2E39; --btn-bottom: #6E1F27;
    --hero-top: #4A171C; --hero-bottom: #280C10;
    --av-top: #7A2A32; --av-bottom: #4A171C;
    --glow: rgba(208, 103, 112, 0.4);
}
.bp-root[data-accent="meadow"][b-8sbi4dmavu] {
    --accent: #8FBE55;
    --btn-top: #5E8C34; --btn-bottom: #436823;
    --hero-top: #2E4A1E; --hero-bottom: #16260F;
    --av-top: #3C5A24; --av-bottom: #22380F;
    --glow: rgba(143, 190, 85, 0.4);
}
.bp-root[data-accent="sky"][b-8sbi4dmavu] {
    --accent: #5FB4D6;
    --btn-top: #2E86AD; --btn-bottom: #1F6688;
    --hero-top: #1E4257; --hero-bottom: #102834;
    --av-top: #244A5E; --av-bottom: #12303E;
    --glow: rgba(95, 180, 214, 0.42);
}

/* Фиксированный фон на весь вьюпорт — перекрывает глобальный фон MudBlazor. */
.bp-root[b-8sbi4dmavu] {
    position: relative;
}

.bp-bg[b-8sbi4dmavu] {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--bg);
    pointer-events: none;
}

.bp[b-8sbi4dmavu] {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: min(560px, calc(100vw - 24px));
    margin: 0 auto;
    box-sizing: border-box;
}

/* ---------- Герой ---------- */
.bp-hero[b-8sbi4dmavu] {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 30px 22px 30px;
    border-radius: 24px;
    background:
        radial-gradient(120% 78% at 50% -8%, var(--glow), rgba(0, 0, 0, 0) 58%),
        linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 100%);
    box-shadow: 0 22px 46px -24px var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bp-hero[b-8sbi4dmavu]::before {
    content: "";
    position: absolute;
    top: -46px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow), rgba(0, 0, 0, 0) 66%);
    pointer-events: none;
}

.bp-medallion[b-8sbi4dmavu] {
    position: relative;
    margin: 0 auto;
    animation: bp-rise-b-8sbi4dmavu 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Круг: обрезка в круг. Зум задаётся на сорт через --bp-zoom (0% → contain,
   вся этикетка целиком; 100% → максимальный зум с обрезкой краёв). */
.bp-medallion--circle[b-8sbi4dmavu] {
    width: min(63%, 232px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.12);
    box-shadow:
        0 14px 28px var(--shadow),
        0 0 0 4px var(--ring),
        0 0 0 6px rgba(0, 0, 0, 0.18);
}

.bp-medallion--circle img[b-8sbi4dmavu] {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(var(--bp-zoom, 1.5));
    transform-origin: center;
}

/* Полностью: вся этикетка, без обрезки. */
.bp-medallion--full[b-8sbi4dmavu] {
    width: min(80%, 300px);
    filter: drop-shadow(0 14px 24px var(--shadow));
}

.bp-medallion--full img[b-8sbi4dmavu] {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
}

@keyframes bp-rise-b-8sbi4dmavu {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to   { opacity: 1; transform: none; }
}

.bp-eyebrow[b-8sbi4dmavu] {
    margin: 16px 0 0;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}

.bp-name[b-8sbi4dmavu] {
    margin: 7px 0 0;
    font-family: 'Alfa Slab One', Georgia, serif;
    font-weight: 400;
    font-size: clamp(30px, 8.5vw, 44px);
    line-height: 0.98;
    letter-spacing: 0.005em;
    color: #F4E9D1;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.bp-rating[b-8sbi4dmavu] {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bp-rating-num[b-8sbi4dmavu] { font-weight: 800; font-size: 16px; color: #F4E9D1; }
.bp-rating-count[b-8sbi4dmavu] { font-size: 13px; font-weight: 600; color: rgba(244, 233, 209, 0.72); }
.bp-rating-none[b-8sbi4dmavu] { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: rgba(244, 233, 209, 0.72); }

/* ---------- Дегустационная лента ---------- */
.bp-specs[b-8sbi4dmavu] {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    margin: -20px 10px 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 30px -20px var(--shadow);
    overflow: hidden;
}

.bp-spec[b-8sbi4dmavu] {
    min-width: 0;
    box-sizing: border-box;
    padding: 15px 4px 13px;
    text-align: center;
    border-right: 1px solid var(--line);
}

.bp-spec:last-child[b-8sbi4dmavu] { border-right: none; }

.bp-spec-val[b-8sbi4dmavu] {
    display: block;
    font-weight: 800;
    font-size: 21px;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.bp-spec-val i[b-8sbi4dmavu] { font-style: normal; font-size: 12px; color: var(--accent); margin-left: 1px; }

.bp-spec-key[b-8sbi4dmavu] {
    display: block;
    margin-top: 5px;
    font-weight: 700;
    font-size: 9.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Описание ---------- */
.bp-about[b-8sbi4dmavu] { margin: 24px 6px 0; }

.bp-label[b-8sbi4dmavu] {
    margin: 0 0 7px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.bp-about-text[b-8sbi4dmavu] { margin: 0; font-size: 15.5px; line-height: 1.62; color: var(--ink-soft); }

/* ---------- Секции ---------- */
.bp-reviews[b-8sbi4dmavu] { margin: 28px 6px 0; }

.bp-section-head[b-8sbi4dmavu] { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.bp-section-head h2[b-8sbi4dmavu],
.bp-form > h2[b-8sbi4dmavu] {
    margin: 0;
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.bp-count-pill[b-8sbi4dmavu] {
    background: var(--pill-bg);
    color: var(--accent);
    font-weight: 800;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 999px;
}

.bp-empty[b-8sbi4dmavu] {
    position: relative;
    padding: 18px 18px 18px 50px;
    background: var(--surface);
    border: 1px dashed var(--empty-border);
    border-radius: 16px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
}

.bp-empty p[b-8sbi4dmavu] { margin: 0; }

.bp-empty-mark[b-8sbi4dmavu] {
    position: absolute;
    left: 16px;
    top: 2px;
    font-family: 'Alfa Slab One', Georgia, serif;
    font-size: 42px;
    line-height: 1;
    color: var(--accent);
}

/* ---------- Отзывы ---------- */
.bp-review-list[b-8sbi4dmavu] { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.bp-review[b-8sbi4dmavu] {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px 15px;
}

.bp-review-top[b-8sbi4dmavu] { display: flex; align-items: center; gap: 11px; }

.bp-avatar[b-8sbi4dmavu] {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--av-top), var(--av-bottom));
    color: #F2DFA8;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-review-meta[b-8sbi4dmavu] { display: flex; flex-direction: column; gap: 2px; }
.bp-review-author[b-8sbi4dmavu] { font-weight: 700; font-size: 14px; color: var(--ink); }

/* StarRating рендерит голые иконки — оборачиваем в строку, иначе внутри
   flex-column они встают вертикально. */
.bp-review-stars[b-8sbi4dmavu] { display: flex; align-items: center; line-height: 0; }

.bp-review-text[b-8sbi4dmavu] { margin: 11px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

.bp-review-photo[b-8sbi4dmavu] {
    display: block;
    margin-top: 11px;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 12px;
}

/* ---------- Форма отзыва ---------- */
.bp-form[b-8sbi4dmavu] {
    margin: 30px 0 6px;
    padding: 22px 18px 24px;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 16px 36px -24px var(--shadow);
}

.bp-form-hint[b-8sbi4dmavu] { margin: 5px 0 18px; font-size: 13px; color: var(--muted); }

.bp-field[b-8sbi4dmavu] { margin-bottom: 16px; }

.bp-field > label[b-8sbi4dmavu] {
    display: block;
    margin-bottom: 9px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.bp-input[b-8sbi4dmavu] {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 15px;
    color: var(--ink);
    background: var(--field-bg);
    border: 1.5px solid var(--field-border);
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.15s ease;
}

.bp-input[b-8sbi4dmavu]::placeholder { color: var(--muted); opacity: 0.9; }
.bp-input:focus[b-8sbi4dmavu] { border-color: var(--accent); }

.bp-textarea[b-8sbi4dmavu] { resize: vertical; min-height: 84px; line-height: 1.5; }

.bp-upload[b-8sbi4dmavu] { display: block; margin-bottom: 16px; }

.bp-upload-btn[b-8sbi4dmavu] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    background: var(--field-bg);
    border: 1.5px solid var(--field-border);
    border-radius: 12px;
    padding: 11px 16px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.bp-upload-btn:hover[b-8sbi4dmavu] { border-color: var(--accent); }
.bp-upload-btn > span:not(.bp-upload-ico)[b-8sbi4dmavu] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-upload-ico[b-8sbi4dmavu] { font-size: 16px; }

.bp-submit[b-8sbi4dmavu] {
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.01em;
    color: #FCF4E2;
    padding: 15px 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--btn-top), var(--btn-bottom));
    box-shadow: 0 12px 24px -14px var(--shadow);
    transition: transform 0.08s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.bp-submit:hover:not(:disabled)[b-8sbi4dmavu] { filter: brightness(1.06); }
.bp-submit:active:not(:disabled)[b-8sbi4dmavu] { transform: translateY(1px); }
.bp-submit:disabled[b-8sbi4dmavu] { opacity: 0.6; cursor: default; }

/* ---------- Служебные состояния ---------- */
.bp-loading[b-8sbi4dmavu] { position: relative; z-index: 1; display: flex; justify-content: center; padding: 64px 0; }

.bp-notfound[b-8sbi4dmavu] { position: relative; z-index: 1; text-align: center; padding: 64px 16px; }
.bp-notfound-emoji[b-8sbi4dmavu] { font-size: 54px; }
.bp-notfound h1[b-8sbi4dmavu] { margin: 14px 0 6px; font-weight: 800; font-size: 24px; color: var(--ink); }
.bp-notfound p[b-8sbi4dmavu] { margin: 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    .bp-medallion[b-8sbi4dmavu] { animation: none; }
}
