/* Every carrier the plugin adds is settled at the carrier's rate on receipt,
   not free. Hide the "Безкоштовно" the cost-0 rate renders and show one
   consistent label for all of them (Nova Poshta, Ukrposhta, Rozetka). */
.wc-block-components-radio-control__option:has(input[value^="np_shipping"]) .wc-block-components-radio-control__secondary-label,
.wc-block-components-radio-control__option:has(input[value^="ukrposhta_shipping"]) .wc-block-components-radio-control__secondary-label,
.wc-block-components-radio-control__option:has(input[value^="rozetka_delivery"]) .wc-block-components-radio-control__secondary-label {
	font-size: 0 !important;
	line-height: 1.4;
}

.wc-block-components-radio-control__option:has(input[value^="np_shipping"]) .wc-block-components-radio-control__secondary-label::after,
.wc-block-components-radio-control__option:has(input[value^="ukrposhta_shipping"]) .wc-block-components-radio-control__secondary-label::after,
.wc-block-components-radio-control__option:has(input[value^="rozetka_delivery"]) .wc-block-components-radio-control__secondary-label::after {
	content: "За тарифами перевізника";
	font-size: 13px;
	color: #6d6d6d;
}

/* When the cart qualifies for free shipping, WooCommerce offers a free_shipping
   rate in the same package — so delivery by our carriers is free too. The more
   specific selector wins over the "carrier rate" note above. Pure CSS: it
   re-evaluates automatically as the cart crosses the threshold. */
.wc-block-components-shipping-rates-control__package:has(input[value^="free_shipping"]) .wc-block-components-radio-control__option:has(input[value^="np_shipping"]) .wc-block-components-radio-control__secondary-label::after,
.wc-block-components-shipping-rates-control__package:has(input[value^="free_shipping"]) .wc-block-components-radio-control__option:has(input[value^="ukrposhta_shipping"]) .wc-block-components-radio-control__secondary-label::after,
.wc-block-components-shipping-rates-control__package:has(input[value^="free_shipping"]) .wc-block-components-radio-control__option:has(input[value^="rozetka_delivery"]) .wc-block-components-radio-control__secondary-label::after {
	content: "Безкоштовно";
	color: #1e8e3e;
}

.nps-box {
	margin: 14px 0 6px;
	padding: 16px;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nps-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
}

.nps-head__logo {
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
}

.nps-head__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.nps-head__title {
	font-weight: 700;
	font-size: 15px;
	color: #1e1e1e;
}

.nps-head__sub {
	font-size: 12px;
	color: #757575;
}

.nps-field {
	margin-top: 12px;
}

.nps-label {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 600;
	color: #3c3c3c;
}

.nps-search {
	position: relative;
}

.nps-search__icon {
	position: absolute;
	left: 11px;
	top: 50%;
	width: 14px;
	height: 14px;
	transform: translateY(-50%);
	border: 2px solid #9a9a9a;
	border-radius: 50%;
	box-sizing: border-box;
	pointer-events: none;
}

.nps-search__icon::after {
	content: "";
	position: absolute;
	left: 9px;
	top: 10px;
	width: 6px;
	height: 2px;
	background: #9a9a9a;
	border-radius: 1px;
	transform: rotate(45deg);
}

.nps-search .nps-input {
	padding-left: 34px;
}

.nps-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
	font-size: 14px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nps-input:focus {
	outline: none;
	border-color: #d52b1e;
	box-shadow: 0 0 0 3px rgba(213, 43, 30, 0.12);
}

.nps-dropdown {
	position: absolute;
	z-index: 30;
	left: 0;
	right: 0;
	margin: 4px 0 0;
	padding: 4px;
	max-height: 240px;
	overflow-y: auto;
	list-style: none;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.nps-dropdown--hint {
	padding: 10px 12px;
	font-size: 13px;
	color: #757575;
}

.nps-dropdown li {
	margin: 0;
}

.nps-dropdown button {
	display: block;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: 5px;
	background: none;
	text-align: left;
	font-size: 13px;
	line-height: 1.35;
	color: #2c2c2c;
	cursor: pointer;
}

.nps-dropdown button:hover,
.nps-dropdown button:focus {
	background: #fdeceb;
	outline: none;
}

.nps-selected {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border: 1px solid #b5dcb8;
	border-radius: 6px;
	background: #f2faf3;
}

.nps-selected__check {
	flex: 0 0 auto;
	display: block;
}

.nps-selected__name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	line-height: 1.35;
	color: #1e1e1e;
}

.nps-selected__change {
	flex: 0 0 auto;
	border: 0;
	background: none;
	padding: 0;
	font-size: 12px;
	color: #d52b1e;
	text-decoration: underline;
	cursor: pointer;
}

.nps-selected__change:hover {
	text-decoration: none;
}

.nps-muted {
	padding: 9px 12px;
	border: 1px dashed #d5d5d5;
	border-radius: 6px;
	font-size: 13px;
	color: #8a8a8a;
	background: #fafafa;
}

.nps-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nps-filter {
	display: inline-flex;
	gap: 4px;
	margin-bottom: 8px;
	padding: 3px;
	background: #f0f0f1;
	border-radius: 8px;
}

.nps-filter__btn {
	border: 0;
	background: none;
	padding: 5px 12px;
	border-radius: 6px;
	font-size: 12px;
	color: #3c3c3c;
	cursor: pointer;
	transition: background 0.15s ease;
}

.nps-filter__btn:hover {
	background: rgba(213, 43, 30, 0.08);
}

.nps-filter__btn.is-active {
	background: #d52b1e;
	color: #fff;
}

.nps-text-field {
	min-width: 0;
}
