.razmaps-traffic-controls {
    position: absolute;
    top: 110px;
    right: 12px;
    z-index: 25;
    display: flex;
    width: 168px;
    flex-direction: column;
    gap: 7px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.24);
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.razmaps-traffic-heading {
    padding: 0 3px 3px;
    color: #222;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.razmaps-traffic-button {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #b8b8b8;
    border-radius: 8px;
    background: #f5f5f5;
    color: #202020;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-sizing: border-box;
}

.razmaps-traffic-button:hover {
    background: #e8e8e8;
}

.razmaps-traffic-button:focus-visible {
    outline: 3px solid #1976d2;
    outline-offset: 2px;
}

.razmaps-traffic-button.is-active {
    border-color: #16743c;
    background: #168344;
    color: #fff;
}

.razmaps-traffic-icon {
    flex: 0 0 auto;
    font-size: 19px;
    line-height: 1;
}

.razmaps-traffic-status {
    padding: 7px 8px;
    border-radius: 7px;
    background: #eeeeee;
    color: #222;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
}

.razmaps-traffic-status.is-success {
    background: #dff4e7;
    color: #145a31;
}

.razmaps-traffic-status.is-error {
    background: #fde3e3;
    color: #8c1e1e;
}

@media (max-width: 700px) {
    .razmaps-traffic-controls {
        top: auto;
        right: 8px;
        bottom: 28px;
        left: 8px;
        width: auto;
        flex-direction: row;
        align-items: stretch;
        padding: 8px;
    }

    .razmaps-traffic-heading {
        display: none;
    }

    .razmaps-traffic-button {
        flex: 1 1 50%;
        justify-content: center;
        min-width: 0;
        min-height: 44px;
        padding: 7px 8px;
        font-size: 13px;
    }

    .razmaps-traffic-status {
        position: absolute;
        right: 8px;
        bottom: 60px;
        left: 8px;
    }
}
