.custom-label,
.custom-label * {
    box-sizing: border-box;
}

.custom-label {
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
}

/* Модификаторы */

.custom-label_black {
    color: #001A34;
}

.custom-label_white {
    color: #FFFFFF;
}

.custom-label_blue {
    color: #3498DB;
}

.custom-label_gray {
    color: #667685;
}

.custom-label_green {
    color: #55BB05;
}

.custom-label_red {
    color: #FF4141;
}

.custom-label_bold {
    font-weight: 600;
}

/* Модификаторы фона */

.custom-label_black.custom-label_backdrop,
.custom-label_blue.custom-label_backdrop,
.custom-label_gray.custom-label_backdrop {
    background-color: #F2F5F9;
}

.custom-label_white.custom-label_mir-bonus.custom-label_backdrop {
    background-color: #006848;
}

.custom-label_green.custom-label_backdrop {
    color: #4CA308;
    background-color: #F1F5EC;
}

.custom-label_deal.custom-label_backdrop {
    color: #FFFFFF;
    background-color: #FF4141;
}

.custom-label_friday.custom-label_backdrop {
    color: #C2FC21;
    background-color: #001A34;
}

/* Модификаторы окантовки */

.custom-label_red.custom-label_bordered {
    box-shadow: inset 0 0 0 1px #FF4141;
}

/* Модификаторы размера */

.custom-label_small {
    font-size: 12px;
    line-height: 16px;
    padding: 2px 0;
}

.custom-label_big {
    font-size: 14px;
    line-height: 24px;
}

.custom-label_backdrop.custom-label_small,
.custom-label_bordered.custom-label_small {
    padding: 2px 8px;
}

.custom-label_backdrop.custom-label_big,
.custom-label_bordered.custom-label_big {
    padding: 0 8px;
}

/* Иконки */

.custom-label svg {
    flex-shrink: 0;
}

.custom-label_small svg {
    width: 16px;
    height: 16px;
}

.custom-label_big svg {
    width: 20px;
    height: 20px;
}

.custom-label_black.custom-label_bonus svg {
    color: #FFB300;
}

.custom-label_info svg {
    color: #3498DB;
}

.custom-label_black.custom-label_trees svg {
    color: #55BB05;
}

.custom-label_black.custom-label_af-bonus svg {
    color: var(--af-blue);
}

.custom-label_black.custom-label_mir-bonus svg {
    color: #006848;
}

.custom-label_white.custom-label_mir-bonus svg {
    color: #FFFFFF;
}

.custom-label_mir-bonus.custom-label_big.custom-label_backdrop svg {
    width: 30px;
    height: 30px;
    margin: -3px 0;
}

.custom-label_mir-bonus.custom-label_small.custom-label_backdrop svg {
    width: 20px;
    height: 20px;
    margin: -2px 0;
}

.custom-label_bed.custom-label_small.custom-label_backdrop svg {
    width: 20px;
    height: 20px;
    margin: -2px 0;
}

/* Дополнительная стилизация */

.custom-label-meal-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.custom-label-cancellation-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.custom-label_children-free .custom-label__text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.custom-label_af-bonus .custom-label__amount {
    color: #214A8E;
    font-weight: 700;
}

/* Лейблы цен */

.custom-label-price-wrapper {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.custom-label-price-wrapper_start {
    align-items: flex-start;
}

.custom-label-price-wrapper_end {
    align-items: flex-end;
}

.custom-label-price-old {
    color: #B5BDC4;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    position: relative;
}

.custom-label-price-old::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    height: 1px;
    width: 100%;
    background-color: #FF4141;
}

.custom-label-price {
    color: #001A34;
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.custom-label-price_sale {
    color: #FF4141;
}

.custom-label-price .price-value {
    white-space: nowrap;
    font-weight: 700;
}

.custom-label-price .currency {
    font-weight: 700;
}

.custom-label-price_medium .price-value {
    font-size: 20px;
    line-height: 24px;
}

.custom-label-price_medium .currency {
    font-size: 12px;
    line-height: 16px;
}

.custom-label-price_normal .price-value {
    font-size: 24px;
    line-height: 32px;
}

.custom-label-price_normal .currency {
    font-size: 16px;
    line-height: 24px;
}

.custom-label-price_large .price-value {
    font-size: 32px;
    line-height: 40px;
}

.custom-label-price_large .currency {
    font-size: 16px;
    line-height: 24px;
}
