/* Colors */
:root {
    --primary-brown: #785f3e;
    --dark-brown: #5c4a31;
    --bg-light: #fdfaf7;
    --text-main: #222;
    --text-sub: #666;
    --border-light: #eee;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    background: #f8f8f8;
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}

body {
    min-width: 320px;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    background: transparent;
    padding: 0;
    border: 0;
}

hr {
    height: 1px;
    margin: 0;
    border: 0;
    background: var(--border-light);
}

.section-divider {
    height: 2px;
    background: #f2f2f2;
    border: 0;
    margin: 0;
}

.thin-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 0 20px;
}

.pd-20 {
    padding-left: 20px;
    padding-right: 20px;
}

.mobile-shell,
.obituary-page {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
}

.obituary-detail-shell {
    position: relative;
    min-height: 100vh;
}

/* Header */
.obituary-header {
    height: 60px;
    padding: 0 20px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.obituary-header-logo {
    height: 22px;
    width: auto;
    display: block;
}

.hall-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hall-names {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.hall-subtext {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin-top: 2px;
}

/* Detail Page */
.obituary-main {
    padding: 32px 20px 24px;
    text-align: center;
    background: #fff;
}

.main-portrait {
    width: min(42vw, 160px);
    aspect-ratio: 274 / 350;
    margin: 0 auto 28px;
    overflow: hidden;
    border-radius: 14px;
    background: #e9e7e4;
    box-shadow: 0 8px 24px rgba(45, 36, 25, 0.12);
}

.main-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.main-deceased {
    margin-bottom: 24px;
}

.main-name {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #111;
    letter-spacing: -0.5px;
}

.main-religion {
    margin: -4px 0 10px;
    color: #555;
    font-size: 15px;
    font-weight: 600;
}

.main-age {
    display: inline-block;
    padding: 4px 12px;
    background: #f5f5f5; /* Very light gray background */
    color: #666; /* Muted gray text */
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
}

.main-message {
    font-size: 17px;
    color: #444;
    line-height: 1.7;
    margin: 0 0 40px;
    letter-spacing: -0.01em;
}

.additional-notice {
    margin: -20px 0 32px;
    padding: 14px 16px;
    border: 1px solid #eee6dc;
    border-radius: 8px;
    background: #fffaf4;
    text-align: left;
}

.additional-notice-label {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--primary-brown);
    font-size: 13px;
    font-weight: 800;
}

.additional-notice p {
    margin: 0;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-line;
}

/* Summary List (Integrated with main) */
.main-summary-list {
    margin-top: 24px;
    text-align: left;
    border-top: 1px solid #f0f0f0;
}

.summary-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-label {
    width: 60px;
    font-size: 14px;
    color: var(--primary-brown);
    font-weight: 700;
}

.summary-value {
    flex: 1;
    font-size: 15px;
    color: #111;
    font-weight: 600;
}

.summary-value b {
    font-weight: 700;
    margin-right: 4px;
}

.summary-value small {
    display: block;
    font-size: 13px;
    color: #888;
    font-weight: 400;
    margin-top: 2px;
}

.coffining-schedule-label::after {
    content: ":";
    margin-right: 4px;
}

.summary-row-burial {
    align-items: flex-start;
}

.summary-row-burial .summary-label {
    padding-top: 3px;
}

.burial-site-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.burial-site-item {
    display: flex;
    align-items: center;
    min-height: 24px;
}

.burial-site-order {
    flex: 0 0 auto;
    min-width: 54px;
    margin-right: 8px;
    padding: 3px 6px;
    border: 1px solid #eee8e1;
    border-radius: 4px;
    background: #f8f5f1;
    color: #8b7a65;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    margin: 20px 20px 10px;
    letter-spacing: -0.5px;
    color: #111;
}

/* Mourner List */
.mourner-section {
    padding-bottom: 8px;
}

.mourner-list {
    padding: 0 20px;
}

.mourner-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.5;
}

.mourner-rel {
    width: 60px;
    color: var(--text-sub);
    font-weight: 500;
}

.mourner-names {
    flex: 1;
    color: #222;
    font-weight: 600;
}

/* Actions - Restore Original */
.action-list {
    margin: 12px 20px 20px;
    padding: 0;
    list-style: none;
}

.action-card {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 10px;
    text-align: left;
}

.action-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 28px;
}

.action-icon.share { color: #fee500; }
.action-icon.sms { color: #2eac2e; }
.action-icon.money { color: var(--primary-brown); }
.action-icon.phone { color: #2eac2e; }
.action-icon.car { color: #2e5aac; }

.action-text { flex: 1; }
.action-text h2 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #222; }
.action-text p { margin: 0; font-size: 13px; color: #888; }
.action-arrow { color: #ccc; font-size: 20px; font-weight: 300; margin-left: 10px; }

/* Secondary Actions - 2-column style */
.action-list.secondary {
    display: flex;
    gap: 10px;
    margin: 0 20px 24px;
}

.action-list.secondary li {
    flex: 1;
}

.action-list.secondary .action-card {
    margin-bottom: 0;
    padding: 12px 10px;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.action-list.secondary .action-icon {
    margin-right: 0;
    margin-bottom: 8px;
    width: 32px;
    height: 32px;
    font-size: 24px;
}

.action-list.secondary .action-text h2 {
    font-size: 14px;
    margin-bottom: 0;
}

.action-list.secondary .action-arrow { display: none; }

/* Banner - Restore Original */
.etiquette-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 128px;
    margin: 0 20px 24px;
    padding: 22px 20px;
    border-radius: 8px;
    cursor: pointer;
    background: #7b645a;
    box-shadow: 0 12px 28px rgba(34, 24, 20, 0.14);
}

.etiquette-text {
    position: relative;
    z-index: 2;
    max-width: 210px;
}

.etiquette-text b {
    display: block;
    margin-bottom: 7px;
    font-size: 19px;
    font-weight: 800;
    color: #fffaf4;
    text-shadow: 0 1px 3px rgba(33, 23, 18, 0.22);
}

.etiquette-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 248, 241, 0.88);
    text-shadow: 0 1px 2px rgba(33, 23, 18, 0.18);
}

.etiquette-figure {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
}

.etiquette-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(95, 74, 66, 0.18) 0%, rgba(95, 74, 66, 0.05) 38%, rgba(95, 74, 66, 0) 100%);
    pointer-events: none;
}

/* Map & Place */
.address-map {
    position: relative;
    height: 240px;
    background: #f0f0f0;
    margin: 0 20px 24px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.navi-link {
    background: #fee500 !important;
    color: #111 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.address-info {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-text font { display: block; font-size: 17px; font-weight: 700; margin-bottom: 6px; color: #111; }
.address-text p { margin: 0; font-size: 14px; color: var(--text-sub); line-height: 1.5; }

.copy-btn {
    padding: 8px 14px;
    background: #f4f4f4;
    color: #555;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    white-space: nowrap;
}

/* Flowers */
.flower-section-heading {
    margin: 34px 20px 18px;
    text-align: center;
    color: #30261d;
}
.flower-section-heading h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Nanum Myeongjo", serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.8px;
}
.flower-section-heading h2::before,
.flower-section-heading h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #9b8768;
}
.flower-section {
    margin: 0 20px;
    padding-bottom: 20px;
}
.flower-sender-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #eadfce;
}
.flower-sender-item {
    min-height: 92px;
    padding: 16px 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #eadfce;
    color: #332d2a;
}
/* 심볼 정의용 svg. display:none 은 일부 브라우저에서 use 참조가 깨져 크기 0으로 숨긴다. */
.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
.flower-sender-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9ac74;
}
.flower-sender-icon svg {
    width: 42px;
    height: 42px;
}
.flower-sender-copy {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
}
.flower-sender-copy strong {
    overflow-wrap: anywhere;
    color: #2d241c;
    font-size: 17px;
    line-height: 1.4;
}
.flower-sender-copy > span {
    overflow-wrap: anywhere;
    color: #94836a;
    font-family: "Nanum Myeongjo", serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}
.empty-message {
    padding: 40px 20px;
    color: #999;
    font-size: 15px;
    text-align: center;
    line-height: 1.6;
}

/* Floating Bottom Bar */
.floating-bottom-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    width: 100%;
    max-width: 430px;
    padding: 0 20px;
    display: flex;
    gap: 10px;
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-bottom-bar.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    bottom: calc(24px + env(safe-area-inset-bottom));
}

.floating-bottom-bar .btn-flower,
.floating-bottom-bar .btn-money {
    flex: 1;
    height: 56px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.floating-bottom-bar .btn-flower {
    background: #715b52; /* Updated to match point color */
    color: #fff;
}

.floating-bottom-bar .btn-money {
    background: #111;
    color: #fff;
}

/* Enhanced Bank Card UI */
.bank-wrap {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.bank-rel { font-size: 12px; color: #fff; background: var(--primary-brown); padding: 3px 10px; border-radius: 4px; font-weight: 700; margin-right: 8px; }
.bank-name-tag { font-size: 16px; color: #111; font-weight: 700; }

.bank-acc { font-size: 18px; color: #111; font-weight: 700; letter-spacing: 0.2px; }
.bank-actions .copy-btn { background: #eef3fd; color: #3b7ced; border: none; flex: 1; padding: 12px; }

/* ... (rest of standard styles like popup animations) */

.obituary-expired-page {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    background:
        linear-gradient(180deg, #ffffff 0%, #fffaf4 52%, #f7f3ee 100%);
    position: relative;
    display: flex;
    flex-direction: column;
}

.expired-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 24px 36px;
    text-align: center;
}

.expired-mark {
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
    border: 1px solid rgba(120, 95, 62, 0.22);
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(120, 95, 62, 0.16) 0 3px, transparent 4px),
        linear-gradient(180deg, rgba(120, 95, 62, 0.08), rgba(120, 95, 62, 0.02));
    box-shadow: 0 12px 32px rgba(120, 95, 62, 0.12);
}

.expired-eyebrow {
    margin: 0 0 12px;
    color: var(--primary-brown);
    font-size: 13px;
    font-weight: 800;
}

.expired-main h1 {
    margin: 0;
    color: #171717;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 29px;
    font-weight: 800;
    line-height: 1.35;
}

.expired-message {
    max-width: 330px;
    margin: 18px 0 0;
    color: #444;
    font-size: 16px;
    line-height: 1.75;
}

.expired-deceased {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-top: 30px;
    padding: 13px 18px;
    border-top: 1px solid rgba(120, 95, 62, 0.22);
    border-bottom: 1px solid rgba(120, 95, 62, 0.22);
    color: #222;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 20px;
}

.expired-deceased strong {
    font-size: 24px;
    font-weight: 800;
}

.expired-sub-message {
    max-width: 320px;
    margin: 28px 0 0;
    color: #777;
    font-size: 14px;
    line-height: 1.7;
}

.expired-footer {
    padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
    color: #756b61;
    font-size: 13px;
    text-align: center;
}

.expired-footer b,
.expired-footer span {
    display: block;
}

.expired-footer span {
    margin-top: 4px;
}

/* Forms (3, 4, 5) */
.form-page {
    padding: 30px 20px;
    flex: 1;
}

.form-title {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.verify-copy {
    margin: 0 0 24px;
    color: #444;
    font-size: 16px;
    line-height: 1.5;
}

.danger, .text-red { color: #E34E48; font-weight: 600; }

.field-group {
    position: relative;
    margin-bottom: 12px;
}

.field, .select-field {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    color: #222;
}

.select-field {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    background-image:
        linear-gradient(45deg, transparent 50%, #888 50%),
        linear-gradient(135deg, #888 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 2px),
        calc(100% - 14px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.field::placeholder { color: #aaa; }
.field:focus, .select-field:focus { border-color: #8c7351; outline: none; }

.field-group .choices {
    margin-bottom: 0;
}

.field-group .choices__inner {
    width: 100%;
    min-height: 52px;
    height: 52px;
    padding: 0 44px 0 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #222;
}

.field-group .choices__list--single {
    padding: 0;
}

.field-group .choices__placeholder {
    opacity: 1;
    color: #aaa;
}

.field-group .choices[data-type*=select-one]::after {
    right: 18px;
    border-color: #888 transparent transparent;
}

.field-group .choices[data-type*=select-one].is-open::after {
    border-color: transparent transparent #888;
}

.field-group .choices__list--dropdown,
.field-group .choices__list[aria-expanded] {
    border-color: #ddd;
    border-radius: 6px;
    z-index: 20;
}

.field-group .choices.is-focused .choices__inner,
.field-group .choices.is-open .choices__inner {
    border-color: #8c7351;
}

.timer {
    position: absolute;
    left: 16px;
    bottom: -28px;
    color: #E34E48;
    font-size: 14px;
}

.resend-link {
    position: absolute;
    right: 0;
    bottom: -28px;
    color: #3b7ced;
    font-size: 14px;
    font-weight: 600;
}

.btn-primary {
    display: block;
    width: 100%;
    height: 56px;
    border-radius: 6px;
    background: #8c7351;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    line-height: 56px;
    margin-top: 40px;
}

.btn-primary:disabled {
    background: #ccc;
    color: #fff;
}

.btn-white {
    display: block;
    width: 100%;
    height: 56px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    line-height: 54px;
    margin-bottom: 12px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 30px;
    font-size: 15px;
    color: #222;
}

.checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #8c7351;
}

.refer-preview {
    margin-top: 20px;
    padding: 24px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.refer-preview-title {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.refer-preview-content {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.refer-preview-content .grey {
    color: #777;
    margin-top: 16px;
    font-size: 14px;
}

.refer-note {
    margin-top: 20px;
    font-size: 14px;
    color: #888;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.input-row .field {
    text-align: center;
    font-weight: 700;
}

.input-row span {
    color: #666;
    white-space: nowrap;
}

/* Modals */
@keyframes popupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes popupSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.popup-view-wrap[hidden] { display: none; }
.popup-view-wrap {
    position: fixed; inset: 0; z-index: 50;
    display: flex; align-items: flex-end; justify-content: center;
}
.popup-view-wrap:not([hidden]) > span { animation: popupFadeIn 0.3s ease-out forwards; }
.popup-view-wrap:not([hidden]) > div { animation: popupSlideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

.popup-view-wrap > span { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.popup-view-wrap > div {
    position: relative; z-index: 1; width: 100%; max-width: 430px; max-height: 85vh; min-height: 60vh;
    background: #fff; border-radius: 20px 20px 0 0; overflow: hidden; display: flex; flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
}
.popup-view-wrap h2 {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; padding: 0 20px; margin: 0; font-size: 18px; font-weight: 700; border-bottom: 1px solid #f0f0f0;
}
.popup-view-wrap h2 button { font-size: 28px; color: #444; line-height: 1; }
.popup-content { flex: 1; overflow-y: auto; padding: 24px 20px; }

#directions-popup > div {
    min-height: 76vh;
    max-height: 92vh;
}

/* Enhanced Bank Card UI */
.bank-wrap {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.bank-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #f0f0f0;
}
.bank-rel { font-size: 13px; color: #fff; background: #8c7351; padding: 4px 10px; border-radius: 20px; font-weight: 600; margin-right: 8px; }
.bank-name-tag { font-size: 16px; color: #222; font-weight: 700; }
.bank-holder-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bank-holder-label { font-size: 12px; color: #888; }
.bank-holder-name { font-size: 14px; color: #222; font-weight: 600; }
.bank-account-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.bank-account-label { font-size: 12px; color: #888; }
.bank-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bank-name-label { font-size: 12px; color: #888; }

/* 은행·예금주명·계좌번호 세 줄의 값을 같은 열에서 시작시킨다(라벨 글자 수가 달라도 정렬 유지). */
.bank-name-label,
.bank-holder-label,
.bank-account-label { min-width: 52px; }

.bank-body {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
/* 은행·예금주명·계좌번호 세 줄의 간격을 한 곳에서 균등하게 잡는다. */
.bank-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bank-info .bank-name { font-size: 14px; color: #222; font-weight: 600; }
.bank-info .bank-acc { font-size: 18px; color: #222; font-weight: 700; letter-spacing: 0.5px; margin: 0; }

.bank-actions {
    display: flex;
    gap: 8px;
}
.bank-actions button {
    flex: 1;
    height: 44px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bank-actions .copy-btn { background: #eef3fd; color: #3b7ced; border: none; }

.bank-empty { padding: 40px 0; color: #888; text-align: center; }

.directions-info h3 { margin: 20px 0 8px; color: #8c7351; font-size: 16px; font-weight: 700; }
.directions-info h3:first-child { margin-top: 0; }
.directions-info p { margin: 0; color: #444; font-size: 15px; line-height: 1.6; }
#directions-popup .directions-info p {
    white-space: pre-line;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

/* 조문예절 단계 */
.etiquette-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.etiquette-step { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: #faf8f5; border: 1px solid #efe9e1; border-radius: 12px; }
.etiquette-step .step-icon {
    position: relative;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ece5da;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-brown);
}
.etiquette-step .step-num {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-brown);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.etiquette-step .step-body { flex: 1; min-width: 0; }
.etiquette-step .step-body h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: #222; }
.etiquette-step .step-body p { margin: 0; font-size: 13px; color: #666; line-height: 1.55; word-break: keep-all; }
.etiquette-step .step-icon .material-symbols-rounded {
    font-size: 25px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* 빈소 입실 예정 안내 */
.check-in-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}
.check-in-notice-icon {
    font-size: 18px;
    color: var(--primary-brown);
    flex-shrink: 0;
    font-variation-settings: 'FILL' 1;
}
.check-in-notice-text {
    flex: 1;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark-brown);
}
.check-in-notice-link {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-brown);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 가운데 정렬 알림 다이얼로그 */
.notice-dialog-wrap[hidden] { display: none; }
.notice-dialog-wrap {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.notice-dialog-wrap > span {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}
.notice-dialog-wrap:not([hidden]) > span { animation: popupFadeIn 0.25s ease-out forwards; }
.notice-dialog-wrap:not([hidden]) > .notice-dialog { animation: noticeDialogPop 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

.notice-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 340px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 28px 20px 20px;
    border-radius: 20px;
    background: #fff;
    text-align: center;
}
.notice-dialog h2 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}
.notice-dialog-highlight {
    margin-bottom: 20px;
    padding: 14px 12px;
    border-radius: 12px;
    background: var(--bg-light);
}
.notice-dialog-highlight-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-sub);
}
.notice-dialog-highlight strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-brown);
}
.notice-dialog-body {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-sub);
}
.notice-dialog-body b {
    font-weight: 700;
    color: var(--text-main);
}
.notice-dialog-close {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background: var(--primary-brown);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

@keyframes noticeDialogPop {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

/* 화환 배달 문의 */
.action-icon.delivery { color: #e08aa8; }

#delivery-popup > div { min-height: 0; }

.delivery-item {
    padding: 18px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.delivery-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.delivery-tag {
    padding: 4px 10px;
    border-radius: 20px;
    background: #8c7351;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.delivery-name { font-size: 16px; font-weight: 700; color: var(--text-main); }
.delivery-hours {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
}
.delivery-hours .material-symbols-outlined { font-size: 16px; }

.delivery-item-actions { display: flex; gap: 8px; }
.delivery-call {
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    background: #eef3fd;
    color: #3b7ced;
    font-size: 15px;
    font-weight: 700;
}
.delivery-call .material-symbols-outlined { font-size: 18px; }
.delivery-item-actions .copy-btn {
    width: 72px;
    height: 44px;
    border-radius: 8px;
}
