#location-modal {
  display: none;
  align-items: center;
  justify-content: center;
}

.location-modal__content {
  max-width: 550px;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.location-modal__header {
  background: linear-gradient(135deg, #F0B90B 0%, #F59E0B 100%);
  color: #1E2329;
  border-radius: 12px 12px 0 0;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.location-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  flex: 1;
}

.location-modal__close-btn {
  --app-close-btn-bg: rgba(255, 255, 255, 0.10);
  --app-close-btn-bg-hover: rgba(255, 255, 255, 0.18);
  --app-close-btn-color: #FFFFFF;
  flex-shrink: 0;
}

.location-modal__body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.location-intro {
  margin-bottom: 20px;
  padding: 14px;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  border-radius: 8px;
}

.location-intro__row {
  display: flex;
  align-items: start;
  gap: 10px;
}

.location-intro__content {
  flex: 1;
}

.location-intro__title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.location-intro__desc {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}

.location-auto-detect {
  margin-bottom: 24px;
}

.location-auto-detect__btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.location-auto-detect__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.location-auto-detect__note {
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.location-divider {
  display: flex;
  align-items: center;
  margin: 16px 0 12px;
  gap: 12px;
}

.location-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}

.location-divider__text {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
}

.location-form-group {
  margin-bottom: 18px;
}

.location-form-group--spaced {
  margin-bottom: 24px;
}

.location-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.location-required {
  color: #ef4444;
}

.location-input-wrapper {
  position: relative;
}

.location-input {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
  background: var(--bg-card);
}

.location-input--select {
  cursor: pointer;
}

.location-input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.location-input-icon--chevron {
  transition: transform 0.3s;
}

.location-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 2px solid #667eea;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.location-dropdown--city {
  max-height: 280px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  margin-top: -2px;
}

.location-dropdown__empty {
  padding: 12px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

.province-option,
.city-option {
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid #f3f4f6;
}

.province-option:last-child,
.city-option:last-child {
  border-bottom: none;
}

.province-option:hover,
.city-option:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

#province-dropdown::-webkit-scrollbar,
#city-dropdown::-webkit-scrollbar {
  width: 6px;
}

#province-dropdown::-webkit-scrollbar-track,
#city-dropdown::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 0 0 8px 0;
}

#province-dropdown::-webkit-scrollbar-thumb,
#city-dropdown::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 3px;
}

#province-dropdown::-webkit-scrollbar-thumb:hover,
#city-dropdown::-webkit-scrollbar-thumb:hover {
  background: #764ba2;
}

.location-note {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 6px;
  display: block;
  line-height: 1.4;
}

.location-preview {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 12px;
  display: none;
}

.location-preview__row {
  display: flex;
  align-items: start;
  gap: 12px;
}

.location-preview__content {
  flex: 1;
}

.location-preview__label {
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-weight: 500;
}

.location-preview__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.location-preview__ip {
  font-size: 12px;
  color: #3b82f6;
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-rules {
  margin-top: 20px;
  padding: 14px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 8px;
}

.location-rules__row {
  display: flex;
  align-items: start;
  gap: 10px;
}

.location-rules__content {
  flex: 1;
}

.location-rules__title {
  font-weight: 600;
  color: #92400e;
  margin-bottom: 6px;
  font-size: 13px;
}

.location-rules__desc {
  font-size: 12px;
  color: #78350f;
  line-height: 1.8;
}

.location-modal__footer {
  padding: 16px 24px;
  background: var(--bg-tertiary);
  border-radius: 0 0 12px 12px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-shrink: 0;
  border-top: 1px solid #e5e7eb;
}

.location-modal__cancel {
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 14px;
  background: var(--bg-card);
  border: 2px solid #e5e7eb;
  color: var(--text-secondary);
}

.location-modal__save {
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  color: white;
}

/* Location modal hovers */
.location-auto-detect-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.location-modal-btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: #d1d5db;
}

.location-modal-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.location-input-focus:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
    outline: none;
}

/* ============================================================================
   历史定位记录/日志弹窗（统一模态样式变量）
   ============================================================================ */

#doc-location-records-modal .modal-overlay,
#doc-location-logs-modal .modal-overlay {
    background: var(--app-modal-mask-bg, rgba(11, 14, 17, 0.62));
    backdrop-filter: var(--app-modal-mask-filter, blur(16px) saturate(1.04));
    -webkit-backdrop-filter: var(--app-modal-mask-filter, blur(16px) saturate(1.04));
}

#location-records-modal .modal-container,
#doc-location-records-modal .modal-container,
#location-logs-modal .modal-container,
#doc-location-logs-modal .modal-container {
    position: relative;
    z-index: var(--z-modal-max, 2147483210);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #E6E8EA);
    box-shadow: var(--shadow-lg, 0 18px 40px rgba(0, 0, 0, 0.22));
}

#location-records-modal .location-records-modal__container,
#doc-location-records-modal .location-records-modal__container {
    width: min(1000px, 95vw);
    max-height: 85vh;
}

#location-logs-modal .location-logs-modal__container {
    width: min(860px, 94vw);
    max-height: 82vh;
}

#doc-location-logs-modal .location-logs-modal__container {
    width: min(860px, 94vw);
    max-height: 82vh;
}

#location-records-modal .modal-header.location-records-modal__header,
#doc-location-records-modal .modal-header.location-records-modal__header {
    background: linear-gradient(135deg, #F0B90B 0%, #FCD535 100%);
    color: #0B0E11;
    border-bottom: 1px solid rgba(11, 14, 17, 0.12);
    border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0;
    padding: 16px 20px;
}

#location-logs-modal .modal-header.location-logs-modal__header {
    background: linear-gradient(135deg, #F0B90B 0%, #FCD535 100%);
    color: #0B0E11;
    border-bottom: 1px solid rgba(11, 14, 17, 0.12);
    border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0;
    padding: 16px 20px;
}

#doc-location-logs-modal .modal-header.location-logs-modal__header {
    background: linear-gradient(135deg, #F0B90B 0%, #FCD535 100%);
    color: #0B0E11;
    border-bottom: 1px solid rgba(11, 14, 17, 0.12);
    border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0;
    padding: 16px 20px;
}

.location-records-modal__title,
.location-logs-modal__title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: inherit;
}

.location-records-modal__actions,
.location-logs-modal__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.location-records-modal__btn {
    height: 36px;
    padding: 0 14px;
    border-radius: var(--radius, 8px);
    border: 1px solid var(--border-color, #E6E8EA);
    background: var(--bg-card, #ffffff);
    color: var(--text-primary, #1E2329);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition, all 0.2s ease);
}

.location-records-modal__btn:hover {
    border-color: #F0B90B;
    box-shadow: var(--shadow-sm, 0 4px 12px rgba(0, 0, 0, 0.08));
}

.location-records-modal__btn--danger {
    color: var(--color-danger, #F6465D);
    border-color: rgba(246, 70, 93, 0.4);
    background: rgba(246, 70, 93, 0.08);
}

.location-records-modal__btn--danger:hover {
    color: #FFFFFF;
    border-color: var(--color-danger, #F6465D);
    background: var(--color-danger, #F6465D);
    box-shadow: 0 6px 14px rgba(246, 70, 93, 0.24);
}

#location-records-modal .location-records-modal__close-btn,
#doc-location-records-modal .location-records-modal__close-btn {
    --app-close-btn-bg: rgba(255, 255, 255, 0.10);
    --app-close-btn-bg-hover: rgba(255, 255, 255, 0.18);
    --app-close-btn-color: #FFFFFF;
    margin-left: 2px;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

#location-records-modal .location-records-modal__close-btn:hover,
#doc-location-records-modal .location-records-modal__close-btn:hover {
    color: #FFFFFF;
}

#location-records-modal .location-records-modal__close-btn i,
#doc-location-records-modal .location-records-modal__close-btn i {
    font-size: 14px;
    line-height: 1;
}

#location-records-modal .location-records-modal__close-btn .location-modal-close-glyph,
#doc-location-records-modal .location-records-modal__close-btn .location-modal-close-glyph,
#location-logs-modal .location-logs-modal__close-btn .location-modal-close-glyph,
#doc-location-logs-modal .location-logs-modal__close-btn .location-modal-close-glyph {
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    color: currentColor;
    transform: translateY(-1px);
}

#location-logs-modal .location-logs-modal__close-btn {
    /* Keep consistent with other yellow-header modals (same unified close-button variables). */
    --app-close-btn-bg: rgba(255, 255, 255, 0.10);
    --app-close-btn-bg-hover: rgba(255, 255, 255, 0.18);
    --app-close-btn-color: #FFFFFF;
    margin-left: 2px;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    /* Do not add borders here; .app-close-btn is the source of truth. */
}

#doc-location-logs-modal .location-logs-modal__close-btn {
    --app-close-btn-bg: rgba(255, 255, 255, 0.10);
    --app-close-btn-bg-hover: rgba(255, 255, 255, 0.18);
    --app-close-btn-color: #FFFFFF;
    margin-left: 2px;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

#doc-location-logs-modal .location-logs-modal__close-btn:hover {
    color: #FFFFFF;
}

#location-logs-modal .location-logs-modal__close-btn:hover {
    color: #FFFFFF;
}

#location-records-modal .location-records-modal__body,
#doc-location-records-modal .location-records-modal__body,
#location-logs-modal .location-logs-modal__body,
#doc-location-logs-modal .location-logs-modal__body {
    background: var(--bg-card, #ffffff);
    padding: 20px;
    overflow-y: auto;
}

#location-records-modal .location-records-modal__search,
#doc-location-records-modal .location-records-modal__search {
    position: relative;
    margin-bottom: 16px;
}

.location-modal__hint {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm, 8px);
    border: 1px solid rgba(240, 185, 11, 0.28);
    background: linear-gradient(180deg, rgba(240, 185, 11, 0.16) 0%, rgba(240, 185, 11, 0.08) 100%);
    color: var(--text-secondary, #6B7280);
    font-size: 12px;
    line-height: 1.6;
}

#location-records-modal .location-records-modal__search-icon,
#doc-location-records-modal .location-records-modal__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary, #9CA3AF);
    pointer-events: none;
}

#location-records-modal .location-records-modal__search-input,
#doc-location-records-modal .location-records-modal__search-input {
    width: 100%;
    height: 44px;
    padding: 10px 12px 10px 38px;
    border: 1px solid var(--border-color, #E6E8EA);
    border-radius: var(--radius, 8px);
    background: var(--bg-secondary, #F9FAFB);
    color: var(--text-primary, #1E2329);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#location-records-modal .location-records-modal__search-input:focus,
#doc-location-records-modal .location-records-modal__search-input:focus {
    outline: none;
    background: var(--bg-card, #FFFFFF);
    border-color: #F0B90B;
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.14);
}

#location-records-modal,
#location-logs-modal {
    display: none;
}

#location-records-modal[aria-hidden="false"],
#location-logs-modal[aria-hidden="false"] {
    display: flex;
}

/* Avoid double-dark mask: keep modal shell transparent and use inner .modal-overlay as the only mask layer. */
body #location-records-modal,
body #location-logs-modal,
body #doc-location-records-modal,
body #doc-location-logs-modal,
body > .doc-location-modal {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ============================================================================
   location-register（从模板内联样式抽离）
   ============================================================================ */

.location-help-section {
    margin-bottom: 24px;
}

.location-stores-dropdown {
    max-height: 280px;
    overflow-y: auto;
}

#nearby-stores-list {
    margin-top: 12px;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #E6E8EA;
    border-radius: 14px;
    background: linear-gradient(180deg, #FFFCF2 0%, #FFF8E1 100%);
    box-shadow: 0 8px 18px rgba(240, 185, 11, 0.10);
}

#nearby-stores-list .list-label {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1E2329);
}

#nearby-stores-list .location-stores-dropdown {
    border: 1px solid #E6E8EA;
    border-radius: 12px;
    background: #FFFFFF;
}

.location-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-product-row {
    display: flex;
    gap: 16px;
}

.location-product-row__problem {
    flex: 1;
}

.location-product-row__date {
    width: 130px;
}

.location-problem-label-note {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 12px;
}

.location-product-candidates {
    display: none;
    margin-top: 8px;
}

.location-product-candidates__title {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.location-product-candidates__tip {
    color: var(--text-tertiary);
    font-size: 11px;
    margin-left: 8px;
}

.location-product-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.location-product-list-container,
.location-product-list-empty {
    display: none;
}

/* Local styles migrated from templates/partials/location-register/30_styles.html */
.help-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.help-toggle-btn:hover {
    background: var(--bg-tertiary);
}

.help-content {
    margin-top: 8px;
    padding: 16px;
    /* Light-gold help card (no left marker) */
    background: var(
        --location-help-card-bg,
        linear-gradient(
            180deg,
            rgba(240, 185, 11, 0.14) 0%,
            rgba(240, 185, 11, 0.06) 100%
        )
    );
    border-radius: var(--radius-md);
    border: var(--location-help-card-border, 1px solid rgba(240, 185, 11, 0.22));
    box-shadow: var(--shadow-sm, 0 4px 12px rgba(0, 0, 0, 0.08));
}

.search-input-group {
    display: flex;
    gap: 8px;
}

.search-hint-row {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.quota-countdown {
    margin-left: 4px;
}

.quota-countdown--active {
    color: #B7791F;
    font-weight: 600;
    animation: quota-countdown-pulse 1.25s ease-in-out infinite;
}

@keyframes quota-countdown-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.55;
    }
}

.selected-location-box {
    margin-top: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--binance-green);
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

.product-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-row-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    position: relative;
    transition: transform 0.2s;
}

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

.row-inputs {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1.2fr;
    gap: 8px;
}

@media (max-width: 768px) {
    .row-inputs {
        grid-template-columns: 1fr;
    }
}

.remove-btn {
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
}

.remove-btn:hover {
    color: var(--binance-red);
}

.text-yellow {
    color: var(--binance-yellow);
}

.text-red {
    color: var(--binance-red);
}

.no-wrap {
    white-space: nowrap;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.text-primary {
    color: var(--binance-blue);
}

.text-success {
    color: var(--binance-green);
}

.text-tertiary {
    color: var(--text-tertiary);
}

.font-medium {
    font-weight: 500;
}

/* store-location.ts dynamic fragments */
.location-record-item,
.location-log-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    background: var(--bg-secondary);
}

.location-record-item__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.location-record-item__main {
    min-width: 0;
    flex: 1;
}

.location-record-item__name,
.location-log-item__name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.location-record-item__name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.location-record-item__source {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(17, 24, 39, 0.06);
    color: rgba(17, 24, 39, 0.8);
}

.location-record-item__source--web {
    background: rgba(240, 185, 11, 0.18);
    border-color: rgba(240, 185, 11, 0.28);
    color: #92400E;
}

.location-record-item__source--app {
    background: rgba(14, 203, 129, 0.14);
    border-color: rgba(14, 203, 129, 0.22);
    color: #065F46;
}

.location-record-item__address,
.location-log-item__address {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.location-record-item__desc,
.location-record-item__amount,
.location-log-item__meta,
.location-record-item__time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.location-record-item__desc {
    white-space: pre-wrap;
}

.location-record-item__amount {
    margin-top: 4px;
    color: var(--text-secondary);
    font-weight: 600;
}

.location-record-item__time {
    margin-top: 6px;
}

.location-record-item__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.location-feedback-state {
    padding: 32px 20px;
    text-align: center;
}

.location-feedback-state--loading {
    color: var(--text-tertiary);
}

.location-feedback-state--empty {
    color: #848E9C;
}

.location-feedback-state--error {
    color: var(--color-danger, #F6465D);
}

.location-feedback-state__icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.location-feedback-state__text {
    font-size: 14px;
}

/* store-location-ui.ts dynamic nearby list */
.nearby-store-item {
    position: relative;
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #E6E8EA;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, border-radius 0.2s ease;
}

.nearby-store-item:hover {
    z-index: 1;
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: inset 0 0 0 1px rgba(240, 185, 11, 0.92), 0 4px 10px rgba(240, 185, 11, 0.12);
}

.nearby-store-item:last-child {
    border-bottom: none;
}

.nearby-store-item__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.nearby-store-item__index {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    background: linear-gradient(135deg, #0ECB81 0%, #0AB871 100%);
}

.nearby-store-item__content {
    flex: 1;
    min-width: 0;
}

.nearby-store-item__name {
    font-size: 14px;
    font-weight: 500;
    color: #1E2329;
    margin-bottom: 4px;
}

.nearby-store-item__address {
    font-size: 12px;
    color: #848E9C;
}

.nearby-store-item__distance {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
    color: #0ECB81;
}

/* Document generator: location records/logs modals (rendered by JS) */
.doc-location-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal-max, 2147483647);
    display: none;
    backface-visibility: hidden;
    isolation: isolate;
}

.doc-location-modal[aria-hidden="false"] {
    display: flex;
}

.doc-location-modal .modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-modal-backdrop-max, 2147483646);
}

.doc-location-modal .modal-container {
    position: relative;
    z-index: var(--z-modal-max, 2147483647);
    transform: translate3d(0, 0, 0) !important;
    transform-origin: center center !important;
    animation: none !important;
    will-change: auto !important;
    margin: 0 auto;
}

.remove-product-chip {
    color: var(--text-tertiary, #848E9C);
    margin-left: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
