/* Foxlog — výber výdajného miesta v checkoute */

.foxlog-pickup { margin: 12px 0 6px; }

/* Kartička zvolenej pobočky */
.foxlog-pickup-selected {
	position: relative;
	background: #f5f7ff;
	border: 1px solid #dbe2ff;
	border-left: 3px solid #4f46e5;
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 10px;
	font-size: 13px;
	line-height: 1.5;
}
.foxlog-pickup-label { color: #64748b; }
.foxlog-pickup-selected strong { color: #0f172a; font-weight: 600; }
.foxlog-pickup-addr { color: #64748b; }

/* Tlačidlo výberu/zmeny pobočky — nezávislé od štýlu témy */
.foxlog-pickup-open.foxlog-pickup-open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	border-radius: 10px;
	padding: 11px 18px 11px 40px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
	background-repeat: no-repeat;
	background-position: 16px center;
	background-size: 16px 16px;
}
/* Primárne — „Vybrať výdajné miesto" (biely pin) */
.foxlog-pickup-open.alt.foxlog-pickup-open {
	background-color: #4f46e5 !important;
	color: #fff !important;
	border: 1px solid #4f46e5 !important;
	box-shadow: 0 1px 2px rgba( 79, 70, 229, .25 );
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.foxlog-pickup-open.alt.foxlog-pickup-open:hover { background-color: #4338ca !important; border-color: #4338ca !important; }

/* Sekundárne — „Zmeniť výdajné miesto" (indigo obrys) */
.foxlog-pickup-open:not(.alt).foxlog-pickup-open {
	background-color: #fff !important;
	color: #4f46e5 !important;
	border: 1px solid #c7d2fe !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.foxlog-pickup-open:not(.alt).foxlog-pickup-open:hover { background-color: #eef2ff !important; border-color: #a5b4fc !important; }

/* ─── Modal ─── */
body.foxlog-modal-open { overflow: hidden; }
.foxlog-modal-overlay {
	position: fixed; inset: 0;
	background: rgba( 15, 23, 42, 0.6 );
	z-index: 999999;
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
	-webkit-backdrop-filter: blur( 2px ); backdrop-filter: blur( 2px );
}
.foxlog-modal {
	background: #fff; width: 100%; max-width: 560px; max-height: 86vh;
	border-radius: 16px; display: flex; flex-direction: column; overflow: hidden;
	box-shadow: 0 24px 60px rgba( 0, 0, 0, 0.35 );
	font-family: inherit;
}
.foxlog-modal-wide { width: 90vw; max-width: 1400px; height: 90vh; max-height: 90vh; }

.foxlog-modal-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 20px; border-bottom: 1px solid #eef2f7; flex: 0 0 auto;
}
.foxlog-modal-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: #0f172a; }
.foxlog-modal-close {
	background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer;
	color: #94a3b8; padding: 0 4px; transition: color .15s;
}
.foxlog-modal-close:hover { color: #0f172a; }

/* Toolbar */
.foxlog-modal-toolbar {
	padding: 14px 20px; border-bottom: 1px solid #f1f5f9;
	display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex: 0 0 auto;
}
/* Inline SVG ikony (bez emoji) — dedia farbu cez currentColor */
.foxlog-svg { width: 16px; height: 16px; display: inline-block; vertical-align: middle; flex: 0 0 auto; }

.foxlog-search-wrap { position: relative; flex: 1 1 240px; display: flex; align-items: center; }
.foxlog-search-ico { position: absolute; left: 12px; display: flex; color: #94a3b8; pointer-events: none; }
.foxlog-search-ico .foxlog-svg { width: 15px; height: 15px; }
.foxlog-geo-btn .foxlog-svg { width: 15px; height: 15px; }
.foxlog-search-input {
	width: 100%; padding: 11px 14px 11px 34px; border: 1px solid #d7dee8; border-radius: 10px;
	font-size: 14px; box-sizing: border-box; background: #fff; color: #0f172a; transition: border-color .15s, box-shadow .15s;
}
.foxlog-search-input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba( 99, 102, 241, .15 ); }

.foxlog-geo-btn {
	display: inline-flex; align-items: center; gap: 4px;
	border: 1px solid #d7dee8; background: #fff; color: #334155;
	border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
	white-space: nowrap; transition: all .15s;
}
.foxlog-geo-btn:hover { border-color: #6366f1; color: #4f46e5; }
.foxlog-geo-btn.is-active { background: #eef2ff; border-color: #6366f1; color: #4f46e5; }
.foxlog-geo-btn.is-loading { opacity: .6; cursor: wait; }

.foxlog-type-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.foxlog-chip {
	border: 1px solid #d7dee8; background: #fff; border-radius: 999px;
	padding: 7px 13px; font-size: 13px; cursor: pointer; color: #475569; font-weight: 500; transition: all .15s;
}
.foxlog-chip:hover { border-color: #6366f1; color: #4f46e5; }
.foxlog-chip.is-active { background: #4f46e5; border-color: #4f46e5; color: #fff; }

/* Telo */
.foxlog-modal-body { display: flex; flex: 1 1 auto; min-height: 0; }
.foxlog-modal-list { width: 25%; min-width: 280px; max-width: 380px; overflow-y: auto; border-right: 1px solid #f1f5f9; }
.foxlog-map { position: relative; flex: 1 1 auto; min-height: 300px; background: #eef2f7; }
.foxlog-modal:not(.foxlog-modal-wide) .foxlog-modal-list { width: 100%; border-right: none; }

.foxlog-modal-loading, .foxlog-modal-empty {
	padding: 28px 20px; text-align: center; color: #64748b; font-size: 14px;
}
.foxlog-modal-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* Spinner + loading stavy */
@keyframes foxlog-spin { to { transform: rotate( 360deg ); } }
.foxlog-spinner {
	display: inline-block; width: 24px; height: 24px;
	border: 3px solid #e2e8f0; border-top-color: #4f46e5; border-radius: 50%;
	animation: foxlog-spin .7s linear infinite; vertical-align: middle; flex: 0 0 auto;
}
.foxlog-map-loading {
	position: absolute; inset: 0; z-index: 1000;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	background: rgba( 255, 255, 255, .8 );
	-webkit-backdrop-filter: blur( 1px ); backdrop-filter: blur( 1px );
	color: #475569; font-size: 14px; font-weight: 500;
}

/* Skeleton položky (kým sa načíta zoznam) */
.foxlog-skeleton { display: flex; gap: 12px; padding: 13px 18px; border-bottom: 1px solid #f4f6fb; }
.foxlog-skel-ico { width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; }
.foxlog-skel-lines { flex: 1 1 auto; display: flex; flex-direction: column; gap: 7px; padding-top: 3px; }
.foxlog-skel-line { height: 10px; border-radius: 5px; }
.foxlog-skel-line.short { width: 55%; }
.foxlog-skel-ico, .foxlog-skel-line {
	background: linear-gradient( 90deg, #eef1f6 25%, #e2e7ef 37%, #eef1f6 63% );
	background-size: 400% 100%; animation: foxlog-shimmer 1.3s ease infinite;
}
@keyframes foxlog-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* Položka zoznamu */
.foxlog-point {
	display: flex; gap: 12px; align-items: flex-start;
	padding: 13px 18px; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: background .12s;
}
.foxlog-point:hover { background: #f8fafc; }
.foxlog-point.is-active { background: #eef2ff; box-shadow: inset 3px 0 0 #4f46e5; }
.foxlog-point-ico {
	flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px;
	display: flex; align-items: center; justify-content: center;
	background: #eef2ff; color: #4f46e5;
}
.foxlog-point-ico .foxlog-svg { width: 18px; height: 18px; }
.foxlog-ico-box { background: #ecfdf5; color: #059669; }
.foxlog-ico-post { background: #fef3c7; color: #b45309; }
/* Brandová ikona (hotový pin SVG) — bez pozadia/rámu, zobrazí sa ako mini pin */
.foxlog-ico-brand { background: none; border: none; }
.foxlog-brand-img { width: 28px; height: 32px; object-fit: contain; display: block; }
.foxlog-point-main { flex: 1 1 auto; min-width: 0; }
.foxlog-point-name { font-weight: 600; font-size: 14px; color: #0f172a; margin-bottom: 2px; }
.foxlog-point-addr { color: #64748b; font-size: 13px; }
.foxlog-point-hours { color: #94a3b8; font-size: 12px; margin-top: 3px; }
.foxlog-point-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.foxlog-dist {
	font-size: 12px; font-weight: 700; color: #4f46e5; background: #eef2ff;
	padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.foxlog-point-select {
	border: none; background: #4f46e5; color: #fff; border-radius: 8px;
	padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s;
}
.foxlog-point-select:hover { background: #4338ca; }

/* Popup na mape */
.foxlog-pop-name { font-weight: 700; font-size: 14px; margin-bottom: 3px; color: #0f172a; }
.foxlog-pop-addr { color: #64748b; font-size: 13px; margin-bottom: 8px; }
.foxlog-pop-select {
	border: none; background: #4f46e5; color: #fff; border-radius: 8px;
	padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.foxlog-pop-select:hover { background: #4338ca; }
.foxlog-map .leaflet-container { height: 100%; width: 100%; }

/* Responsive */
@media ( max-width: 800px ) {
	.foxlog-modal-wide { height: 92vh; max-width: 100%; }
	.foxlog-modal-body { flex-direction: column; }
	.foxlog-modal-list { width: 100%; min-width: 0; border-right: none; border-top: 1px solid #f1f5f9; order: 2; }
	.foxlog-map { order: 1; min-height: 220px; flex: 0 0 220px; }
	.foxlog-search-wrap { flex: 1 1 100%; }
}
