/**
 * Live e-Commerce Assistant Style
 */

/* 강제 모바일 메뉴 및 불필요 요소 숨김 처리 (모달 및 특정 페이지에서만 사용하도록 전역에서는 주석 처리 또는 제거) */
/* 전역 숨김은 live-ecommerce-assistant.php의 render_full_page 등에서 조건부로 처리함 */

:root {
    --leca-primary: #2196F3;
    --leca-bg: #FFFFFF;
    --leca-gray-100: #F5F5F5;
    --leca-gray-200: #EEEEEE;
    --leca-gray-600: #666666;
    --leca-text-dark: #1A1A1A;
    --leca-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --leca-radius: 32px;
}

.leca-v-stock {
    font-weight: 600;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--leca-gray-100);
    color: var(--leca-gray-600);
}

.leca-v-stock.out {
    background: #FFEBEE;
    color: #D32F2F;
}

.leca-v-stock.low {
    background: #FFF3E0;
    color: #F57C00;
}

.leca-v-stock.ok {
    background: #E8F5E9;
    color: #2E7D32;
}

.leca-auto-label {
    font-size: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 700;
    border: 1px solid #dbeafe;
    letter-spacing: -0.2px;
}

#leca-view-admin.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

/* 숏코드 루트: 토스트는 이 래퍼의 형제로 두고 minimal 내부 overflow와 분리 */
.leca-assistant-wrap {
    position: relative;
    max-width: 1200px;
    margin: 60px auto;
}

.leca-minimal-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

/* View Switching */
.leca-view {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leca-view.active {
    display: block;
    opacity: 1;
}

/* Home Screen (Google Style) */
/* Persistent Header System */
.leca-header-container {
    display: none; /* Default hidden until auth */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

[data-auth="yes"] .leca-header-container {
    display: block;
}

/* Home State (Centered) */
.leca-state-home .leca-header-container {
    padding-top: 10vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.leca-state-home .leca-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.leca-state-home .leca-logo-mini {
    font-size: 48px;
    margin-bottom: 40px;
    cursor: default;
}

/* Results State (Top Sticky) */
.leca-state-results .leca-header-container {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid var(--leca-gray-200);
    padding: 12px 20px;
}

.leca-state-results .leca-header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 로고 | 검색창 순서 정렬 */
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}

.leca-state-results .leca-logo-mini {
    padding-right: 32px;
    border-right: 1.5px solid #e2e8f0; /* 로고 | 검색창 구분선 */
    font-size: 20px;
    cursor: pointer;
    color: var(--leca-primary);
    white-space: nowrap;
    z-index: 10;
    font-weight: 800;
}

.leca-state-results .leca-search-container {
    max-width: 700px;
    width: 100%;
    margin: 0;
    flex-shrink: 1;
}

.leca-search-and-presets {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 700px;
}

/* Search UI Elements */
.leca-logo-mini {
    font-weight: 700;
    color: var(--leca-text-dark);
    margin: 0;
    transition: all 0.3s ease;
}

.leca-search-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 700px;
    min-height: 64px;
    margin: 0 auto;
    border: 1px solid var(--leca-gray-200);
    border-radius: var(--leca-radius);
    padding: 8px 16px 8px 16px;
    box-shadow: var(--leca-shadow);
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    flex-wrap: wrap;
    gap: 8px;
}

/* Chips UI */
.leca-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.leca-chip-tag {
    background: #E3F2FD;
    color: var(--leca-primary);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.leca-chip-remove {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.leca-chip-remove:hover {
    opacity: 1;
}

/* Suggestions Dropdown */
.leca-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--leca-gray-200);
    border-radius: 16px;
    margin-top: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 2000;
    max-height: 460px; /* 약 10개 항목이 보이는 높이 */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: none;
}

.leca-suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    transition: background 0.2s;
}

.leca-suggestion-item:hover,
.leca-suggestion-item.highlight {
    background: var(--leca-gray-100);
}

.leca-suggestion-category {
    font-size: 11px;
    color: var(--leca-gray-500);
    text-transform: uppercase;
    font-weight: 700;
}

.leca-search-container:focus-within {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* Quick Presets */
.leca-presets {
    display: flex;
    gap: 12px;
    margin-top: 8px; /* 검색창 하단에 더 밀착 */
    width: 100%;
    justify-content: center;
    align-items: center;
}

.leca-preset-btn {
    background: #f1f3f4;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--leca-gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.leca-preset-btn:hover {
    background: #e8eaed;
    color: var(--leca-text-dark);
}

.leca-preset-btn.active {
    background: #E3F2FD;
    color: var(--leca-primary);
    border-color: var(--leca-primary);
}

/* Category Chips - Moved below header info */
.leca-category-chips {
    display: flex;
    gap: 10px;
    margin: 15px 0 20px 20px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.leca-category-chips::-webkit-scrollbar {
    display: none;
}

.leca-chip {
    background: #fff;
    border: 1px solid var(--leca-gray-200);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--leca-gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leca-chip.active {
    background: var(--leca-primary);
    color: #fff;
    border-color: var(--leca-primary);
}

.leca-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f97316;
    color: #ffffff;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    margin-left: 6px;
    font-weight: 800;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.35) inset;
}

.leca-chip.active .leca-chip-count {
    background: #fde047;
    color: #7c2d12;
}

.leca-chip.is-empty {
    opacity: 0.45;
    cursor: pointer;
    filter: grayscale(0.25);
}

.leca-brand-chips {
    margin-bottom: 8px;
}
/* Infinity Scroll Status */
.leca-load-more-status {
    padding: 30px 20px;
    text-align: center;
    width: 100%;
}

.leca-loading {
    color: var(--leca-gray-500);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.leca-no-more {
    color: var(--leca-gray-400);
    font-size: 13px;
    font-weight: 400;
    padding: 10px 0;
    border-top: 1px solid var(--leca-gray-100);
    margin-top: 10px;
}

.leca-category-wrapper {
    display: none; /* Hide old dropdown in favor of chips */
}

#leca-search-input {
    flex: 1;
    border: none;
    font-size: 18px;
    padding: 0 12px;
    outline: none;
    color: var(--leca-text-dark);
    background: transparent;
}

.leca-state-results #leca-search-input {
    font-size: 16px;
}

#leca-search-btn {
    background: none;
    border: none;
    color: var(--leca-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px;
}

#leca-search-reset-btn {
    border: 1px solid var(--leca-gray-200);
    background: #fff;
    color: var(--leca-gray-700);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

#leca-search-reset-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--leca-text-dark);
}

/* Results Info Row */
.leca-results-header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin: 20px 0;
    padding: 0 20px;
}

.leca-results-header-spacer,
.leca-results-header-actions {
    flex: 1;
    min-width: 0;
}

.leca-results-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px 14px;
}

.leca-grid-layout-toggle {
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    font-family: inherit;
}

.leca-grid-layout-toggle:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.leca-grid-layout-toggle[aria-pressed="true"] {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.leca-grid-layout-toggle:focus-visible {
    outline: 2px solid var(--leca-primary, #3b82f6);
    outline-offset: 2px;
}

/* 숏코드 래퍼: 전체 너비 그리드 모드 */
.leca-assistant-wrap.leca-assistant-wrap--full {
    max-width: none;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

#leca-assistant-root.leca-layout-fullwidth.leca-minimal-container {
    max-width: none;
    width: 100%;
    padding-left: clamp(10px, 2.5vw, 32px);
    padding-right: clamp(10px, 2.5vw, 32px);
    box-sizing: border-box;
}

/* 전체 너비: 열 최대 5개, 좁은 화면에서는 최소 148px 기준으로 자동으로 줄어듦 */
#leca-assistant-root.leca-layout-fullwidth #leca-product-grid.leca-grid {
    --leca-fw-gap: clamp(12px, 1.5vw, 22px);
    gap: var(--leca-fw-gap);
    padding: clamp(12px, 1.5vw, 24px) 0;
    max-width: none;
    grid-template-columns: repeat(
        auto-fill,
        minmax(max(148px, calc((100% - 4 * var(--leca-fw-gap)) / 5)), 1fr)
    );
}

@media (max-width: 480px) {
    #leca-assistant-root.leca-layout-fullwidth #leca-product-grid.leca-grid {
        grid-template-columns: repeat(
            auto-fill,
            minmax(max(min(100%, 148px), calc((100% - 4 * var(--leca-fw-gap)) / 5)), 1fr)
        );
    }
}

.leca-results-header-info .leca-results-title {
    flex: 0 0 auto;
    text-align: center;
}

.leca-oos-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--leca-text-dark, #1e293b);
}

.leca-oos-filter-label {
    white-space: nowrap;
}

#leca-hide-all-oos,
#leca-include-oos-size-search {
    appearance: none;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #cbd5e1;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
    border: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}

#leca-hide-all-oos::after,
#leca-include-oos-size-search::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

#leca-hide-all-oos:checked,
#leca-include-oos-size-search:checked {
    background: var(--leca-primary, #3b82f6);
}

#leca-hide-all-oos:checked::after,
#leca-include-oos-size-search:checked::after {
    transform: translateX(20px);
}

#leca-hide-all-oos:focus-visible,
#leca-include-oos-size-search:focus-visible {
    outline: 2px solid var(--leca-primary, #3b82f6);
    outline-offset: 2px;
}

.leca-results-title {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    color: var(--leca-text-dark);
}

.leca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px;
}

/* Product Card */
.leca-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--leca-gray-200);
    overflow: hidden;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 터치 기기에서 호버 리페인트·가짜 :hover sticky 완화 — 실제 포인터 호버일 때만 */
@media (hover: hover) and (pointer: fine) {
    .leca-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--leca-shadow);
    }
}

.leca-card-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--leca-gray-100);
}

.leca-card-content {
    padding: 0 20px 20px 20px;
}

/* 캡처 범위: 상단 이미지 전폭 + 본문은 기존 카드와 동일한 안쪽 여백 */
.leca-card-capture-text {
    padding: 20px 20px 0 20px;
}

.leca-card-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--leca-text-dark);
    display: inline-block;
    transition: color 0.2s ease;
}

.leca-card-name:hover {
    color: var(--leca-primary);
    text-decoration: underline;
}

.leca-iframe-close:hover {
    background: rgba(0,0,0,0.8) !important;
    transform: scale(1.1);
}

.leca-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--leca-primary);
    margin-bottom: 16px;
}

.leca-card-meta {
    font-size: 13px;
    color: var(--leca-gray-600);
    line-height: 1.6;
}

.leca-card-meta-shipping {
    font-size: 13px;
    color: #0369a1;
    font-weight: 700;
}

.leca-card-tags {
    margin-top: 8px;
    color: var(--leca-primary);
    font-weight: 600;
}

.leca-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.leca-card-actions .leca-btn {
    width: 100%;
    justify-content: center;
    border: 1px solid transparent;
    box-sizing: border-box;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

/* 검색 결과 카드 — 버튼 역할별 기본색(호버는 포인터 기기에서만) */
.leca-card-actions .leca-btn-copy {
    background: #fffbeb;
    color: #b45309;
    border-color: #fcd34d;
}

.leca-card-actions .leca-btn-size-chart {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #7dd3fc;
}

/* 커스텀 태그 없음: 기본(차분한 슬레이트) */
.leca-card-actions .leca-btn-leca-custom-tags {
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
}

/* 커스텀 태그 있음: 바이올렛 강조 */
.leca-card-actions .leca-btn-leca-custom-tags--has-custom {
    background: #ede9fe;
    color: #5b21b6;
    border-color: #a78bfa;
    font-weight: 700;
}

.leca-card-actions .leca-btn-card-screenshot {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

.leca-card-actions .leca-btn-stash {
    background: #ecfdf5;
    color: #047857;
    border-color: #6ee7b7;
}

.leca-card-actions .leca-btn-order {
    background: #2563eb;
    color: #fff;
    border-color: #1d4ed8;
    font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
    .leca-card-actions .leca-btn-copy:hover {
        background: #fef3c7;
        border-color: #fbbf24;
        color: #92400e;
    }

    .leca-card-actions .leca-btn-size-chart:hover {
        background: #bae6fd;
        border-color: #38bdf8;
        color: #0c4a6e;
    }

    .leca-card-actions .leca-btn-leca-custom-tags:hover {
        background: #f1f5f9;
        border-color: #94a3b8;
        color: #334155;
    }

    .leca-card-actions .leca-btn-leca-custom-tags--has-custom:hover {
        background: #ddd6fe;
        border-color: #8b5cf6;
        color: #4c1d95;
    }

    .leca-card-actions .leca-btn-card-screenshot:hover {
        background: #e2e8f0;
        border-color: #94a3b8;
        color: #0f172a;
    }

    .leca-card-actions .leca-btn-stash:hover {
        background: #d1fae5;
        border-color: #34d399;
        color: #065f46;
    }

    .leca-card-actions .leca-btn-order:hover {
        background: #1d4ed8;
        border-color: #1e40af;
        box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
    }
}

.leca-card-actions .leca-btn:focus-visible {
    outline: 2px solid var(--leca-primary, #3b82f6);
    outline-offset: 2px;
}

.leca-card-actions .leca-btn-order:focus-visible {
    outline-color: #1d4ed8;
}

.leca-bulk-tag-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0 12px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.leca-bulk-tag-toolbar-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.leca-bulk-tag-btn {
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.leca-bulk-tag-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.leca-bulk-tag-btn-primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.leca-bulk-tag-check-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    font-size: 12px;
    color: #475569;
    font-weight: 700;
}

.leca-card-capture-scope {
    background: #fff;
}

.leca-card-meta-extra {
    margin-top: 8px;
}

.leca-btn {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.leca-btn-secondary {
    background: var(--leca-gray-100);
    color: var(--leca-gray-600);
}

.leca-btn-primary {
    background: #E3F2FD;
    color: var(--leca-primary);
}

/* Coordi Popover (Simulated as simple detail) */
.leca-recommendations {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--leca-gray-200);
}

.leca-rec-item {
    font-size: 12px;
    color: var(--leca-gray-600);
    margin-bottom: 5px;
}

/* 반품/교환 배송 관리 테이블 — 열 비율·액션 가로 정렬 */
#leca-returns-list-wrap .lrs-orders-table col.lrs-ocol-order { width: 10%; }
#leca-returns-list-wrap .lrs-orders-table col.lrs-ocol-seller { width: 9%; }
#leca-returns-list-wrap .lrs-orders-table col.lrs-ocol-customer { width: 11%; }
#leca-returns-list-wrap .lrs-orders-table col.lrs-ocol-ship { width: 22%; }
#leca-returns-list-wrap .lrs-orders-table col.lrs-ocol-status { width: 9%; }
#leca-returns-list-wrap .lrs-orders-table col.lrs-ocol-action { width: 24%; min-width: 200px; }
#leca-returns-list-wrap .lrs-orders-table th:nth-child(4),
#leca-returns-list-wrap .lrs-orders-table td:nth-child(4) {
    overflow-wrap: anywhere;
    word-break: break-word;
}
#leca-returns-list-wrap .lrs-orders-table th:nth-child(6),
#leca-returns-list-wrap .lrs-orders-table td:nth-child(6) {
    text-align: center;
    white-space: normal;
}

#leca-returns-list-wrap .lrs-orders-table-scroll,
.lrs-orders-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    max-width: 100%;
    min-width: 0;
}
@media (max-width: 768px) {
    #leca-returns-list-wrap .lrs-orders-table-scroll .lrs-orders-table,
    .lrs-orders-table-scroll .lrs-orders-table {
        width: 100%;
        min-width: 880px;
    }
}
#leca-returns-list-wrap .lrs-row-actions-col {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px 6px;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}
#leca-returns-list-wrap .lrs-row-actions-col a.lrs-btn-action,
#leca-returns-list-wrap .lrs-row-actions-col button.lrs-btn-action {
    display: inline-block;
    padding: 4px 10px;
    margin: 0;
    min-height: 0;
    line-height: 1.35;
    font-size: 11px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: none;
    width: auto;
    white-space: nowrap;
    flex: 0 0 auto;
    vertical-align: middle;
    border: 1px solid transparent;
}
#leca-returns-list-wrap .lrs-row-actions-col .lrs-btn-action--primary {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}
#leca-returns-list-wrap .lrs-row-actions-col a.lrs-btn-action--primary:hover,
#leca-returns-list-wrap .lrs-row-actions-col button.lrs-btn-action--primary:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}
#leca-returns-list-wrap .lrs-row-actions-col a.lrs-btn-action--primary:focus,
#leca-returns-list-wrap .lrs-row-actions-col button.lrs-btn-action--primary:focus {
    box-shadow: 0 0 0 1px #1d4ed8;
    outline: none;
}
#leca-returns-list-wrap .lrs-row-actions-col .lrs-btn-action--default {
    border-color: #cbd5e1;
    background: #fff;
    color: #334155;
}
#leca-returns-list-wrap .lrs-row-actions-col button.lrs-btn-action--default:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
}
#leca-returns-list-wrap .lrs-row-actions-col button.lrs-btn-action--default:focus {
    box-shadow: 0 0 0 1px #64748b;
    outline: none;
}
#leca-returns-list-wrap .lrs-row-actions-col .lrs-btn-action--success {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #047857;
}
#leca-returns-list-wrap .lrs-row-actions-col button.lrs-btn-action--success:hover {
    background: #d1fae5;
    border-color: #86efac;
    color: #065f46;
}
#leca-returns-list-wrap .lrs-row-actions-col button.lrs-btn-action--success:focus {
    box-shadow: 0 0 0 1px #059669;
    outline: none;
}
#leca-returns-list-wrap .lrs-row-actions-col button.lrs-btn-action:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Admin Bar
 * Tailwind 유틸 클래스로 톤/컬러를 제어하므로
 * 여기서는 레이아웃 기본 동작만 유지한다.
 */
.leca-admin-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.leca-admin-extra-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

#leca-admin-menu-toggle {
    display: none;
}

/* Auth Box */
.leca-subtitle {
    font-size: 16px;
    color: var(--leca-gray-600);
    margin-bottom: 30px;
}

.leca-auth-box {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--leca-gray-200);
    box-shadow: var(--leca-shadow);
    text-align: left;
}

.leca-auth-box input {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--leca-gray-200);
    padding: 0 16px;
    font-size: 16px;
    margin-bottom: 20px;
    outline: none;
    box-sizing: border-box;
}

.leca-auth-box input:focus {
    border-color: var(--leca-primary);
}

/* 관리자 설정 뷰 — 카드 그리드 (최대 2열) */
.leca-admin-settings-layout {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 8px 4px 32px;
    box-sizing: border-box;
}

.leca-admin-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* 태블릿·폰: 햄버거·보조 메뉴 (720만으로는 데스크톱 폭으로 인식되는 숏코드/줌 환경에서 누락됨) */
@media (max-width: 960px) {
    .leca-admin-bar {
        position: relative;
        z-index: 1302;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 8px 10px;
        gap: 8px;
        row-gap: 8px;
    }

    #leca-admin-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        position: relative;
        z-index: 1304;
    }

    /* 테마·외부 CSS보다 우선: 닫힌 상태에서는 가로 링크 줄 무조건 숨김 */
    .leca-admin-extra-menu {
        display: none !important;
        position: absolute;
        right: 10px;
        top: calc(100% + 6px);
        z-index: 1305;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        min-width: min(84vw, 260px);
        padding: 10px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    }

    .leca-admin-bar.is-open .leca-admin-extra-menu {
        display: flex !important;
    }

    .leca-admin-extra-menu #leca-logout-link {
        margin-left: 0 !important;
    }

    .leca-admin-settings-grid {
        grid-template-columns: 1fr;
    }
    .leca-settings-card--span-2 {
        grid-column: auto;
    }

    /*
     * 검색창: flex-wrap 때문에 입력/초기화/돋보기가 줄 바꿈되던 문제 방지.
     * 칩(.leca-search-chips)은 첫 줄 전체 폭, 그 아래 입력·버튼 한 줄.
     */
    .leca-search-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        column-gap: 8px;
        row-gap: 8px;
        min-height: 52px;
        padding: 8px 12px;
        box-sizing: border-box;
    }

    .leca-search-chips:empty {
        display: none;
    }

    .leca-search-chips:not(:empty) {
        grid-column: 1 / -1;
    }

    #leca-search-input {
        grid-column: 1;
        min-width: 0;
        width: 100%;
        padding: 0 8px;
        font-size: 16px; /* iOS 줌 방지 */
    }

    #leca-search-reset-btn {
        grid-column: 2;
        padding: 6px 10px;
        font-size: 11px;
        flex-shrink: 0;
    }

    #leca-search-btn {
        grid-column: 3;
        padding: 6px;
        flex-shrink: 0;
    }
}

.leca-settings-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--leca-gray-200);
    box-shadow: var(--leca-shadow);
    padding: 22px 22px 20px;
    text-align: left;
    box-sizing: border-box;
}

.leca-settings-card--span-2 {
    grid-column: 1 / -1;
}

.leca-settings-card__title {
    font-size: 15px;
    font-weight: 800;
    color: var(--leca-text-dark);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.35;
}

.leca-settings-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 16px;
    flex-shrink: 0;
}

.leca-settings-card__icon--margin { background: #ecfdf5; }
.leca-settings-card__icon--payment { background: #fff7ed; }
.leca-settings-card__icon--account { background: var(--leca-gray-100); }

.leca-settings-card__lead {
    font-size: 12px;
    color: var(--leca-gray-600);
    margin: -6px 0 14px;
    line-height: 1.5;
}

.leca-settings-hint {
    font-size: 11px;
    color: var(--leca-gray-500);
    margin: 6px 0 0;
    line-height: 1.45;
}

.leca-settings-inline-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.leca-settings-inline-input input {
    flex: 1;
    min-width: 0;
}

.leca-settings-inline-suffix {
    font-weight: 700;
    color: var(--leca-gray-600);
    flex-shrink: 0;
}

.leca-settings-card input[type="text"],
.leca-settings-card input[type="email"],
.leca-settings-card input[type="password"],
.leca-settings-card input[type="number"],
.leca-settings-card textarea {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid var(--leca-gray-200);
    padding: 10px 16px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.leca-settings-card textarea {
    min-height: 88px;
    resize: vertical;
    line-height: 1.45;
}

.leca-settings-card input:focus,
.leca-settings-card textarea:focus {
    border-color: var(--leca-primary);
}

.leca-admin-account-fields {
    margin-bottom: 4px;
}

@media (min-width: 640px) {
    .leca-admin-account-fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 16px;
        align-items: start;
    }
}

.leca-btn-full--success {
    background: #059669;
}

.leca-btn-full--success:hover {
    background: #047857;
}

.leca-btn-full--orange {
    background: #ea580c;
}

.leca-btn-full--orange:hover {
    background: #c2410c;
}

.leca-btn-full {
    width: 100%;
    height: 48px;
    background: var(--leca-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.leca-btn-full:hover {
    background: #1976D2;
}

.leca-auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--leca-gray-600);
}

.leca-auth-footer a {
    color: var(--leca-primary);
    text-decoration: none;
}

/* Form Groups */
.leca-form-group {
    margin-bottom: 20px;
}

.leca-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--leca-text-dark);
}

/* Variation Stock */
.leca-variation-stock {
    background: var(--leca-gray-100);
    border-radius: 12px;
    padding: 12px;
    margin: 15px 0;
    font-size: 13px;
    max-height: 150px;
    overflow-y: auto;
}

.leca-variation-stock-title {
    font-weight: 700;
    font-size: 12px;
    color: var(--leca-gray-600);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leca-variation-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.leca-variation-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid var(--leca-gray-200);
}

.leca-v-label {
    color: var(--leca-gray-600);
    font-weight: 500;
}


/* Toast (Modern Premium Style) */
.leca-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    /* 모달·관리자 바·타 플러그인 오버레이 위에 표시 */
    z-index: 2147483647;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.leca-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* 우측 임시 관리번호 레이어 — 도크(드래그로 세로 이동). 접힘: 전체 너비의 1/5, 펼침: 정상 너비 */
.leca-temp-layer-dock {
    position: fixed;
    right: 12px;
    z-index: 190000;
    width: calc(min(380px, calc(100vw - 24px)) * 0.2);
    max-width: calc(100vw - 24px);
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
    opacity: 0;
    pointer-events: none;
    transform: translateX(108%);
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.25s ease,
        width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.leca-temp-layer-dock.leca-temp-layer-dock--open {
    width: min(380px, calc(100vw - 24px));
}

.leca-temp-layer-dock.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.leca-temp-layer-dock-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(71, 85, 105, 0.5);
    background: rgba(15, 23, 42, 0.65);
}

/* 접힘: 세로 스택으로 좁은 폭(약 1/5)에서도 핸들·이름 일부·열기 배치 */
.leca-temp-layer-dock:not(.leca-temp-layer-dock--open) .leca-temp-layer-dock-head {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 6px 4px;
}

.leca-temp-layer-dock:not(.leca-temp-layer-dock--open) .leca-temp-layer-drag-handle {
    width: 100%;
    height: 28px;
}

.leca-temp-layer-dock:not(.leca-temp-layer-dock--open) .leca-temp-layer-names-peek {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: min(140px, 28vh);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    font-size: 9px;
    line-height: 1.25;
    word-break: break-word;
    /* 스크롤바 숨김 — 휠·드래그로 스크롤 */
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
    cursor: grab;
}

.leca-temp-layer-dock:not(.leca-temp-layer-dock--open) .leca-temp-layer-names-peek::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.leca-temp-layer-dock:not(.leca-temp-layer-dock--open) .leca-temp-layer-names-peek:active {
    cursor: grabbing;
}

.leca-temp-layer-peek-empty {
    display: block;
    color: #94a3b8;
    font-weight: 600;
    font-size: 9px;
    line-height: 1.3;
    padding: 2px 0;
}

.leca-temp-layer-peek-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 5px 4px;
    border: 1px solid #475569;
    border-radius: 6px;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    user-select: none;
}

.leca-temp-layer-peek-item:hover {
    background: #334155;
    border-color: #64748b;
    color: #f8fafc;
}

.leca-temp-layer-peek-item:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 1px;
}

.leca-temp-layer-dock:not(.leca-temp-layer-dock--open) .leca-temp-layer-panel-toggle {
    width: 100%;
    padding: 6px 4px;
    font-size: 10px;
}

.leca-temp-layer-drag-handle {
    flex-shrink: 0;
    width: 30px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: 1px solid #475569;
    border-radius: 8px;
    background: #1e293b;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.leca-temp-layer-drag-handle::before {
    content: "";
    display: block;
    width: 12px;
    height: 16px;
    margin: 0 auto;
    background: radial-gradient(currentColor 1.2px, transparent 1.3px);
    background-size: 5px 5px;
    background-position: 1px 1px;
    opacity: 0.85;
}

.leca-temp-layer-drag-handle:active {
    cursor: grabbing;
    background: #334155;
    color: #e2e8f0;
}

.leca-temp-layer-names-peek {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.leca-temp-layer-dock--open .leca-temp-layer-names-peek {
    color: #e2e8f0;
}

.leca-temp-layer-panel-toggle {
    flex-shrink: 0;
    border: 1px solid #475569;
    background: #334155;
    color: #f8fafc;
    border-radius: 10px;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.leca-temp-layer-panel-toggle:hover {
    background: #475569;
}

.leca-temp-layer-panel-toggle:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.leca-temp-layers {
    position: relative;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.leca-temp-layers.show {
    max-height: min(72vh, 560px);
    opacity: 1;
    pointer-events: auto;
    overflow: hidden;
    border-top: 1px solid rgba(71, 85, 105, 0.35);
    background: rgba(15, 23, 42, 0.4);
}

.leca-temp-layers-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 10px 12px;
    box-sizing: border-box;
}

.leca-temp-layer-add {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 13px;
    border-radius: 10px;
    padding: 9px 12px;
    cursor: pointer;
}

.leca-temp-layer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(calc(72vh - 120px), 440px);
    overflow: auto;
    padding-right: 2px;
}

.leca-temp-layer-empty {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    font-size: 12px;
}

.leca-temp-layer {
    background: rgba(15, 23, 42, 0.92);
    color: #e2e8f0;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 10px 12px;
    cursor: pointer;
}

.leca-temp-layer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.leca-temp-layer-name {
    font-size: 13px;
    font-weight: 800;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leca-temp-layer-head-actions {
    display: none;
    gap: 4px;
}

.leca-temp-layer-head-actions button {
    border: 1px solid #475569;
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 6px;
    font-size: 11px;
    padding: 4px 6px;
    cursor: pointer;
}

/* 레이어 저장 관리번호 → 메인 검색으로 보내기 */
.leca-temp-layer-head-actions .leca-temp-layer-search-to-main {
    border-color: #0ea5e9;
    background: #0c4a6e;
    color: #f0f9ff;
    font-weight: 700;
}

.leca-temp-layer-head-actions .leca-temp-layer-search-to-main:hover {
    background: #0369a1;
    border-color: #38bdf8;
}

.leca-temp-layer-body {
    display: none;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(148, 163, 184, 0.35);
    font-size: 12px;
    line-height: 1.6;
    color: #cbd5e1;
    word-break: break-all;
}

.leca-temp-layer.is-open .leca-temp-layer-head-actions,
.leca-temp-layer.is-open .leca-temp-layer-body {
    display: flex;
}

.leca-temp-layer.is-open .leca-temp-layer-body {
    display: block;
}

/* Modal System — 배경 페이드 + 패널 슬라이드·스케일 */
.leca-modal,
.leca-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 200000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(12px, 3vw, 24px);
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
}

.leca-modal.show,
.leca-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.leca-modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(18px) scale(0.97);
    opacity: 0;
    transition:
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease;
    display: flex;
    flex-direction: column;
}

.leca-modal.show .leca-modal-content,
.leca-modal-overlay.show .leca-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .leca-modal,
    .leca-modal-overlay,
    .leca-modal-content {
        transition-duration: 0.01ms !important;
    }
}

/* 결제 확정 모달: 상단 캡처 영역 + 하단 입력 스크롤 */
.leca-modal-content.leca-payment-setup-content {
    overflow: hidden;
    max-width: 540px;
    width: 92%;
    transition: max-width 0.35s ease;
    display: flex;
    flex-direction: column;
}

.leca-modal-content.leca-payment-setup-content.leca-payment-expanded {
    max-width: min(980px, 95vw);
}

/* 결제 모달: 좌측 제품수정 패널 */
.leca-modal-content.leca-payment-setup-content.leca-payment-lineedit-expanded {
    /* 중앙 고정폭(540) + 좌측 패널이 한 화면에 자연스럽게 들어오도록 */
    max-width: min(1280px, 98vw);
}

.leca-modal-content.leca-payment-setup-content.leca-payment-lineedit-expanded.leca-payment-expanded {
    max-width: min(1520px, 99vw);
}

.leca-payment-setup-lineedit-col {
    width: 0;
    opacity: 0;
    overflow: hidden;
    flex-shrink: 0;
    transition: width 0.35s ease, opacity 0.28s ease, border-width 0.2s ease;
    border-right: 0 solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    min-height: 0;
    order: 0;
}

.leca-modal-content.leca-payment-setup-content.leca-payment-lineedit-expanded .leca-payment-setup-lineedit-col {
    /* 제품수정 패널: 스크린샷 대비 과도한 비중 완화 */
    width: min(742px, 58vw);
    max-width: 70%;
    flex: 0 0 min(742px, 58vw);
    opacity: 1;
    border-right-width: 1px;
    overflow-x: hidden;
    overflow-y: auto;
}

.leca-payment-lineedit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #e0f2fe;
    flex-shrink: 0;
}

.leca-payment-lineedit-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--leca-text-dark, #0f172a);
}

.leca-payment-lineedit-close {
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    padding: 0 4px;
}

.leca-payment-lineedit-close:hover {
    color: #0f172a;
}

.leca-payment-lineedit-body {
    padding: 12px 14px 16px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.leca-payment-lineedit-foot {
    flex-shrink: 0;
    padding: 12px 14px 16px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.leca-payment-setup-split-wrap {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: row;
    align-items: stretch;
}

.leca-payment-setup-main-col {
    /* 중앙(결제) 컬럼은 패널 오픈 여부와 무관하게 고정 폭 유지 */
    flex: 0 0 min(536px, 92vw);
    width: min(536px, 92vw);
    max-width: min(536px, 92vw);
    min-width: 260px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.leca-modal-content.leca-payment-setup-content.leca-payment-lineedit-expanded .leca-payment-setup-main-col {
    /* 제품수정 오픈 시에도 중앙 폭 고정 */
    flex: 0 0 min(536px, 92vw);
    width: min(536px, 92vw);
    max-width: min(536px, 92vw);
}

.leca-payment-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.leca-payment-action-grid .leca-btn-order-submit {
    width: 100%;
    margin-bottom: 0 !important;
}

.leca-payment-setup-shipping-col {
    width: 0;
    opacity: 0;
    overflow: hidden;
    flex-shrink: 0;
    transition: width 0.35s ease, opacity 0.28s ease, border-width 0.2s ease;
    border-left: 0 solid #e2e8f0;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.leca-modal-content.leca-payment-setup-content.leca-payment-expanded .leca-payment-setup-shipping-col {
    /* 배송 입력 폼 가독성: 약간 넓힘 */
    width: min(450px, 32vw);
    max-width: 450px;
    flex: 0 0 min(450px, 32vw);
    opacity: 1;
    border-left-width: 1px;
    overflow-x: hidden;
    overflow-y: auto;
}

.leca-payment-shipping-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f1f5f9;
    flex-shrink: 0;
}

.leca-payment-shipping-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--leca-text-dark, #0f172a);
}

.leca-payment-shipping-close {
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    padding: 0 4px;
}

.leca-payment-shipping-close:hover {
    color: #0f172a;
}

.leca-payment-shipping-body {
    padding: 14px 16px 20px;
    flex: 1;
    min-height: 0;
}

.leca-payment-mobile-tabs {
    display: none;
}

/* 결제 모달: 주문·금액 아코디언 — 넓은 화면에서만 항상 펼침(토글 숨김). 960px 이하는 태블릿·모바일로 동일 UX */
@media (min-width: 961px) {
    .leca-payment-mobile-top-accordion {
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .leca-payment-mobile-top-accordion .leca-payment-mobile-accordion-toggle {
        display: none !important;
    }

    .leca-payment-mobile-top-accordion .leca-payment-mobile-accordion-panel {
        display: block !important;
    }
}

@media (max-width: 960px) {
    .leca-payment-mobile-top-accordion {
        margin-bottom: 12px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
    }

    .leca-payment-mobile-accordion-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 14px;
        border: none;
        background: #f1f5f9;
        font-size: 13px;
        font-weight: 800;
        color: #0f172a;
        cursor: pointer;
        text-align: left;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    .leca-payment-mobile-accordion-title {
        flex: 1;
        min-width: 0;
    }

    .leca-payment-mobile-accordion-hint {
        flex-shrink: 0;
        font-size: 12px;
        font-weight: 700;
        color: #2563eb;
    }

    .leca-payment-mobile-accordion-panel {
        display: none !important;
        padding: 0 10px 12px;
    }

    .leca-payment-mobile-top-accordion.is-open .leca-payment-mobile-accordion-panel {
        display: block !important;
    }
}

@media (max-width: 720px) {
    /* 모바일: 전체너비 토글 ON일 때 상품 2열 고정 */
    #leca-assistant-root.leca-layout-fullwidth.leca-minimal-container {
        max-width: none;
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    #leca-assistant-root.leca-layout-fullwidth #leca-product-grid.leca-grid {
        gap: 12px;
        padding: 12px 0;
        max-width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leca-modal-content.leca-payment-setup-content {
        width: 96vw !important;
        max-height: 96vh !important;
        height: 96vh !important;
        border-radius: 14px;
    }

    .leca-payment-mobile-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 10px 12px;
        border-bottom: 1px solid #e2e8f0;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 3;
    }

    .leca-payment-mobile-tab-btn {
        border: 1px solid #cbd5e1;
        background: #f8fafc;
        color: #334155;
        border-radius: 10px;
        padding: 8px 6px;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
    }

    .leca-payment-mobile-tab-btn.is-active {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff;
    }

    .leca-modal-content.leca-payment-setup-content.leca-payment-expanded {
        max-width: 100%;
    }

    .leca-modal-content.leca-payment-setup-content.leca-payment-lineedit-expanded {
        max-width: 100%;
    }

    .leca-payment-setup-split-wrap {
        flex-direction: column;
    }

    .leca-payment-setup-main-col,
    .leca-modal-content.leca-payment-setup-content.leca-payment-lineedit-expanded .leca-payment-setup-main-col {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .leca-modal-content.leca-payment-setup-content.leca-payment-expanded .leca-payment-setup-shipping-col {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
        height: calc(96vh - 66px);
        max-height: calc(96vh - 66px);
        border-left: none;
        border-top: 1px solid #e2e8f0;
        overflow-x: hidden;
        overflow-y: hidden;
    }

    .leca-modal-content.leca-payment-setup-content.leca-payment-lineedit-expanded .leca-payment-setup-lineedit-col {
        width: 100%;
        max-width: none;
        flex: 0 0 auto;
        height: calc(96vh - 66px);
        max-height: calc(96vh - 66px);
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .leca-payment-shipping-body {
        height: calc(96vh - 126px);
        max-height: calc(96vh - 126px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 26px;
    }

    .leca-payment-lineedit-body {
        max-height: calc(96vh - 176px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .leca-payment-action-grid {
        grid-template-columns: 1fr;
    }

    .leca-modal-content.leca-payment-setup-content.leca-mobile-tab-main .leca-payment-setup-lineedit-col,
    .leca-modal-content.leca-payment-setup-content.leca-mobile-tab-main .leca-payment-setup-shipping-col {
        display: none;
    }

    .leca-modal-content.leca-payment-setup-content.leca-mobile-tab-lineedit .leca-payment-setup-main-col,
    .leca-modal-content.leca-payment-setup-content.leca-mobile-tab-lineedit .leca-payment-setup-shipping-col {
        display: none;
    }

    .leca-modal-content.leca-payment-setup-content.leca-mobile-tab-shipping .leca-payment-setup-main-col,
    .leca-modal-content.leca-payment-setup-content.leca-mobile-tab-shipping .leca-payment-setup-lineedit-col {
        display: none;
    }

    .leca-modal-content.leca-payment-setup-content.leca-mobile-tab-shipping .leca-payment-setup-split-wrap {
        height: calc(96vh - 66px);
        min-height: calc(96vh - 66px);
    }

    /* 모바일에서는 주요 테이블을 가로 스크롤로 사용 */
    .leca-modal-body,
    .leca-dashboard-content,
    .leca-orders-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .leca-modal-body table,
    .leca-orders-table,
    .leca-cs-items-table,
    .leca-tiny-info-table {
        min-width: 680px;
    }

    /* 검색결과 헤더를 모바일 전용으로 단순화 */
    .leca-state-results .leca-header-container {
        padding: 12px 10px;
    }

    .leca-state-results .leca-header-inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 100%;
    }

    .leca-state-results .leca-logo-mini {
        padding-right: 0;
        border-right: none;
        justify-self: start;
    }

    .leca-state-results .leca-search-container {
        max-width: 100%;
        width: 100%;
    }

    .leca-results-header-info {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .leca-results-header-spacer {
        display: none;
    }

    .leca-results-header-info .leca-results-title {
        text-align: left;
    }

    .leca-results-header-actions {
        justify-content: flex-start;
    }

    /* 고객센터 주문상세 모달 모바일 보정 */
    .leca-cs-detail-modal .leca-modal-content {
        width: 96vw !important;
        max-width: 96vw !important;
        max-height: 94vh !important;
        border-radius: 14px !important;
    }

    .leca-cs-detail-modal .leca-modal-content > div:first-child {
        padding: 14px 12px !important;
    }

    .leca-cs-detail-modal .leca-cs-top-tabs {
        padding: 8px 12px 0 !important;
        min-height: 50px !important;
    }

    .leca-cs-detail-modal .leca-cs-detail-body > div {
        padding: 14px 12px 20px !important;
    }

    .leca-cs-detail-modal .leca-cs-detail-body > div > div {
        padding: 14px !important;
    }

    .leca-cs-detail-modal .leca-cs-detail-body div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding-top: 16px !important;
    }

    .leca-cs-detail-modal .leca-cs-detail-body table {
        min-width: 700px;
    }
}

.leca-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--leca-gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leca-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--leca-text-dark);
}

.leca-modal-close {
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    color: var(--leca-gray-600);
}

/* 사이즈표 모달: cm / inch 단위 토글 */
.leca-sizechart-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.leca-sizechart-unit-toggle {
    display: inline-flex;
    border-radius: 8px;
    border: 1px solid var(--leca-gray-200);
    overflow: hidden;
    background: var(--leca-gray-100);
}

.leca-sizechart-unit-btn {
    margin: 0;
    padding: 8px 14px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--leca-gray-600);
    cursor: pointer;
    line-height: 1.2;
    transition: background 0.15s ease, color 0.15s ease;
}

.leca-sizechart-unit-btn:hover {
    color: var(--leca-text-dark);
}

.leca-sizechart-unit-btn.is-active {
    background: #fff;
    color: var(--leca-primary);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.leca-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Size Table Styling (Based on shortcode output) */
.leca-modal-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 20px;
}

.leca-modal-body th, .leca-modal-body td {
    padding: 12px;
    border: 1px solid var(--leca-gray-200);
    text-align: center;
}

.leca-modal-body th {
    background: var(--leca-gray-100);
    font-weight: 700;
}

.leca-btn-size-chart {
    border: 1px solid var(--leca-primary) !important;
    background: transparent !important;
    color: var(--leca-primary) !important;
}

.leca-btn-size-chart:hover {
    background: rgba(33, 150, 243, 0.05) !important;
}

/* --- LECA Order Dashboard --- */
.leca-dashboard-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #f3f4f6;
    z-index: 100000;
    display: none;
    overflow-y: auto;
    padding: 40px;
    box-sizing: border-box;
    font-family: inherit;
}
.leca-dashboard-overlay.show { display: block; }
.leca-dashboard-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px;
}
.leca-dashboard-title { font-size: 24px; font-weight: 700; color: #111827; margin: 0; }
.leca-btn-close-dashboard { padding: 10px 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; font-weight: 600; color: #374151; }
.leca-stats-row { display: flex; gap: 20px; margin-bottom: 30px; }
.leca-stat-box {
    flex: 1; padding: 24px; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.leca-stat-label { font-size: 14px; color: #6b7280; margin-bottom: 8px; }
.leca-stat-value { font-size: 32px; font-weight: 700; color: #111827; }
.leca-stat-value.success { color: #059669; }

.leca-orders-table-wrapper { background: #fff; border-radius: 16px; border: 1px solid #e5e7eb; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.leca-orders-table { width: 100%; border-collapse: collapse; text-align: left; margin: 0; }
.leca-orders-table th { background: #f9fafb; padding: 16px; font-size: 13px; font-weight: 600; color: #6b7280; border-bottom: 1px solid #e5e7eb; }
.leca-orders-table td { padding: 16px; font-size: 14px; border-bottom: 1px solid #e5e7eb; vertical-align: middle; color: #111827; }
.leca-badge { padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; display: inline-block; }
.leca-badge.pending { background: #fef3c7; color: #d97706; }
.leca-badge.completed { background: #d1fae5; color: #059669; }
.leca-badge.processing { background: #dbeafe; color: #1d4ed8; }
.leca-badge.cancelled { background: #f3f4f6; color: #6b7280; }

/* Order Form Overlay */
.leca-order-form-group { margin-bottom: 16px; text-align: left; }
.leca-order-form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #374151; }
.leca-order-form-group select, .leca-order-form-group input { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.leca-btn-order-submit { width: 100%; padding: 14px; background: #2563eb; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 10px; transition: background 0.2s; }
.leca-btn-order-submit:hover { background: #1d4ed8; }

/* Customer Autocomplete Suggestions */
.leca-customer-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 10px 10px;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.leca-customer-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    font-family: inherit;
}

.leca-customer-suggestion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.leca-customer-suggestion-item:hover {
    background: #f8fafc;
}

.leca-customer-suggestion-name {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.leca-customer-suggestion-phone {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.leca-cs-search-filter:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.leca-action-btn { padding: 8px 12px; border-radius: 6px; font-size: 13px; cursor: pointer; border: none; font-weight: 600; margin-right: 6px; display: inline-flex; align-items: center; justify-content: center; }
.leca-action-copy { background: #eef2ff; color: #4f46e5; }
.leca-action-edit { background: #f3f4f6; color: #4b5563; }
.leca-action-delete { background: #fef2f2; color: #dc2626; }
.leca-action-btn:hover { filter: brightness(0.95); }

.leca-highlight-btn { background: #e0e7ff; color: #4f46e5 !important; padding: 6px 14px; border-radius: 16px; font-weight: 600; margin-left: auto; margin-right: 15px; text-decoration: none; display: inline-block; transition: background 0.2s; }
.leca-highlight-btn:hover { background: #c7d2fe; text-decoration: none; }

/* Order Edit Modal Items */
.leca-edit-item-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #f3f4f6; gap: 12px; }
.leca-edit-item-row:last-child { border-bottom: none; }
.leca-edit-name { flex: 1; font-size: 14px; color: #374151; font-weight: 600; }
.leca-edit-inputs { display: flex; align-items: center; gap: 8px; }
.leca-edit-select { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; max-width: 250px; background: #fff; }
.leca-btn-remove-item { background: #fee2e2; color: #ef4444; border: none; padding: 0; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; font-size: 18px; font-weight: bold; }
.leca-btn-remove-item:hover { background: #fca5a5; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.leca-card {
    animation: fadeIn 0.4s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
    .leca-card {
        animation: none;
    }
    #leca-view-report.active {
        animation: none;
    }
}

/* 모바일: 카드 등장 애니메이션·과도한 전환 제거로 스크롤·페인트 부담 감소 */
@media (max-width: 720px) {
    .leca-card {
        animation: none;
        transition: border-color 0.15s ease;
    }
}

/* Revenue Report Specific Styles */
#leca-view-report.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

#leca-report-summary-container .leca-summary-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#leca-report-summary-container .leca-summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

#leca-report-tbody tr:hover {
    background-color: #f8fafc;
}

#leca-load-report-btn:hover {
    background: #047857 !important;
    transform: scale(1.02);
}

#leca-load-report-btn:active {
    transform: scale(0.98);
}

/* 임시 제품 등록 폼 (우커머스 데이터·미디어 라이브러리 연동 UI) */
.leca-temp-form-lead {
    margin-bottom: 20px;
    line-height: 1.55;
}

.leca-temp-product-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.leca-temp-form-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.leca-temp-form-section-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
}

.leca-temp-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px 18px;
}

.leca-temp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.leca-temp-field--full {
    grid-column: 1 / -1;
}

.leca-temp-field-label {
    font-weight: 700;
}

.leca-temp-field-hint {
    margin: 0 0 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.leca-temp-input {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #0f172a;
}

.leca-temp-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.leca-temp-tags-multiselect {
    min-height: 160px;
    font-weight: 500;
}

.leca-temp-image-block {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
}

.leca-temp-image-preview-wrap {
    flex: 0 0 auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

.leca-temp-image-preview {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.leca-temp-image-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.leca-temp-btn {
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1.3;
}

.leca-temp-btn--primary {
    background: #2563eb;
    color: #fff;
    border-color: #1d4ed8;
}

.leca-temp-btn--primary:hover {
    background: #1d4ed8;
}

.leca-temp-btn--secondary {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

.leca-temp-btn--secondary:hover {
    background: #e2e8f0;
}

.leca-temp-btn--muted {
    background: #fff;
    color: #64748b;
    border-color: #cbd5e1;
}

.leca-temp-btn--muted:hover {
    background: #f8fafc;
}

.leca-temp-details {
    margin-top: 12px;
    font-size: 13px;
    color: #475569;
}

.leca-temp-details summary {
    cursor: pointer;
    font-weight: 700;
}

.leca-temp-textarea {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    resize: vertical;
}

.leca-temp-wc-attr-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
    align-items: start;
}

.leca-temp-wc-attr-picker .leca-temp-btn {
    grid-column: 1 / -1;
    justify-self: start;
}

@media (max-width: 640px) {
    .leca-temp-wc-attr-picker {
        grid-template-columns: 1fr;
    }
}

/* 임시 제품: 우커머스형 속성 메타박스·변형 패널 */
#leca-temp-attr-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.leca-temp-wc-attr-meta.postbox {
    border: 1px solid #c3c4c7;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin: 0;
    padding: 0;
}

.leca-temp-wc-attr-meta__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #dcdcde;
    background: #f6f7f7;
}

.leca-temp-wc-attr-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 12px;
    color: #50575e;
}

.leca-temp-wc-attr-title {
    flex: 1;
    font-size: 14px;
}

.leca-temp-wc-attr-remove {
    margin-left: auto;
    color: #b32d2e;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
}

.leca-temp-wc-attr-body {
    padding: 12px 14px;
}

.leca-temp-wc-attr-body.is-hidden {
    display: none;
}

.leca-temp-attr-inner-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.leca-temp-attr-inner-table td {
    vertical-align: top;
    padding: 6px 10px 6px 0;
}

.leca-temp-attr-values-cell .leca-temp-attr-term-select,
.leca-temp-attr-values-cell .leca-temp-attr-custom-values {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
}

.leca-temp-attr-value-actions {
    margin: 8px 0 0;
}

.leca-temp-variations-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 10px 0 14px;
}

.leca-temp-opt-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.leca-temp-opt-bulk-bar__title {
    font-size: 13px;
    margin-right: 4px;
}

.leca-temp-opt-bulk-bar .leca-temp-input#leca-temp-opt-bulk-action {
    min-width: 160px;
}

.leca-temp-opt-bulk-bar #leca-temp-opt-bulk-value {
    min-width: 200px;
    flex: 1 1 180px;
}

.leca-assistant-wrap .screen-reader-text,
.leca-temp-products-wrap .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.leca-temp-opt-bulk-col {
    width: 40px;
    text-align: center;
    vertical-align: middle;
}

.leca-temp-variations-empty {
    padding: 16px 14px;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #50575e;
}

.leca-temp-variations-empty a {
    color: #2271b1;
}

.leca-temp-default-form-wrap {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.leca-temp-default-form-row {
    margin: 0 0 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.leca-temp-default-form-row label {
    min-width: 100px;
    font-weight: 600;
    color: #334155;
}

.leca-temp-wc-attr-meta--orphan .description {
    color: #646970;
    font-size: 12px;
}

.leca-temp-wc-terms-select {
    min-height: 120px;
}

.leca-temp-options-table-wrap {
    overflow-x: auto;
    margin-bottom: 10px;
}

.leca-temp-options-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 560px;
}

.leca-temp-options-table th,
.leca-temp-options-table td {
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    text-align: left;
    vertical-align: middle;
}

.leca-temp-options-table th {
    background: #f8fafc;
    font-weight: 800;
    color: #475569;
}

.leca-temp-options-table .leca-temp-input {
    width: 100%;
    box-sizing: border-box;
}

.leca-temp-options-table .leca-temp-opt-manage {
    width: auto;
    margin: 0;
}

.leca-temp-opt-add-row {
    margin-top: 8px;
}

.leca-temp-opt-remove {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.leca-temp-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-top: 28px;
}

.leca-temp-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.leca-temp-form-actions .leca-btn-full {
    flex: 1;
    min-width: 160px;
}

.leca-temp-btn-reset {
    flex: 0 0 auto !important;
    background: #64748b !important;
    color: #fff !important;
    border: none !important;
}

/* 임시 제품: 우커머스 상품 데이터(product_data) 스타일 유사 */
.leca-temp-wc-like .leca-temp-wc-data-wrap {
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow: hidden;
}

.leca-temp-wc-panel-wrap {
    position: relative;
}

.leca-temp-wc-type-bar {
    padding: 10px 14px;
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
}

.leca-temp-wc-type-label-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}

.leca-temp-wc-type-label {
    margin-right: 4px;
}

.leca-temp-wc-product-type-select {
    min-width: 220px;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    background: #fff;
}

.leca-temp-wc-tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fafafa;
    border-bottom: 1px solid #c3c4c7;
}

.leca-temp-wc-tabs li {
    margin: 0;
    padding: 0;
    border-right: 1px solid #c3c4c7;
}

.leca-temp-wc-tabs li.is-hidden-tab {
    display: none !important;
}

.leca-temp-wc-tabs a {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #50575e;
    text-decoration: none;
    background: #fafafa;
}

.leca-temp-wc-tabs li.leca-temp-wc-tab-active a {
    background: #fff;
    color: #1d2327;
    margin-bottom: -1px;
    padding-bottom: 11px;
    border-bottom: 1px solid #fff;
}

.leca-temp-wc-panel.woocommerce_options_panel {
    display: none;
    padding: 16px 18px 20px;
    background: #fff;
    min-height: 120px;
}

.leca-temp-wc-panel.woocommerce_options_panel.is-active {
    display: block;
}

.leca-temp-options_group {
    border-top: 1px solid #eee;
    padding: 16px 0 8px;
}

.leca-temp-options_group:first-child {
    border-top: none;
    padding-top: 0;
}

.leca-temp-form-field {
    margin: 0 0 14px;
}

.leca-temp-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 6px;
}

.leca-temp-form-field--full .leca-temp-input--wide {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.leca-temp-input--wide {
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
}

.leca-temp-input--short {
    max-width: 120px;
}

.leca-temp-field-checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
}

.leca-temp-inline-notice {
    display: none;
    padding: 10px 12px;
    margin-bottom: 14px;
    background: #f0f6fc;
    border: 1px solid #c3d9ed;
    border-left-width: 4px;
    border-left-color: #72aee6;
    font-size: 13px;
    color: #1d2327;
}

.leca-temp-inline-notice p {
    margin: 0;
}

.leca-temp-type-variable .leca-temp-variable-stock-notice {
    display: block;
}

.leca-temp-type-variable .leca-temp-inventory-simple-fields {
    display: none;
}

.leca-temp-type-simple .leca-temp-variable-stock-notice {
    display: none;
}

/* -------------------------------------------------------------------------
 * 한글·CJK 줄바꿈 (keep-all + overflow-wrap)
 * ------------------------------------------------------------------------- */
html {
    word-break: keep-all !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}
