.popup_map, .popup_codConfirmation {
	position: fixed;
	top: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.7);
	z-index: 999999;
	overflow-y: scroll;
	overflow-x: hidden;
	opacity: 0;
	visibility: hidden;
	transition: all 0.5s ease-in-out;
}

.popup_map.show, .popup_codConfirmation.show {
	opacity: 1;
	visibility: visible;
}

.popup_container {
	width: 90%;
	background: #fff;
	left: 50%;
	transform: translate(-50%, -50%);
	top: 50%;
	position: absolute;
	border-radius: 5px;
}

.multi_origin .select2-container {
	max-width: 350px !important;
}

.popup_codConfirmation .popup_container {
	width: 350px
}

.popup_header {
	position: relative;
}

.popup_codConfirmation .popup_content {
	text-align: center;
  font-size: 15px;
	color: #000
}

.popup_footer {
	margin: 10px 0 0 0;
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
}

.popup_footer>* {
	flex: 1;
	max-width: 100%;
	margin: 0;
}

.popup_footer #popup_save {
	margin: 0 0 1em 0;
}

.popup_fields #search_address input {
	padding-left: 34px;
	margin-bottom: 0;
	border: 0;
}

.popup_fields .maplibregl-ctrl-geocoder {
	width: 100%;
	max-width: 100%;
  margin-bottom: 21px;
}

#map .maplibregl-ctrl-group button {
	margin-bottom: 0 !Important;
	margin-right: 0 !Important;
}

@media screen and (min-width: 1100px) {
	.popup_container {
		width: 55%;
	}

	.popup_footer>* {
		flex: 0 0 30%;
		max-width: 30%;
	}
}

@media screen and (max-width: 500px) {

	/** with blocksy theme **/
	body.theme-blocksy span.select2-container .select2-selection--single .select2-selection__rendered {
    width: 100%;
    max-width: 250px;
	}
}

.popup_content {
	padding: 15px 15px 0;
	position: relative;
}

.popup_header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.popup_button {
	display: block;
	color: rgba(0, 0, 0, .5);
	font-size: 32px;
	margin: 0;
	padding: 0;
	line-height: 0;
	position: absolute;
	right: 0;
	top: 0px;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, .125);
	width: 28px;
	height: 28px;
}

.popup_map.popup_in_admin input[type="text"] {
	width: 100%;
	margin-bottom: 5px;
}

#billing_custom_address_field,
#shipping_custom_address,
._billing_address_2_field,
._shipping_address_2_field {
	width: 100%;
}

[for="billing_address_2"],
[for="shipping_address_2"] {
	opacity: 1 !important;
	width: 100% !important;
}

[for="billing_city"],
[for="shipping_city"] {
	display: none !important;
}

.pac-container {
	z-index: 999999 !important;
}

.remove_voucher_code {
	padding: 0 5px;
	cursor: pointer;
}

.shipping-calculator-button, .woocommerce-shipping-destination {
	display: none !important;
}

.force_hidden {
	display: none !important;
}

.popup_fields input {
	width: 100% !important;
	margin: 0 0 8px 0;
}

.admin_list_courier {
	columns: 3;
  -webkit-columns: 3;
  -moz-columns: 3;
}

/* ── Courier Picker ─────────────────────────────────────── */
.jbs-courier-picker {
	border: 1px solid #dcdcde;
	border-radius: 6px;
	overflow: hidden;
	max-width: 860px;
	font-size: 13px;
}

/* Toolbar */
.jbs-courier-toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	background: #f6f7f7;
	border-bottom: 1px solid #dcdcde;
	flex-wrap: wrap;
}

.jbs-courier-search {
	flex: 1;
	min-width: 180px;
	padding: 6px 10px !important;
	border: 1px solid #c3c4c7 !important;
	border-radius: 4px !important;
	font-size: 13px !important;
	height: auto !important;
	margin: 0 !important;
	box-shadow: none !important;
}

.jbs-courier-toolbar-right {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
	white-space: nowrap;
}

.jbs-selected-badge {
	background: #2271b1;
	color: #fff;
	border-radius: 12px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 600;
}

.jbs-check-all-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	cursor: pointer;
	color: #1d2327;
}

.jbs-check-all-label input {
	margin: 0 !important;
	width: auto !important;
}

/* Groups */
.jbs-courier-groups {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-height: 480px;
	overflow-y: auto;
}

.jbs-courier-group {
	border-bottom: 1px solid #ebebeb;
}

.jbs-courier-group:last-child {
	border-bottom: none;
}

.jbs-group-header {
	padding: 8px 14px;
	background: #f0f0f1;
	border-bottom: 1px solid #dcdcde;
	position: sticky;
	top: 0;
	z-index: 1;
}

.jbs-group-check-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	margin: 0 !important;
	font-weight: 700 !important;
	color: #1d2327 !important;
	font-size: 12px !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.jbs-group-check-label input {
	margin: 0 !important;
	width: auto !important;
}

.jbs-group-count {
	margin-left: auto;
	background: #c3c4c7;
	color: #1d2327;
	border-radius: 10px;
	padding: 1px 8px;
	font-size: 11px;
	font-weight: 600;
}

/* Items grid */
.jbs-courier-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 6px;
	padding: 10px 14px;
}

.jbs-courier-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	border: 1px solid #dcdcde;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.12s, border-color 0.12s;
	background: #fff;
	line-height: 1.3;
	margin: 0 !important;
}

.jbs-courier-item:hover {
	background: #f0f6fc;
	border-color: #72aee6;
}

.jbs-courier-item--checked {
	background: #f0f6fc;
	border-color: #2271b1;
}

.jbs-courier-item input[type="checkbox"] {
	flex-shrink: 0;
	margin: 0 !important;
	width: auto !important;
}

.jbs-courier-name {
	font-size: 13px;
	color: #1d2327;
	word-break: break-word;
}

.jbs-courier-item--hidden {
	display: none !important;
}

.jbs-courier-group--empty .jbs-group-header {
	display: none;
}
/* ── End Courier Picker ──────────────────────────────────── */

#billing_pinpoint_location_field span.description{
	margin-top: -12px;
	display: inline-block !important;
	font-size: 12px;
	margin-bottom: 10px;
}

.shipping__list_item {
	flex-wrap: wrap;
}

.jubelio-cod-fee-hint {
	text-align: left;
	font-size: 12px;
	margin-left: 23px;
}