/*
|--------------------------------------------------------------------------
| HELIUMGAS DIRECT LETTER VIEW
|--------------------------------------------------------------------------
| 직접 편지보기 전용 CSS
| 기존 실험/중복 규칙 전체 정리 완료
*/

/* DIRECT_LETTER_SHARE_MENU_START */

/* 화면 터치 시 나타나는 공유하기 버튼 하나 */
.hg-letter-primary-control[hidden] {
    display: none !important;
}

.hg-letter-primary-control {
    position: fixed;
    z-index: 10000;

    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: auto;

    width: 30px;
    height: 30px;

    margin: 0;
    padding: 0;

    transform: none;
}

.hg-letter-primary-control button {
    width: 30px;
    height: 30px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #ded6d1;
    border-radius: 999px;

    background: rgba(255,255,255,.94);
    color: #625955;

    box-shadow: 0 2px 8px rgba(60,51,51,.08);

    cursor: pointer;
}

.hg-letter-primary-control button svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* 공유하기 클릭 후 나타나는 3개 메뉴 */
.hg-letter-share[hidden] {
    display: none !important;
}

.hg-letter-share {
    position: fixed;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 10021;

    width: min(608px, calc(100% - 24px));

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;

    padding: 6px;

    background: rgba(255,255,255,.96);
    border: 1px solid #e4ddd8;
    border-radius: 12px;

    box-shadow: 0 6px 20px rgba(60,51,51,.12);
}

.hg-letter-share button,
.hg-letter-share a {
    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #ddd4ce;
    border-radius: 8px;

    background: #fff;
    color: #3c3333;

    font: inherit;
    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
    cursor: pointer;
}

.hg-letter-share [data-letter-kakao] {
    background: #fee500;
    border-color: #fee500;
    color: #191919;
}

/* DIRECT_LETTER_SHARE_MENU_END */