/* 수신자 부고장(m write_share_detail) [공유하기] 시트 - 시안 「바텀시트 · 부고 공유」 6561:7579(복사 전) · 6561:7578(복사 후).
   m 에만 있는 파일이다(t 완성 화면에는 이 시트가 없다). cjb-ui.css · cjb-bugo.css 뒤에 싣는다 - 틀(.cjb-sheet)과 라벨 · 앱 타일 부품(.cjb-bugo-sheet__*)은 그 파일 것을,
   두 입력칸은 공용 fstd-input.css(.fstd-input - 테두리 · 높이 · 글자 · 포커스 틸 테두리 + 링) 것을 쓰고 이 시트만 다른 값을 여기서 덮는다. p_common.css 가 글자 요소에 글꼴 · 14px · #494949 를 바로 걸어 글자를 담는 요소마다 값을 직접 둔다(cjb-bugo.css 와 같은 이유). */

/* 「부고장 제목 수정하기」 라벨 자간 -0.32(I6561:7126;16871:16217;16859:6127) - 「링크 복사하기」 라벨(-0.24)과 시안 값이 다르다 */
.cjb-bugo-sheet__label.cjb-bugo-share__title-label {
    letter-spacing: -0.32px;
}
/* 제목 칸 - 제목(값 · 다 지웠을 때의 placeholder)이 길면 말줄임(시안 6561:7126 text-ellipsis). 입력 중에는 브라우저가 말줄임을 풀고 커서 쪽으로 넘긴다 */
.cjb-bugo-share__title-input {
    text-overflow: ellipsis;
}

/* ---------- 링크 복사하기(Input-field/case-common · case=Code, button=on) ---------- */

/* 라벨 24 + 8 + 칸 40 + 8 + 안내 18 = 98 - 안내가 없을 때도 자리를 둔다(시안 복사 전 98). 복사해도 아래가 밀리지 않는다 */
.cjb-bugo-share__link-row {
    display: flex;
    gap: 8px;
}

/* TextField 40(.fstd-input--md) - 읽기 전용 링크. 복사 전에는 옅은 글자(input/value/placeholder), 복사하면 진한 글자(input/value/completed).
   글자색은 input.fstd-input(0,1,1)을 이겨야 해서 시트로 한 단계 좁힌다(0,2,1) */
.cjb-bugo-share input.cjb-bugo-share__link {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--fstd-input-placeholder);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    /* 복사가 안 되면 길게 눌러 직접 고르게 안내한다 - common.css 의 html { user-select: none } 을 푼다 */
    -webkit-user-select: text;
    user-select: text;
}
.cjb-bugo-share__link-field.is-copied .cjb-bugo-share__link {
    color: var(--cjb-fg-default);      /* input/value/completed #242729 */
}

/* [복사] - Button/Basic Medium 40, neutral solid(시안 bg/hover #555a5d). 복사하면 500ms 동안 더블 체크(bg/pressed #191a1a, 좌우 21) */
.cjb-bugo-sheet .fstd-button.cjb-bugo-share__copy {
    flex: none;
    padding: 0 14px;
    border: 0;                         /* fstd-button 의 투명 테두리 1 을 빼야 복사 후 폭이 시안 56(21 + 14 + 21) */
    background-color: #555a5d;         /* button/neutral/solid/bg/hover */
    color: #fff;
    font-family: var(--cjb-bugo-font-medium);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.24px;
}
.cjb-bugo-sheet .fstd-button.cjb-bugo-share__copy.is-done {
    padding: 0 21px;
    background-color: var(--fstd-fg-heavy);  /* button/neutral/solid/bg/pressed #191a1a */
}
/* p_common.css 가 span 에 글꼴 · 색(#494949)을 바로 건다 - 버튼 값을 그대로 받게 한다 */
.cjb-bugo-share__copy-label {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
}
.cjb-bugo-share__copy-done {
    display: none;
    width: 14px;
    height: 14px;
}
.cjb-bugo-share__copy.is-done .cjb-bugo-share__copy-label {
    display: none;
}
.cjb-bugo-share__copy.is-done .cjb-bugo-share__copy-done {
    display: block;
}

/* 「링크가 복사 되었어요」 - HelperText KR/Label/Regular/4(input/helper-text/default). 비어 있어도 한 줄 높이를 둔다 */
.cjb-bugo-sheet__help.cjb-bugo-share__help {
    min-height: 18px;
    color: var(--fstd-neutral-label);
}

/* ---------- 문자 · 카카오톡 · 부고 내용 복사(앱 목록 6561:7074) - 타일 · 이름 줄은 cjb-bugo.css 의 앱 타일 ---------- */

/* KR/Body/Regular/4/Reading 14/24 - 시안 글자 상자 높이 22 */
.cjb-bugo-share__apps .cjb-bugo-sheet__app-name {
    height: 22px;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: -0.21px;
}

.cjb-bugo-share__icon {
    border-radius: 12px;
}

.cjb-bugo-share__icon img {
    width: 40px;
    height: 40px;
}
/* 카카오톡 - 노란 바탕(모서리는 위 공통 12) 위 말풍선 40 × 36.75(6561:7080) */
.cjb-bugo-share__icon--kakao {
    background-color: #fbda05;
}
.cjb-bugo-share__icon--kakao img {
    height: 36.75px;
}
/* 부고 내용 복사 - 시안은 Files 아이콘을 좌우로 뒤집어 놓았다(6561:7119) */
.cjb-bugo-share__icon--copy img {
    transform: scaleX(-1);
}

/* ---------- 바텀시트 배치(744 미만, 6561:7579 375 × 460) ---------- */
/* 손잡이 24 → 8 → 제목 줄 40(위 8 · 제목과 X 가운데) → 8 → 본문 위 20 → 링크 98 → 24 → 앱 110 → 32 → 제목 칸 80 → 16.
   머리 · X 는 cjb-ui 공용 값(X 32 · 오른쪽 10)과 같다 - cjb-bugo.css 가 다른 시트에 건 X 28 · 위 맞춤을 이 시트에서만 되돌린다 */
@media (max-width: 743px) { /* @bp:744 */
    .cjb-bugo-share .cjb-sheet__panel {
        border-radius: 16px 16px 0 0;
    }

    .cjb-bugo-share .cjb-sheet__head {
        align-items: center;
        padding: 16px 10px 0 16px;
    }
    .cjb-bugo-share .cjb-sheet__close {
        width: 32px;
        height: 32px;
        padding: 6px;
    }
    .cjb-bugo-share .cjb-sheet__close::before {
        top: -6px;
        right: -6px;
        bottom: -6px;
        left: -6px;
    }

    .cjb-bugo-sheet__body.cjb-bugo-share__body {
        gap: 0;
        padding: 28px 16px 16px;
    }

    /* 앱 목록은 본문보다 좌우 16 안쪽(6561:7073 안쪽 16) */
    .cjb-bugo-share__apps {
        margin: 24px 16px 32px;
    }
}

/* 744 이상 센터 모달 - 머리 · 본문 간격은 다른 새 시트와 같은 cjb-bugo.css PC 값(본문 사이 24). 앱 목록만 좌우 16 안쪽 */
@media (min-width: 744px) { /* @bp:744 */
    .cjb-bugo-share__apps {
        margin: 0 16px;
    }
}
