/* 갤러리(이미지로 보기) — 이용가능 헤어샵 제목 + 등록 버튼 (공통)
 * 관리자: 3버튼 / 일반: 2버튼(--user)
 * 모바일 기준: 최소 360px ~ 430px */

.face-shape-gallery__shops-head.map-auth-gallery-reg-head,
.hair-rank-gallery__shops-head.map-auth-gallery-reg-head,
.hair-trend-gallery__shops-head.map-auth-gallery-reg-head,
.celeb-hair-gallery__shops-head.map-auth-gallery-reg-head {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px 6px;
    justify-items: stretch;
    align-items: stretch;
}

/* 일반 사용자 — 업체 / 디자이너 2버튼 */
.face-shape-gallery__shops-head.map-auth-gallery-reg-head--user,
.hair-rank-gallery__shops-head.map-auth-gallery-reg-head--user,
.hair-trend-gallery__shops-head.map-auth-gallery-reg-head--user,
.celeb-hair-gallery__shops-head.map-auth-gallery-reg-head--user {
    grid-template-columns: 1fr 1fr;
}

.map-auth-gallery-reg-head--user .map-auth-gallery-reg-btn--shop {
    grid-column: 1;
    grid-row: 2;
}

.map-auth-gallery-reg-head--user .map-auth-gallery-reg-btn--designer {
    grid-column: 2;
    grid-row: 2;
}

.map-auth-gallery-reg-head__center {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.map-auth-gallery-reg-btn {
    width: 100%;
    margin: 0;
    padding: 10px 4px;
    border: 1px solid #d8ccf5;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff 0%, #faf8ff 100%);
    color: #5b21b6;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    word-break: keep-all;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(91, 33, 182, 0.06);
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.map-auth-gallery-reg-btn--shop {
    grid-column: 1;
    grid-row: 2;
}

.map-auth-gallery-reg-btn--designer {
    grid-column: 2;
    grid-row: 2;
}

.map-auth-gallery-reg-btn--brand {
    grid-column: 3;
    grid-row: 2;
}

.map-auth-gallery-reg-btn:hover,
.map-auth-gallery-reg-btn:focus-visible {
    background: #f5f3ff;
    border-color: #a78bfa;
    color: #4c1d95;
    box-shadow: 0 2px 8px rgba(91, 33, 182, 0.10);
    outline: none;
}

.map-auth-gallery-reg-btn__label {
    display: block;
}

.map-auth-gallery-reg-btn__label--short {
    display: none;
}

/* 좁은 화면: 디자이너만 짧은 문구. 업체는 「업체 신규 등록」 전체 유지 */
@media (max-width: 480px) {
    .face-shape-gallery__shops-head.map-auth-gallery-reg-head,
    .hair-rank-gallery__shops-head.map-auth-gallery-reg-head,
    .hair-trend-gallery__shops-head.map-auth-gallery-reg-head,
    .celeb-hair-gallery__shops-head.map-auth-gallery-reg-head {
        gap: 10px 5px;
    }

    .map-auth-gallery-reg-btn {
        padding: 8px 3px;
        min-height: 48px;
        font-size: 14px;
    }

    .map-auth-gallery-reg-btn--designer .map-auth-gallery-reg-btn__label--full {
        display: none;
    }

    .map-auth-gallery-reg-btn--designer .map-auth-gallery-reg-btn__label--short {
        display: block;
    }
}
