.shop-trigger-compact.shops-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-height: 28px;
    height: auto;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 2px 0;

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;

    cursor: pointer;
    user-select: none;
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.3;
    color: #4d4d4d;
    white-space: nowrap;
    text-align: left;

    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.shop-trigger-compact.shops-trigger:hover {
    opacity: 1;
    background: transparent;
    border: none;
}

.shop-trigger-compact.shops-trigger:active {
    opacity: 0.8;
}

.shop-trigger-compact.shops-trigger:focus-visible {
    outline: 2px solid #ffed4e;
    outline-offset: 2px;
    border-radius: 4px;
}

.shop-trigger-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    position: relative;
    min-height: 20px;
    flex-wrap: nowrap;
}

.shop-trigger-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4d4d4d;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.shop-trigger-label::before {
    content: "";
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-color: #e6d400;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 9l1.5-5h15L21 9M3 9h18v11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9zM9 21V12h6v9'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 9l1.5-5h15L21 9M3 9h18v11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9zM9 21V12h6v9'/></svg>") center/contain no-repeat;
    transition: background-color 0.15s ease;
}

.shop-trigger-dots {
    display: none;
}

.shop-trigger-right {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
    flex-wrap: nowrap;
}

.shop-trigger-value {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ffed4e;
    color: #111827;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.shop-trigger-arrow {
    color: #c0c4c9;
    flex-shrink: 0;
    transition: transform 0.15s ease, color 0.15s ease;
}

.shop-trigger-compact.shops-trigger:hover .shop-trigger-arrow {
    color: #111827;
    transform: translateX(2px);
}

.shop-trigger-compact.shops-trigger:hover .shop-trigger-label {
    color: #111827;
}

.shop-trigger-compact.shops-trigger:hover .shop-trigger-label::before {
    background-color: #111827;
}

@media (max-width: 480px) {
    .shop-trigger-compact.shops-trigger {
        min-height: 26px;
        font-size: 13px;
        gap: 4px;
    }

    .shop-trigger-wrapper {
        flex-wrap: nowrap;
        align-items: center;
        gap: 4px;
    }

    .shop-trigger-label {
        font-size: 13px;
        gap: 4px;
    }

    .shop-trigger-label::before {
        width: 14px;
        height: 14px;
    }

    .shop-trigger-right {
        flex: 0 0 auto;
        min-width: 0;
        margin-left: auto;
        flex-wrap: nowrap;
    }

    .shop-trigger-value {
        font-size: 13px;
        padding: 2px 8px;
        max-width: none;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.2;
    }

    .shop-trigger-arrow {
        align-self: center;
    }
}

:root {
    --shop-color-brand: #ffed4e;
    --shop-color-brand-dark: #e6d400;
    --shop-color-success: #10b981;
    --shop-color-success-light: #d1fae5;
    --shop-color-success-dark: #065f46;
    --shop-color-danger: #ef4444;
    --shop-color-gray-50: #f9fafb;
    --shop-color-gray-100: #f3f4f6;
    --shop-color-gray-200: #e5e7eb;
    --shop-color-gray-300: #d1d5db;
    --shop-color-gray-400: #9ca3af;
    --shop-color-gray-500: #6b7280;
    --shop-color-gray-600: #4b5563;
    --shop-color-gray-700: #374151;
    --shop-color-gray-800: #1f2937;
    --shop-color-gray-900: #111827;
    --shop-radius-sm: 4px;
    --shop-radius: 6px;
    --shop-radius-md: 8px;
    --shop-radius-lg: 12px;
}

.shop-modal,
.shop-modal * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.shop-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.shop-modal.is-open {
    display: block;
}

.shop-modal .shop-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: shopFadeIn 0.2s ease;
}

@keyframes shopFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.shop-modal .shop-modal__container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 600px;
    height: 100%;
    background: #f9fafb;
    animation: shopSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes shopSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.shop-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.shop-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--shop-color-gray-200);
    background: white;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 5;
}

.shop-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--shop-color-gray-100);
    border: none;
    border-radius: var(--shop-radius);
    color: var(--shop-color-gray-600);
    cursor: pointer;
    margin-right: 12px;
    transition: background-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.shop-back:hover {
    background: var(--shop-color-brand);
    color: #111827;
}

.shop-back:focus-visible {
    outline: 2px solid var(--shop-color-brand);
    outline-offset: 2px;
}

.shop-header__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--shop-color-gray-900);
    flex: 1;
    line-height: 1.2;
}

.shop-header__empty {
    width: 40px;
    flex-shrink: 0;
}

.shop-main-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.shop-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: white;
    border: 1px solid var(--shop-color-gray-200);
    border-radius: var(--shop-radius-lg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shop-card:hover {
    border-color: var(--shop-color-gray-300);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shop-card__logo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--shop-radius-md);
    overflow: hidden;
    background: var(--shop-color-gray-50);
    cursor: pointer;
    position: relative;
    border: 1px solid var(--shop-color-gray-200);
}

.shop-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-image-zoom {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--shop-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
    font-size: 16px;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.shop-card__logo:hover .shop-image-zoom {
    opacity: 1;
}

.shop-card__main {
    flex: 1;
    min-width: 0;
}

.shop-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--shop-color-gray-900);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.shop-info-row {
    display: flex;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.shop-info-label {
    width: 70px;
    color: var(--shop-color-gray-500);
    flex-shrink: 0;
}

.shop-info-value {
    color: var(--shop-color-gray-900);
}

.shop-phone {
    color: var(--shop-color-gray-900);
    text-decoration: none;
    font-weight: 500;
}

.shop-phone:hover {
    color: #111827;
    text-decoration: underline;
    text-decoration-color: var(--shop-color-brand);
    text-underline-offset: 2px;
}

.shop-working-status {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.working-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--shop-color-gray-900);
    transition: color 0.15s ease;
    padding: 2px 0;
    user-select: none;
}

.working-status-badge:hover {
    color: #111827;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.open {
    background: var(--shop-color-success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.status-dot.closed {
    background: var(--shop-color-danger);
}

.status-message {
    font-weight: 600;
}

.status-until,
.status-next {
    color: var(--shop-color-gray-500);
    font-size: 12px;
    margin-left: 4px;
    font-weight: 400;
}

.schedule-detailed {
    margin-top: 8px;
    padding: 12px 14px;
    background: var(--shop-color-gray-50);
    border-radius: var(--shop-radius-md);
    border: 1px solid var(--shop-color-gray-200);
    width: 100%;
    animation: shopFadeIn 0.2s ease;
}

.schedule-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}

.schedule-table tr {
    border-bottom: 1px solid var(--shop-color-gray-100);
}

.schedule-table tr:last-child {
    border-bottom: none;
}

.schedule-table td {
    padding: 6px 0;
}

.schedule-day {
    width: 40px;
    color: var(--shop-color-gray-500);
    font-weight: 500;
}

.schedule-time {
    color: var(--shop-color-gray-900);
    text-align: right;
    font-weight: 500;
}

.shop-maps-buttons {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.shop-map-button {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--shop-radius);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    line-height: 1.3;
}

.shop-map-button--yandex {
    background: var(--shop-color-brand);
    color: #111827;
    border: 1px solid var(--shop-color-brand-dark);
}

.shop-map-button--yandex:hover {
    background: var(--shop-color-brand-dark);
}

.shop-map-button--google {
    background: white;
    color: #111827;
    border: 1px solid var(--shop-color-gray-300);
}

.shop-map-button--google:hover {
    background: var(--shop-color-gray-50);
    border-color: var(--shop-color-gray-400);
}

.shop-detail-link-container {
    margin-top: 12px;
}

.shop-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--shop-color-gray-700);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: gap 0.15s ease, color 0.15s ease;
}

.shop-detail-link:hover {
    gap: 8px;
    color: #111827;
}

.shop-detail-link:hover::after {
    color: var(--shop-color-brand-dark);
}

.shop-image-zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.shop-image-zoom-modal.is-open {
    display: block;
}

.shop-image-zoom-modal .shop-image-zoom-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.shop-image-zoom-modal__container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.shop-image-zoom-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--shop-radius-md);
}

.shop-image-zoom-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.shop-image-zoom-close:hover {
    opacity: 1;
}

.shop-image-zoom-caption {
    color: white;
    margin-top: 10px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .shop-modal .shop-modal__container {
        max-width: 100%;
    }

    .shop-card {
        flex-direction: column;
    }

    .shop-card__logo {
        width: 100%;
        height: 160px;
    }

    .shop-maps-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .shop-header {
        padding: 12px;
    }

    .shop-main-content {
        padding: 12px;
    }

    .shop-card {
        padding: 14px;
    }

    .schedule-table {
        font-size: 12px;
    }

    .schedule-day {
        width: 35px;
    }

    .shop-card__title {
        font-size: 14px;
    }

    .shop-info-row {
        font-size: 12px;
    }
}

.shop-modal-open {
    overflow: hidden;
}

@media (hover: none) and (pointer: coarse) {
    .shop-card:active {
        opacity: 0.9;
    }

    .shop-detail-link:active {
        opacity: 0.7;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-modal .shop-modal__overlay,
    .shop-modal .shop-modal__container,
    .shop-card,
    .schedule-detailed {
        animation: none;
        transition: none;
    }
}