/* ===== FIX HIDDEN PANEL ISSUE (IMPORTANT) ===== */
.nms-product-panel-sheet[hidden],
.nms-product-panels-overlay[hidden] {
	display: none !important;
}

/* ===== PANELS ===== */
.nms-product-panels {
	margin-top: 18px;
	border-top: 1px solid #ededed;
	border-bottom: 1px solid #ededed;
	background: #fff;
}

.nms-product-panel-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border: 0;
	border-bottom: 1px solid #ededed;
	background: transparent;
	cursor: pointer;
	text-align: left;
	color: #111;
	box-shadow: none;
}

.nms-product-panel-trigger:last-child {
	border-bottom: 0;
}

.nms-product-panel-trigger__left {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.nms-product-panel-icon {
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 20px;
	color: #111;
}

.nms-product-panel-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.nms-product-panel-title {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: #111;
}

.nms-product-panel-arrow {
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 18px;
	color: #111;
}

.nms-product-panel-arrow svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* ===== OVERLAY ===== */
.nms-product-panels-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 17, 17, 0.4);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nms-product-panels-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

/* ===== SHEET ===== */
.nms-product-panel-sheet {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	pointer-events: none;
}

.nms-product-panel-sheet__dialog {
	width: 100%;
	max-width: 640px;
	max-height: 85vh;
	background: #fff;
	border-radius: 22px 22px 0 0;

	/* 🔥 خففنا الشادو ليكون أنعم */
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);

	transform: translateY(100%);
	transition: transform 0.3s ease;
	pointer-events: auto;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.nms-product-panel-sheet.is-active .nms-product-panel-sheet__dialog {
	transform: translateY(0);
}

.nms-product-panel-sheet__handle {
	width: 42px;
	height: 4px;
	border-radius: 999px;
	background: #d8d8d8;
	margin: 10px auto 6px;
}

/* ===== HEADER ===== */
.nms-product-panel-sheet__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 18px 16px;
	border-bottom: 1px solid #f1f1f1;
}

.nms-product-panel-sheet__header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #111;
}

.nms-product-panel-close {
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: #f7f7f7;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: 0;
}

.nms-product-panel-close svg {
	width: 18px;
	height: 18px;
}

/* ===== CONTENT ===== */
.nms-product-panel-sheet__content {
	padding: 18px;
	overflow-y: auto;
}

/* ===== CARDS ===== */
.nms-info-card {
	padding: 16px;
	border: 1px solid #efefef;
	border-radius: 16px;
	background: #fff;
	margin-bottom: 14px;
}

.nms-info-card h4 {
	margin-bottom: 10px;
	font-size: 15px;
	font-weight: 600;
}

.nms-info-card p {
	font-size: 14px;
	line-height: 1.75;
	color: #444;
}

/* ===== QUIZ ===== */
.nms-quiz-step.is-hidden,
.nms-quiz-result.is-hidden {
	display: none;
}

.nms-quiz-option {
	display: flex;
	gap: 10px;
	padding: 14px;
	border: 1px solid #ececec;
	border-radius: 14px;
	margin-bottom: 10px;
	cursor: pointer;
}

.nms-quiz-option:hover {
	border-color: #ddd;
	background: #fafafa;
}

/* ===== BUTTONS ===== */
.nms-quiz-btn {
	min-height: 44px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	padding: 12px 18px;
	font-weight: 600;
	cursor: pointer;
	border: 0;
}

.nms-quiz-btn.ghost {
	background: #fff;
	color: #111;
	border: 1px solid #e5e5e5;
}

/* ===== DELIVERY ===== */
.nms-estimated-delivery {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 14px 0;
}

.nms-estimated-delivery__text {
	font-size: 15px;
}

.nms-estimated-delivery__text strong {
	font-weight: 600;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
	.nms-product-panel-title {
		font-size: 14px;
	}

	.nms-product-panel-sheet__header h3 {
		font-size: 17px;
	}

	.nms-product-panel-sheet__content {
		padding: 16px;
	}
}