#pl-picker-modal {
	position: fixed;
	display: none;
	top: 10%;
	left: 10%;
	height: 80%;
	width: 80%;
	z-index: 1100;
	box-shadow: 0 0 10px 2px #e1e1e1;
	border: none !important;
}

#pl-picker-modal a {
	-webkit-box-shadow: unset;
	box-shadow: unset;
}

#pl-drop-off-iframe {
	display: inherit;
	width: 100%;
	height: 100%;
}

.pl-checkout-carrier-image {
	display: inline-block;
	height: 30px !important;
	vertical-align: middle;
}

#pl-picker-modal svg {
	position: absolute;
	top: -40px;
	right: -40px;
	cursor: pointer;
	width: 40px;
	box-shadow: 0 0 10px 2px #e1e1e1;
	border: none !important;
	height: 40px;
	border-radius: 50%;
	background-color: white;
}

#packlink-drop-off-picker {
	line-height: inherit;
}

.wc-block-components-shipping-rates-control .wc-block-components-radio-control__label-group {
	display: inline-flex;
	width: 100%;
	align-items: center;
	column-gap: 8px;
	flex-wrap: wrap;
}

.wc-block-components-shipping-rates-control .wc-block-components-radio-control__label-group .wc-block-components-radio-control__label {
	display: inline;
	flex: 1;
	min-width: 0;
}

.wc-block-components-shipping-rates-control .wc-block-components-radio-control__label-group .wc-block-components-radio-control__secondary-label {
	min-width: unset;
	white-space: nowrap;
	flex-shrink: 0;
}

/* Force the drop-off button to a new line in the WC Blocks flex container.
   The button is injected before the secondary-label in the DOM, so without
   re-ordering it pushes the price off the carrier row on themes with wide
   button styling (Divi, Astra, Makeaholic, ...); `order: 99` keeps the price
   on the carrier row and moves the button below it on every theme. */
.wc-block-components-radio-control__label-group #packlink-drop-off {
	order: 99;
	flex-basis: 100%;
	margin-top: 8px;
}

/* Ensure the delivery address also breaks to a new line, after the button. */
.wc-block-components-radio-control__label-group .woocommerce-shipping-destination {
	order: 100;
	flex-basis: 100%;
	font-size: 12px;
	margin-top: 4px;
}

.lp-location-wrapper {
	text-indent: 0;
	text-align: left;
}

.pl-image-wrapper {
	width: 100px;
	border-radius: 4px;
	padding: 2px;
	text-align: center;
	border: 1px solid lightgray;
	margin-right: 0;
	flex-shrink: 0;
}


@media screen and (max-width: 800px) {
	#pl-picker-modal svg {
		top: -30px;
		right: -30px;
		width: 30px;
		height: 30px;
	}

	.wc-block-components-shipping-rates-control .wc-block-components-radio-control__label-group {
		flex-direction: column;
		row-gap: 8px;
		align-items: flex-start;
	}
}

/* Divi / Extra theme: style the drop-off button as a primary CTA on WC Blocks.
   Uses Divi's accent color CSS variable so the button respects the user's theme
   customizer choice; falls back to Divi's default blue when the variable is unset. */
body.et_divi_theme .wc-block-components-shipping-rates-control #packlink-drop-off-picker,
body.et_extra .wc-block-components-shipping-rates-control #packlink-drop-off-picker {
	padding: 12px 16px;
	background-color: var(--et_accent_color, var(--accent-color, #2ea3f2));
	color: #ffffff;
	border: none;
	text-transform: uppercase;
	line-height: 1.4;
}

body.et_divi_theme .wc-block-components-shipping-rates-control #packlink-drop-off-picker:hover,
body.et_divi_theme .wc-block-components-shipping-rates-control #packlink-drop-off-picker:focus,
body.et_extra .wc-block-components-shipping-rates-control #packlink-drop-off-picker:hover,
body.et_extra .wc-block-components-shipping-rates-control #packlink-drop-off-picker:focus {
	background-color: var(--et_accent_color, var(--accent-color, #2ea3f2));
	color: #ffffff;
	filter: brightness(0.9);
}
