/**
 *  Module made by Nukium
 *
 *  @author    Nukium
 *  @copyright 2023 Nukium SAS
 *  @license   All rights reserved
 *
 * ███    ██ ██    ██ ██   ██ ██ ██    ██ ███    ███
 * ████   ██ ██    ██ ██  ██  ██ ██    ██ ████  ████
 * ██ ██  ██ ██    ██ █████   ██ ██    ██ ██ ████ ██
 * ██  ██ ██ ██    ██ ██  ██  ██ ██    ██ ██  ██  ██
 * ██   ████  ██████  ██   ██ ██  ██████  ██      ██
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

#shipping_method {
	list-style: none;
	margin-left: 0;
	min-width: 120px;
}

#shipping_method > li:has(label[for*="gls"] > img) {
	display: flex;
	align-items: center;
}

#shipping_method > li:has(label[for*="gls"] > img) input[id*="gls"] {
    margin-right: 0.3rem;
}

#shipping_method > li:has(label[for*="gls"] > img) label[for*="gls"] {
	display: flex;
	align-items: center;
	gap: 8px;
	line-height: 1.2em;
}

#shipping_method label[for*="gls"] > img {
	flex-shrink: 0;
}

@media (max-width: 575px), (min-width: 768px) and (max-width: 991px) {
	#shipping_method > li:has(label[for*="gls"] > img) {
		align-items: flex-start;
	}

	#shipping_method > li:has(label[for*="gls"] > img) input[id*="gls"] {
		margin-top: 0.35em;
	}

	#shipping_method > li:has(label[for*="gls"] > img) label[for*="gls"] {
		align-items: flex-start;
		flex-direction: column;
	}

	#shipping_method label[for*="gls"] > img {
		order: 99;
	}
}

body .gls-container {
	box-sizing: border-box;
	-webkit-box-flex: 0;
	-ms-flex: 0 0 100%;
	flex: 0 0 100%;
	min-height: 1px;
	padding-left: 0;
	padding-right: 0;
	padding-bottom: 15px;
	position: relative;
	text-align: left;
	width: 100%;
	max-width: 100%;
}

body .gls-container * {
	box-sizing: border-box;
}

body td:has(> .gls-container) {
	padding: 0;
}

body .gls-container .row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	width: 100%;
}

body .gls-container .col,
body .gls-container .col-auto,
body .gls-container .col-12 {
	position: relative;
	width: 100%;
}

body .gls-container .col-12 {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 100%;
	flex: 0 0 100%;
	max-width: 100%;
}

body .gls-container .col {
	-ms-flex-preferred-size: 0;
	flex-basis: 0;
	-webkit-box-flex: 1;
	-ms-flex-positive: 1;
	flex-grow: 1;
	max-width: 100%;
}

body .gls-container .col-auto {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 auto;
	flex: 0 0 auto;
	width: auto;
	max-width: none;
}

body .gls-container .card {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 0;
	box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.1);
	display: block;
	margin-bottom: 0.75rem;
	position: relative;
}

body .gls-container .gls-mobile-container {
	margin-top: 1rem;
	margin-bottom: 0;
}

body .gls-container .gls-mobile-container .form-control-label {
	padding-top: 0;
	text-align: left;
}

body .gls-container .gls-mobile-container .form-control-danger,
body .gls-container .gls-mobile-container .form-control-success {
	background-position: center right .625rem;
	background-repeat: no-repeat;
	background-size: 1.25rem 1.25rem;
	padding-right: 2.25rem;
}

body .gls-container .gls-mobile-container .input-group-addon {
	padding: 0.3rem 0.5rem;
}

body .gls-container .gls-heading {
	margin-top: 1rem;
}

body .gls-container .gls-heading .wc-block-components-title {
	margin-top: -0.1875em;
	font-size: 1.25em;
	vertical-align: baseline;
	word-break: break-word;
}

body .gls-container .gls-heading ul {
	margin-bottom: 0;
}

body .gls-container .gls-heading .gls-sub-heading {
	margin-top: 0;
	margin-bottom: 0;
}

body .gls-container .gls-search-form-toggler {
	display: block;
}

body .gls-container .gls-search-form-container {
	align-items: center;
	display: grid;
	gap: 0.875rem;
	grid-auto-columns: 1fr;
	grid-auto-flow: row;
	grid-template-columns: minmax(0, 40%) minmax(0, 60%);
	grid-template-rows: minmax(0, 1fr);
	margin-top: 1rem;
}

body .gls-container .gls-search-form-container .wc-block-components-text-input {
	margin-top: 0;
	margin-bottom: 0;
}

body .gls-container .gls-search-form-container .input-group .form-control {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	margin-bottom: 0;
	position: relative;
	width: 1%;
}

body .gls-container .gls-search-form-container .form-row:not(.wc-block-components-text-input) {
	grid-column: span 2;
}

body .gls-container .gls-search-form-container .gls-search-relais-submit {
	width: 100%;
}

body .gls-container .gls-relais-result-container {
	margin-top: 1rem;
}

body .gls-container .gls-relais-list-container {
	padding-right: 0;
}

body .gls-container .gls-relais-list-container .col-select-relay {
	text-align: center;
}

body .gls-container .gls-relais-list-container .card-title {
	margin-bottom: 0.25rem;
}

body .gls-container .gls-relais-list-container .card-body {
	line-height: 1.2;
	padding: 0.5rem 0.75rem;
}

body .gls-container .gls-relais-list-container .gls-select-relay-container {
	margin-right: 1rem;
}

body .gls-container .gls-relay-infos label,
body .gls-container .gls-relay-infos .gls-relay-distance {
	font-size: 90%;
}

body .gls-container .gls-relay-infos label {
	clear: none;
	margin-bottom: 0;
	text-align: inherit;
}

body .gls-container .gls-map-container {
	height: 400px;
	margin-top: 1rem;
	width: 100%;
}

body .gls-container .gls-map-container .h6 {
	/* font-size: .9375rem; */
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 0.5rem;
}

body .gls-container .leaflet-container a.leaflet-popup-close-button {
    text-decoration: none;
}

body .gls-container .leaflet-container .leaflet-marker-pane .gls-marker-wrapper {
    height: 100%;
    position: relative;
    width: 100%;
}

body .gls-container .leaflet-container .leaflet-marker-pane .gls-marker-wrapper:before {
    color: #ffd100;
    content: attr(data-marker-id);
    display: block;
    font-weight: 600;
    height: 16px;
    line-height: 16px;
    margin-top: -5px;
    position: absolute; left: 50%; top: 50%;
    text-align: center;
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    width: 16px;
    z-index: 1;
}

body .gls-container .gls-relay-info-open-hours {
	width: 100%;
}

body .gls-container .woocommerce-info,
body .gls-container .woocommerce-error,
body .gls-container p {
	margin-top: 1rem;
	margin-bottom: 0;
}

body #order_review .gls-container .gls-relay-info-open-hours th,
body #order_review .gls-container .gls-relay-info-open-hours td {
	padding: 0.3rem 0.5rem;
}

body #order_review .gls-relay-info-open-hours th {
	font-weight: 400;
	vertical-align: top;
}

body #order_review .gls-relay-info-open-hours td {
	white-space: nowrap;
}

body #order_review .gls-relay-info-open-hours .today th,
body #order_review .gls-relay-info-open-hours .today td {
	font-weight: 600;
}

@media (min-width: 576px) and (max-width: 767px) {
	#shipping_method {
		min-width: 200px;
	}
}

@media (min-width: 992px) {
	body .gls-container .gls-search-form-container {
		grid-template-columns: minmax(0, 30%) minmax(0, 70%);
	}
}

@media (min-width: 1200px) {
	#shipping_method {
		min-width: 200px;
	}

	body .gls-container .gls-relais-list-container {
		overflow-y: auto;
		max-height: 400px;
		padding-right: 0.5rem;
	}
}

@media (max-width: 991px) {
	body .gls-container .gls-heading ul {
		margin-left: 1em;
	}
}
