/* Flash messages for Pico.css */
.flash{
    position: fixed;   /* а не absolute, чтобы привязать к окну */
    top: 50px;         /* отступ от верхнего края */
    left: 50%;
    transform: translateX(-50%); /* центрируем по горизонтали */
    z-index: 9999;     /* поверх всего */
    width: auto;
    max-width: 90%;
    display:flex;
    align-items:flex-start;
    gap:.75rem;
    padding: var(--pico-spacing, 1rem);
    margin: var(--pico-block-spacing-vertical, 1rem) 0;
    border: 1px solid var(--pico-muted-border-color, rgba(0,0,0,.12));
    border-left-width: .4rem;
    border-radius: var(--pico-border-radius, .5rem);
    background: var(--pico-muted-background, rgba(0,0,0,.03));
    line-height: 1.4;
}
.flash .flash-title{ display:block; font-weight:600; margin-right:.25rem; }
.flash .flash-body{ flex:1; }
.flash .flash-close{
    margin-left:auto; border:0; background:transparent; font-size:1.25rem; line-height:1;
    cursor:pointer; opacity:.6;
}
.flash .flash-close:hover{ opacity:1 }

.flash + .flash {
    margin-top: 10px;
}

/* Цветовые варианты (поддерживают светлую/тёмную темы Pico нормально) */
.flash.success{
    border-left-color: hsl(152 60% 40%);
    background: color-mix(in oklab, hsl(152 60% 40%) 90%, transparent);
}
.flash.error{
    color: antiquewhite;
    border-left-color: hsl(0 70% 48%);
    background: color-mix(in oklab, hsl(0 70% 48%) 90%, transparent);
}
.flash.info{
    border-left-color: hsl(210 70% 45%);
    background: color-mix(in oklab, hsl(210 70% 45%) 90%, transparent);
}

/* Фоллбек на случай отсутствия color-mix в браузере */
@supports not (background: color-mix(in oklab, red 10%, transparent)){
    .flash.success{ background: rgba(16,185,129,.10) } /* зелёный 500 ~ */
    .flash.error{   background: rgba(239,68,68,.10) }  /* красный 500 ~ */
    .flash.info{    background: rgba(59,130,246,.10) } /* синий 500 ~ */
}

.icon-16{ width:16px; height:16px; vertical-align:middle; }
.icon-18{ width:18px; height:18px; vertical-align:middle; }
.icon-20{ width:20px; height:20px; vertical-align:middle; }

.question-box{
    background-color: #f5f5f5;
    border: 1px solid gray;
    padding: 10px;
    border-radius: 3px;
    margin-top: 10px;
}

.question-preface{
    font-size: 20px;
    margin-bottom: 16px;
    font-style: italic;
}

.question-value{
    font-size: 20px;
    margin-bottom: 16px;
}

.question-variant-label{
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 30px;
    line-height: 35px;
    color: #000000;

}

.question-postfix{
    font-size: 20px;
    margin-bottom: 16px;
    font-style: italic;
}

.underline {
   text-decoration: underline; 
}

.variant-part {
    background-color: white;
    border: 1px solid gray;
    border-radius: 3px;
    padding: 5px;
}

.table-with-layout{
    border: none;
}

.table-with-layout td{
    vertical-align: top;
    text-align: left;
}

.table-with-layout tr td:first-child {
    font-size: 12px;
    line-height: 29px;
}

.table-with-layout tr td:last-child {
    vertical-align: top;
    text-align: left;
    padding-left: 10px;
}

.table-with-layout td div{
    white-space:nowrap;
}

.match-button {
    display: inline-flex;
    color: #000000;
    text-align: center;
    padding: 10px 30px;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    border: 1px solid #000000;
    background: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 30px;
    line-height: 35px;
    border-radius: 16px;
}

.match-button:hover {
    text-decoration: none;
}

.custom-checkbox {
    position: relative;
    width: 41px;
    height: 41px;
    border: 2px solid black;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.custom-checkbox img {
    position: absolute;
    top: -27px;
    left: -3px;
    width: 41px;
    height: 41px;
    display: none;
    pointer-events: none;
}

input[type="radio"]:checked + .custom-checkbox img,
input[type="checkbox"]:checked + .custom-checkbox img{
    display: block;
}

.match-checkbox-label {
    font-family: 'Roboto', serif;
    font-style: normal;
    font-weight: 700;
    font-size: 30px;
    line-height: 35px;
    color: #000000;
}