/* Merch-specific overrides on top of store.css */

.store-subnav__tools .merch-ship {
	position: relative;
}

.merch-ship__trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 30px;
	padding: 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
}

.merch-ship__trigger:hover,
.merch-ship.sb-sort--open .merch-ship__trigger {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(0, 0, 0, 0.5);
}

.merch-ship__label {
	font: 700 10px/1 "Poppins", sans-serif;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
	white-space: nowrap;
}

.merch-ship__field {
	min-width: min(180px, 38vw);
	padding-right: 16px;
}

.merch-ship__field .sb-sort__value {
	font: 500 13px/1 "Rajdhani", sans-serif;
	letter-spacing: 0.02em;
	text-transform: none;
	color: #fff;
	max-width: min(180px, 38vw);
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Dropdown panel */
.merch-ship__panel {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	z-index: 200;
	display: flex;
	flex-direction: column;
	min-width: max(100%, 260px);
	max-height: min(340px, 56vh);
	margin: 0;
	background: rgba(32, 36, 42, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 2px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(12px) saturate(1.1);
	-webkit-backdrop-filter: blur(12px) saturate(1.1);
	overflow: hidden;
}

.merch-ship__panel[hidden] {
	display: none;
}

/* Custom search — matches store subnav search styling */
.merch-ship__search {
	position: relative;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	height: 36px;
	padding: 0 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(24, 26, 30, 0.98);
}

.merch-ship__search-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 14px;
	height: 14px;
	opacity: 0.45;
	pointer-events: none;
	display: flex;
	color: #fff;
}

.merch-ship__search-icon svg {
	width: 14px;
	height: 14px;
}

.merch-ship__search-input {
	width: 100%;
	height: 28px;
	padding: 0 28px 0 32px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font: 500 13px/1 "Rajdhani", sans-serif;
	letter-spacing: 0.02em;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
}

.merch-ship__search-input::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.merch-ship__search:focus-within .merch-ship__search-input {
	border-color: rgba(109, 179, 63, 0.55);
	background: rgba(0, 0, 0, 0.6);
}

.merch-ship__search-clear {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	padding: 0;
	border: none;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.65);
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

.merch-ship__search-clear:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

/* Scrollable country list */
.merch-ship__list {
	flex: 1 1 auto;
	min-height: 0;
	max-height: min(280px, calc(56vh - 36px));
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.merch-ship__list .sb-sort__option {
	position: relative;
	text-transform: none;
	letter-spacing: 0.02em;
	font-weight: 600;
}

.merch-ship__empty {
	padding: 14px 16px;
	font: 500 13px/1.4 "Rajdhani", sans-serif;
	color: rgba(255, 255, 255, 0.45);
	list-style: none;
}

.merch-banner {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: 2px;
	font: 500 13px/1.4 "Rajdhani", sans-serif;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.85);
}
.merch-banner--ok {
	background: rgba(93, 114, 56, 0.25);
	border-color: rgba(184, 233, 134, 0.35);
	color: #b8e986;
}

.merch-modal-image {
	margin: 0 0 16px;
	border-radius: 2px;
	overflow: hidden;
	background: #1e1f20;
}
.merch-modal-image img {
	display: block;
	width: 100%;
	max-height: 220px;
	object-fit: cover;
}
.merch-modal-desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.72);
}
.merch-modal-breakdown {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
}
