/* == Общая структура == */
.timer-bar-wrapper {
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.timer-bar-top {
    background: transparent;
    height: 20px;
    position: relative;
    z-index: 2;
}

.timer-bar {
    background-color: #e64959;
    color: white;
    font-weight: bold;
    font-size: 16px;

    /* FLEX для вертикального центрирования */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Удалим фиксированные отступы */
    padding: 0;
    min-height: 80px; /* Можно увеличить при необходимости */
    position: relative;
    z-index: 3;
}

.container.position-relative {
    position: relative;
}

.timer-label,
.timer-countdown {
    z-index: 4;
    position: relative;
    display: inline-block;
}

.timer-text {
    font-size: 36px;
}

.timer-cooldown {
    font-size: 27px;
    top: 5px
}

.timer-section {
    margin: 0;
}

/* == Будильники (по умолчанию — десктоп) == */
.alarm {
    position: absolute;
    width: 148px;
    z-index: 4;
    pointer-events: none;
    transition: all 0.3s ease;
}

.alarm-left {
    left: -115px;
    bottom: -113px
}

.alarm-right {
    right: -160px;
    bottom: -86px;
    width: 160px;
}

.flipped {
    transform: scaleX(-1);
}

/* == Адаптив: только до 768px == */
@media (max-width: 768px) {
    /* Центрируем текст */
    .timer-bar .row {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .timer-bar .col-xs-6 {
        width: 100%;
        float: none;
        text-align: center;
        margin-bottom: 5px;
    }

    .timer-label {
        font-size: 25px;
    }

    .timer-countdown {
        font-size: 18px;
    }

    .timer-label,
    .timer-countdown {
        display: block;
    }


    /* Смещаем будильники ближе к центру */
    .alarm-left {
        left: -18px;
        bottom: -60px;
        width: 93px;
    }

    .alarm-right {
        right: -49px;
        bottom: -45px;
        width: 96px;
    }
}
