/**
 * Ukrposhta Checkout Module Styles
 * Luxury Soft Flames styling for Ukrposhta branch & address delivery fields.
 * @package PixelBorsch_Core
 */

.pb-up-wrapper {
	margin: 15px 0;
	padding: 18px 20px;
	background: #ffffff;
	border: 1.5px solid #e7e0d5;
	border-left: 4px solid #C5A059;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(42, 39, 37, 0.04);
	transition: all 0.25s ease;
	font-family: inherit;
	box-sizing: border-box;
}

.pb-up-header-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f1ece4;
}

.pb-up-header-badge .pb-up-icon {
	font-size: 18px;
	line-height: 1;
}

.pb-up-header-badge .pb-up-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #24201e;
	letter-spacing: -0.01em;
}

/* ─── Delivery Type Switcher (Tabs) ──────────────────────────────── */
.pb-up-type-nav {
	display: flex;
	background: #f4efe8;
	padding: 4px;
	border-radius: 10px;
	gap: 4px;
	width: 100%;
	max-width: 440px;
	box-sizing: border-box;
	margin-bottom: 8px;
}

.pb-up-type-tab {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 14px;
	border: none;
	background: transparent;
	color: #6a645d;
	font-size: 13px;
	font-weight: 600;
	border-radius: 7px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	outline: none;
}

.pb-up-type-tab:hover {
	color: #24201e;
}

.pb-up-type-tab.is-active {
	background: #ffffff;
	color: #24201e;
	box-shadow: 0 2px 8px rgba(42, 39, 37, 0.08);
}

.pb-up-tab-icon {
	font-size: 14px;
	line-height: 1;
}

/* ─── Form Fields ────────────────────────────────────────────────── */
.pb-up-field-group {
	position: relative;
	box-sizing: border-box;
}

.pb-up-field-group label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #24201e;
	margin-bottom: 6px;
}

.pb-up-field-group label .required {
	color: #dc2626;
	margin-left: 2px;
}

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

.pb-up-city-input,
.pb-up-warehouse-select {
	width: 100% !important;
	height: 44px !important;
	padding: 0 14px !important;
	border: 1.5px solid #dcd5ca !important;
	border-radius: 8px !important;
	background: #ffffff !important;
	font-size: 0.92rem !important;
	color: #24201e !important;
	transition: border-color 0.2s, box-shadow 0.2s !important;
	box-sizing: border-box !important;
}

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

.pb-up-warehouse-select:disabled {
	background-color: #f9f8f6 !important;
	color: #a8a29e !important;
	cursor: not-allowed !important;
}

/* ─── Doors / Address Grid ───────────────────────────────────────── */
.pb-up-doors-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr 1.2fr;
	gap: 12px;
}

@media (max-width: 600px) {
	.pb-up-doors-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

/* ─── Spinner inside inputs ──────────────────────────────────────── */
.pb-up-spinner,
.pb-up-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: pbUpSpin 0.7s linear infinite;
	pointer-events: none;
}

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

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

/* ─── Dropdown list for cities ───────────────────────────────────── */
.pb-up-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 9999;
	background: #ffffff;
	border: 1.5px solid #dcd5ca;
	border-radius: 10px;
	box-shadow: 0 16px 36px -4px rgba(42, 39, 37, 0.16), 0 6px 12px -2px rgba(42, 39, 37, 0.08);
	max-height: 280px;
	overflow-y: auto;
	list-style: none;
	margin: 0;
	padding: 6px;
	box-sizing: border-box;
	scrollbar-width: thin;
	scrollbar-color: #dcd5ca transparent;
}

.pb-up-dropdown::-webkit-scrollbar {
	width: 6px;
}

.pb-up-dropdown::-webkit-scrollbar-thumb {
	background: #dcd5ca;
	border-radius: 10px;
}

.pb-up-dropdown li {
	padding: 8px 12px;
	border-radius: 7px;
	cursor: pointer;
	font-size: 13px;
	color: #24201e;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.15s ease;
	margin-bottom: 2px;
	border-bottom: 1px solid #f9f8f6;
}

.pb-up-dropdown li:hover {
	background: #faf7f2;
	color: #24201e;
}

.pb-up-dropdown li:hover .pb-up-drop-pin {
	background: #eedbc0;
	transform: scale(1.08);
}

.pb-up-drop-main {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.pb-up-drop-pin {
	width: 26px;
	height: 26px;
	background: #f7f1e6;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	flex-shrink: 0;
	transition: all 0.15s;
}

.pb-up-drop-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.pb-up-drop-city {
	font-weight: 700;
	font-size: 13.5px;
	color: #24201e;
	line-height: 1.3;
}

.pb-up-drop-region {
	font-size: 11px;
	color: #7A7571;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-top: 1px;
}

.pb-up-drop-badge {
	font-size: 11px;
	font-weight: 600;
	color: #926f28;
	background: #fdf5e8;
	border: 1px solid #eedbc0;
	padding: 2px 7px;
	border-radius: 10px;
	white-space: nowrap;
	flex-shrink: 0;
}

.pb-up-dropdown li.no-results {
	padding: 12px;
	color: #8c827a;
	text-align: center;
	cursor: default;
}
