/* RuStore: десктоп — кнопка в шапке; ≤768px — закрываемый баннер.
   Вынесено из templates/base.html для уменьшения каркаса. */
:root {
    --rustore-blue: #2a6fff;
    --rustore-blue-hover: #1f5fe0;
}

.rustore-topbar-btn {
    flex-shrink: 0;
    align-items: center;
    gap: 0.5rem;
    margin-left: clamp(8px, 1.5vw, 20px);
    padding: 0.35rem 0.85rem 0.35rem 0.45rem;
    border-radius: 999px;
    color: #fff !important;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
    max-width: min(100%, 220px);
}
.rustore-topbar-btn:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.45);
}
.rustore-topbar-btn:focus-visible {
    outline: 2px solid var(--rustore-blue);
    outline-offset: 2px;
}
.rustore-topbar-btn img {
    width: 112px;
    height: 28px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}
.rustore-topbar-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .rustore-topbar-btn { display: none !important; }
}

.rustore-mobile-banner {
    display: none;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem 0.55rem 0.85rem;
    background: linear-gradient(90deg, #e3eaf7 0%, var(--rustore-blue) 50%, #2568e8 100%);
    color: #3d3d3d;
    box-shadow: 0 2px 10px rgba(26, 95, 217, 0.35);
    position: relative;
    z-index: 105;
}

@media (max-width: 768px) {
    .rustore-mobile-banner { display: flex; }
    html.rustore-mobile-banner-dismissed .rustore-mobile-banner { display: none !important; }
}

.rustore-mobile-banner__logo {
    width: 94px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
.rustore-mobile-banner__text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    font-weight: 500;
}
.rustore-mobile-banner__text strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.rustore-mobile-banner__link {
    flex-shrink: 0;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--rustore-blue) !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}
.rustore-mobile-banner__link:active {
    opacity: 0.92;
}
.rustore-mobile-banner__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}
.rustore-mobile-banner__close:hover {
    background: rgba(255, 255, 255, 0.28);
}
.rustore-mobile-banner__close .material-icons {
    font-size: 22px;
}
