/* ==========================================================================
   부고장 게시판 스킨 스타일시트
   skin/board/funeral/style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS 변수
   -------------------------------------------------------------------------- */
:root {
    --funeral-primary: #33424c;
    --funeral-primary-light: #465964;
    --funeral-secondary: #7a8077;
    --funeral-accent: #6b5846;
    --funeral-bg: #f3efe9;
    --funeral-card-bg: #fffdfa;
    --funeral-border: #d9d1c7;
    --funeral-border-light: #ece5dc;
    --funeral-text: #2a241f;
    --funeral-text-light: #5f5750;
    --funeral-text-muted: #8b8074;
    --funeral-danger: #c0392b;
    --funeral-danger-light: #e74c3c;
    --funeral-success: #27ae60;
    --funeral-white: #ffffff;
    --funeral-black: #1a1a1a;
    --funeral-shadow: 0 12px 28px rgba(32, 24, 18, 0.06);
    --funeral-shadow-lg: 0 18px 42px rgba(32, 24, 18, 0.1);
    --funeral-radius: 10px;
    --funeral-radius-sm: 6px;
    --funeral-radius-lg: 20px;
    --funeral-font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --funeral-font-serif: 'Noto Serif KR', 'Batang', Georgia, serif;
    --funeral-transition: all 0.2s ease;
    --funeral-max-width: 1200px;
}

/* --------------------------------------------------------------------------
   2. 공통 레이아웃
   -------------------------------------------------------------------------- */
/* 그누보드 레이아웃 강제 확장: 사이드바 숨기고 컨테이너 전폭 사용 */
#aside {
    display: none !important;
}

/* GnuBoard 전역 컨테이너 폭 오버라이드 */
body #wrapper {
    min-width: 0 !important;
    width: 100% !important;
}

body #container_wr {
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    padding: 0 20px !important;
}

body #container_wr #container {
    width: 100% !important;
    max-width: 1200px !important;
    float: none !important;
    margin: 20px auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

#hd, #wrapper, #ft {
    min-width: 0 !important;
}

.funeral-view,
.funeral-list,
#funeral-write-form {
    font-family: var(--funeral-font);
    color: var(--funeral-text);
    line-height: 1.7;
    width: 100%;
    max-width: var(--funeral-max-width);
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.sound_only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   2-1. Bootstrap 5 작성 레이아웃
   -------------------------------------------------------------------------- */
.funeral-compose-shell {
    padding-bottom: 24px;
}

.funeral-compose-hero {
    border: 1px solid #dfe5eb !important;
    border-radius: 18px;
    background: #ffffff;
}

.funeral-compose-hero .card-body {
    position: relative;
}

.compose-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f4f6f8;
    border: 1px solid #dde4ea;
    color: #30465b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.compose-title {
    margin: 0 0 8px;
    font-family: var(--funeral-font);
    font-size: clamp(24px, 2.4vw, 30px);
    line-height: 1.25;
    color: #1d2b39;
}

.compose-description {
    max-width: 760px;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #667788;
    word-break: keep-all;
}

.compose-badges {
    display: none;
}

.compose-badges .badge {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.compose-badges .text-bg-light {
    background: rgba(255, 255, 255, 0.78) !important;
    color: #243648 !important;
}

.funeral-bs5 .funeral-section.funeral-card-section {
    margin-bottom: 0;
    padding: 22px;
    border: 1px solid #dfe5eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(23, 35, 49, 0.04) !important;
}

.funeral-bs5 .funeral-section.funeral-card-section h3 {
    margin: 0 0 16px;
    padding: 0;
    border: none;
    font-size: 17px;
    color: #182634;
}

.funeral-bs5 .form-row {
    margin-bottom: 16px;
}

.funeral-bs5 .form-row:last-child {
    margin-bottom: 0;
}

.funeral-bs5 .form-row label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #1d2b39;
}

.funeral-bs5 .form-input,
.funeral-bs5 .form-select,
.funeral-bs5 .form-textarea {
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #ced6de;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: none;
}

.funeral-bs5 .form-textarea {
    min-height: 120px;
}

.funeral-bs5 .form-input:focus,
.funeral-bs5 .form-select:focus,
.funeral-bs5 .form-textarea:focus {
    border-color: #223648;
    box-shadow: 0 0 0 4px rgba(34, 54, 72, 0.1);
}

.funeral-bs5 .photo-upload-area,
.funeral-bs5 .mourner-account,
.funeral-bs5 .greeting-textarea-wrap {
    background: #f8fafb;
    border: 1px solid #e3e8ed;
    border-radius: 14px;
    padding: 14px;
}

.funeral-bs5 .radio-group {
    gap: 8px;
    flex-wrap: wrap;
}

.funeral-bs5 .radio-option {
    margin: 0;
    position: relative;
    display: block;
}

.funeral-bs5 .radio-option span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    width: 100%;
    padding: 9px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #d6dde5;
    color: #223648;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.funeral-bs5 .radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
    margin: 0;
}

.funeral-bs5 .radio-option input[type="radio"]:checked + span {
    background: #1f2f3d;
    border-color: #1f2f3d;
    color: #ffffff;
}

.funeral-bs5 .radio-option input[type="radio"]:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(31, 47, 61, 0.12);
}

.funeral-bs5 .account-fields .form-select-bank {
    flex: 0 0 150px;
    width: 150px;
    min-width: 150px;
    min-height: 40px;
    font-size: 13px;
}

.funeral-bs5 .transport-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.funeral-bs5 .transport-field {
    padding: 14px;
    border-radius: 14px;
    background: #f8fafb;
    border: 1px solid #e3e8ed;
}

.funeral-bs5 .transport-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #55697c;
}

.funeral-bs5 .greeting-presets,
.funeral-bs5 .thanks-presets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.funeral-bs5 .greeting-card,
.funeral-bs5 .thanks-card {
    height: 100%;
    border-radius: 14px;
    border: 1px solid #d6dde5;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.funeral-bs5 .greeting-option input[type="radio"]:checked + .greeting-card,
.funeral-bs5 .thanks-option input[type="radio"]:checked + .thanks-card {
    border-color: #223648;
    box-shadow: 0 0 0 2px rgba(34, 54, 72, 0.08);
}

.funeral-bs5 .template-selector {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.funeral-bs5 .template-choice {
    padding: 14px;
    min-height: 0;
    border-radius: 14px;
}

.funeral-submit-bar {
    border: 1px solid #dfe5eb !important;
    border-radius: 18px;
    background: #ffffff;
}

.funeral-bs5 .form-actions {
    padding: 0;
    text-align: left;
}

.submit-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #1b2a38;
}

.submit-description {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #6a7885;
}

.submit-actions {
    flex-wrap: wrap;
}

.submit-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    height: 52px;
    padding: 0 28px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: var(--funeral-transition);
    white-space: nowrap;
}

.submit-action-btn--primary {
    background: #304258;
    color: #fff;
    border-color: #304258;
}

.submit-action-btn--primary:hover {
    background: #243447;
    border-color: #243447;
    color: #fff;
}

.submit-action-btn--secondary {
    background: #fff;
    color: #5a6876;
    border-color: #cfd7df;
}

.submit-action-btn--secondary:hover {
    background: #f7f9fb;
    color: #243447;
    border-color: #b9c5d1;
}

/* 섹션 */
.funeral-section {
    background: var(--funeral-card-bg);
    border: 1px solid var(--funeral-border);
    border-radius: var(--funeral-radius);
    padding: 24px;
    margin-bottom: 20px;
}

.funeral-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--funeral-primary);
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--funeral-primary);
}

.funeral-section h3 .form-hint {
    font-size: 13px;
    font-weight: 400;
    color: var(--funeral-text-muted);
}

/* --------------------------------------------------------------------------
   3. 글쓰기 폼 스타일
   -------------------------------------------------------------------------- */
.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--funeral-text);
    margin-bottom: 6px;
}

.form-row label .required {
    color: var(--funeral-danger);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--funeral-border);
    border-radius: var(--funeral-radius-sm);
    font-size: 14px;
    font-family: var(--funeral-font);
    color: var(--funeral-text);
    background: var(--funeral-white);
    transition: var(--funeral-transition);
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--funeral-primary);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-input-small {
    width: 120px;
}

.form-suffix {
    font-size: 14px;
    color: var(--funeral-text-light);
    margin-left: 4px;
}

.form-row-inline {
    display: flex;
    gap: 16px;
}

.form-row-inline > div {
    flex: 1;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* 상주 행 (계좌 통합) */
.mourner-row {
    border: 1px solid var(--funeral-border, #e0e0e0);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.mourner-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.mourner-info .form-input {
    flex: 0 0 200px;
}

.mourner-info .form-input-phone {
    flex: 0 0 170px;
}

.mourner-info .form-select {
    flex: 0 0 160px;
    width: 160px;
}

.mourner-account {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
}

.account-toggle {
    font-size: 0.9em;
    color: var(--funeral-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.account-toggle input[type="checkbox"] {
    margin: 0;
}

.account-fields {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: nowrap;
}

.account-fields .form-select-bank {
    flex: 0 0 150px;
    width: 150px;
    min-width: 150px;
}

.account-fields .form-input {
    flex: 1;
    min-width: 80px;
}

.account-fields .form-input-small {
    flex: 0 0 120px;
}

.bereavement-preview {
    font-size: 12px;
    color: var(--funeral-accent);
    min-width: 60px;
}

.btn-remove-mourner {
    padding: 8px 14px;
    background: var(--funeral-white);
    border: 1px solid var(--funeral-danger);
    color: var(--funeral-danger);
    border-radius: var(--funeral-radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: var(--funeral-transition);
    white-space: nowrap;
}

.btn-remove-mourner:hover {
    background: var(--funeral-danger);
    color: var(--funeral-white);
}

.btn-add {
    display: inline-block;
    padding: 8px 16px;
    background: var(--funeral-bg);
    border: 1px dashed var(--funeral-border);
    border-radius: var(--funeral-radius-sm);
    color: var(--funeral-text-light);
    cursor: pointer;
    font-size: 13px;
    transition: var(--funeral-transition);
}

.btn-add:hover {
    border-color: var(--funeral-primary);
    color: var(--funeral-primary);
    background: var(--funeral-white);
}

/* 고인 사진 업로드 */
.photo-upload-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.photo-preview-wrap {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
}
.photo-preview-img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--funeral-border);
}
.form-input-file {
    padding: 8px 0;
}
.btn-remove-photo {
    padding: 4px 10px;
    background: var(--funeral-danger, #c0392b);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

/* 뷰 - 고인 사진 */
.funeral-photo {
    text-align: center;
    margin-bottom: 20px;
}
.funeral-photo img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--funeral-border);
}

/* 격식형 사진 */
.funeral-photo-formal {
    margin-bottom: 16px;
}
.funeral-photo-formal img {
    border: 3px double var(--funeral-primary);
    border-radius: 0;
}

/* 모던형 사진 */
.funeral-photo-modern {
    margin-bottom: 12px;
}
.funeral-photo-modern img {
    width: 130px;
    height: 170px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 제출 버튼 */
.form-actions {
    text-align: center;
    padding: 24px 0;
}

.btn-submit {
    display: inline-block;
    padding: 14px 48px;
    background: var(--funeral-primary);
    color: var(--funeral-white);
    border: none;
    border-radius: var(--funeral-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--funeral-transition);
    font-family: var(--funeral-font);
}

.btn-submit:hover {
    background: var(--funeral-primary-light);
    box-shadow: var(--funeral-shadow-lg);
}

.btn-cancel {
    display: inline-block;
    padding: 14px 32px;
    margin-left: 12px;
    background: var(--funeral-white);
    color: var(--funeral-text-light);
    border: 1px solid var(--funeral-border);
    border-radius: var(--funeral-radius);
    font-size: 16px;
    text-decoration: none;
    transition: var(--funeral-transition);
}

.btn-cancel:hover {
    border-color: var(--funeral-text-light);
    color: var(--funeral-text);
}

/* --------------------------------------------------------------------------
   4. 템플릿 선택기 스타일
   -------------------------------------------------------------------------- */
.template-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.template-option {
    display: block;
    min-width: 0;
    cursor: pointer;
}

.template-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.template-choice {
    --template-accent: #5d4a34;
    --template-accent-soft: rgba(93, 74, 52, 0.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid #d4dbe3;
    border-radius: 14px;
    background: #ffffff;
    color: #1d2b39;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.template-choice::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--template-accent);
    box-shadow: 0 0 0 5px var(--template-accent-soft);
    flex-shrink: 0;
}

.template-choice strong {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

.template-choice small {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--template-accent);
}

.template-option input[type="radio"]:checked + .template-choice {
    border-color: var(--template-accent);
    background: var(--template-accent-soft);
    box-shadow: 0 0 0 2px var(--template-accent-soft);
}

.template-option input[type="radio"]:focus-visible + .template-choice {
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.12);
}

.template-choice-basic {
    --template-accent: #5d4a34;
    --template-accent-soft: rgba(93, 74, 52, 0.10);
}

.template-choice-formal {
    --template-accent: #8a6a34;
    --template-accent-soft: rgba(138, 106, 52, 0.10);
}

.template-choice-modern {
    --template-accent: #315d86;
    --template-accent-soft: rgba(49, 93, 134, 0.10);
}

.template-choice-warm {
    --template-accent: #b07b43;
    --template-accent-soft: rgba(176, 123, 67, 0.10);
}

.template-choice-sky {
    --template-accent: #3b83bf;
    --template-accent-soft: rgba(59, 131, 191, 0.10);
}

.template-choice-floral {
    --template-accent: #b06c62;
    --template-accent-soft: rgba(176, 108, 98, 0.10);
}

.template-choice-photo {
    --template-accent: #9b7440;
    --template-accent-soft: rgba(155, 116, 64, 0.10);
}

.template-selector-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: #6b7b8a;
}

.template-card {
    --template-card-bg: #f5efe7;
    --template-card-bg-alt: #fffdf9;
    --template-card-ink: #241d18;
    --template-card-muted: #70675f;
    --template-card-border: rgba(57, 44, 32, 0.12);
    --template-card-accent: #7b5d3b;
    --template-card-accent-soft: rgba(123, 93, 59, 0.12);
    --template-card-grid: rgba(255, 255, 255, 0.72);
    position: relative;
    display: grid;
    gap: 14px;
    min-height: 270px;
    padding: 18px;
    border: 1px solid var(--template-card-border);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
        linear-gradient(145deg, var(--template-card-bg-alt), var(--template-card-bg));
    box-shadow: 0 18px 38px rgba(20, 15, 10, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    text-align: left;
    overflow: hidden;
}

.template-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.48), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 52%);
    pointer-events: none;
}

.template-card-top,
.template-card > strong,
.template-card > small,
.template-card > p,
.template-preview {
    position: relative;
    z-index: 1;
}

.template-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.template-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--template-card-accent-soft);
    color: var(--template-card-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.template-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.68);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.template-check::before {
    content: '';
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--template-card-accent);
    transform: scale(0.25);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.template-option input[type="radio"]:checked + .template-card {
    border-color: rgba(0, 0, 0, 0.02);
    box-shadow: 0 24px 52px rgba(20, 15, 10, 0.14);
    transform: translateY(-4px);
}

.template-option input[type="radio"]:checked + .template-card .template-check::before {
    transform: scale(1);
    opacity: 1;
}

.template-option input[type="radio"]:focus-visible + .template-card {
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.12), 0 22px 44px rgba(20, 15, 10, 0.12);
}

.template-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(20, 15, 10, 0.12);
}

.template-preview {
    position: relative;
    min-height: 130px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    border-radius: 20px;
    border: 1px solid var(--template-card-border);
    background: linear-gradient(160deg, var(--template-card-bg-alt), var(--template-card-bg));
    overflow: hidden;
}

.template-preview::before {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.15) 72%),
        var(--template-card-accent-soft);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transform: rotate(8deg);
}

.template-preview::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 42%;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
    pointer-events: none;
}

.template-preview-kicker,
.template-preview-heading,
.template-preview-grid {
    position: relative;
    z-index: 1;
}

.template-preview-kicker {
    width: 68px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.template-preview-heading {
    width: 78%;
    height: 18px;
    border-radius: 999px;
    background: var(--template-card-accent);
    opacity: 0.9;
}

.template-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.template-preview-grid span {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: var(--template-card-grid);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.template-preview-grid span:nth-child(1) {
    grid-column: span 2;
    width: 88%;
}

.template-preview-grid span:nth-child(4) {
    width: 62%;
}

.template-card-title {
    display: block;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--template-card-ink);
}

.template-card-subtitle {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--template-card-accent);
    margin-top: -6px;
}

.template-card-copy {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--template-card-muted);
}

.template-card-basic {
    --template-card-bg: #efe7de;
    --template-card-bg-alt: #fffdf9;
    --template-card-ink: #221c17;
    --template-card-muted: #685f57;
    --template-card-border: rgba(54, 41, 27, 0.12);
    --template-card-accent: #5d4a34;
    --template-card-accent-soft: rgba(93, 74, 52, 0.12);
    --template-card-grid: rgba(255, 255, 255, 0.78);
}

.template-card-formal {
    --template-card-bg: #f3ead9;
    --template-card-bg-alt: #fffaf0;
    --template-card-ink: #291e15;
    --template-card-muted: #75614a;
    --template-card-border: rgba(138, 106, 52, 0.16);
    --template-card-accent: #8a6a34;
    --template-card-accent-soft: rgba(138, 106, 52, 0.14);
    --template-card-grid: rgba(255, 249, 237, 0.76);
}

.template-card-modern {
    --template-card-bg: #17212d;
    --template-card-bg-alt: #263342;
    --template-card-ink: #f4f7fb;
    --template-card-muted: #b2bfcb;
    --template-card-border: rgba(145, 185, 222, 0.16);
    --template-card-accent: #8ec6ff;
    --template-card-accent-soft: rgba(142, 198, 255, 0.14);
    --template-card-grid: rgba(255, 255, 255, 0.18);
}

.template-card-warm {
    --template-card-bg: #f5ede3;
    --template-card-bg-alt: #fff9f2;
    --template-card-ink: #312720;
    --template-card-muted: #7e6b5d;
    --template-card-border: rgba(176, 123, 67, 0.16);
    --template-card-accent: #b07b43;
    --template-card-accent-soft: rgba(176, 123, 67, 0.14);
    --template-card-grid: rgba(255, 255, 255, 0.76);
}

.template-card-sky {
    --template-card-bg: #e5f1fa;
    --template-card-bg-alt: #fbfeff;
    --template-card-ink: #183c58;
    --template-card-muted: #5f7c95;
    --template-card-border: rgba(59, 131, 191, 0.15);
    --template-card-accent: #3b83bf;
    --template-card-accent-soft: rgba(59, 131, 191, 0.13);
    --template-card-grid: rgba(255, 255, 255, 0.82);
}

.template-card-floral {
    --template-card-bg: #f8ece8;
    --template-card-bg-alt: #fffaf7;
    --template-card-ink: #422d28;
    --template-card-muted: #87665d;
    --template-card-border: rgba(176, 108, 98, 0.16);
    --template-card-accent: #b06c62;
    --template-card-accent-soft: rgba(176, 108, 98, 0.14);
    --template-card-grid: rgba(255, 255, 255, 0.78);
}

.template-card-photo {
    --template-card-bg: #1b1b1b;
    --template-card-bg-alt: #353535;
    --template-card-ink: #f7f2ee;
    --template-card-muted: #b5aea8;
    --template-card-border: rgba(217, 178, 114, 0.2);
    --template-card-accent: #d9b272;
    --template-card-accent-soft: rgba(217, 178, 114, 0.16);
    --template-card-grid: rgba(255, 255, 255, 0.2);
}

.template-card-formal .template-card-title,
.template-card-formal .template-card-subtitle {
    font-family: var(--funeral-font-serif);
}

.template-card-modern .template-preview::before,
.template-card-photo .template-preview::before {
    border-color: rgba(255, 255, 255, 0.14);
}

/* --------------------------------------------------------------------------
   5. 뷰 공통 스타일
   -------------------------------------------------------------------------- */
.funeral-view {
    padding-top: 20px;
    padding-bottom: 40px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.82), transparent 36%),
        linear-gradient(180deg, #f5f1eb 0%, #efe8df 100%);
    border-radius: 28px;
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.funeral-view--intro-pending {
    opacity: 0.22;
    transform: translateY(22px) scale(0.985);
    filter: blur(8px);
}

.funeral-view--intro-pending.is-intro-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

.funeral-template {
    background: var(--funeral-card-bg);
    border: 1px solid var(--funeral-border);
    border-radius: var(--funeral-radius-lg);
    overflow: hidden;
    box-shadow: var(--funeral-shadow);
}

.funeral-template.memorial-sheet {
    --sheet-bg: #efe9e1;
    --sheet-bg-alt: #fffcf8;
    --sheet-ink: #26201b;
    --sheet-muted: #70665d;
    --sheet-accent: #645240;
    --sheet-accent-soft: rgba(100, 82, 64, 0.09);
    --sheet-panel-bg: rgba(255, 253, 249, 0.86);
    --sheet-panel-border: rgba(74, 58, 44, 0.12);
    --sheet-line: rgba(74, 58, 44, 0.11);
    --sheet-aura-one: rgba(255, 255, 255, 0.64);
    --sheet-aura-two: rgba(120, 102, 81, 0.08);
    --sheet-shadow: 0 24px 54px rgba(30, 22, 15, 0.12);
    background: transparent;
    border: none;
    border-radius: 26px;
    box-shadow: var(--sheet-shadow);
    overflow: visible;
}

body.funeral-intro-open {
    overflow: hidden;
}

.funeral-intro {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.72s ease, visibility 0.72s ease;
    animation: funeralIntroFadeIn 0.48s ease both;
}

.funeral-intro.is-dismissed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.funeral-intro-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 22, 32, 0.56);
    backdrop-filter: blur(18px);
    animation: funeralIntroBackdropIn 0.64s ease both;
}

.funeral-intro-card {
    position: relative;
    width: min(100%, 640px);
    padding: 38px 34px 30px;
    border-radius: 32px;
    background: rgba(255, 251, 245, 0.9);
    border: 1px solid rgba(75, 58, 39, 0.14);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22);
    text-align: center;
    animation: funeralIntroCardIn 0.9s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.funeral-intro-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(93, 74, 52, 0.1);
    color: #70563b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.funeral-intro-title {
    margin: 18px 0 16px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #221c17;
}

.funeral-intro-message {
    margin: 0;
    font-size: 18px;
    line-height: 1.9;
    color: #4e4339;
    word-break: keep-all;
    animation: funeralIntroTextIn 1.05s ease both;
}

.funeral-intro-sender {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(93, 74, 52, 0.14);
    font-size: 14px;
    font-weight: 600;
    color: #7a6b5d;
    animation: funeralIntroTextIn 1.18s ease both;
}

.funeral-intro-button {
    margin-top: 24px;
    height: 48px;
    padding: 0 20px;
    border: none;
    border-radius: 999px;
    background: #22364b;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--funeral-font);
    cursor: pointer;
    transition: var(--funeral-transition);
}

.funeral-intro-button:hover {
    background: #2d4a68;
}

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

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

@keyframes funeralIntroCardIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.975);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes funeralIntroTextIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.funeral-intro--formal .funeral-intro-card,
.funeral-intro--sky .funeral-intro-card {
    background: rgba(249, 247, 242, 0.92);
}

.funeral-intro--modern .funeral-intro-card {
    background: rgba(252, 249, 244, 0.94);
    border-color: rgba(86, 102, 118, 0.14);
}

.funeral-intro--modern .funeral-intro-kicker {
    background: rgba(86, 102, 118, 0.09);
    color: #5c6974;
}

.funeral-intro--modern .funeral-intro-title {
    color: #25211c;
}

.funeral-intro--modern .funeral-intro-message {
    color: #564f49;
}

.funeral-intro--modern .funeral-intro-sender {
    border-top-color: rgba(86, 102, 118, 0.12);
    color: #7a7065;
}

.funeral-intro--modern .funeral-intro-button {
    background: #3c4f61;
}

.funeral-intro--modern .funeral-intro-button:hover {
    background: #4a6176;
}

.funeral-intro--floral .funeral-intro-card {
    background: rgba(255, 250, 246, 0.94);
    border-color: rgba(125, 98, 91, 0.14);
}

.memorial-sheet--basic {
    --sheet-bg: #f0ebe4;
    --sheet-bg-alt: #fffdfa;
    --sheet-ink: #26201b;
    --sheet-muted: #71675d;
    --sheet-accent: #645240;
    --sheet-accent-soft: rgba(100, 82, 64, 0.09);
    --sheet-panel-bg: rgba(255, 253, 249, 0.88);
    --sheet-panel-border: rgba(74, 58, 44, 0.12);
    --sheet-line: rgba(74, 58, 44, 0.11);
    --sheet-aura-one: rgba(255, 255, 255, 0.68);
    --sheet-aura-two: rgba(113, 97, 77, 0.08);
    --sheet-shadow: 0 24px 54px rgba(30, 22, 15, 0.12);
}

.memorial-sheet--formal {
    --sheet-bg: #f2ede6;
    --sheet-bg-alt: #fffdf9;
    --sheet-ink: #2b231c;
    --sheet-muted: #75695f;
    --sheet-accent: #6d5843;
    --sheet-accent-soft: rgba(109, 88, 67, 0.1);
    --sheet-panel-bg: rgba(255, 254, 250, 0.9);
    --sheet-panel-border: rgba(89, 70, 52, 0.13);
    --sheet-line: rgba(89, 70, 52, 0.11);
    --sheet-aura-one: rgba(255, 255, 255, 0.66);
    --sheet-aura-two: rgba(137, 118, 97, 0.07);
    --sheet-shadow: 0 24px 58px rgba(34, 24, 15, 0.12);
}

.memorial-sheet--modern {
    --sheet-bg: #edf0f1;
    --sheet-bg-alt: #fffdfb;
    --sheet-ink: #242931;
    --sheet-muted: #66707b;
    --sheet-accent: #4c6171;
    --sheet-accent-soft: rgba(76, 97, 113, 0.09);
    --sheet-panel-bg: rgba(255, 255, 255, 0.84);
    --sheet-panel-border: rgba(76, 97, 113, 0.12);
    --sheet-line: rgba(76, 97, 113, 0.1);
    --sheet-aura-one: rgba(255, 255, 255, 0.7);
    --sheet-aura-two: rgba(106, 126, 142, 0.08);
    --sheet-shadow: 0 24px 58px rgba(27, 34, 40, 0.1);
}

.memorial-sheet--warm {
    --sheet-bg: #f3ede6;
    --sheet-bg-alt: #fffdf9;
    --sheet-ink: #2d241d;
    --sheet-muted: #756a61;
    --sheet-accent: #81634b;
    --sheet-accent-soft: rgba(129, 99, 75, 0.09);
    --sheet-panel-bg: rgba(255, 253, 248, 0.88);
    --sheet-panel-border: rgba(109, 84, 62, 0.12);
    --sheet-line: rgba(109, 84, 62, 0.1);
    --sheet-aura-one: rgba(255, 255, 255, 0.66);
    --sheet-aura-two: rgba(146, 111, 77, 0.07);
    --sheet-shadow: 0 24px 56px rgba(46, 31, 16, 0.11);
}

.memorial-sheet--sky {
    --sheet-bg: #eef2f4;
    --sheet-bg-alt: #fffefd;
    --sheet-ink: #263542;
    --sheet-muted: #687681;
    --sheet-accent: #5b7182;
    --sheet-accent-soft: rgba(91, 113, 130, 0.09);
    --sheet-panel-bg: rgba(255, 255, 255, 0.86);
    --sheet-panel-border: rgba(91, 113, 130, 0.12);
    --sheet-line: rgba(91, 113, 130, 0.1);
    --sheet-aura-one: rgba(255, 255, 255, 0.7);
    --sheet-aura-two: rgba(111, 136, 154, 0.07);
    --sheet-shadow: 0 24px 56px rgba(31, 47, 58, 0.11);
}

.memorial-sheet--floral {
    --sheet-bg: #f3ece8;
    --sheet-bg-alt: #fffdf9;
    --sheet-ink: #332723;
    --sheet-muted: #786660;
    --sheet-accent: #7d625b;
    --sheet-accent-soft: rgba(125, 98, 91, 0.09);
    --sheet-panel-bg: rgba(255, 253, 250, 0.88);
    --sheet-panel-border: rgba(104, 81, 74, 0.12);
    --sheet-line: rgba(104, 81, 74, 0.1);
    --sheet-aura-one: rgba(255, 255, 255, 0.68);
    --sheet-aura-two: rgba(141, 112, 103, 0.07);
    --sheet-shadow: 0 24px 56px rgba(45, 28, 24, 0.11);
}

.memorial-sheet--photo {
    --sheet-bg: #efeae3;
    --sheet-bg-alt: #fffdf8;
    --sheet-ink: #2b241e;
    --sheet-muted: #726860;
    --sheet-accent: #76624b;
    --sheet-accent-soft: rgba(118, 98, 75, 0.1);
    --sheet-panel-bg: rgba(255, 253, 249, 0.86);
    --sheet-panel-border: rgba(87, 70, 53, 0.12);
    --sheet-line: rgba(87, 70, 53, 0.1);
    --sheet-aura-one: rgba(255, 255, 255, 0.66);
    --sheet-aura-two: rgba(129, 106, 84, 0.07);
    --sheet-shadow: 0 24px 56px rgba(33, 25, 18, 0.12);
}

.memorial-stack {
    display: grid;
    gap: 18px;
    position: relative;
    padding: 34px;
    border-radius: 26px;
    border: 1px solid var(--sheet-panel-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.3)),
        linear-gradient(180deg, var(--sheet-bg-alt), var(--sheet-bg));
    color: var(--sheet-ink);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.memorial-stack::before,
.memorial-stack::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.memorial-stack::before {
    top: -110px;
    right: -90px;
    width: 210px;
    height: 210px;
    background: var(--sheet-aura-one);
    filter: blur(26px);
}

.memorial-stack::after {
    left: -120px;
    bottom: -150px;
    width: 250px;
    height: 250px;
    background: var(--sheet-aura-two);
    filter: blur(34px);
}

.memorial-headbar,
.memorial-summary-card,
.memorial-info-grid,
.memorial-info-card {
    position: relative;
    z-index: 1;
}

.memorial-headbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--sheet-line);
}

.memorial-headcopy {
    min-width: 0;
}

.memorial-eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--sheet-accent);
    opacity: 0.8;
}

.memorial-hall {
    margin: 0;
    font-family: var(--funeral-font-serif);
    font-size: clamp(28px, 3.1vw, 36px);
    line-height: 1.2;
    color: var(--sheet-ink);
    word-break: keep-all;
}

.memorial-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.memorial-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid var(--sheet-panel-border);
    color: var(--sheet-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.memorial-tag--soft {
    background: rgba(255, 255, 255, 0.7);
    color: var(--sheet-muted);
}

.memorial-summary-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 28px 30px;
    margin-bottom: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--sheet-panel-border);
    box-shadow: 0 14px 30px rgba(33, 25, 18, 0.05);
}

.memorial-summary-meta,
.memorial-summary-status,
.memorial-summary-sub {
    margin: 0;
}

.memorial-summary-meta {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--sheet-accent);
    letter-spacing: 0.08em;
}

.memorial-summary-name {
    margin: 0;
    font-family: var(--funeral-font-serif);
    font-size: clamp(32px, 3.5vw, 38px);
    line-height: 1.2;
    color: var(--sheet-ink);
}

.memorial-summary-inline {
    margin-left: 8px;
    font-family: var(--funeral-font);
    font-size: 17px;
    font-weight: 600;
    color: var(--sheet-muted);
}

.memorial-summary-status {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--sheet-muted);
}

.memorial-summary-sub {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--sheet-muted);
}

.memorial-summary-photo {
    width: 104px;
    height: 104px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--sheet-panel-border);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.memorial-summary-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memorial-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 20px;
    margin-bottom: 0;
}

.memorial-info-card {
    padding: 24px 26px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--sheet-panel-border);
    box-shadow: 0 10px 24px rgba(33, 25, 18, 0.04);
}

.memorial-card-title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--sheet-ink);
}

.memorial-family-list,
.memorial-detail-list {
    margin: 0;
}

.memorial-family-list {
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.memorial-family-list li,
.memorial-detail-list div {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sheet-line);
}

.memorial-family-list li:last-child,
.memorial-detail-list div:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.memorial-family-list span,
.memorial-detail-list dt {
    font-size: 12px;
    font-weight: 700;
    color: var(--sheet-accent);
    letter-spacing: 0.04em;
}

.memorial-family-copy {
    min-width: 0;
}

.memorial-family-list strong,
.memorial-detail-list dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.85;
    color: var(--sheet-ink);
    word-break: keep-all;
}

.memorial-family-account {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--sheet-muted);
    word-break: break-all;
}

.memorial-family-account-text {
    min-width: 0;
}

.memorial-family-account small {
    font-size: 12px;
    color: var(--sheet-muted);
}

.memorial-location-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.memorial-location-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.memorial-route-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--sheet-line);
}

.memorial-route-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.memorial-route-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--sheet-accent);
    letter-spacing: 0.04em;
}

.memorial-route-value {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--sheet-muted);
    word-break: keep-all;
}

.memorial-location-address,
.memorial-message-copy {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    color: var(--sheet-muted);
    word-break: keep-all;
}

.memorial-location-address {
    flex: 1 1 240px;
    min-width: 0;
}

.memorial-location-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--sheet-panel-border);
    color: var(--sheet-accent);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.memorial-location-link:hover {
    color: var(--sheet-ink);
    text-decoration: none;
}

.memorial-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--sheet-panel-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--sheet-accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.memorial-copy-btn:hover {
    background: var(--sheet-accent);
    border-color: var(--sheet-accent);
    color: #ffffff;
    transform: translateY(-1px);
}

.memorial-sheet--formal .memorial-headbar,
.memorial-sheet--formal .memorial-summary-card {
    text-align: center;
}

.memorial-sheet--formal .memorial-headbar,
.memorial-sheet--sky .memorial-headbar {
    flex-direction: column;
}

.memorial-sheet--formal .memorial-tags,
.memorial-sheet--sky .memorial-tags {
    justify-content: center;
}

.memorial-sheet--formal .memorial-summary-card {
    grid-template-columns: minmax(0, 1fr);
}

.memorial-sheet--modern .memorial-summary-card,
.memorial-sheet--modern .memorial-info-card {
    background: rgba(255, 255, 255, 0.06);
}

.memorial-sheet--modern .memorial-stack {
    border-radius: 26px;
}

.memorial-sheet--sky .memorial-summary-card {
    background: rgba(255, 255, 255, 0.7);
}

.memorial-sheet--floral .memorial-stack {
    box-shadow: inset 0 0 0 1px rgba(176, 108, 98, 0.08);
}

@media screen and (max-width: 860px) {
    .funeral-intro-card {
        width: min(100%, 560px);
        padding: 32px 24px 26px;
        border-radius: 26px;
    }

    .funeral-intro-title {
        font-size: 30px;
    }

    .funeral-intro-message {
        font-size: 17px;
    }

    .memorial-stack {
        gap: 16px;
        padding: 22px 18px;
        border-radius: 24px;
    }

    .memorial-headbar,
    .memorial-summary-card,
    .memorial-info-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .memorial-headbar,
    .memorial-summary-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .memorial-summary-card {
        padding: 20px;
    }

    .memorial-summary-name {
        font-size: 30px;
    }

    .memorial-summary-inline {
        display: block;
        margin: 6px 0 0;
    }

    .memorial-summary-photo {
        width: 96px;
        height: 96px;
    }

    .memorial-info-card {
        padding: 18px 18px;
        border-radius: 20px;
    }

    .memorial-location-line {
        align-items: flex-start;
    }

    .memorial-family-list li,
    .memorial-detail-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.memorial-surface {
    position: relative;
    padding: 34px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0)),
        linear-gradient(160deg, var(--sheet-bg-alt), var(--sheet-bg));
    border: 1px solid var(--sheet-panel-border);
    color: var(--sheet-ink);
    overflow: hidden;
    isolation: isolate;
}

.memorial-surface::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(130deg, rgba(255, 255, 255, 0.12), transparent 48%),
        linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08));
    pointer-events: none;
    z-index: -1;
}

.memorial-aura {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    pointer-events: none;
    z-index: -1;
}

.memorial-aura--one {
    top: -90px;
    right: -70px;
    width: 240px;
    height: 240px;
    background: var(--sheet-aura-one);
}

.memorial-aura--two {
    left: -70px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    background: var(--sheet-aura-two);
}

.memorial-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.memorial-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--sheet-accent-soft);
    border: 1px solid var(--sheet-panel-border);
    color: var(--sheet-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.memorial-chip--soft {
    background: var(--sheet-panel-bg);
    color: var(--sheet-muted);
}

.memorial-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 28px;
    align-items: stretch;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--sheet-line);
}

.memorial-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.memorial-kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sheet-accent);
}

.memorial-heading {
    margin: 0;
    font-family: var(--funeral-font-serif);
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--sheet-ink);
}

.memorial-description {
    max-width: 560px;
    margin: 0;
    font-size: 15px;
    line-height: 1.85;
    color: var(--sheet-muted);
    word-break: keep-all;
}

.memorial-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 26px;
    background: var(--sheet-panel-bg);
    border: 1px solid var(--sheet-panel-border);
    backdrop-filter: blur(14px);
}

.memorial-portrait {
    width: 132px;
    height: 156px;
    border-radius: 28px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid var(--sheet-panel-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.memorial-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memorial-portrait.is-placeholder {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 65%),
        var(--sheet-accent-soft);
}

.memorial-placeholder {
    font-size: 42px;
    line-height: 1;
    color: var(--sheet-accent);
}

.memorial-nameblock {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.memorial-name-label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sheet-accent);
}

.memorial-name {
    margin: 0;
    font-family: var(--funeral-font-serif);
    font-size: 34px;
    line-height: 1.16;
    color: var(--sheet-ink);
}

.memorial-status,
.memorial-substatus {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--sheet-muted);
}

.memorial-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 18px;
    margin-top: 28px;
}

.memorial-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.memorial-panel,
.memorial-message {
    position: relative;
    padding: 24px;
    border-radius: 24px;
    background: var(--sheet-panel-bg);
    border: 1px solid var(--sheet-panel-border);
    backdrop-filter: blur(14px);
}

.memorial-panel-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
}

.memorial-panel-kicker {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sheet-accent);
}

.memorial-panel-head h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--sheet-ink);
}

.memorial-facts {
    margin: 0;
    display: grid;
    gap: 14px;
}

.memorial-fact {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sheet-line);
}

.memorial-fact:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.memorial-fact dt,
.memorial-fact dd {
    margin: 0;
}

.memorial-fact dt {
    font-size: 13px;
    font-weight: 700;
    color: var(--sheet-accent);
}

.memorial-fact dd {
    min-width: 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--sheet-ink);
    word-break: keep-all;
}

.memorial-fact--address dd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.memorial-fact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--sheet-accent-soft);
    border: 1px solid var(--sheet-panel-border);
    color: var(--sheet-accent);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.memorial-fact-link:hover {
    color: var(--sheet-ink);
    text-decoration: none;
}

.memorial-mourners {
    display: grid;
    gap: 12px;
}

.memorial-mourner-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid var(--sheet-line);
}

.memorial-mourner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.memorial-mourner-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--sheet-accent);
}

.memorial-mourner-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--sheet-accent-soft);
    color: var(--sheet-muted);
    font-size: 11px;
    font-weight: 700;
}

.memorial-mourner-name {
    display: block;
    font-size: 21px;
    font-weight: 700;
    color: var(--sheet-ink);
}

.memorial-message {
    margin-top: 18px;
}

.memorial-message-body {
    margin: 0;
    font-size: 15px;
    line-height: 1.95;
    color: var(--sheet-muted);
    word-break: keep-all;
}

.memorial-sheet--formal .memorial-heading,
.memorial-sheet--formal .memorial-name {
    letter-spacing: -0.02em;
}

.memorial-sheet--basic .memorial-hero-copy {
    padding-right: 12px;
}

.memorial-sheet--basic .memorial-facts {
    gap: 16px;
}

.memorial-sheet--formal .memorial-ribbon {
    justify-content: center;
    margin-bottom: 30px;
}

.memorial-sheet--formal .memorial-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    text-align: center;
}

.memorial-sheet--formal .memorial-hero-copy {
    align-items: center;
}

.memorial-sheet--formal .memorial-description {
    max-width: 620px;
}

.memorial-sheet--formal .memorial-identity {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    max-width: 420px;
    margin: 0 auto;
    padding: 28px 24px;
    text-align: center;
}

.memorial-sheet--formal .memorial-portrait {
    width: 144px;
    height: 176px;
    border-radius: 999px 999px 30px 30px;
}

.memorial-sheet--formal .memorial-nameblock {
    align-items: center;
}

.memorial-sheet--formal .memorial-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.memorial-sheet--formal .memorial-message {
    text-align: center;
}

.memorial-sheet--formal .memorial-surface::after {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 24px;
    right: 24px;
    border: 1px solid rgba(138, 106, 52, 0.12);
    border-radius: 24px;
    pointer-events: none;
}

.memorial-sheet--modern .memorial-surface,
.memorial-sheet--photo .memorial-surface {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        linear-gradient(160deg, var(--sheet-bg-alt), var(--sheet-bg));
}

.memorial-sheet--modern .memorial-ribbon {
    justify-content: flex-end;
}

.memorial-sheet--modern .memorial-hero {
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
}

.memorial-sheet--modern .memorial-hero-copy {
    order: 2;
    padding-left: 28px;
    border-left: 1px solid var(--sheet-line);
}

.memorial-sheet--modern .memorial-identity {
    order: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
}

.memorial-sheet--modern .memorial-portrait,
.memorial-sheet--photo .memorial-portrait {
    background: rgba(255, 255, 255, 0.08);
}

.memorial-sheet--modern .memorial-portrait {
    width: 182px;
    height: 220px;
    border-radius: 34px;
}

.memorial-sheet--modern .memorial-name {
    font-size: 42px;
}

.memorial-sheet--modern .memorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.memorial-sheet--modern .memorial-grid.memorial-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.memorial-sheet--modern .memorial-panel--details {
    grid-column: 1 / -1;
}

.memorial-sheet--modern .memorial-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.memorial-sheet--modern .memorial-fact {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--sheet-panel-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.memorial-sheet--modern .memorial-mourners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.memorial-sheet--warm .memorial-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.memorial-sheet--warm .memorial-hero-copy {
    padding: 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.36);
    border: 1px solid rgba(176, 123, 67, 0.12);
}

.memorial-sheet--warm .memorial-identity {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}

.memorial-sheet--warm .memorial-portrait {
    width: 116px;
    height: 116px;
    border-radius: 50%;
}

.memorial-sheet--warm .memorial-grid {
    grid-template-columns: minmax(0, 1fr);
}

.memorial-sheet--warm .memorial-mourners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.memorial-sheet--sky .memorial-ribbon {
    justify-content: center;
}

.memorial-sheet--sky .memorial-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    text-align: center;
}

.memorial-sheet--sky .memorial-hero-copy {
    align-items: center;
}

.memorial-sheet--sky .memorial-description {
    max-width: 640px;
}

.memorial-sheet--sky .memorial-identity {
    justify-content: center;
    gap: 20px;
    max-width: 520px;
    margin: 0 auto;
}

.memorial-sheet--sky .memorial-portrait {
    width: 142px;
    height: 142px;
    border-radius: 50%;
}

.memorial-sheet--sky .memorial-nameblock {
    align-items: flex-start;
}

.memorial-sheet--sky .memorial-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
}

.memorial-sheet--sky .memorial-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.memorial-sheet--sky .memorial-fact {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--sheet-panel-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.4);
}

.memorial-sheet--floral .memorial-ribbon {
    margin-bottom: 30px;
}

.memorial-sheet--floral .memorial-surface::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(176, 108, 98, 0.12);
    border-radius: 28px;
    pointer-events: none;
}

.memorial-sheet--floral .memorial-hero {
    grid-template-columns: minmax(280px, 0.94fr) minmax(0, 1.06fr);
    gap: 32px;
    align-items: center;
}

.memorial-sheet--floral .memorial-hero-copy {
    order: 2;
    padding-left: 28px;
    border-left: 1px solid var(--sheet-line);
}

.memorial-sheet--floral .memorial-identity {
    order: 1;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.58);
}

.memorial-sheet--floral .memorial-portrait {
    width: 164px;
    height: 164px;
    border-radius: 50%;
}

.memorial-sheet--floral .memorial-nameblock {
    align-items: center;
}

.memorial-sheet--floral .memorial-grid {
    grid-template-columns: minmax(0, 1fr);
}

.memorial-sheet--floral .memorial-mourners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.memorial-sheet--floral .memorial-mourner-item {
    background: rgba(255, 255, 255, 0.42);
}

.memorial-sheet--photo .memorial-surface {
    padding-top: 84px;
}

.memorial-sheet--photo .memorial-ribbon {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    z-index: 2;
}

.memorial-sheet--photo .memorial-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.memorial-sheet--photo .memorial-hero-copy {
    order: 2;
    max-width: 720px;
}

.memorial-sheet--photo .memorial-identity {
    order: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
}

.memorial-sheet--photo .memorial-portrait {
    width: 100%;
    height: 360px;
    border-radius: 32px;
}

.memorial-sheet--photo .memorial-nameblock {
    gap: 8px;
    padding: 20px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--sheet-panel-border);
}

.memorial-sheet--photo .memorial-grid {
    grid-template-columns: minmax(0, 1fr);
}

.memorial-sheet--photo .memorial-mourners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ========================================
   Section 11: 조의금 계좌 안내 (공통 accordion)
   ======================================== */

.funeral-account-section {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.funeral-account-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 241, 234, 0.92));
    border: 1px solid #d9d0c3;
    border-radius: 16px;
    font-family: var(--funeral-font);
    font-size: 15px;
    font-weight: 600;
    color: #56493d;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.04em;
}

.funeral-account-toggle:hover {
    background: linear-gradient(180deg, #ffffff, #f7f2eb);
    border-color: #cbbda9;
}

.funeral-account-toggle.open {
    border-radius: 16px 16px 0 0;
    border-bottom: 1px dashed #d9d0c3;
}

.account-toggle-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.funeral-account-toggle.open .account-toggle-arrow {
    transform: rotate(180deg);
}

.funeral-account-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: rgba(255, 252, 247, 0.96);
    border: 1px solid #d9d0c3;
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 14px 32px rgba(30, 22, 15, 0.05);
}

.funeral-account-list.open {
    max-height: 500px;
    padding: 16px 20px;
}

.funeral-account-item {
    padding: 14px 0;
    border-bottom: 1px dashed #e9e2d8;
}

.funeral-account-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.funeral-account-item:first-child {
    padding-top: 0;
}

.account-mourner-label {
    font-family: var(--funeral-font);
    font-size: 14px;
    font-weight: 600;
    color: #51453a;
    margin-bottom: 8px;
}

.account-detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-family: var(--funeral-font);
    font-size: 14px;
    color: #5f5750;
}

.account-bank {
    font-weight: 500;
    color: #51453a;
}

.account-number {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    color: #2b241f;
    font-weight: 500;
}

.account-holder {
    color: #857a70;
    font-size: 13px;
}

.account-holder::before {
    content: "(";
}

.account-holder::after {
    content: ")";
}

.btn-copy-account-new {
    margin-left: auto;
    padding: 7px 14px;
    background: #fffdfa;
    border: 1px solid #d2c5b4;
    border-radius: 999px;
    font-size: 12px;
    font-family: var(--funeral-font);
    color: #6c5844;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-copy-account-new:hover {
    background: #6c5844;
    color: #fff;
}

/* 감사장 메시지 */
.funeral-thanks-section {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.funeral-thanks-section .thanks-header {
    text-align: center;
    margin-bottom: 20px;
}

.funeral-thanks-section .thanks-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.funeral-thanks-section .thanks-header h4 {
    font-family: var(--funeral-font-serif);
    font-size: 18px;
    font-weight: 600;
    color: #56493d;
    letter-spacing: 0.28em;
    margin: 0;
}

.funeral-thanks-section .thanks-body {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 240, 232, 0.94));
    border: 1px solid #ded5c8;
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 14px 32px rgba(31, 23, 17, 0.05);
}

.funeral-thanks-section .thanks-message {
    font-family: var(--funeral-font);
    font-size: 14px;
    line-height: 2;
    color: #4f4841;
    margin: 0 0 20px;
    word-break: keep-all;
}

.funeral-thanks-section .thanks-signature {
    font-family: var(--funeral-font-serif);
    font-size: 14px;
    color: #8a7d71;
    margin: 0;
    padding-top: 16px;
    border-top: 1px dashed #d9d0c3;
}

/* 감사장 선택 폼 */
.thanks-presets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thanks-option {
    cursor: pointer;
}

.thanks-option input[type="radio"] {
    display: none;
}

.thanks-option .thanks-card {
    border: 2px solid #e0d8c8;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.2s ease;
    background: #faf8f3;
}

.thanks-option input[type="radio"]:checked + .thanks-card {
    border-color: #8b6914;
    background: #fdf8f0;
    box-shadow: 0 0 0 1px #8b6914;
}

.thanks-option .thanks-label {
    font-weight: 600;
    font-size: 14px;
    color: #5a4e3c;
    display: block;
    margin-bottom: 4px;
}

.thanks-option .thanks-preview {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

.thanks-option input[type="radio"]:checked + .thanks-card .thanks-preview {
    color: #666;
}

/* 근조화환 보내기 */
.funeral-wreath-section {
    max-width: 600px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.funeral-wreath-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(180deg, #7f2d2d, #6e2323);
    border: none;
    border-radius: 16px;
    font-family: var(--funeral-font);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.04em;
    box-shadow: 0 14px 30px rgba(91, 25, 25, 0.18);
}

.funeral-wreath-btn:hover {
    background: linear-gradient(180deg, #8c3434, #7b2727);
    box-shadow: 0 18px 34px rgba(91, 25, 25, 0.22);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.wreath-icon {
    font-size: 22px;
}

.wreath-text {
    line-height: 1;
}

.funeral-wreath-senders {
    max-width: 760px;
    margin: 20px auto 0;
    padding: 20px 24px;
    background: rgba(255, 253, 249, 0.92);
    border: 1px solid var(--funeral-border);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(31, 23, 17, 0.05);
}

.funeral-wreath-senders h4 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: var(--funeral-primary);
}

.funeral-wreath-sender-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.funeral-wreath-sender {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(111, 35, 35, 0.06);
    border: 1px solid rgba(111, 35, 35, 0.12);
    color: var(--funeral-text);
    font-size: 14px;
    font-weight: 600;
}

/* 공유 영역 */
.funeral-share {
    max-width: 760px;
    background: var(--funeral-card-bg);
    border: 1px solid var(--funeral-border);
    border-radius: var(--funeral-radius);
    padding: 24px;
    margin: 24px auto 0;
}

.funeral-share h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--funeral-text);
    margin: 0 0 8px 0;
}

.share-note {
    margin: 0 0 18px 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--funeral-text-muted);
}

.share-url-group + .share-url-group {
    margin-top: 16px;
}

.share-url-label {
    margin: 0 0 4px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--funeral-text);
}

.share-url-helper {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: var(--funeral-text-muted);
}

.share-url-box {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.share-url-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--funeral-border);
    border-radius: var(--funeral-radius-sm);
    font-size: 13px;
    color: var(--funeral-text-light);
    background: var(--funeral-bg);
}

.share-url-input-note {
    color: var(--funeral-text-muted);
}

.btn-copy {
    padding: 10px 18px;
    background: var(--funeral-primary);
    color: var(--funeral-white);
    border: none;
    border-radius: var(--funeral-radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: var(--funeral-transition);
    white-space: nowrap;
}

.btn-copy:hover {
    background: var(--funeral-primary-light);
}

.btn-copy-secondary {
    background: var(--funeral-secondary);
}

.btn-copy-secondary:hover {
    background: #6c7a7d;
}

/* 상주별 공유 */
.share-mourner-list {
    margin: 16px 0;
}

.share-guide {
    font-size: 0.9em;
    color: var(--funeral-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.share-mourner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid var(--funeral-border);
    border-radius: 6px;
    margin-bottom: 8px;
    background: var(--funeral-bg);
}

.share-mourner-name {
    font-weight: 500;
    font-size: 0.95em;
}

.share-mourner-buttons {
    display: flex;
    gap: 6px;
}

.share-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--funeral-radius-sm);
    font-size: 0.85em;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--funeral-transition);
}

.share-sms {
    background: #3498db;
    color: white;
}

.share-sms:hover {
    background: #2980b9;
}

.share-copy-text {
    background: var(--funeral-secondary);
    color: white;
}

.share-copy-text:hover {
    background: #6c7a7d;
}

.share-kakao {
    background: #FEE500;
    color: #191919;
}

.share-kakao:hover {
    background: #FADA0A;
}

.share-buttons-global {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

/* 관리 버튼 */
.funeral-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 24px 0;
    max-width: 760px;
    margin: 20px auto 0;
}

.btn-action {
    display: inline-block;
    padding: 10px 28px;
    background: var(--funeral-white);
    color: var(--funeral-text);
    border: 1px solid var(--funeral-border);
    border-radius: var(--funeral-radius-sm);
    font-size: 14px;
    text-decoration: none;
    transition: var(--funeral-transition);
}

.btn-action:hover {
    border-color: var(--funeral-primary);
    color: var(--funeral-primary);
}

.btn-action.btn-delete {
    color: var(--funeral-danger);
    border-color: var(--funeral-danger);
}

.btn-action.btn-delete:hover {
    background: var(--funeral-danger);
    color: var(--funeral-white);
}

/* 지도 버튼 공통 */
.btn-map,
.btn-map-formal,
.btn-map-modern {
    display: inline-block;
    font-size: 12px;
    text-decoration: none;
    transition: var(--funeral-transition);
}

.btn-map {
    padding: 2px 10px;
    margin-left: 8px;
    background: var(--funeral-primary);
    color: var(--funeral-white);
    border-radius: 20px;
    font-weight: 500;
}

.btn-map:hover {
    background: var(--funeral-primary-light);
}

/* 계좌 복사 버튼 공통 */
.btn-copy-account,
.btn-copy-sm {
    padding: 4px 12px;
    background: var(--funeral-white);
    border: 1px solid var(--funeral-border);
    border-radius: var(--funeral-radius-sm);
    font-size: 12px;
    color: var(--funeral-text-light);
    cursor: pointer;
    transition: var(--funeral-transition);
    margin-left: 8px;
}

.btn-copy-account:hover,
.btn-copy-sm:hover {
    border-color: var(--funeral-primary);
    color: var(--funeral-primary);
}

/* --------------------------------------------------------------------------
   6. 기본형(basic) 템플릿 스타일 - 국화 스타일
   -------------------------------------------------------------------------- */
.funeral-basic .funeral-header {
    background: linear-gradient(170deg, #2c3e50 0%, #1a2530 100%);
    padding: 56px 36px 48px;
    text-align: center;
    position: relative;
}

.funeral-basic .basic-header-chrysanthemum {
    font-size: 44px;
    margin-bottom: 16px;
    opacity: 0.75;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(201, 169, 110, 0.3));
}

.funeral-basic .funeral-title {
    font-size: 28px;
    font-weight: 300;
    color: var(--funeral-white);
    margin: 0;
    letter-spacing: 20px;
    font-family: var(--funeral-font);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.funeral-basic .basic-header-gold-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9a96e, transparent);
    margin: 24px auto 0;
}

.funeral-basic .funeral-body {
    padding: 44px 36px 36px;
}

.funeral-basic .funeral-photo {
    text-align: center;
    margin-bottom: 24px;
}

.funeral-basic .funeral-photo img {
    width: 140px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0dcd6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.funeral-basic .funeral-main-text {
    font-size: 16px;
    text-align: center;
    color: var(--funeral-text);
    margin: 0 0 40px 0;
    line-height: 2;
    letter-spacing: 0.3px;
}

.funeral-basic .funeral-main-text strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--funeral-black);
    letter-spacing: 1px;
}

/* 기본형 - 섹션 구분 장식 */
.funeral-basic .basic-section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.funeral-basic .basic-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
}

.funeral-basic .basic-divider-icon {
    font-size: 12px;
    color: #c9a96e;
    line-height: 1;
    opacity: 0.7;
}

.funeral-basic .funeral-info {
    background: transparent;
    border-radius: 0;
    padding: 0 12px;
    margin-bottom: 36px;
}

.funeral-basic .funeral-info dl {
    margin: 0;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px 20px;
    align-items: baseline;
}

.funeral-basic .funeral-info dt {
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 8px;
    font-size: 14px;
}

.funeral-basic .funeral-info dd {
    margin: 0;
    color: var(--funeral-text);
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.2px;
}

.funeral-basic .funeral-info .btn-map {
    display: inline-block;
    padding: 3px 12px;
    margin-left: 8px;
    background: #2c3e50;
    color: var(--funeral-white);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    vertical-align: middle;
}

.funeral-basic .funeral-info .btn-map:hover {
    background: #34495e;
}

/* 기본형 - 상주 섹션 */
.funeral-basic .funeral-mourners {
    margin-bottom: 32px;
}

.funeral-basic .funeral-mourners h3 {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0dcd6;
    letter-spacing: 12px;
    text-align: center;
}

.funeral-basic .funeral-mourners ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.funeral-basic .funeral-mourners li {
    padding: 12px 0;
    border-bottom: 1px solid var(--funeral-border-light);
}

.funeral-basic .funeral-mourners li:last-child {
    border-bottom: none;
}

.funeral-basic .mourner-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.funeral-basic .mourner-title {
    display: inline-block;
    min-width: 64px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.funeral-basic .mourner-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--funeral-text);
}

.funeral-basic .mourner-bereavement {
    font-size: 13px;
    color: var(--funeral-text-muted);
}

/* 기본형 - 조문 멘트 */
.funeral-basic .mourner-condolence {
    font-size: 13px;
    color: #666;
    margin: 8px 0 10px 0;
    padding: 10px 14px;
    border-left: 3px solid #c9a96e;
    font-style: italic;
    background: linear-gradient(135deg, #faf9f7 0%, #f7f5f2 100%);
    border-radius: 0 6px 6px 0;
    line-height: 1.7;
}

/* 기본형 - 상주별 계좌 */
.funeral-basic .mourner-account-info {
    margin-top: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f3f4f6 100%);
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.funeral-basic .mourner-account-info .account-detail {
    color: #555;
    font-variant-numeric: tabular-nums;
}

.funeral-basic .mourner-account-info .btn-copy-account {
    padding: 5px 16px;
    background: var(--funeral-white);
    border: 1px solid #d0ccc6;
    border-radius: 6px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-left: auto;
}

.funeral-basic .mourner-account-info .btn-copy-account:hover {
    border-color: #2c3e50;
    color: #2c3e50;
    background: #f8f9fa;
    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.08);
}

/* 기본형 - 추가 안내 */
.funeral-basic .funeral-additional {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f7f5 0%, #f2f0ed 100%);
    border-radius: var(--funeral-radius);
    color: var(--funeral-text-light);
    font-size: 14px;
    line-height: 1.9;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* --------------------------------------------------------------------------
   7. 격식형(formal) 템플릿 스타일 - 한문 전통 스타일
   -------------------------------------------------------------------------- */
.funeral-formal {
    border: none;
    background: linear-gradient(180deg, #faf8f0 0%, #f6f3ea 100%);
}

.funeral-formal .formal-outer-frame {
    border: 3px double #5a4a2a;
    margin: 14px;
    min-height: 100%;
    position: relative;
}

.funeral-formal .formal-outer-frame::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid rgba(139, 105, 20, 0.15);
    pointer-events: none;
}

.funeral-formal .funeral-header-formal {
    padding: 56px 36px 40px;
    text-align: center;
    position: relative;
}

.funeral-formal .formal-header-ornament {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8b6914, transparent);
    margin: 0 auto 24px;
}

.funeral-formal .funeral-header-formal h2 {
    font-family: var(--funeral-font-serif);
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: 28px;
    text-indent: 28px;
}

.funeral-formal .formal-header-gold-line {
    width: 90px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b6914, transparent);
    margin: 28px auto 0;
}

.funeral-formal .funeral-body-formal {
    padding: 36px 40px 40px;
    font-family: var(--funeral-font-serif);
}

/* 격식형 - 사진 */
.funeral-formal .funeral-photo-formal {
    text-align: center;
    margin-bottom: 24px;
}

.funeral-formal .funeral-photo-formal img {
    width: 130px;
    height: 170px;
    object-fit: cover;
    border: 3px double #5a4a2a;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.funeral-formal .funeral-announce {
    font-size: 17px;
    text-align: center;
    line-height: 2.4;
    margin: 0 0 40px 0;
    color: var(--funeral-text);
    font-family: var(--funeral-font-serif);
    letter-spacing: 0.5px;
}

.funeral-formal .funeral-announce strong {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 격식형 - 장례 정보 */
.funeral-formal .funeral-details-formal {
    background: rgba(139, 105, 20, 0.02);
    border: none;
    border-top: 1px solid #c5b68a;
    border-bottom: 1px solid #c5b68a;
    border-radius: 0;
    padding: 28px 20px;
    margin-bottom: 36px;
}

.funeral-formal .formal-detail-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--funeral-text);
    font-family: var(--funeral-font-serif);
}

.funeral-formal .formal-detail-row:last-child {
    margin-bottom: 0;
}

.funeral-formal .formal-bullet {
    font-weight: 700;
    color: #333;
    min-width: 24px;
    flex-shrink: 0;
}

.funeral-formal .formal-label {
    font-weight: 600;
    color: #333;
    min-width: 56px;
    flex-shrink: 0;
    letter-spacing: 4px;
}

.funeral-formal .formal-value {
    color: var(--funeral-text);
}

.funeral-formal .formal-address-row {
    margin-top: -4px;
}

.funeral-formal .formal-address-value {
    color: var(--funeral-text-light);
    font-size: 14px;
}

.funeral-formal .btn-map-formal {
    display: inline-block;
    padding: 3px 12px;
    margin-left: 8px;
    background: #8b6914;
    color: var(--funeral-white);
    border-radius: 2px;
    font-size: 11px;
    font-family: var(--funeral-font);
    text-decoration: none;
    vertical-align: middle;
}

.funeral-formal .btn-map-formal:hover {
    opacity: 0.85;
}

/* 격식형 - 상주 섹션 */
.funeral-formal .funeral-mourners-formal {
    margin-bottom: 36px;
}

.funeral-formal .funeral-mourners-formal h3 {
    font-family: var(--funeral-font-serif);
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #c5b68a;
    letter-spacing: 14px;
    text-align: center;
    text-indent: 14px;
}

.funeral-formal .mourner-table {
    width: 100%;
    border-collapse: collapse;
}

.funeral-formal .mourner-table .mourner-main-row {
    border-bottom: 1px solid #e8e0cc;
}

.funeral-formal .mourner-table .mourner-main-row:last-child {
    border-bottom: none;
}

.funeral-formal .mourner-table td {
    padding: 14px 12px;
    font-size: 15px;
    font-family: var(--funeral-font-serif);
    vertical-align: middle;
}

.funeral-formal .mourner-title-formal {
    width: 100px;
    font-weight: 600;
    color: #8b6914;
    border-right: 1px solid #e8e0cc;
    letter-spacing: 2px;
}

.funeral-formal .mourner-name-formal {
    font-weight: 500;
    color: var(--funeral-text);
    font-size: 16px;
}

.funeral-formal .mourner-bereavement-formal {
    color: var(--funeral-text-muted);
    font-size: 13px;
    text-align: right;
    white-space: nowrap;
}

/* 격식형 - 조문 멘트 행 */
.funeral-formal .condolence-row-formal {
    border-bottom: none;
}

.funeral-formal .condolence-cell-formal {
    font-size: 13px;
    color: #666;
    padding: 4px 10px 10px 112px;
    font-style: italic;
    line-height: 1.6;
    font-family: var(--funeral-font);
}

/* 격식형 - 계좌 행 */
.funeral-formal .account-row-formal {
    border-bottom: 1px solid #e8e0cc;
}

.funeral-formal .account-cell-formal {
    padding: 6px 10px 12px 112px;
    font-size: 13px;
    color: #555;
    font-family: var(--funeral-font);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.funeral-formal .formal-account-detail {
    font-variant-numeric: tabular-nums;
}

.funeral-formal .btn-copy-sm {
    padding: 3px 12px;
    background: var(--funeral-white);
    border: 1px solid #c5b68a;
    border-radius: 2px;
    font-size: 11px;
    color: #8b6914;
    cursor: pointer;
    transition: var(--funeral-transition);
    margin-left: auto;
}

.funeral-formal .btn-copy-sm:hover {
    background: #8b6914;
    color: var(--funeral-white);
}

/* 격식형 - 추가 안내 */
.funeral-formal .funeral-additional-formal {
    margin-top: 32px;
    padding: 24px 28px;
    border: 1px dashed #c5b68a;
    border-radius: 0;
    background: rgba(139, 105, 20, 0.03);
    font-size: 14px;
    line-height: 2;
    color: var(--funeral-text-light);
    font-family: var(--funeral-font-serif);
    letter-spacing: 0.3px;
}

/* --------------------------------------------------------------------------
   8. 모던형(modern) 템플릿 스타일 - 다크 카드 스타일
   -------------------------------------------------------------------------- */
.funeral-modern {
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.funeral-modern .funeral-header-modern {
    background: linear-gradient(160deg, #141b2d 0%, #1a2744 40%, #1e3a5f 80%, #1b3352 100%);
    padding: 56px 32px 48px;
    text-align: center;
    color: var(--funeral-white);
    position: relative;
}

.funeral-modern .funeral-header-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4a574, #c99b6d);
    border-radius: 2px;
}

/* 모던 - 사진 */
.funeral-modern .funeral-photo-modern {
    margin-bottom: 16px;
}

.funeral-modern .funeral-photo-modern img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3), 0 0 40px rgba(212, 165, 116, 0.1);
}

/* 모던 - 국화 아이콘 (사진 없을 때) */
.funeral-modern .modern-chrysanthemum {
    font-size: 48px;
    margin-bottom: 14px;
    line-height: 1;
    color: #d4a574;
    filter: drop-shadow(0 2px 8px rgba(212, 165, 116, 0.3));
}

.funeral-modern .funeral-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 18px 0;
    letter-spacing: 3px;
    font-weight: 300;
}

.funeral-modern .funeral-header-modern h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: 4px;
    color: var(--funeral-white);
}

.funeral-modern .funeral-life {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    font-weight: 300;
}

/* 모던 - 카드 컨테이너 */
.funeral-modern .funeral-cards {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f5f5f8;
}

.funeral-modern .funeral-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.funeral-modern .funeral-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

/* 모던 - 카드 헤더 */
.funeral-modern .modern-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px 0;
}

.funeral-modern .card-icon {
    font-size: 22px;
    line-height: 1;
}

.funeral-modern .funeral-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.funeral-modern .card-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px 24px 24px;
}

.funeral-modern .card-row {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #f2f2f4;
}

.funeral-modern .card-row:last-of-type {
    border-bottom: none;
}

.funeral-modern .card-label {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    min-width: 44px;
    flex-shrink: 0;
    letter-spacing: 1px;
}

.funeral-modern .card-value {
    font-size: 14px;
    color: var(--funeral-text);
    line-height: 1.5;
}

/* 모던 - 지도 버튼 */
.funeral-modern .btn-map-modern {
    display: block;
    margin-top: 14px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: var(--funeral-white);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: var(--funeral-transition);
}

.funeral-modern .btn-map-modern:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(15, 52, 96, 0.3);
}

/* 모던 - 상주 */
.funeral-modern .mourner-modern-item {
    padding: 14px 0;
    border-bottom: 1px solid #f2f2f4;
}

.funeral-modern .mourner-modern-item:last-child {
    border-bottom: none;
}

.funeral-modern .mourner-modern {
    padding: 0;
    border-bottom: none;
}

.funeral-modern .mourner-title-modern {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    min-width: 52px;
}

.funeral-modern .mourner-name-modern {
    font-size: 15px;
    font-weight: 600;
    color: var(--funeral-text);
}

.funeral-modern .mourner-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #f0eef5;
    border-radius: 20px;
    font-size: 11px;
    color: #666;
    margin-left: 6px;
    font-weight: 500;
}

/* 모던 - 조문 멘트 */
.funeral-modern .mourner-condolence-modern {
    font-size: 13px;
    color: #888;
    margin: 6px 0 8px 0;
    padding: 8px 14px;
    background: #f9f9fb;
    border-radius: 8px;
    font-style: italic;
    line-height: 1.6;
    border-left: 3px solid #d4a574;
}

/* 모던 - 계좌 */
.funeral-modern .account-modern-inline {
    margin-top: 8px;
    padding: 10px 14px;
    background: #f7f7f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.funeral-modern .account-bank-modern {
    font-weight: 600;
    font-size: 13px;
    color: var(--funeral-text);
}

.funeral-modern .account-number-modern {
    font-size: 13px;
    color: var(--funeral-text);
    font-variant-numeric: tabular-nums;
}

.funeral-modern .btn-copy-modern {
    padding: 7px 18px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: var(--funeral-white);
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--funeral-transition);
    white-space: nowrap;
    margin-left: auto;
}

.funeral-modern .btn-copy-modern:hover {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(15, 52, 96, 0.3);
}

/* 모던 - 추가 안내 */
.funeral-modern .funeral-additional-modern {
    margin: 0 24px 28px;
    padding: 22px 26px;
    background: rgba(249, 249, 251, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--funeral-text-light);
    font-style: italic;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* --------------------------------------------------------------------------
   9. 따뜻한형(warm) 템플릿 스타일 - 부드러운 온기
   -------------------------------------------------------------------------- */
.funeral-warm {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #faf6f0 0%, #f5ebe0 100%);
    box-shadow: 0 6px 32px rgba(160, 120, 60, 0.10);
}

/* 따뜻한 - 헤더 */
.funeral-warm .warm-header {
    background: linear-gradient(170deg, #f0e4d4 0%, #faf6f0 100%);
    padding: 56px 32px 44px;
    text-align: center;
    position: relative;
}

.funeral-warm .warm-candle-icon {
    font-size: 52px;
    margin-bottom: 16px;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(196, 149, 106, 0.35));
}

.funeral-warm .warm-subtitle {
    font-size: 15px;
    color: #8a7260;
    margin: 0 0 18px 0;
    letter-spacing: 3px;
    font-family: var(--funeral-font-serif);
    font-weight: 400;
}

.funeral-warm .warm-header-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c4956a, transparent);
    margin: 0 auto;
    border-radius: 1px;
}

/* 따뜻한 - 본문 */
.funeral-warm .warm-body {
    padding: 36px 32px 40px;
}

.funeral-warm .warm-photo {
    text-align: center;
    margin-bottom: 24px;
}

.funeral-warm .warm-photo img {
    width: 140px;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid #e8d5c4;
    box-shadow: 0 6px 24px rgba(160, 120, 60, 0.14);
}

.funeral-warm .warm-main-text {
    text-align: center;
    font-size: 16px;
    line-height: 2;
    color: #5c4a3a;
    margin: 0 0 36px 0;
    font-family: var(--funeral-font-serif);
    letter-spacing: 0.3px;
}

.funeral-warm .warm-main-text strong {
    font-size: 20px;
    color: #4a3a2a;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 따뜻한 - 구분선 */
.funeral-warm .warm-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.funeral-warm .warm-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4b896, transparent);
}

.funeral-warm .warm-divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c9a96e;
    flex-shrink: 0;
}

/* 따뜻한 - 장례 정보 */
.funeral-warm .warm-info {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid rgba(196, 149, 106, 0.12);
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(140, 100, 60, 0.04);
}

.funeral-warm .warm-dl {
    margin: 0;
}

.funeral-warm .warm-dl dt {
    font-size: 13px;
    font-weight: 600;
    color: #8b6f52;
    float: left;
    clear: left;
    width: 60px;
    padding: 10px 0;
    letter-spacing: 4px;
}

.funeral-warm .warm-dl dd {
    font-size: 15px;
    color: #5c4a3a;
    margin-left: 72px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(196, 149, 106, 0.12);
    line-height: 1.7;
}

.funeral-warm .warm-dl dd:last-of-type {
    border-bottom: none;
}

.funeral-warm .warm-btn-map {
    display: inline-block;
    padding: 4px 14px;
    background: #c4956a;
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    margin-left: 8px;
    transition: all 0.25s ease;
    vertical-align: middle;
}

.funeral-warm .warm-btn-map:hover {
    background: #b08058;
    box-shadow: 0 2px 8px rgba(196, 149, 106, 0.2);
}

/* 따뜻한 - 상주 */
.funeral-warm .warm-mourners {
    margin-bottom: 24px;
}

.funeral-warm .warm-mourners h3 {
    font-size: 15px;
    font-weight: 600;
    color: #8b6f52;
    text-align: center;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0d0c0;
    letter-spacing: 8px;
    text-indent: 8px;
    font-family: var(--funeral-font-serif);
}

.funeral-warm .warm-mourner-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.funeral-warm .warm-mourner-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0e4d4;
}

.funeral-warm .warm-mourner-item:last-child {
    border-bottom: none;
}

.funeral-warm .warm-mourner-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.funeral-warm .warm-mourner-title {
    font-size: 14px;
    font-weight: 600;
    color: #8b6f52;
    min-width: 56px;
}

.funeral-warm .warm-mourner-name {
    font-size: 16px;
    font-weight: 600;
    color: #4a3a2a;
}

.funeral-warm .warm-mourner-bereavement {
    font-size: 13px;
    color: #a08c7a;
}

/* 따뜻한 - 조문 멘트 (인용문 스타일) */
.funeral-warm .warm-condolence {
    margin: 10px 0 10px 0;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.5);
    border-left: 3px solid #c4956a;
    border-radius: 0 10px 10px 0;
    font-size: 13px;
    color: #8b7a6a;
    font-style: italic;
    line-height: 1.8;
    font-family: var(--funeral-font-serif);
    quotes: none;
}

/* 따뜻한 - 계좌 */
.funeral-warm .warm-account {
    margin-top: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(196, 149, 106, 0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    flex-wrap: wrap;
}

.funeral-warm .warm-account-detail {
    font-size: 13px;
    color: #6b5a4a;
    font-variant-numeric: tabular-nums;
}

.funeral-warm .warm-btn-copy {
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.8);
    color: #8b6f52;
    border: 1px solid #d4b896;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    margin-left: auto;
}

.funeral-warm .warm-btn-copy:hover {
    background: #c4956a;
    color: #fff;
    border-color: #c4956a;
}

/* 따뜻한 - 추가 안내 */
.funeral-warm .warm-additional {
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    border: 1px solid rgba(196, 149, 106, 0.1);
    font-size: 14px;
    line-height: 1.9;
    color: #7a6a5a;
    font-family: var(--funeral-font-serif);
}

/* --------------------------------------------------------------------------
   10. 하늘형(sky) 템플릿 스타일 - 천상의 평화
   -------------------------------------------------------------------------- */
.funeral-sky {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #e8f4fd 0%, #f0f7fc 30%, #ffffff 100%);
    box-shadow: 0 6px 32px rgba(100, 150, 200, 0.10);
}

/* 하늘 - 헤더 */
.funeral-sky .sky-header {
    background: linear-gradient(170deg, #c8dfef 0%, #ddeef4 30%, #e8f1fa 60%, #f0f6fd 100%);
    padding: 0;
    text-align: center;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.funeral-sky .sky-clouds {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 120px 40px at 15% 30%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(ellipse 100px 30px at 75% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(ellipse 80px 25px at 50% 60%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(ellipse 140px 35px at 85% 70%, rgba(255,255,255,0.4) 0%, transparent 100%);
    pointer-events: none;
}

.funeral-sky .sky-header-content {
    position: relative;
    z-index: 1;
    padding: 48px 32px 40px;
}

.funeral-sky .sky-dove-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
    filter: drop-shadow(0 3px 8px rgba(100, 150, 200, 0.3));
    opacity: 0.8;
}

.funeral-sky .sky-subtitle {
    font-size: 15px;
    color: #3a5f8a;
    margin: 0 0 18px 0;
    letter-spacing: 3px;
    font-family: var(--funeral-font-serif);
    font-weight: 400;
}

.funeral-sky .sky-header-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7ba4cc, transparent);
    margin: 0 auto;
    border-radius: 1px;
}

/* 하늘 - 본문 */
.funeral-sky .sky-body {
    padding: 36px 32px 40px;
}

.funeral-sky .sky-photo {
    text-align: center;
    margin-bottom: 24px;
}

.funeral-sky .sky-photo img {
    width: 140px;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid #c5ddf0;
    box-shadow: 0 6px 24px rgba(100, 150, 200, 0.14);
}

.funeral-sky .sky-main-text {
    text-align: center;
    font-size: 16px;
    line-height: 2;
    color: #3a4f6a;
    margin: 0 0 36px 0;
    letter-spacing: 0.3px;
}

.funeral-sky .sky-main-text strong {
    font-size: 20px;
    color: #2a3f5a;
    font-weight: 700;
}

/* 하늘 - 장례 정보 카드 */
.funeral-sky .sky-info {
    margin-bottom: 28px;
}

.funeral-sky .sky-info-card {
    background: var(--funeral-white);
    border-radius: 16px;
    padding: 28px;
    border-left: 4px solid #7ba4cc;
    box-shadow: 0 2px 12px rgba(100, 150, 200, 0.06);
}

.funeral-sky .sky-dl {
    margin: 0;
}

.funeral-sky .sky-dl dt {
    font-size: 13px;
    font-weight: 600;
    color: #5a7a9a;
    float: left;
    clear: left;
    width: 60px;
    padding: 10px 0;
    letter-spacing: 4px;
}

.funeral-sky .sky-dl dd {
    font-size: 15px;
    color: #3a4f6a;
    margin-left: 72px;
    padding: 10px 0;
    border-bottom: 1px solid #eaf2f8;
    line-height: 1.7;
}

.funeral-sky .sky-dl dd:last-of-type {
    border-bottom: none;
}

.funeral-sky .sky-btn-map {
    display: inline-block;
    padding: 4px 14px;
    background: #7ba4cc;
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    margin-left: 8px;
    transition: all 0.25s ease;
    vertical-align: middle;
}

.funeral-sky .sky-btn-map:hover {
    background: #6590b8;
    box-shadow: 0 2px 8px rgba(123, 164, 204, 0.2);
}

/* 하늘 - 상주 */
.funeral-sky .sky-mourners {
    margin-bottom: 24px;
}

.funeral-sky .sky-mourners h3 {
    font-size: 15px;
    font-weight: 600;
    color: #5a7a9a;
    text-align: center;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #d0e2f0;
    letter-spacing: 8px;
    text-indent: 8px;
}

.funeral-sky .sky-mourner-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.funeral-sky .sky-mourner-item {
    padding: 14px 0;
    border-bottom: 1px solid #e4edf5;
}

.funeral-sky .sky-mourner-item:last-child {
    border-bottom: none;
}

.funeral-sky .sky-mourner-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.funeral-sky .sky-mourner-title {
    font-size: 14px;
    font-weight: 600;
    color: #5a7a9a;
    min-width: 56px;
}

.funeral-sky .sky-mourner-name {
    font-size: 16px;
    font-weight: 600;
    color: #2a3f5a;
}

.funeral-sky .sky-mourner-bereavement {
    font-size: 13px;
    color: #8aa0b8;
}

.funeral-sky .sky-condolence {
    margin: 10px 0 10px 0;
    padding: 14px 20px;
    background: rgba(232, 244, 253, 0.4);
    border-left: 3px solid #7ba4cc;
    border-radius: 0 10px 10px 0;
    font-size: 13px;
    color: #6a8aaa;
    font-style: italic;
    line-height: 1.8;
}

/* 하늘 - 계좌 */
.funeral-sky .sky-account {
    margin-top: 10px;
    padding: 12px 16px;
    background: #f2f8fc;
    border-radius: 10px;
    border: 1px solid rgba(123, 164, 204, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    flex-wrap: wrap;
}

.funeral-sky .sky-account-detail {
    font-size: 13px;
    color: #4a6a8a;
    font-variant-numeric: tabular-nums;
}

.funeral-sky .sky-btn-copy {
    padding: 6px 18px;
    background: var(--funeral-white);
    color: #5a7a9a;
    border: 1px solid #b0ccdf;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    margin-left: auto;
}

.funeral-sky .sky-btn-copy:hover {
    background: #7ba4cc;
    color: #fff;
    border-color: #7ba4cc;
}

/* 하늘 - 추가 안내 */
.funeral-sky .sky-additional {
    padding: 24px 28px;
    background: rgba(232, 244, 253, 0.3);
    border-radius: 14px;
    border: 1px solid rgba(123, 164, 204, 0.1);
    font-size: 14px;
    line-height: 1.9;
    color: #5a7a9a;
}

/* --------------------------------------------------------------------------
   11. 꽃길형(floral) 템플릿 스타일 - 우아한 꽃 장식
   -------------------------------------------------------------------------- */
.funeral-floral {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #fffaf5;
    box-shadow: 0 6px 32px rgba(160, 100, 100, 0.06);
    position: relative;
}

/* 꽃길형 - 좌우 장식 테두리 */
.funeral-floral::before,
.funeral-floral::after {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        #e8d5c4 10%,
        #c9a2a2 30%,
        #e8d5c4 50%,
        #c9a2a2 70%,
        #e8d5c4 90%,
        transparent 100%
    );
    opacity: 0.4;
    z-index: 1;
}

.funeral-floral::before {
    left: 12px;
}

.funeral-floral::after {
    right: 12px;
}

/* 꽃 - 상하 장식 보더 */
.funeral-floral .floral-border-top,
.funeral-floral .floral-border-bottom {
    height: 4px;
    background: linear-gradient(90deg, transparent, #e8c8c0, #d4a99a, #c9a2a2, #d4a99a, #e8c8c0, transparent);
}

/* 꽃 - 헤더 */
.funeral-floral .floral-header {
    padding: 56px 40px 40px;
    text-align: center;
    background: linear-gradient(180deg, #faf3ec 0%, #fffaf5 100%);
    position: relative;
}

/* 꽃길형 - 상단 꽃 장식 */
.funeral-floral .floral-header::before {
    content: '\273F \2740 \273F';
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: #c9a2a2;
    letter-spacing: 8px;
    opacity: 0.4;
}

.funeral-floral .floral-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
    filter: drop-shadow(0 3px 8px rgba(201, 162, 162, 0.3));
}

.funeral-floral .floral-subtitle {
    font-size: 15px;
    color: #8a6e62;
    margin: 0 0 18px 0;
    letter-spacing: 3px;
    font-family: var(--funeral-font-serif);
    font-weight: 400;
}

.funeral-floral .floral-header-ornament {
    width: 120px;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, #c9a2a2, transparent);
    position: relative;
}

.funeral-floral .floral-header-ornament::before {
    content: '\2740';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #c9a2a2;
    background: #faf3ec;
    padding: 0 10px;
}

/* 꽃 - 본문 */
.funeral-floral .floral-body {
    padding: 36px 40px 40px;
}

.funeral-floral .floral-photo {
    text-align: center;
    margin-bottom: 24px;
}

.funeral-floral .floral-photo img {
    width: 140px;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid #e8d5c4;
    box-shadow: 0 6px 24px rgba(160, 100, 100, 0.1);
}

.funeral-floral .floral-main-text {
    text-align: center;
    font-size: 16px;
    line-height: 2;
    color: #4a3f3f;
    margin: 0 0 36px 0;
    font-family: var(--funeral-font-serif);
    letter-spacing: 0.3px;
}

.funeral-floral .floral-main-text strong {
    font-size: 20px;
    color: #3a3030;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 꽃 - 구분선 */
.funeral-floral .floral-divider {
    text-align: center;
    margin: 16px 0;
    line-height: 1;
}

.funeral-floral .floral-divider-leaf {
    font-size: 16px;
    color: #c8a090;
}

/* 꽃 - 장례 정보 */
.funeral-floral .floral-info {
    margin-bottom: 28px;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    border: 1px solid rgba(201, 162, 162, 0.15);
    box-shadow: 0 2px 12px rgba(160, 100, 100, 0.04);
}

.funeral-floral .floral-dl {
    margin: 0;
}

.funeral-floral .floral-dl dt {
    font-size: 13px;
    font-weight: 600;
    color: #a07070;
    float: left;
    clear: left;
    width: 60px;
    padding: 10px 0;
    letter-spacing: 4px;
}

.funeral-floral .floral-dl dd {
    font-size: 15px;
    color: #4a3f3f;
    margin-left: 72px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(201, 162, 162, 0.12);
    line-height: 1.7;
}

.funeral-floral .floral-dl dd:last-of-type {
    border-bottom: none;
}

.funeral-floral .floral-btn-map {
    display: inline-block;
    padding: 4px 14px;
    background: #c9a2a2;
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    margin-left: 8px;
    transition: all 0.25s ease;
    vertical-align: middle;
}

.funeral-floral .floral-btn-map:hover {
    background: #b88e8e;
    box-shadow: 0 2px 8px rgba(201, 162, 162, 0.2);
}

/* 꽃 - 상주 */
.funeral-floral .floral-mourners {
    margin-bottom: 24px;
}

.funeral-floral .floral-mourners h3 {
    font-family: var(--funeral-font-serif);
    font-size: 15px;
    font-weight: 600;
    color: #a07070;
    text-align: center;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8d5c4;
    letter-spacing: 8px;
    text-indent: 8px;
}

.funeral-floral .floral-mourner-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.funeral-floral .floral-mourner-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(201, 162, 162, 0.12);
    position: relative;
    padding-left: 16px;
}

.funeral-floral .floral-mourner-item::before {
    content: '\2740';
    position: absolute;
    left: 0;
    top: 17px;
    font-size: 9px;
    color: #c9a2a2;
    opacity: 0.5;
}

.funeral-floral .floral-mourner-item:last-child {
    border-bottom: none;
}

.funeral-floral .floral-mourner-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.funeral-floral .floral-mourner-bullet {
    font-size: 12px;
    color: #c8a090;
    flex-shrink: 0;
}

.funeral-floral .floral-mourner-title {
    font-size: 14px;
    font-weight: 600;
    color: #a07070;
    min-width: 56px;
}

.funeral-floral .floral-mourner-name {
    font-size: 16px;
    font-weight: 600;
    color: #4a3f3f;
}

.funeral-floral .floral-mourner-bereavement {
    font-size: 13px;
    color: #b09898;
}

.funeral-floral .floral-condolence {
    margin: 10px 0 10px 0;
    padding: 14px 20px;
    background: rgba(255, 250, 245, 0.6);
    border-left: 3px solid #c9a2a2;
    border-radius: 0 10px 10px 0;
    font-size: 13px;
    color: #8a7070;
    font-style: italic;
    line-height: 1.8;
    font-family: var(--funeral-font-serif);
}

/* 꽃 - 계좌 */
.funeral-floral .floral-account {
    margin-top: 10px;
    padding: 12px 16px;
    background: rgba(255, 250, 245, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(201, 162, 162, 0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    flex-wrap: wrap;
}

.funeral-floral .floral-account-detail {
    font-size: 13px;
    color: #5a4a4a;
    font-variant-numeric: tabular-nums;
}

.funeral-floral .floral-btn-copy {
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.8);
    color: #a07070;
    border: 1px solid #d8bfb0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    margin-left: auto;
}

.funeral-floral .floral-btn-copy:hover {
    background: #c9a2a2;
    color: #fff;
    border-color: #c9a2a2;
}

/* 꽃 - 추가 안내 */
.funeral-floral .floral-additional {
    padding: 24px 28px;
    background: rgba(255, 250, 245, 0.5);
    border-radius: 14px;
    border: 1px solid rgba(201, 162, 162, 0.1);
    font-size: 14px;
    line-height: 1.9;
    color: #7a6060;
    font-family: var(--funeral-font-serif);
}

/* --------------------------------------------------------------------------
   12. 사진형(photo) 템플릿 스타일 - 시네마틱 히어로
   -------------------------------------------------------------------------- */
.funeral-phototmpl {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14);
}

/* 사진 - 히어로 */
.funeral-phototmpl .phototmpl-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.funeral-phototmpl .phototmpl-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.funeral-phototmpl .phototmpl-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.35) 40%,
        rgba(0, 0, 0, 0.10) 70%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
}

/* 사진 없을 때 다크 그라데이션 */
.funeral-phototmpl .phototmpl-hero-nophoto {
    background: linear-gradient(160deg, #1a1a2a 0%, #2a2a3a 40%, #1a2030 100%);
    min-height: 350px;
}

.funeral-phototmpl .phototmpl-hero-nophoto .phototmpl-hero-overlay {
    background: none;
}

.funeral-phototmpl .phototmpl-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 44px 36px 48px;
    width: 100%;
}

.funeral-phototmpl .phototmpl-icon {
    font-size: 52px;
    margin-bottom: 16px;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    opacity: 0.6;
}

.funeral-phototmpl .phototmpl-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 18px 0;
    letter-spacing: 4px;
    font-weight: 300;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.funeral-phototmpl .phototmpl-name {
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: 6px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.funeral-phototmpl .phototmpl-life {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    font-weight: 300;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* 사진 - 본문 */
.funeral-phototmpl .phototmpl-body {
    padding: 32px 28px 40px;
    background: #f8f8fa;
}

/* 사진 - 장례 정보 카드 */
.funeral-phototmpl .phototmpl-info-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.funeral-phototmpl .phototmpl-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    letter-spacing: 6px;
    text-align: center;
    text-indent: 6px;
}

.funeral-phototmpl .phototmpl-dl {
    margin: 0;
}

.funeral-phototmpl .phototmpl-dl dt {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    float: left;
    clear: left;
    width: 60px;
    padding: 10px 0;
    letter-spacing: 4px;
}

.funeral-phototmpl .phototmpl-dl dd {
    font-size: 15px;
    color: var(--funeral-text);
    margin-left: 72px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    line-height: 1.7;
}

.funeral-phototmpl .phototmpl-dl dd:last-of-type {
    border-bottom: none;
}

.funeral-phototmpl .phototmpl-btn-map {
    display: inline-block;
    padding: 3px 12px;
    background: #2a2a2a;
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    margin-left: 8px;
    transition: var(--funeral-transition);
    vertical-align: middle;
}

.funeral-phototmpl .phototmpl-btn-map:hover {
    background: #444;
}

/* 사진 - 상주 카드 */
.funeral-phototmpl .phototmpl-mourners-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.funeral-phototmpl .phototmpl-mourner-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.funeral-phototmpl .phototmpl-mourner-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f2;
}

.funeral-phototmpl .phototmpl-mourner-item:last-child {
    border-bottom: none;
}

.funeral-phototmpl .phototmpl-mourner-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.funeral-phototmpl .phototmpl-mourner-title {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    min-width: 56px;
    letter-spacing: 1px;
}

.funeral-phototmpl .phototmpl-mourner-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--funeral-text);
}

.funeral-phototmpl .phototmpl-mourner-bereavement {
    font-size: 13px;
    color: var(--funeral-text-muted);
}

.funeral-phototmpl .phototmpl-condolence {
    margin: 10px 0 10px 0;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.02);
    border-left: 3px solid #ddd;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #888;
    font-style: italic;
    line-height: 1.8;
}

/* 사진 - 계좌 */
.funeral-phototmpl .phototmpl-account {
    margin-top: 10px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    flex-wrap: wrap;
}

.funeral-phototmpl .phototmpl-account-detail {
    font-size: 13px;
    color: #555;
    font-variant-numeric: tabular-nums;
}

.funeral-phototmpl .phototmpl-btn-copy {
    padding: 6px 18px;
    background: var(--funeral-white);
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    margin-left: auto;
}

.funeral-phototmpl .phototmpl-btn-copy:hover {
    background: var(--funeral-black);
    color: #fff;
    border-color: var(--funeral-black);
}

/* 사진 - 추가 안내 */
.funeral-phototmpl .phototmpl-additional {
    padding: 24px 28px;
    background: #f8f8f8;
    border-radius: 14px;
    border: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.9;
    color: var(--funeral-text-light);
}

/* --------------------------------------------------------------------------
   13. 댓글 스타일
   -------------------------------------------------------------------------- */
.funeral-comments {
    max-width: var(--funeral-max-width);
    margin: 32px auto 0;
    padding: 0 16px;
    font-family: var(--funeral-font);
}

.funeral-comments .comment-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--funeral-primary);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--funeral-primary);
}

.funeral-comments .comment-count {
    display: inline-block;
    background: var(--funeral-primary);
    color: var(--funeral-white);
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
    vertical-align: middle;
}

.funeral-comments #bo_vc {
    margin-bottom: 24px;
}

.funeral-comments .comment-item {
    display: block;
    padding: 16px;
    margin-bottom: 8px;
    background: var(--funeral-card-bg);
    border: 1px solid var(--funeral-border-light);
    border-radius: var(--funeral-radius);
    transition: var(--funeral-transition);
}

.funeral-comments .comment-item:hover {
    border-color: var(--funeral-border);
}

.funeral-comments .comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.funeral-comments .comment-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--funeral-text);
}

.funeral-comments .comment-date {
    font-size: 12px;
    color: var(--funeral-text-muted);
}

.funeral-comments .comment-content {
    font-size: 14px;
    color: var(--funeral-text-light);
    line-height: 1.7;
}

.funeral-comments .comment-content p {
    margin: 0;
}

.funeral-comments .comment-secret {
    font-style: italic;
    color: var(--funeral-text-muted);
}

.funeral-comments .comment-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--funeral-border-light);
}

.funeral-comments .comment-btn {
    font-size: 12px;
    color: var(--funeral-text-muted);
    text-decoration: none;
    padding: 3px 10px;
    border: 1px solid var(--funeral-border);
    border-radius: var(--funeral-radius-sm);
    transition: var(--funeral-transition);
}

.funeral-comments .comment-btn:hover {
    color: var(--funeral-primary);
    border-color: var(--funeral-primary);
}

.funeral-comments .comment-btn-del:hover {
    color: var(--funeral-danger);
    border-color: var(--funeral-danger);
}

.funeral-comments .comment-empty {
    text-align: center;
    padding: 32px 0;
    color: var(--funeral-text-muted);
    font-size: 14px;
}

.funeral-comments .comment-notice {
    margin: 0 0 16px 0;
    padding: 14px 16px;
    background: rgba(164, 122, 81, 0.08);
    border: 1px solid rgba(164, 122, 81, 0.18);
    border-radius: var(--funeral-radius);
    color: var(--funeral-text-light);
    font-size: 13px;
    line-height: 1.7;
}

.funeral-comments .comment-compose-trigger {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 18px;
}

.funeral-comments .comment-open-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    background: var(--funeral-primary);
    color: var(--funeral-white);
    font-family: var(--funeral-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(63, 79, 116, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.funeral-comments .comment-open-btn:hover {
    background: var(--funeral-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(63, 79, 116, 0.22);
}

.funeral-comments .comment-modal[hidden] {
    display: none !important;
}

.funeral-comments .comment-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
}

.funeral-comments .comment-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 34, 53, 0.58);
    backdrop-filter: blur(6px);
}

.funeral-comments .comment-modal-dialog {
    position: relative;
    width: min(680px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    background: #fffdf9;
    border: 1px solid rgba(103, 77, 56, 0.14);
    border-radius: 28px;
    box-shadow: 0 24px 64px rgba(20, 27, 40, 0.24);
    overflow: hidden;
}

.funeral-comments .comment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(103, 77, 56, 0.12);
    background: linear-gradient(180deg, rgba(250, 245, 238, 0.98), rgba(255, 253, 249, 0.95));
}

.funeral-comments .comment-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--funeral-primary);
}

.funeral-comments .comment-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(103, 77, 56, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--funeral-primary);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.funeral-comments .comment-modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(100vh - 160px);
}

/* 댓글 작성 폼 */
.funeral-comments .comment-form {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.funeral-comments .comment-writer-info {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.funeral-comments .comment-input {
    padding: 10px 14px;
    border: 1px solid var(--funeral-border);
    border-radius: var(--funeral-radius-sm);
    font-size: 14px;
    font-family: var(--funeral-font);
    background: var(--funeral-white);
    box-sizing: border-box;
}

.funeral-comments .comment-input-name {
    flex: 1;
}

.funeral-comments .comment-input-pw {
    flex: 1;
}

.funeral-comments .comment-input:focus {
    outline: none;
    border-color: var(--funeral-primary);
}

.funeral-comments .comment-textarea-wrap {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.funeral-comments .comment-textarea {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--funeral-border);
    border-radius: var(--funeral-radius-sm);
    font-size: 14px;
    font-family: var(--funeral-font);
    resize: vertical;
    min-height: 60px;
    background: var(--funeral-white);
    box-sizing: border-box;
}

.funeral-comments .comment-textarea:focus {
    outline: none;
    border-color: var(--funeral-primary);
}

.funeral-comments .comment-submit {
    padding: 12px 24px;
    background: var(--funeral-primary);
    color: var(--funeral-white);
    border: none;
    border-radius: var(--funeral-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--funeral-transition);
    white-space: nowrap;
    font-family: var(--funeral-font);
}

.funeral-comments .comment-submit:hover {
    background: var(--funeral-primary-light);
}

.funeral-comments #char_cnt {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--funeral-text-muted);
    margin-bottom: 6px;
}

.funeral-comments span.bo_vc_w {
    display: none;
}

.funeral-comments .comment-compose {
    display: block;
}

.funeral-comments .comment-compose--hidden {
    display: none;
}

html.comment-modal-open,
body.comment-modal-open {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   10. 목록 (카드 그리드) 스타일
   -------------------------------------------------------------------------- */
.funeral-list {
    padding-top: 24px;
    padding-bottom: 48px;
    max-width: 1120px;
    margin: 0 auto;
}

.funeral-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--funeral-border);
}

.funeral-list-title-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.funeral-list-title-area h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--funeral-black);
    margin: 0;
}

.funeral-list-count {
    font-size: 14px;
    color: var(--funeral-text-muted);
}

.funeral-list-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-write {
    display: inline-block;
    padding: 11px 22px;
    background: var(--funeral-primary);
    color: var(--funeral-white);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--funeral-transition);
}

.btn-write:hover {
    background: var(--funeral-primary-light);
    box-shadow: var(--funeral-shadow);
}

.btn-admin {
    display: inline-block;
    padding: 10px 16px;
    background: var(--funeral-white);
    color: var(--funeral-text-light);
    border: 1px solid var(--funeral-border);
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    transition: var(--funeral-transition);
}

.btn-admin:hover {
    border-color: var(--funeral-primary);
    color: var(--funeral-primary);
}

.funeral-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--funeral-text-muted);
    font-size: 15px;
    background: var(--funeral-card-bg);
    border: 1px solid var(--funeral-border);
    border-radius: var(--funeral-radius);
}

.funeral-lookup-panel {
    display: grid;
    gap: 20px;
    margin: 0 auto 34px;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid #e3e6ea;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 249, 250, 0.96)),
        linear-gradient(135deg, rgba(44, 62, 80, 0.03), rgba(127, 140, 141, 0.03));
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.funeral-lookup-copy {
    display: grid;
    gap: 8px;
}

.funeral-lookup-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef3f6;
    color: #37506a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.funeral-lookup-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--funeral-black);
    letter-spacing: -0.02em;
}

.funeral-lookup-description {
    margin: 0;
    font-size: 15px;
    color: var(--funeral-text-light);
}

.funeral-lookup-alert {
    margin: 0;
    padding: 13px 15px;
    border-radius: 16px;
    border: 1px solid #f0c8c8;
    background: #fff5f5;
    color: #b42318;
    font-size: 14px;
    font-weight: 600;
}

.funeral-lookup-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.funeral-lookup-field {
    display: grid;
    gap: 8px;
}

.funeral-lookup-field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--funeral-text);
}

.funeral-lookup-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #d8dde3;
    border-radius: 16px;
    background: #fff;
    font-size: 15px;
    color: var(--funeral-text);
    font-family: var(--funeral-font);
    box-sizing: border-box;
}

.funeral-lookup-input:focus {
    outline: none;
    border-color: #7e95aa;
    box-shadow: 0 0 0 4px rgba(126, 149, 170, 0.14);
}

.funeral-lookup-submit {
    height: 52px;
    padding: 0 22px;
    border: none;
    border-radius: 16px;
    background: var(--funeral-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--funeral-font);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--funeral-transition);
}

.funeral-lookup-submit:hover {
    background: var(--funeral-primary-light);
    box-shadow: 0 12px 24px rgba(44, 62, 80, 0.16);
}

.funeral-admin-list-head {
    display: grid;
    gap: 4px;
    margin: 6px 0 16px;
}

.funeral-admin-list-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--funeral-black);
}

.funeral-admin-list-head p {
    margin: 0;
    font-size: 13px;
    color: var(--funeral-text-muted);
}

.funeral-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.funeral-card-item {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--funeral-card-bg);
    border: 1px solid var(--funeral-border);
    border-radius: 24px;
    padding: 22px 22px 18px;
    text-decoration: none;
    color: var(--funeral-text);
    transition: var(--funeral-transition);
    position: relative;
    min-height: 250px;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.06);
}

.funeral-card-item:hover {
    border-color: var(--funeral-primary);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.1);
    transform: translateY(-4px);
}

.card-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.card-item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.card-item-badge,
.card-item-status,
.card-item-template,
.card-item-progress {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.card-item-badge {
    background: var(--funeral-primary);
    color: var(--funeral-white);
}

.card-item-status {
    background: rgba(31, 41, 55, 0.08);
    color: var(--funeral-primary);
}

.card-item-template {
    color: var(--funeral-text-muted);
    border: 1px solid var(--funeral-border);
    background: var(--funeral-white);
}

.card-item-progress {
    border: 1px solid transparent;
}

.card-item-progress--active {
    background: rgba(180, 83, 9, 0.12);
    border-color: rgba(180, 83, 9, 0.16);
    color: #9a5412;
}

.card-item-progress--done {
    background: rgba(22, 101, 52, 0.12);
    border-color: rgba(22, 101, 52, 0.16);
    color: #166534;
}

.card-item-date {
    flex: 0 0 auto;
    padding-top: 4px;
    font-size: 12px;
    color: var(--funeral-text-muted);
    white-space: nowrap;
}

.card-item-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-item-name {
    font-size: 26px;
    font-weight: 700;
    color: var(--funeral-black);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.card-item-mourner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--funeral-text-light);
    margin: 0;
    line-height: 1.5;
}

.card-item-mourner-label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--funeral-bg);
    color: var(--funeral-text-muted);
    font-size: 11px;
    font-weight: 700;
}

.card-item-mourner strong {
    color: var(--funeral-black);
    font-weight: 700;
}

.card-item-bereavement {
    font-size: 12px;
    color: var(--funeral-primary);
    font-weight: 600;
}

.card-item-facts {
    display: grid;
    gap: 10px;
    margin: 0;
}

.card-item-fact {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.card-item-fact dt {
    font-size: 12px;
    font-weight: 700;
    color: var(--funeral-text-muted);
    line-height: 1.7;
}

.card-item-fact dd {
    margin: 0;
    min-width: 0;
    font-size: 14px;
    color: var(--funeral-text);
    line-height: 1.7;
    word-break: keep-all;
}

.card-item-room {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 0 8px;
    min-height: 24px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.06);
    color: var(--funeral-primary);
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}

.card-item-footer {
    margin-top: auto;
    border-top: 1px solid var(--funeral-border-light);
    padding-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.card-item-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--funeral-primary);
}

.card-item-link::after {
    content: "\203A";
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   11. 페이지네이션 스타일
   -------------------------------------------------------------------------- */
.funeral-list .pg_wrap,
.funeral-pagination .pg_wrap {
    text-align: center;
    padding: 20px 0;
}

.funeral-list .pg_wrap a,
.funeral-list .pg_wrap strong,
.funeral-pagination .pg_wrap a,
.funeral-pagination .pg_wrap strong {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    padding: 0 4px;
    margin: 0 2px;
    font-size: 13px;
    text-decoration: none;
    border-radius: var(--funeral-radius-sm);
    transition: var(--funeral-transition);
    text-align: center;
    box-sizing: border-box;
}

.funeral-list .pg_wrap a,
.funeral-pagination .pg_wrap a {
    color: var(--funeral-text-light);
    border: 1px solid var(--funeral-border);
    background: var(--funeral-white);
}

.funeral-list .pg_wrap a:hover,
.funeral-pagination .pg_wrap a:hover {
    border-color: var(--funeral-primary);
    color: var(--funeral-primary);
}

.funeral-list .pg_wrap .pg_current,
.funeral-list .pg_wrap strong,
.funeral-pagination .pg_wrap .pg_current,
.funeral-pagination .pg_wrap strong {
    background: var(--funeral-primary);
    color: var(--funeral-white);
    border: 1px solid var(--funeral-primary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. 검색 스타일
   -------------------------------------------------------------------------- */
.funeral-search {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(180deg, #faf9f7 0%, #f4f3f0 100%);
    border: 1px solid var(--funeral-border);
    border-radius: 24px;
}

.funeral-search form {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.funeral-search-select {
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--funeral-border);
    border-radius: 14px;
    font-size: 14px;
    font-family: var(--funeral-font);
    background: var(--funeral-white);
}

.funeral-search-input {
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--funeral-border);
    border-radius: 14px;
    font-size: 14px;
    min-width: 0;
    font-family: var(--funeral-font);
}

.funeral-search-input:focus {
    outline: none;
    border-color: var(--funeral-primary);
}

.funeral-search-btn {
    height: 46px;
    padding: 0 20px;
    background: var(--funeral-primary);
    color: var(--funeral-white);
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--funeral-transition);
    font-family: var(--funeral-font);
    white-space: nowrap;
}

.funeral-search-btn:hover {
    background: var(--funeral-primary-light);
}

/* --------------------------------------------------------------------------
   12-1. 미리보기 영역
   -------------------------------------------------------------------------- */
.preview-actions {
    margin-bottom: 14px;
}

.btn-preview {
    padding: 12px 26px;
    background: linear-gradient(135deg, #1f2c38, #36495e);
    color: var(--funeral-white);
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: var(--funeral-font);
    box-shadow: 0 12px 26px rgba(31, 44, 56, 0.2);
}

.btn-preview:hover {
    background: linear-gradient(135deg, #243646, #41566d);
    transform: translateY(-1px);
}

.funeral-preview-container {
    border: 1px solid rgba(44, 62, 80, 0.12);
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, #fbfcfd, #f3f5f7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.funeral-preview-container::before {
    content: '미리보기';
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #1f2c38, #36495e);
    color: var(--funeral-white);
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.funeral-preview {
    padding: 18px;
    max-width: 100%;
}

.funeral-preview .funeral-template {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   13. 반응형 미디어 쿼리
   -------------------------------------------------------------------------- */

/* 태블릿 중간 (1024px 이하) */
@media screen and (max-width: 1024px) {
    body #container_wr {
        padding: 0 16px !important;
        max-width: 100% !important;
    }
    body #container_wr #container {
        max-width: 100% !important;
    }

    .funeral-compose-hero {
        background: #ffffff;
    }
}

/* 태블릿 이하 */
@media screen and (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    body #container_wr {
        width: auto !important;
        max-width: 100% !important;
        padding: 0 12px !important;
    }
    body #container_wr #container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 10px auto !important;
    }
    #funeral-write-form {
        padding: 0 !important;
    }

    .funeral-view,
    .funeral-list,
    #funeral-write-form,
    .funeral-compose-shell {
        max-width: 100%;
        overflow-x: hidden;
    }

    .funeral-compose-hero .card-body,
    .funeral-submit-bar .card-body {
        padding: 20px 18px;
    }
    .funeral-grid {
        grid-template-columns: 1fr;
    }

    .funeral-list {
        padding-top: 20px;
        padding-bottom: 36px;
    }

    .funeral-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .funeral-list-title-area h2 {
        font-size: 24px;
    }

    .funeral-lookup-panel {
        padding: 22px 20px;
        border-radius: 22px;
    }

    .funeral-lookup-title {
        font-size: 24px;
    }

    .funeral-lookup-form {
        grid-template-columns: 1fr;
    }

    .funeral-lookup-submit {
        width: 100%;
    }

    .funeral-card-item {
        min-height: auto;
    }

    .card-item-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-item-date {
        padding-top: 0;
    }

    .card-item-name {
        font-size: 24px;
    }

    .form-row-inline {
        flex-direction: column;
        gap: 0;
    }

    .funeral-bs5 .funeral-section.funeral-card-section {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .input-with-action {
        flex-direction: column;
        align-items: stretch;
    }

    .input-action-btn {
        width: 100%;
        min-height: 44px;
    }

    .venue-autocomplete-wrap,
    .venue-autocomplete-dropdown {
        width: 100%;
        max-width: 100%;
    }

    .funeral-bs5 .transport-fields,
    .funeral-bs5 .greeting-presets,
    .funeral-bs5 .thanks-presets {
        grid-template-columns: 1fr;
    }

    .template-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .template-choice {
        min-height: 52px;
        padding: 13px 14px;
    }

    .funeral-preview {
        padding: 12px;
    }

    .memorial-surface {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .memorial-hero,
    .memorial-sheet--photo .memorial-hero,
    .memorial-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .memorial-hero {
        gap: 22px;
        padding-bottom: 22px;
    }

    .memorial-identity {
        padding: 16px;
        border-radius: 22px;
    }

    .memorial-heading {
        font-size: 30px;
    }

    .memorial-name {
        font-size: 28px;
    }

    .memorial-panel,
    .memorial-message {
        padding: 20px;
        border-radius: 20px;
    }

    .memorial-fact {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px;
    }

    .memorial-fact--address dd {
        flex-direction: column;
        align-items: flex-start;
    }

    .mourner-info {
        flex-direction: column;
        gap: 6px;
    }

    .mourner-info .form-input,
    .mourner-info .form-select {
        width: 100%;
        min-width: 100%;
    }

    .account-fields {
        flex-direction: column;
        gap: 6px;
    }

    .transport-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .transport-field .transport-label {
        min-width: auto;
    }

    .account-fields .form-select-bank,
    .account-fields .form-input {
        width: 100%;
        min-width: 100%;
    }

    .account-modern-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .form-input-small {
        width: 100%;
    }

    .funeral-modern .funeral-header-modern {
        padding: 40px 20px 36px;
    }

    .funeral-modern .funeral-header-modern h2 {
        font-size: 24px;
    }

    .funeral-modern .funeral-cards {
        padding: 16px;
        gap: 16px;
    }

    .funeral-modern .funeral-card {
        border-radius: 12px;
    }

    .funeral-modern .modern-card-header {
        padding: 16px 18px 0;
    }

    .funeral-modern .card-content {
        padding: 12px 18px 18px;
    }

    .funeral-modern .account-modern-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .funeral-modern .btn-copy-modern {
        margin-left: 0;
        margin-top: 4px;
    }

    .share-mourner-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .share-mourner-buttons {
        width: 100%;
    }

    .share-mourner-buttons .share-btn {
        flex: 1;
        text-align: center;
    }

    .share-buttons-global {
        flex-direction: column;
    }

    .funeral-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-action {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .funeral-comments .comment-textarea-wrap {
        flex-direction: column;
    }

    .funeral-comments .comment-submit {
        width: 100%;
        padding: 14px;
    }

    .funeral-comments .comment-compose-trigger {
        justify-content: stretch;
    }

    .funeral-comments .comment-open-btn {
        width: 100%;
    }

    .funeral-comments .comment-modal-dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
        border-radius: 22px;
    }

    .funeral-comments .comment-modal-header,
    .funeral-comments .comment-modal-body {
        padding: 18px;
    }

    .funeral-search {
        padding: 20px 18px;
        border-radius: 20px;
    }

    .funeral-search form {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .funeral-search-select,
    .funeral-search-input,
    .funeral-search-btn {
        width: 100%;
        min-width: auto;
        box-sizing: border-box;
    }

    /* 따뜻한형 태블릿 */
    .funeral-warm .warm-header {
        padding: 44px 24px 36px;
    }

    .funeral-warm .warm-body {
        padding: 28px 24px 32px;
    }

    .funeral-warm .warm-info {
        padding: 22px 20px;
    }

    .funeral-warm .warm-account {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .funeral-warm .warm-btn-copy {
        margin-left: 0;
    }

    /* 하늘형 태블릿 */
    .funeral-sky .sky-header-content {
        padding: 40px 24px 36px;
    }

    .funeral-sky .sky-body {
        padding: 28px 24px 32px;
    }

    .funeral-sky .sky-info-card {
        padding: 22px 20px;
    }

    .funeral-sky .sky-account {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .funeral-sky .sky-btn-copy {
        margin-left: 0;
    }

    /* 꽃길형 태블릿 */
    .funeral-floral .floral-header {
        padding: 44px 28px 32px;
    }

    .funeral-floral .floral-body {
        padding: 28px 28px 32px;
    }

    .funeral-floral .floral-account {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .funeral-floral .floral-btn-copy {
        margin-left: 0;
    }

    /* 사진형 태블릿 */
    .funeral-phototmpl .phototmpl-hero {
        min-height: 320px;
    }

    .funeral-phototmpl .phototmpl-hero-nophoto {
        min-height: 280px;
    }

    .funeral-phototmpl .phototmpl-hero-content {
        padding: 36px 24px 40px;
    }

    .funeral-phototmpl .phototmpl-body {
        padding: 24px 20px 32px;
    }

    .funeral-phototmpl .phototmpl-account {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .funeral-phototmpl .phototmpl-btn-copy {
        margin-left: 0;
    }

    .funeral-thanks-section {
        padding: 0 15px;
    }
    .funeral-thanks-section .thanks-body {
        padding: 22px 18px;
    }

    .funeral-account-section {
        padding: 0 15px;
    }
    .funeral-account-toggle {
        padding: 14px 18px;
        font-size: 15px;
    }
    .account-detail-row {
        font-size: 13px;
    }
}

@media screen and (max-width: 576px) {
    body #container_wr {
        padding: 0 10px !important;
    }

    .template-selector {
        grid-template-columns: 1fr;
    }

    .funeral-list-btns {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .funeral-list-btns a {
        width: 100%;
        text-align: center;
    }

    .funeral-compose-hero .card-body,
    .funeral-submit-bar .card-body {
        padding: 18px 16px !important;
    }
}

@media screen and (max-width: 540px) {
    .funeral-intro {
        padding: 18px;
    }

    .funeral-intro-card {
        padding: 28px 20px 22px;
        border-radius: 22px;
    }

    .funeral-intro-title {
        font-size: 26px;
    }

    .funeral-intro-message {
        font-size: 15px;
        line-height: 1.8;
    }

    .funeral-lookup-panel {
        gap: 16px;
        padding: 18px 16px;
        margin-bottom: 26px;
    }

    .funeral-lookup-title {
        font-size: 22px;
    }

    .funeral-lookup-description {
        font-size: 14px;
    }

    .funeral-list-header {
        margin-bottom: 22px;
    }

    .funeral-card-item {
        padding: 20px 18px 16px;
        border-radius: 20px;
        gap: 16px;
    }

    .card-item-name {
        font-size: 22px;
    }

    .card-item-room {
        margin-left: 0;
        margin-top: 6px;
    }

    .funeral-compose-shell {
        padding-bottom: 24px;
    }

    .funeral-compose-hero .card-body {
        padding: 22px 18px !important;
    }

    .compose-eyebrow {
        margin-bottom: 12px;
    }

    .compose-description {
        font-size: 14px;
    }

    .compose-badges {
        max-width: none;
    }

    .compose-badges .badge {
        width: auto;
        justify-content: flex-start;
    }

    .memorial-ribbon {
        margin-bottom: 20px;
    }

    .memorial-identity {
        flex-direction: column;
        align-items: flex-start;
    }

    .memorial-portrait,
    .memorial-sheet--photo .memorial-portrait {
        width: 100%;
        max-width: 220px;
        height: 240px;
    }

    .memorial-heading {
        font-size: 26px;
    }

    .memorial-name {
        font-size: 24px;
    }

    .memorial-panel-head h4 {
        font-size: 20px;
    }

    .memorial-fact {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* 모바일 */
@media screen and (max-width: 480px) {
    .template-selector {
        grid-template-columns: 1fr;
    }

    .funeral-view,
    .funeral-list,
    #funeral-write-form {
        padding: 0 10px;
    }

    .funeral-grid {
        gap: 14px;
    }

    .funeral-intro-kicker {
        min-height: 28px;
        padding: 0 12px;
        font-size: 11px;
    }

    .funeral-intro-title {
        font-size: 23px;
    }

    .funeral-intro-sender {
        font-size: 13px;
    }

    .funeral-intro-button {
        width: 100%;
    }

    .funeral-list-title-area h2 {
        font-size: 22px;
    }

    .funeral-lookup-kicker {
        font-size: 11px;
    }

    .funeral-lookup-title {
        font-size: 20px;
    }

    .funeral-lookup-input,
    .funeral-lookup-submit {
        height: 48px;
        font-size: 14px;
    }

    .funeral-section {
        padding: 18px 14px;
    }

    .funeral-basic .funeral-header {
        padding: 32px 20px 28px;
    }

    .funeral-basic .basic-header-chrysanthemum {
        font-size: 32px;
    }

    .funeral-basic .funeral-title {
        font-size: 24px;
        letter-spacing: 14px;
    }

    .funeral-basic .funeral-body {
        padding: 24px 18px 20px;
    }

    .funeral-basic .funeral-main-text {
        font-size: 15px;
    }

    .funeral-basic .funeral-main-text strong {
        font-size: 18px;
    }

    .funeral-basic .funeral-info dl {
        grid-template-columns: 70px 1fr;
        gap: 10px 12px;
    }

    .funeral-basic .funeral-info dt {
        letter-spacing: 6px;
        font-size: 13px;
    }

    .funeral-basic .mourner-account-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .funeral-basic .mourner-account-info .btn-copy-account {
        margin-left: 0;
        margin-top: 2px;
    }

    .funeral-formal .formal-outer-frame {
        margin: 8px;
    }

    .funeral-formal .funeral-header-formal {
        padding: 36px 20px 28px;
    }

    .funeral-formal .funeral-header-formal h2 {
        font-size: 32px;
        letter-spacing: 16px;
    }

    .funeral-formal .funeral-body-formal {
        padding: 24px 20px;
    }

    .funeral-formal .funeral-details-formal {
        padding: 18px 12px;
    }

    .funeral-formal .formal-detail-row {
        font-size: 14px;
    }

    .funeral-formal .condolence-cell-formal {
        padding-left: 20px;
    }

    .funeral-formal .account-cell-formal {
        padding-left: 20px;
    }

    .funeral-formal .mourner-title-formal {
        width: 80px;
    }

    .funeral-modern .funeral-header-modern {
        padding: 36px 20px 32px;
    }

    .funeral-modern .funeral-header-modern h2 {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .funeral-modern .chrysanthemum {
        font-size: 36px;
    }

    .funeral-modern .funeral-cards {
        padding: 12px;
    }

    .funeral-modern .funeral-card {
        padding: 14px;
    }

    /* 따뜻한형 모바일 */
    .funeral-warm .warm-header {
        padding: 32px 20px 28px;
    }

    .funeral-warm .warm-candle-icon {
        font-size: 36px;
    }

    .funeral-warm .warm-body {
        padding: 24px 18px 28px;
    }

    .funeral-warm .warm-main-text {
        font-size: 15px;
    }

    .funeral-warm .warm-main-text strong {
        font-size: 18px;
    }

    .funeral-warm .warm-info {
        padding: 18px 14px;
    }

    .funeral-warm .warm-account {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .funeral-warm .warm-btn-copy {
        margin-left: 0;
    }

    /* 하늘형 모바일 */
    .funeral-sky .sky-header-content {
        padding: 36px 20px 32px;
    }

    .funeral-sky .sky-dove-icon {
        font-size: 36px;
    }

    .funeral-sky .sky-body {
        padding: 24px 18px 28px;
    }

    .funeral-sky .sky-main-text {
        font-size: 15px;
    }

    .funeral-sky .sky-main-text strong {
        font-size: 18px;
    }

    .funeral-sky .sky-info-card {
        padding: 18px 14px;
    }

    .funeral-sky .sky-account {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .funeral-sky .sky-btn-copy {
        margin-left: 0;
    }

    /* 꽃길형 모바일 */
    .funeral-floral .floral-header {
        padding: 32px 20px 24px;
    }

    .funeral-floral .floral-icon {
        font-size: 32px;
    }

    .funeral-floral .floral-body {
        padding: 20px 18px 28px;
    }

    .funeral-floral .floral-main-text {
        font-size: 15px;
    }

    .funeral-floral .floral-main-text strong {
        font-size: 18px;
    }

    .funeral-floral .floral-account {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .funeral-floral .floral-btn-copy {
        margin-left: 0;
    }

    /* 사진형 모바일 */
    .funeral-phototmpl .phototmpl-hero {
        min-height: 280px;
    }

    .funeral-phototmpl .phototmpl-hero-nophoto {
        min-height: 260px;
    }

    .funeral-phototmpl .phototmpl-hero-content {
        padding: 28px 18px 32px;
    }

    .funeral-phototmpl .phototmpl-name {
        font-size: 22px;
        letter-spacing: 3px;
    }

    .funeral-phototmpl .phototmpl-icon {
        font-size: 40px;
    }

    .funeral-phototmpl .phototmpl-body {
        padding: 20px 16px 28px;
    }

    .funeral-phototmpl .phototmpl-info-card,
    .funeral-phototmpl .phototmpl-mourners-card {
        padding: 20px 16px;
    }

    .funeral-phototmpl .phototmpl-account {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .funeral-phototmpl .phototmpl-btn-copy {
        margin-left: 0;
    }

    .btn-write {
        padding: 8px 16px;
        font-size: 13px;
    }

    .card-item-name {
        font-size: 21px;
    }

    .card-item-mourner {
        font-size: 13px;
    }

    .card-item-fact {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .card-item-date {
        white-space: normal;
    }

    .funeral-comments {
        padding: 0 10px;
    }

    .funeral-comments .comment-writer-info {
        flex-direction: column;
    }

    .form-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn-submit {
        width: 100%;
        max-width: 300px;
    }

    .btn-cancel {
        width: 100%;
        max-width: 300px;
        margin-left: 0;
        text-align: center;
    }

    .submit-actions {
        width: 100%;
    }

    .submit-action-btn {
        width: 100%;
    }

    .share-url-box {
        flex-direction: column;
    }

    .funeral-share {
        padding: 16px;
    }

    .funeral-thanks-section {
        padding: 0 10px;
    }
    .funeral-thanks-section .thanks-message {
        font-size: 14px;
    }
    .funeral-thanks-section .thanks-header h4 {
        font-size: 18px;
    }

    .funeral-account-section {
        padding: 0 10px;
    }
    .funeral-account-toggle {
        padding: 12px 14px;
        font-size: 14px;
        letter-spacing: 1px;
    }
    .account-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .btn-copy-account-new {
        margin-left: 0;
        align-self: flex-end;
    }
}

/* --------------------------------------------------------------------------
   14. 인쇄 스타일
   -------------------------------------------------------------------------- */
@media print {
    body {
        background: white !important;
    }

    .funeral-view {
        max-width: 100%;
        padding: 0;
    }

    .funeral-template {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .funeral-share,
    .funeral-actions,
    .funeral-comments,
    .btn-map,
    .btn-map-formal,
    .btn-map-modern,
    .warm-btn-map,
    .sky-btn-map,
    .floral-btn-map,
    .phototmpl-btn-map,
    .btn-copy-account,
    .btn-copy-sm,
    .btn-copy-modern,
    .warm-btn-copy,
    .sky-btn-copy,
    .floral-btn-copy,
    .phototmpl-btn-copy,
    .share-btn,
    .btn-action,
    .funeral-search,
    .funeral-list-btns,
    .comment-form,
    .comment-actions,
    .funeral-pagination,
    .pg_wrap {
        display: none !important;
    }

    .funeral-basic .funeral-header {
        background: none !important;
        border-bottom: 2px solid #333;
    }

    .funeral-basic .funeral-title {
        color: #333 !important;
    }

    .funeral-basic .basic-header-chrysanthemum {
        display: none;
    }

    .funeral-basic .basic-header-gold-line {
        display: none;
    }

    .funeral-modern .funeral-header-modern {
        background: none !important;
        border-bottom: 2px solid #333;
        color: #333 !important;
    }

    .funeral-modern .funeral-header-modern h2,
    .funeral-modern .funeral-subtitle,
    .funeral-modern .funeral-life {
        color: #333 !important;
    }

    .funeral-modern .modern-chrysanthemum {
        display: none;
    }

    .funeral-modern .funeral-card {
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .funeral-formal {
        background: white !important;
    }

    .funeral-formal .formal-outer-frame {
        border: 2px solid #333;
    }

    .funeral-warm {
        background: white !important;
        box-shadow: none;
    }

    .funeral-warm .warm-candle-icon {
        display: none;
    }

    .funeral-sky {
        background: white !important;
        box-shadow: none;
    }

    .funeral-sky .sky-clouds {
        display: none;
    }

    .funeral-sky .sky-dove-icon {
        display: none;
    }

    .funeral-floral {
        background: white !important;
        box-shadow: none;
        border-radius: 0;
    }

    .funeral-floral::before,
    .funeral-floral::after {
        display: none;
    }

    .funeral-floral .floral-border-top,
    .funeral-floral .floral-border-bottom {
        display: none;
    }

    .funeral-phototmpl {
        box-shadow: none;
    }

    .funeral-phototmpl .phototmpl-hero-overlay {
        background: rgba(0, 0, 0, 0.5) !important;
    }

    .funeral-phototmpl .phototmpl-hero-nophoto {
        background: #eee !important;
    }

    .funeral-phototmpl .phototmpl-icon {
        display: none;
    }

    .funeral-card-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .funeral-card-item:hover {
        transform: none;
        box-shadow: none;
    }

    a {
        color: #333 !important;
        text-decoration: none !important;
    }
}

/* ==========================================================================
   상주별 조문 멘트
   ========================================================================== */

/* 기본형 조문 멘트 */
.mourner-condolence {
    font-size: 13px;
    color: #666;
    margin: 4px 0 8px 0;
    padding-left: 8px;
    border-left: 2px solid #ddd;
    font-style: italic;
}

/* 격식형 조문 멘트 */
.condolence-row-formal .condolence-cell-formal {
    font-size: 13px;
    color: #555;
    padding: 2px 8px 8px 20px;
    font-style: italic;
    border-bottom: 1px solid #eee;
}

/* 모던형 조문 멘트 */
.mourner-condolence-modern {
    font-size: 13px;
    color: #888;
    margin: 4px 0 8px 0;
    padding: 6px 10px;
    background: #f8f8f8;
    border-radius: 4px;
    font-style: italic;
}

/* 라디오 그룹 */
.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid var(--funeral-border);
    border-radius: var(--funeral-radius);
    transition: var(--funeral-transition);
    font-size: 14px;
}

.radio-option:hover {
    border-color: var(--funeral-primary);
    background: #f8f9fa;
}

.radio-option input[type="radio"] {
    margin: 0;
    accent-color: var(--funeral-primary);
}

.radio-option input[type="radio"]:checked + span {
    color: var(--funeral-primary);
    font-weight: 600;
}

.radio-option small {
    color: var(--funeral-text-muted);
    font-size: 12px;
}

@media (max-width: 480px) {
    .radio-group {
        gap: 8px;
    }
    .radio-option {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* 인사말 프리셋 */
.greeting-presets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.greeting-option {
    cursor: pointer;
}

.greeting-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.greeting-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--funeral-border);
    border-radius: var(--funeral-radius);
    transition: var(--funeral-transition);
}

.greeting-option:hover .greeting-card {
    border-color: var(--funeral-primary-light);
    background: #fafbfc;
}

.greeting-option input[type="radio"]:checked + .greeting-card {
    border-color: var(--funeral-primary);
    background: rgba(44, 62, 80, 0.03);
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
}

.greeting-label {
    display: inline-block;
    min-width: 52px;
    padding: 4px 10px;
    background: var(--funeral-primary);
    color: var(--funeral-white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.greeting-preview {
    font-size: 13px;
    color: var(--funeral-text-light);
    line-height: 1.6;
    margin: 0;
}

.greeting-textarea-wrap {
    margin-top: 12px;
}

.greeting-textarea-wrap textarea {
    width: 100%;
    min-height: 80px;
}

/* 부고 표현 라디오 wrap */
.radio-group-wrap {
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .greeting-card {
        flex-direction: column;
        gap: 6px;
        padding: 10px 12px;
    }
    .greeting-label {
        min-width: auto;
    }
}

/* --------------------------------------------------------------------------
   교통 안내 버튼
   -------------------------------------------------------------------------- */
.funeral-transport-section {
    max-width: 600px;
    margin: 28px auto 0;
    padding: 0 20px;
}

.funeral-transport-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: #fff;
    border: none;
    border-radius: var(--funeral-radius);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: var(--funeral-transition);
    box-shadow: 0 2px 8px rgba(41, 128, 185, 0.3);
}

.funeral-transport-btn:hover {
    background: linear-gradient(135deg, #2471a3, #2e86c1);
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.4);
    transform: translateY(-1px);
}

.transport-btn-icon {
    font-size: 18px;
}

/* --------------------------------------------------------------------------
   교통 안내 레이어 팝업
   -------------------------------------------------------------------------- */
.transport-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.transport-popup-overlay.active {
    display: flex;
}

.transport-popup {
    background: #fff;
    border-radius: var(--funeral-radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: transportPopupIn 0.25s ease-out;
}

@keyframes transportPopupIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.transport-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--funeral-border-light);
}

.transport-popup-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--funeral-primary);
}

.transport-popup-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--funeral-border);
    border-radius: 50%;
    font-size: 20px;
    color: var(--funeral-text-light);
    cursor: pointer;
    transition: var(--funeral-transition);
}

.transport-popup-close:hover {
    background: #f0f0f0;
    color: var(--funeral-text);
}

.transport-popup-venue {
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid var(--funeral-border-light);
}

.transport-venue-name {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--funeral-primary);
}

.transport-venue-address {
    margin: 0;
    font-size: 13px;
    color: var(--funeral-text-light);
}

.transport-popup-body {
    padding: 16px 20px;
}

.transport-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--funeral-border-light);
}

.transport-item:last-child {
    border-bottom: none;
}

.transport-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef6fd;
    border-radius: 10px;
    font-size: 20px;
}

.transport-detail {
    flex: 1;
    min-width: 0;
}

.transport-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--funeral-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.transport-value {
    font-size: 14px;
    color: var(--funeral-text);
    line-height: 1.6;
    word-break: keep-all;
}

.transport-popup-footer {
    padding: 14px 20px 18px;
    border-top: 1px solid var(--funeral-border-light);
}

.transport-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    background: #1ec800;
    color: #fff;
    border: none;
    border-radius: var(--funeral-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--funeral-transition);
}

.transport-map-btn:hover {
    background: #1ab300;
    text-decoration: none;
    color: #fff;
}

/* 교통 안내 - 작성 폼 필드 */
.transport-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transport-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.transport-label {
    min-width: 80px;
    font-size: 13px;
    font-weight: 600;
    color: var(--funeral-text);
    flex-shrink: 0;
}

.transport-field .form-input {
    flex: 1;
}

/* 교통 안내 팝업 - 모바일 반응형 */
@media (max-width: 480px) {
    .transport-popup-overlay {
        padding: 10px;
        align-items: flex-end;
    }
    .transport-popup {
        max-height: 85vh;
        border-radius: var(--funeral-radius-lg) var(--funeral-radius-lg) 0 0;
    }
    .transport-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .transport-field .transport-label {
        min-width: auto;
    }
}

/* 템플릿별 교통 버튼 색상 오버라이드 */
.template-modern .funeral-transport-btn {
    background: linear-gradient(135deg, #1a2a3a, #2c3e50);
    box-shadow: 0 2px 8px rgba(26, 42, 58, 0.3);
}
.template-modern .funeral-transport-btn:hover {
    background: linear-gradient(135deg, #152330, #243447);
}
.template-sky .funeral-transport-btn {
    background: linear-gradient(135deg, #5b8db8, #7ab0d4);
    box-shadow: 0 2px 8px rgba(91, 141, 184, 0.3);
}
.template-sky .funeral-transport-btn:hover {
    background: linear-gradient(135deg, #4e7ea6, #6da3c7);
}
.template-photo .funeral-transport-btn {
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.3);
}
.template-photo .funeral-transport-btn:hover {
    background: linear-gradient(135deg, #141428, #25253a);
}

/* --------------------------------------------------------------------------
   장례식장 자동완성 드롭다운
   -------------------------------------------------------------------------- */
.venue-autocomplete-wrap {
    position: relative;
}

.input-with-action {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.input-with-action .form-input {
    flex: 1 1 auto;
}

.input-action-btn {
    flex: 0 0 auto;
    min-width: 92px;
    padding: 0 16px;
    border: 1px solid var(--funeral-primary);
    border-radius: var(--funeral-radius-sm);
    background: var(--funeral-primary);
    color: var(--funeral-white);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--funeral-transition);
    white-space: nowrap;
}

.input-action-btn:hover {
    background: var(--funeral-primary-light);
}

.input-action-btn-address {
    background: var(--funeral-white);
    color: var(--funeral-primary);
}

.input-action-btn-address:hover {
    background: rgba(44, 62, 80, 0.06);
}

.venue-search-help {
    display: block;
    margin-top: 8px;
}

.venue-autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--funeral-border);
    border-top: none;
    border-radius: 0 0 var(--funeral-radius) var(--funeral-radius);
    box-shadow: var(--funeral-shadow-lg);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.venue-autocomplete-dropdown.active {
    display: block;
}

.venue-item {
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--funeral-border-light);
    transition: background 0.15s;
}

.venue-item:last-child {
    border-bottom: none;
}

.venue-item:hover,
.venue-item.selected {
    background: #f0f4f8;
}

.venue-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--funeral-primary);
    margin-bottom: 3px;
}

.venue-item-source {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(27, 86, 155, 0.12);
    color: var(--funeral-primary);
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}

.venue-item-source-fallback {
    background: rgba(189, 132, 35, 0.14);
    color: #9b6512;
}

.venue-item-address {
    font-size: 12px;
    color: var(--funeral-text-light);
    line-height: 1.4;
}

.venue-item-address-sub {
    font-size: 11px;
    color: var(--funeral-text-muted);
    line-height: 1.3;
    margin-top: 2px;
}

.venue-item-phone {
    font-size: 11px;
    color: var(--funeral-text-muted);
    margin-top: 2px;
}

.venue-empty-state {
    padding: 14px;
    font-size: 12px;
    color: var(--funeral-text-light);
    line-height: 1.5;
}

@media (max-width: 480px) {
    .input-with-action {
        flex-direction: column;
    }

    .input-action-btn {
        width: 100%;
        min-height: 42px;
    }

    .venue-autocomplete-dropdown {
        max-height: 250px;
    }
    .venue-item {
        padding: 10px 12px;
    }
}
