/* ===== Econt classic checkout — delivery-type icon tabs (Econt blue) ===== */
/* Matches the block checkout design: rounded cards, SVG icons recoloured via CSS mask,
   Econt blue (#194382) active state. Only the option labels inside the input wrapper are
   styled as tabs; the field's own label stays a heading. */

#econt-title-text { display: none !important; }

/* Field label ("Изпращане до") shown as a heading above the tabs. The theme floats
   form-row labels left, which would drop the tabs next to the label — force it to sit on
   its own line above them. */
#econt_shipping_to_buttons_field > label {
	display: block;
	float: none;
	width: auto;
	margin-bottom: 6px;
}
#econt_shipping_to_buttons_field .woocommerce-input-wrapper { clear: both; }

#econt_shipping_to_buttons_field .woocommerce-input-wrapper {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

#econt_shipping_to_buttons_field .woocommerce-input-wrapper input[type="radio"] {
	display: none !important;
}

/* Each delivery-type tab */
#econt_shipping_to_buttons_field .woocommerce-input-wrapper label {
	flex: 1 1 0;
	min-width: 96px;
	box-sizing: border-box;
	padding: 10px 8px;
	margin: 0 !important;
	background: #f5f7fa;
	border: 1.5px solid #d7dce5;
	border-radius: 10px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
	color: #194382;
	font-weight: 600;
	font-size: 13px;
	line-height: 1.2;
	transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}

#econt_shipping_to_buttons_field .woocommerce-input-wrapper label:hover {
	border-color: #194382;
	background: #eef2f9;
}

/* Hide the required asterisk inside the tabs (the field itself is still required) */
#econt_shipping_to_buttons_field .woocommerce-input-wrapper label .required,
#econt_shipping_to_buttons_field .woocommerce-input-wrapper label abbr.required {
	display: none !important;
}

/* Price badge inside the tab */
#econt_shipping_to_buttons_field .woocommerce-input-wrapper label .econt-type-price {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	opacity: .95;
}

/* Icon rendered as a mask so it inherits the tab colour (blue → white when selected) */
#econt_shipping_to_buttons_field .woocommerce-input-wrapper label:before {
	content: "";
	display: block;
	width: 26px;
	height: 26px;
	background-color: currentColor;
	-webkit-mask: no-repeat center / contain;
	mask: no-repeat center / contain;
}

#econt_shipping_to_buttons_field .woocommerce-input-wrapper label[for="econt_shipping_to_buttons_DOOR"]:before {
	-webkit-mask-image: url("images/econt-door.svg");
	mask-image: url("images/econt-door.svg");
}
#econt_shipping_to_buttons_field .woocommerce-input-wrapper label[for="econt_shipping_to_buttons_OFFICE"]:before {
	-webkit-mask-image: url("images/econt-office.svg");
	mask-image: url("images/econt-office.svg");
}
#econt_shipping_to_buttons_field .woocommerce-input-wrapper label[for="econt_shipping_to_buttons_MACHINE"]:before {
	-webkit-mask-image: url("images/econt-aps.svg");
	mask-image: url("images/econt-aps.svg");
}

/* Selected tab: solid Econt blue with white text + icon */
#econt_shipping_to_buttons_field .woocommerce-input-wrapper input:checked + label {
	background: #194382;
	border-color: #194382;
	color: #fff;
	box-shadow: 0 2px 6px rgba(25, 67, 130, .28);
}

.econt_office_locator_map { width: auto; }

@media only screen and (max-width: 600px) {
	#econt_shipping_to_buttons_field .woocommerce-input-wrapper label {
		min-width: 84px;
		font-size: 12px;
	}
}
