/* X-BAR - Store Locator : styles front-office */

.xbar-sl-locator {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 20px 0;
	width: 100%;
}

.xbar-sl-locator-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	background: #f5f5f5;
	border-radius: 6px;
}

.xbar-sl-btn {
	background: #1d2327;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 8px 16px;
	cursor: pointer;
	font-size: 14px;
}

.xbar-sl-btn:hover {
	opacity: 0.9;
}

.xbar-sl-btn-secondary {
	background: transparent;
	color: #1d2327;
	border: 1px solid #1d2327;
}

.xbar-sl-radius-control {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 220px;
}

.xbar-sl-hint {
	flex-basis: 100%;
	font-size: 12px;
	color: #666;
	margin: 4px 0 0;
}

.xbar-sl-map {
	width: 100%;
	border-radius: 6px;
	z-index: 1;
}

.xbar-sl-list {
	width: 100%;
}

.xbar-sl-shop-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.xbar-sl-shop-item {
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	padding: 12px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.xbar-sl-shop-item:hover {
	border-color: #1d2327;
}

.xbar-sl-shop-title {
	font-weight: 600;
	text-decoration: none;
	color: #1d2327;
}

.xbar-sl-shop-address {
	font-size: 13px;
	color: #555;
}

.xbar-sl-shop-distance {
	font-size: 12px;
	color: #007cba;
	font-weight: 600;
}

.xbar-sl-list-empty {
	color: #666;
	font-style: italic;
}

/* Formulaire de demande */

.xbar-sl-form {
	max-width: 560px;
}

.xbar-sl-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 14px;
}

.xbar-sl-field-row {
	display: flex;
	gap: 14px;
}

.xbar-sl-field-row .xbar-sl-field {
	flex: 1;
}

.xbar-sl-form label {
	font-weight: 600;
	font-size: 14px;
}

.xbar-sl-form input[type="text"],
.xbar-sl-form input[type="email"],
.xbar-sl-form textarea {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.xbar-sl-honeypot {
	position: absolute;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}

.xbar-sl-submit-btn {
	background: #1d2327;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 10px 20px;
	cursor: pointer;
	font-size: 14px;
}

.xbar-sl-form-feedback {
	margin-top: 10px;
	font-size: 14px;
}

.xbar-sl-form-success {
	color: #46b450;
	font-weight: 600;
}

.xbar-sl-form-error {
	color: #d63638;
	font-weight: 600;
}

/* Popup */

.xbar-sl-open-popup-btn {
	background: #1d2327;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 10px 20px;
	cursor: pointer;
	font-size: 14px;
}

.xbar-sl-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.6 );
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 20px;
}

/* The [hidden] attribute must win over the rule below, otherwise the
   popup stays visible even after JS sets overlay.hidden = true. */
.xbar-sl-popup-overlay[hidden] {
	display: none !important;
}

.xbar-sl-popup-overlay:not( [hidden] ) {
	display: flex;
}

.xbar-sl-popup {
	background: #fff;
	border-radius: 8px;
	padding: 28px;
	max-width: 600px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
}

.xbar-sl-popup-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

body.xbar-sl-popup-open {
	overflow: hidden;
}

/* Page individuelle boutique */

.xbar-sl-single-shop-wrap {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
}

.xbar-sl-single-shop-infos p {
	margin: 6px 0;
}

.xbar-sl-single-shop-map {
	margin: 20px 0;
	border-radius: 6px;
}

.xbar-sl-back-link {
	margin-top: 20px;
}

/* Responsive shop list below the map: 1 column on narrow screens,
   scaling up to 4 columns on wide screens. The map and controls above
   always take the full width of the content area. */
@media ( min-width: 600px ) {
	.xbar-sl-shop-list {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( min-width: 900px ) {
	.xbar-sl-shop-list {
		grid-template-columns: repeat( 3, 1fr );
	}
}

@media ( min-width: 1200px ) {
	.xbar-sl-shop-list {
		grid-template-columns: repeat( 4, 1fr );
	}
}

/* X-BAR standalone layout: no theme stylesheet or icon font required. */
.xbar-sl-locator,.xbar-sl-form,.xbar-sl-popup{font-family:inherit;color:#171717;line-height:1.5}
.xbar-sl-locator *,.xbar-sl-popup *{box-sizing:border-box}
.xbar-sl-search-bar,.xbar-sl-cta-block{padding:24px;border:1px solid #ddd;border-radius:12px;background:#fafafa}
.xbar-sl-search-bar-top{display:flex;gap:24px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.xbar-sl-search-bar-heading{font-size:24px;font-weight:750;margin:0 0 6px}
.xbar-sl-search-bar-subheading{margin:0;color:#555}
.xbar-sl-search-row,.xbar-sl-address-search-group,.xbar-sl-hint-row,.xbar-sl-map-legend,.xbar-sl-radius-card-body{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.xbar-sl-address-search-group{flex:1}.xbar-sl-address-search{flex:1;min-width:180px}
.xbar-sl-address-search input,.xbar-sl-form input,.xbar-sl-form select{width:100%;padding:11px;border:1px solid #bbb;border-radius:6px;background:white;color:#171717;font:inherit}
.xbar-sl-locator button,.xbar-sl-form button{border:1px solid #171717;border-radius:6px;padding:10px 16px;font:inherit;cursor:pointer;background:#171717;color:white;line-height:1.4}
.xbar-sl-locator button:hover,.xbar-sl-form button:hover{opacity:.85}
.xbar-sl-locator button:focus-visible,.xbar-sl-form button:focus-visible,.xbar-sl-locator input:focus-visible{outline:3px solid #4075dc;outline-offset:3px}
.xbar-sl-locator button[aria-pressed="true"]{background:#171717;color:white}
.xbar-sl-locator button[aria-pressed="false"],.xbar-sl-radius-presets button{background:white;color:#171717}
.xbar-sl-radius-card{margin:18px 0;padding:16px;background:white;border:1px solid #ddd;border-radius:8px}
.xbar-sl-radius-card-head{cursor:pointer;font-weight:650}.xbar-sl-radius-card-body{padding-top:18px}
.xbar-sl-radius-slider-wrap{flex:1;min-width:220px;position:relative;padding-top:25px}
.xbar-sl-radius-scale-row{display:flex;justify-content:space-between;color:#555;font-size:12px}
.xbar-sl-radius-pill{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap;font-weight:650}
.xbar-sl-radius-slider-wrap input{width:100%;accent-color:#171717;margin:12px 0}
.xbar-sl-radius-presets{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.xbar-sl-radius-presets button.is-active{background:#171717;color:white}
.xbar-sl-radius-card-info{max-width:280px;color:#555}.xbar-sl-radius-card-info-title{display:block;font-weight:650;color:#171717}
.xbar-sl-hint-row{justify-content:space-between}.xbar-sl-map-legend-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px;background:#171717}.xbar-sl-map-legend-dot-red{background:#df3535}
.xbar-sl-map-frame{overflow:hidden;border:1px solid #ddd;border-radius:10px}.xbar-sl-map{min-height:320px}
.xbar-sl-search-feedback:empty{display:none}.xbar-sl-search-feedback{margin:12px 0 0}
.xbar-sl-cta-title{font-size:20px;font-weight:650}.xbar-sl-shop-type{font-size:12px;color:#555}
.xbar-sl-popup-close{min-width:40px;min-height:40px}.xbar-sl-popup h2{padding-right:30px}
.xbar-sl-form{width:100%;max-width:100%}.xbar-sl-field input{min-width:0}
.xbar-sl-form button:disabled{opacity:.5;cursor:wait}
@media(max-width:650px){.xbar-sl-search-bar,.xbar-sl-cta-block{padding:16px}.xbar-sl-search-bar-controls,.xbar-sl-search-row,.xbar-sl-address-search-group{width:100%}.xbar-sl-radius-card-info{display:none}.xbar-sl-map{height:420px!important}.xbar-sl-popup{padding:20px}.xbar-sl-search-bar-heading{font-size:21px}}

@media(max-width:650px){.xbar-sl-search-row{flex-direction:column;align-items:stretch}.xbar-sl-address-search-group{flex:auto;flex-wrap:nowrap}.xbar-sl-address-search{min-width:0}.xbar-sl-search-row>#xbar-sl-locate-me{align-self:flex-start}.xbar-sl-address-search input{min-width:0}.xbar-sl-radius-presets button{padding:8px 10px}.xbar-sl-radius-preset-unit{margin-left:3px}}
