/* 갤러리 이용가능 헤어샵 — 위치기준 / 브랜드 기준 공통 */

.gallery-shops-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 10px;
    flex: 0 0 auto;
}

.gallery-shops-mode__user-sub {
    margin: 6px 0 10px;
    padding: 0 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #64748b;
    flex: 0 0 auto;
}

.gallery-shops-mode__btn {
    appearance: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.gallery-shops-mode__btn.is-active {
    border-color: #a78bfa;
    background: #f5f3ff;
    color: #7c3aed;
}

.gallery-shops-mode__btn:hover,
.gallery-shops-mode__btn:focus-visible {
    border-color: #c4b5fd;
    color: #7c3aed;
    outline: none;
}

/* 체인점기준·프리미엄샵 — 일시 비노출. 복구 시 아래 규칙 삭제 */
.gallery-shops-mode__btn[data-shops-mode="chain"],
.gallery-shops-mode__btn[data-shops-mode="premium"] {
    display: none !important;
}

.gallery-shops-mode__brand-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin: 0 0 10px;
    padding: 0 2px;
    flex: 0 0 auto;
}

.gallery-shops-mode__brand-tools[hidden] {
    display: none !important;
}

/* 초성 필터 — 일시 비노출 (select 대체) */
.gallery-shops-mode__brand-cho {
    display: none !important;
}

.gallery-shops-mode__brand-cho-btn {
    appearance: none;
    box-sizing: border-box;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.gallery-shops-mode__brand-cho-btn.is-disabled,
.gallery-shops-mode__brand-cho-btn:disabled {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
    border-style: dashed;
    cursor: not-allowed;
    opacity: 1;
    pointer-events: none;
}

.gallery-shops-mode__brand-cho-btn.is-active {
    color: #6d28d9;
    background: #f5f3ff;
    border-color: #a78bfa;
    border-style: solid;
    text-decoration: none;
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25);
}

.gallery-shops-mode__brand-cho-btn:not(:disabled):not(.is-disabled):hover,
.gallery-shops-mode__brand-cho-btn:not(:disabled):not(.is-disabled):focus-visible {
    color: #6d28d9;
    background: #faf5ff;
    border-color: #c4b5fd;
    outline: none;
}

/* 브랜드 select */
.gallery-shops-mode__brand-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.gallery-shops-mode__brand-select-label {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    color: #6d28d9;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.gallery-shops-mode__brand-select-shell {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 420px;
}

.gallery-shops-mode__brand-select-shell::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid #7c3aed;
    border-bottom: 2px solid #7c3aed;
    transform: rotate(45deg);
    pointer-events: none;
    opacity: 0.85;
    transition: border-color 0.15s ease, opacity 0.15s ease;
}

.gallery-shops-mode__brand-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
    width: 100%;
    height: 36px;
    padding: 0 36px 0 14px;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    cursor: pointer;
    box-shadow:
        0 1px 2px rgba(109, 40, 217, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}

.gallery-shops-mode__brand-select:hover:not(:disabled) {
    border-color: #c4b5fd;
    background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
}

.gallery-shops-mode__brand-select:focus,
.gallery-shops-mode__brand-select:focus-visible {
    outline: none;
    border-color: #a78bfa;
    box-shadow:
        0 0 0 3px rgba(167, 139, 250, 0.28),
        0 1px 2px rgba(109, 40, 217, 0.08);
}

.gallery-shops-mode__brand-select:disabled,
.gallery-shops-mode__brand-select.is-pending {
    color: #94a3b8;
    cursor: wait;
    opacity: 0.85;
}

.gallery-shops-mode__brand-select-shell:has(.gallery-shops-mode__brand-select:disabled)::after,
.gallery-shops-mode__brand-select-shell:has(.gallery-shops-mode__brand-select.is-pending)::after {
    opacity: 0.4;
}

.gallery-shops-mode__brand-select option {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    background: #fff;
}

@media (max-width: 900px) {
    .gallery-shops-mode {
        margin: 6px 0 8px;
        gap: 6px;
    }

    .gallery-shops-mode__btn {
        font-size: 14px;
        padding: 5px 10px;
    }

    .gallery-shops-mode__brand-tools {
        margin-bottom: 8px;
    }

    .gallery-shops-mode__brand-select-wrap {
        flex: 1 1 100%;
    }

    .gallery-shops-mode__brand-select-shell {
        max-width: none;
    }

    .gallery-shops-mode__brand-select {
        height: 36px;
        font-size: 14px;
    }
}

/* 브랜드·체인·PS 목록 — 예약 버튼 (글씨 크기만큼, 좌측 정렬) */
.gallery-shop-naver-reserve,
[class*="__shop-naver-reserve"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    box-sizing: border-box;
    width: auto;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid #c4b5fd;
    border-radius: 8px;
    background: #f5f3ff;
    color: #7c3aed;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.gallery-shop-naver-reserve:hover,
.gallery-shop-naver-reserve:focus-visible,
[class*="__shop-naver-reserve"]:hover,
[class*="__shop-naver-reserve"]:focus-visible {
    border-color: #a78bfa;
    background: #ede9fe;
    color: #6d28d9;
    outline: none;
}
