/**
 * PixelBorsch - Nova Poshta Checkout Styles
 * @package PixelBorsch_Core
 */

.pb-np-checkout-wrapper {
	margin: 20px 0 28px 0;
	padding: 22px 24px;
	background: #fdfaf4;
	border: 1.5px solid #e8dbbe;
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(197, 160, 89, 0.08);
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.pb-np-header {
	margin-bottom: 18px;
	border-bottom: 1px solid #ebd9b5;
	padding-bottom: 12px;
}

.pb-np-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #c5a059;
	color: #ffffff;
	font-size: 0.95rem;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 8px;
	letter-spacing: 0.3px;
}

.pb-np-badge svg {
	stroke: #ffffff;
}

.pb-np-desc {
	margin: 8px 0 0 0;
	font-size: 0.88rem;
	color: #64748b;
	line-height: 1.4;
}

.pb-np-field-group {
	margin-bottom: 18px;
	position: relative;
}

.pb-np-field-group:last-child {
	margin-bottom: 0;
}

.pb-np-field-group label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 6px;
}

.pb-np-field-group label .required {
	color: #ef4444;
}

.pb-np-input-wrapper {
	position: relative;
	width: 100%;
}

.pb-np-city-input,
.pb-np-warehouse-select {
	width: 100% !important;
	height: 46px !important;
	padding: 0 14px !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 10px !important;
	background: #ffffff !important;
	font-size: 0.95rem !important;
	color: #0f172a !important;
	transition: border-color 0.2s, box-shadow 0.2s !important;
	box-sizing: border-box !important;
}

.pb-np-city-input:focus,
.pb-np-warehouse-select:focus {
	outline: none !important;
	border-color: #c5a059 !important;
	box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2) !important;
}

.pb-np-warehouse-select:disabled {
	background-color: #f1f5f9 !important;
	color: #94a3b8 !important;
	cursor: not-allowed !important;
}

/* Spinner inside search inputs */
.pb-np-spinner,
.pb-np-wh-spinner {
	display: none;
	position: absolute;
	right: 14px;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	border: 2px solid rgba(197, 160, 89, 0.25);
	border-top-color: #c5a059;
	border-radius: 50%;
	animation: pbNpSpin 0.7s linear infinite;
	pointer-events: none;
}

.pb-np-input-wrapper.is-loading .pb-np-spinner,
.pb-np-input-wrapper.is-loading .pb-np-wh-spinner {
	display: block;
}

@keyframes pbNpSpin {
	to { transform: rotate(360deg); }
}

/* Dropdown list for cities */
.pb-np-dropdown {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	width: 100%;
	max-height: 260px;
	overflow-y: auto;
	background: #ffffff;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
	z-index: 1000;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	box-sizing: border-box;
}

.pb-np-dropdown li {
	padding: 10px 14px;
	font-size: 0.9rem;
	color: #1e293b;
	cursor: pointer;
	transition: background 0.15s;
	display: flex;
	flex-direction: column;
	gap: 2px;
	border-bottom: 1px solid #f1f5f9;
}

.pb-np-dropdown li:last-child {
	border-bottom: none;
}

.pb-np-dropdown li:hover,
.pb-np-dropdown li.is-highlighted {
	background: #fdfaf4;
	color: #0f172a;
}

.pb-np-dropdown li .pb-np-city-name {
	font-weight: 600;
}

.pb-np-dropdown li .pb-np-city-region {
	font-size: 0.78rem;
	color: #64748b;
}

.pb-np-dropdown li.no-results {
	padding: 14px;
	color: #94a3b8;
	text-align: center;
	cursor: default;
}

/* Rate badge on checkout review table */
.pb-np-rate-pill {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 7px;
	font-size: 0.75rem;
	font-weight: 700;
	background: #eef2ff;
	color: #4338ca;
	border-radius: 50px;
	vertical-align: middle;
}
