/* ── 주문 플로우 전용 스타일 ── */

/* ── Order Card (공통 카드 프레임워크) ── */
.order-card {
    background: white;
    border: 1px solid #eee;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    white-space: normal;
}

.order-card__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--primary-soft);
    border-bottom: 1px solid #fce4ec;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.order-card__header-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.order-card__body {
    padding: 0.75rem 1rem;
}

.order-card__footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #f0f0f0;
}

/* 공통 CTA 버튼 (파란색 계열 — 선택 칩과 구별) */
.order-card__cta {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-align: center;
}

.order-card__cta:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* 공통 디바이더 */
.order-card__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.8rem;
    margin: 0.5rem 0;
}

.order-card__divider::before,
.order-card__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* 공통 입력 그룹 */
.order-card__input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.order-card__input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.order-card__input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.order-card__input-submit {
    flex-shrink: 0;
    padding: 0.6rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    white-space: nowrap;
}

.order-card__input-submit:hover {
    background: var(--accent-dark);
}

/* 공통 칩/pill 버튼 */
.order-chip {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    background: white;
    cursor: pointer;
    font-size: 0.88rem;
    text-align: left;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--text);
}

.order-chip:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.order-chip--selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    pointer-events: none;
}

/* 공통 안내 텍스트 */
.order-card__hint {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* ── Disabled Input State ── */
.chat-input-form--disabled {
    opacity: 0.5;
    pointer-events: none;
}

.chat-input-form--disabled .chat-input {
    background: #f5f5f5;
    cursor: not-allowed;
}

.btn-send--disabled,
.btn-upload--disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Service Mode Buttons ── */
.service-greeting {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.service-prompt {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.service-mode-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
}

.service-mode-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--primary-light);
    border-radius: var(--radius);
    background: var(--primary-soft);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-family: inherit;
}

.service-mode-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.service-mode-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.service-mode-label {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.service-mode-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
    margin-top: 0.1rem;
}

.service-mode-btn--selected {
    border-color: var(--border);
    background: var(--surface);
    pointer-events: none;
    opacity: 0.5;
}

.service-mode-btn--active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    opacity: 1;
    pointer-events: none;
}

.service-mode-btn--active .service-mode-desc {
    color: rgba(255, 255, 255, 0.8);
}

.service-mode-btn--active .service-mode-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* ── Progress Tracker ── */
.progress-tracker {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-white);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: max-content;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.4rem;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 48px;
    font-family: inherit;
}

.progress-step:disabled {
    cursor: default;
}

.progress-step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid var(--border);
    background: white;
    color: transparent;
    transition: all 0.2s;
}

.progress-step--done .progress-step-dot {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
}

.progress-step--active .progress-step-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: transparent;
}

.progress-step:disabled .progress-step-dot {
    background: #f5f5f5;
    border-color: #ddd;
}

.progress-step-label {
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-light);
}

.progress-step--done .progress-step-label {
    color: #4caf50;
}

.progress-step--active .progress-step-label {
    color: var(--primary);
}

.progress-step-connector {
    width: 24px;
    height: 2px;
    background: var(--border);
    flex-shrink: 0;
    margin-bottom: 1.1rem;
}

.progress-step-connector--done {
    background: #4caf50;
}

/* ── Category Selection ── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.category-btn:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: scale(1.02);
}

.category-icon {
    font-size: 1.5rem;
}

.category-label {
    font-weight: 600;
    font-size: 0.85rem;
}

.category-desc {
    font-size: 0.7rem;
    color: var(--text-light);
}

.category-btn--selected {
    border-color: var(--primary);
    background: var(--primary-light);
    pointer-events: none;
    opacity: 0.6;
}

.category-btn--active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    pointer-events: none;
}

.category-btn--active .category-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* ── Action Buttons (분석 결과 - 복사 버튼 대체) ── */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--bg-white);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.action-btn:hover {
    background: var(--accent);
    color: white;
}

.action-btn--confirmed {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
    pointer-events: none;
}

.info-value {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

/* ── Ribbon Message ── */
.ribbon-preset-list,
.ribbon-recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ribbon-preset-btn--selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    pointer-events: none;
}

.order-card__section-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0.5rem 0 0.3rem;
}

/* ── Ribbon Tabs ── */
.ribbon-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ribbon-tabs::-webkit-scrollbar {
    display: none;
}

.ribbon-tab {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
    text-align: center;
}

.ribbon-tab:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.ribbon-tab--active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.ribbon-tab-panel--hidden {
    display: none;
}

/* ── Saved Phrases (보내는분 프리셋) ── */
.saved-phrases-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.sender-fill-btn {
    display: inline-block;
    width: auto;
    text-align: center;
}

/* ── DateTime Picker ── */
.datetime-picker {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.datetime-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.datetime-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
}

/* ── Date Chip Grid ── */
.date-chip-grid {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
}

.date-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-width: 56px;
    padding: 0.5rem 0.6rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    flex-shrink: 0;
}

.date-chip:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.date-chip--selected {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.date-chip--funeral {
    border-color: #ffe0b2;
}

.date-chip--funeral.date-chip--selected {
    border-color: #e65100;
    background: #fff3e0;
}

.date-chip__day {
    font-size: 0.95rem;
    font-weight: 700;
}

.date-chip__weekday {
    font-size: 0.72rem;
    color: var(--text-light);
}

.date-chip--selected .date-chip__weekday {
    color: var(--primary);
}

.date-chip__badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    background: var(--primary-soft);
    color: var(--primary);
    line-height: 1.2;
}

.date-chip__badge--funeral {
    background: #fff3e0;
    color: #e65100;
}

/* ── Datetime Toast ── */
.datetime-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.6rem 1.2rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 300;
    white-space: nowrap;
    animation: fadeIn 0.2s ease;
}

.datetime-toast--hide {
    opacity: 0;
    transition: opacity 0.3s;
}

/* ── Time Chip Grid ── */
.time-chip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.time-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.6rem 0.5rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.time-chip:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.time-chip--selected {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.time-chip--selected .time-chip__sub {
    color: var(--primary);
}

.time-chip__label {
    font-size: 0.9rem;
    font-weight: 600;
}

.time-chip__sub {
    font-size: 0.72rem;
    color: var(--text-light);
    transition: color 0.2s;
}

/* ── Order Summary ── */
.order-summary-grid {
    display: flex;
    flex-direction: column;
}

.order-summary-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.88rem;
    line-height: 1.5;
}

.order-summary-item--last {
    border-bottom: none;
}

.order-summary-label {
    font-weight: 600;
    min-width: 85px;
    color: var(--text-light);
    flex-shrink: 0;
    font-size: 0.82rem;
}

.order-summary-value {
    flex: 1;
    word-break: break-word;
    color: var(--text);
}

.order-summary-footer {
    text-align: center;
}

.order-summary-notice {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* ── Order Action Area ── */
.order-action-area {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-white);
    text-align: center;
}

.btn-order-complete {
    padding: 0.75rem 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-family: inherit;
}

.btn-order-complete:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-inquiry-complete {
    padding: 0.6rem 1.5rem;
    background: var(--text-light);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.btn-inquiry-complete:hover {
    background: var(--text);
}

/* ── Preparation Notice ── */
.preparation-notice {
    text-align: center;
    padding: 1rem;
}

.preparation-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.preparation-notice h4 {
    margin: 0 0 0.5rem;
}

.preparation-notice p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0 0 0.25rem;
}

.btn-back-to-start {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-back-to-start:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* ── Sender Name Input (보내는분) ── */
.sender-recent-section {
    margin-top: 0.75rem;
}

.sender-recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sender-chip {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--text);
}

.sender-chip:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

/* ── Funeral Context (조화 배송) ── */
.funeral-context-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #fff8e1;
    border: 1.5px solid #ffe0b2;
    border-radius: var(--radius);
    margin-bottom: 0.875rem;
}

.funeral-banner-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
}

.funeral-banner-text {
    font-size: 0.88rem;
    line-height: 1.4;
}

.funeral-banner-text strong {
    color: #e65100;
}

.funeral-notice {
    font-size: 0.8rem;
    color: #bf360c;
    margin: 0.25rem 0 0;
}

/* ── DateTime Hint Banner (URL 분석 날짜 힌트) ── */
.datetime-hint-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: #e3f2fd;
    border: 1.5px solid #90caf9;
    border-radius: var(--radius);
    margin-bottom: 0.875rem;
}

.datetime-hint-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
}

.datetime-hint-text {
    font-size: 0.88rem;
    line-height: 1.4;
}

.datetime-hint-text strong {
    color: #1565c0;
}

.datetime-hint-notice {
    margin: 0.2rem 0 0;
    color: var(--text-light);
    font-size: 0.8rem;
}

.date-chip--hint {
    border-color: #90caf9;
}

.time-chip--hint {
    border-color: #90caf9;
}

.btn-immediate-delivery {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #ff8f00, #ff6f00);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-immediate-delivery:hover {
    background: linear-gradient(135deg, #ff6f00, #e65100);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.datetime-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.8rem;
}

.datetime-divider::before,
.datetime-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Funeral Date Action Button ── */
.action-btn--funeral-date {
    border-color: #e65100;
    color: #e65100;
}

.action-btn--funeral-date:hover {
    background: #e65100;
    color: white;
}

.action-btn--funeral-date.action-btn--confirmed {
    background: #e65100;
    border-color: #e65100;
}

/* ── Recipient Select Bottom Sheet ── */
.recipient-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
    animation: fadeIn 0.2s ease;
}

.recipient-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 201;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.25s ease;
}

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

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.recipient-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.recipient-sheet__title {
    font-weight: 700;
    font-size: 1rem;
}

.recipient-sheet__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--surface);
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-light);
    transition: background 0.2s;
}

.recipient-sheet__close:hover {
    background: var(--border);
}

.recipient-sheet__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.75rem 1.25rem;
}

.recipient-sheet__list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.recipient-sheet__option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    font-size: 0.9rem;
    text-align: left;
    width: 100%;
}

.recipient-sheet__option:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.recipient-sheet__option--selected {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.recipient-sheet__radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.recipient-sheet__option--selected .recipient-sheet__radio {
    border-color: var(--primary);
}

.recipient-sheet__option--selected .recipient-sheet__radio::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.recipient-sheet__custom {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.recipient-sheet__custom-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.recipient-sheet__footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.recipient-sheet__submit {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.recipient-sheet__submit:hover {
    background: var(--accent-dark);
}

.recipient-sheet__submit:disabled {
    background: var(--border);
    cursor: not-allowed;
}

/* ── Recipient Sheet: Role + Name Layout ── */
.recipient-sheet__option-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.recipient-sheet__option-role {
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.2;
}

.recipient-sheet__option-name {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

/* ── Skip Button (선택 안함) ── */
.action-btn-skip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-white);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    white-space: nowrap;
}

.action-btn-skip:hover {
    border-color: var(--text-light);
    color: var(--text);
}

.action-btn-skip--used {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Skipped action button ── */
.action-btn--skipped {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text-light) !important;
    pointer-events: none;
}

/* ── Actions wrapper (confirm + skip 그룹) ── */
.info-item__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-basis: 100%;
    margin-left: calc(90px + 0.75rem);
    padding-top: 0.1rem;
}

.info-item--actions {
    justify-content: flex-end;
    padding-top: 0.15rem;
    border-top: 1px dashed var(--border);
    margin-top: 0.15rem;
}

/* ── D-day Badge (발인일) ── */
.dday-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    background: #fff3e0;
    color: #e65100;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 0.35rem;
    vertical-align: middle;
    line-height: 1.3;
}

.dday-badge--today {
    background: #ffebee;
    color: #c62828;
}

.dday-badge--done {
    background: #f5f5f5;
    color: #757575;
}

/* ── Order Complete Card ── */
.order-card--complete {
    text-align: center;
    border: 1.5px solid #c8e6c9;
    background: linear-gradient(180deg, #e8f5e9 0%, #fff 40%);
}

.order-complete__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1rem 0.5rem;
}

.order-complete__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.order-complete__title {
    font-size: 1rem;
    font-weight: 700;
    color: #2e7d32;
}

.order-complete__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
}

.order-complete__number-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-complete__number-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    font-family: "SF Mono", "Consolas", "Monaco", monospace;
    background: var(--surface);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.order-complete__footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e8f5e9;
    font-size: 0.88rem;
    color: var(--text-light);
}

/* ── Field Confirmation ── */
.field-confirm {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    border: 1px solid #e8e8e8;
    border-radius: var(--radius);
    border-left: 3px solid #4caf50;
}

.field-confirm__icon {
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1;
}

.field-confirm__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.field-confirm__label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.field-confirm__value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    word-break: break-word;
}

.field-confirm__check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4caf50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.field-confirm__note {
    margin-top: 0.35rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.field-confirm__time {
    font-size: 0.68rem;
    color: var(--text-light);
    text-align: right;
    margin-top: 0.2rem;
    padding-right: 0.25rem;
}

/* ── Error Card ── */
.error-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: var(--radius);
    border-left: 3px solid #ff9800;
}

.error-card__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
}

.error-card__message {
    font-size: 0.9rem;
    color: #e65100;
    font-weight: 500;
}

/* ── Report Button (이미지 신고) ── */
.report-action {
    margin-top: 0.5rem;
    text-align: right;
}

.btn-report-image {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    color: #d32f2f;
    background: #ffebee;
    border: 1px solid #ef9a9a;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-report-image:hover:not(:disabled) {
    background: #ffcdd2;
    border-color: #e57373;
}

.btn-report-image:disabled {
    cursor: default;
    opacity: 0.8;
}

.btn-report-image--done {
    color: #2e7d32;
    background: #e8f5e9;
    border-color: #a5d6a7;
}

/* ── Inquiry Complete Card ── */
.complete-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
}

.complete-card__icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1;
}

.complete-card__message {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

/* ── Guide Card ── */
.guide-card {
    padding: 0.65rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.guide-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.guide-card__desc {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.5;
}

.guide-card__list {
    margin: 0.35rem 0 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.guide-card__item {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ── Recipient Sheet: Phone Input ── */
.recipient-sheet__phone {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.recipient-sheet__phone-label {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.recipient-sheet__phone-input {
    width: 100%;
    display: block;
}

/* ── Recipient Input Card ── */
.recipient-input-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recipient-input-fields .order-card__input {
    width: 100%;
    display: block;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .progress-step {
        min-width: 40px;
        padding: 0.2rem 0.25rem;
    }

    .progress-step-dot {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }

    .progress-step-label {
        font-size: 0.6rem;
    }

    .progress-step-connector {
        width: 16px;
        margin-bottom: 0.9rem;
    }

    .action-btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .order-card__body {
        padding: 0.75rem;
    }

    .order-card__header {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }

    .date-chip-grid {
        gap: 0.35rem;
    }

    .date-chip {
        min-width: 50px;
        padding: 0.4rem 0.5rem;
    }

    .date-chip__day {
        font-size: 0.88rem;
    }

    .time-chip-grid {
        gap: 0.35rem;
    }

    .time-chip {
        padding: 0.5rem 0.35rem;
    }

    .time-chip__label {
        font-size: 0.82rem;
    }

    .order-summary-label {
        min-width: 72px;
    }

    .order-complete__number-value {
        font-size: 1rem;
    }

    .field-confirm {
        gap: 0.4rem;
        padding: 0.4rem 0.6rem;
    }

    .field-confirm__label {
        font-size: 0.68rem;
    }

    .guide-card {
        padding: 0.5rem 0.7rem;
    }

    .ribbon-tab {
        padding: 0.45rem 0.6rem;
        font-size: 0.82rem;
    }
}

/* ── 저장 문구 ── */
.saved-phrases-list,
.sender-recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.saved-phrase-item {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
}

.saved-phrase-delete {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0.375rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 50%;
    transition: color 0.15s, background-color 0.15s;
}

.saved-phrase-delete:hover {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

/* ── 자동저장 토글 ── */
.autosave-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #888;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.autosave-toggle input[type="checkbox"] {
    accent-color: var(--primary, #4a90d9);
    width: 0.9rem;
    height: 0.9rem;
}
