.woo-ipos-store-picker {
	margin-bottom: 16px;
}

.woo-ipos-store-picker__trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.woo-ipos-store-picker__trigger::before {
	content: "\1F4CD";
	flex: 0 0 auto;
}

.woo-ipos-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.woo-ipos-modal[hidden] {
	display: none;
}

.woo-ipos-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.woo-ipos-modal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	width: 100%;
	max-width: 460px;
	max-height: 80vh;
	border-radius: 8px;
	overflow: hidden;
}

.woo-ipos-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
	padding: 14px 16px;
	border-bottom: 1px solid #eee;
}

.woo-ipos-modal__header h3 {
	margin: 0;
	font-size: 16px;
}

.woo-ipos-modal__close {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	padding: 4px;
	cursor: pointer;
	color: #666;
}

.woo-ipos-modal__body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 12px 16px 16px;
}

.woo-ipos-store-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.woo-ipos-store-list__item {
	margin-bottom: 8px;
}

.woo-ipos-store-list__btn {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 44px;
	text-align: left;
	padding: 10px 12px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	background: #fafafa;
	cursor: pointer;
}

.woo-ipos-store-list__btn:hover {
	border-color: #999;
	background: #f0f0f0;
}

.woo-ipos-store-list__btn strong {
	font-size: 14px;
	line-height: 1.3;
}

.woo-ipos-store-list__btn span {
	display: block;
	font-size: 12px;
	color: #666;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.woo-ipos-modal__warning {
	margin-top: 12px;
	padding: 10px 12px;
	background: #fff3cd;
	border: 1px solid #ffe69c;
	border-radius: 6px;
	color: #664d03;
	font-size: 13px;
}

/* Mobile: bottom-sheet thay vì hộp thoại giữa màn hình - dễ bấm, không bị tràn ngang */
@media (max-width: 600px) {
	.woo-ipos-modal {
		align-items: flex-end;
	}

	.woo-ipos-modal__panel {
		max-width: 100%;
		max-height: 85vh;
		border-radius: 12px 12px 0 0;
		padding-bottom: env(safe-area-inset-bottom, 0);
	}

	.woo-ipos-store-list__btn span {
		white-space: normal;
	}
}
