.swOrderTimer-root {
    position: fixed;
    right: 50px;
    bottom: 200px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    pointer-events: none; /* чтобы пустой контейнер не перехватывал клики */
}

/* Каждый виджет заказа */
.swOrderTimer-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: auto;
    transition: transform .35s ease, opacity .35s ease;
}

.swOrderTimer-item.is-hidden {
    transform: translateX(120%);
    opacity: 0;
    pointer-events: none;
}

/* ============ Обёртка кнопки ============ */
.swOrderTimer-btnwrap {
    position: relative;
    width: 60px;
    height: 60px;
    display: block;
    overflow: visible;
    isolation: isolate;
}

/* ============ Пульсация ============ */
.swOrderTimer-btnwrap::before,
.swOrderTimer-btnwrap::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    background: radial-gradient(circle,
    rgba(255, 233, 168, 0)    35%,
    rgba(255, 220, 130, 0.85) 55%,
    rgba(255, 200, 90, 0.55)  72%,
    rgba(230, 170, 55, 0.25)  86%,
    rgba(200, 150, 40, 0)     100%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: swOrderTimerPulse 2.8s cubic-bezier(.25,.55,.4,1) infinite;
    will-change: transform, opacity;
}
.swOrderTimer-btnwrap::after {
    animation-delay: 1.4s;
}

@keyframes swOrderTimerPulse {
    0%   { transform: scale(1);   opacity: 0; }
    15%  { transform: scale(1.1); opacity: 1; }
    70%  { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* ============ Кнопка ============ */
.swOrderTimer-btn {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #d4af37;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.35);
    display: grid;
    place-items: center;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.swOrderTimer-btn:hover {
    transform: scale(1.05);
    background: #c9a230;
    box-shadow: 0 6px 16px rgba(184, 134, 11, 0.5);
}

.swOrderTimer-btn:active {
    transform: scale(0.95);
}

.swOrderTimer-btn-timer {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

/* ============ Панель (поп-ап) ============ */
.swOrderTimer-panel {
    display: none;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
    transform-origin: bottom right;
    transform: scale(0.85) translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s cubic-bezier(0.2, 0.8, 0.3, 1.2), opacity .2s ease;
    position: relative;
}

.swOrderTimer-panel.is-open {
    display: block;
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.swOrderTimer-panel h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #8b6f1e;
}

.swOrderTimer-panel p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.45;
    color: #6b7280;
}

.swOrderTimer-countdown {
    font-weight: 700;
    color: #b8860b;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.swOrderTimer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.swOrderTimer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    transition: opacity .15s ease;
}

.swOrderTimer-link:hover {
    opacity: 0.9;
}

.swOrderTimer-link--pay { background: #d4af37; }

.swOrderTimer-link svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.swOrderTimer-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #faf6e6;
    color: #8b6f1e;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s ease;
}

.swOrderTimer-close:hover {
    background: #f3ecd0;
}

/* ============ Мобильная версия ============ */
@media (max-width: 480px) {
    .swOrderTimer-root {
        right: 50px;
        bottom: 55px;
    }

    .swOrderTimer-btnwrap,
    .swOrderTimer-btn {
        width: 54px;
        height: 54px;
    }

    .swOrderTimer-btnwrap::before,
    .swOrderTimer-btnwrap::after {
        width: 54px;
        height: 54px;
        margin: -27px 0 0 -27px;
    }

    .swOrderTimer-btn-timer { font-size: 12px; }

    .swOrderTimer-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 78px;
        width: auto;
        max-width: none;
        transform-origin: bottom center;
    }
}