.deliv-price-mode-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #e4e7ec;
    background: #f9fafb;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #344054;
}

.deliv-price-rule-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    padding: 0.875rem;
}

.deliv-price-rule-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.75rem;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    background: transparent;
    color: #ef4444;
    cursor: pointer;
}

.deliv-price-rule-remove:hover {
    background: #fef2f2;
}

.deliv-coord-hero {
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #fff 100%);
    padding: 1rem 1.25rem;
}
html.dark .deliv-coord-hero {
    border-color: #1f2937;
    background: linear-gradient(135deg, #3b0764/20 0%, #831843/15 50%, transparent 100%);
}
.deliv-coord-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.deliv-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #f472b6, #fda4af);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(244, 114, 182, 0.28);
}
.deliv-map-btn:hover {
    transform: translateY(-1px);
}
.deliv-field-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    padding: 0.875rem;
    background: transparent;
}
html.dark .deliv-field-card {
    border-color: #374151;
    background: transparent;
}
.deliv-map-panel {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    background: transparent;
}
html.dark .deliv-map-panel {
    border-color: #374151;
    background: transparent;
}
.deliv-map-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}
html.dark .deliv-map-panel-head {
    border-color: #374151;
}
.deliv-map-preview {
    height: 220px;
    background: #f3f4f6;
}
html.dark .deliv-map-preview {
    background: #1f2937;
}
#zones-map-editor-modal[hidden] {
    display: none !important;
}
.zones-map-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    padding: 0.75rem;
}
.zones-map-modal-inner {
    width: min(1400px, 100%);
    height: min(92vh, 900px);
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}
html.dark .zones-map-modal-inner {
    background: #111827;
}
.zones-map-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
html.dark .zones-map-modal-head {
    border-color: #374151;
}
.zones-map-canvas {
    flex: 1;
    min-height: 0;
}
.ymaps-modal-overlay[hidden] {
    display: none !important;
}
.ymaps-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    padding: 0.75rem;
}
.ymaps-modal-container {
    width: min(1400px, 100%);
    height: min(92vh, 900px);
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}
.ymaps-modal-header {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.ymaps-modal-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ymaps-modal-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f472b6, #fda4af);
    color: #fff;
}
.ymaps-modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}
.ymaps-modal-subtitle {
    color: #64748b;
    font-size: 0.75rem;
}
.ymaps-modal-close {
    margin-left: auto;
    border: none;
    background: transparent;
    font-size: 1.125rem;
    cursor: pointer;
    color: #64748b;
}
.ymaps-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.ymaps-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}
.ymaps-tool-btn.active {
    border-color: #f472b6;
    background: #fdf2f8;
    color: #be185d;
}
.ymaps-tool-btn.danger {
    color: #dc2626;
    border-color: #fecaca;
}
.ymaps-tool-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    display: inline-block;
}
.ymaps-tool-dot.sklad { background: #ef4444; }
.ymaps-tool-dot.center { background: #3b82f6; }
.ymaps-tool-dot.square { background: #8b5cf6; border-radius: 2px; }
.ymaps-live-coords {
    margin-left: auto;
    font-size: 0.75rem;
    color: #64748b;
    font-family: ui-monospace, monospace;
}
.ymaps-map-container {
    flex: 1;
    min-height: 0;
}
.ymaps-modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
}
.ymaps-footer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.ymaps-chip {
    font-size: 0.75rem;
    color: #64748b;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    background: #f8fafc;
}
.ymaps-footer-actions {
    display: flex;
    gap: 0.5rem;
}
