/* Fereastra de comandă pentru Meniul zilei */

html.bd-mzc-blocat,
html.bd-mzc-blocat body {
	overflow: hidden !important;
}

/* Peste bara coșului de jos; butonul verde de apel nu mai acoperă „Adaugă în coș”. */
#wfsModal.bd-mz-deschis {
	z-index: 100000;
}

html.bd-mzc-blocat .wp-call-button {
	display: none !important;
}

/* O singură zonă care se derulează: corpul ferestrei. Antetul și butonul de jos stau pe loc. */
#wfsModal.bd-mz-deschis .wfsmodal-dialog {
	top: 0;
	bottom: 0;
	padding: 20px;
	align-items: center;
	overflow: hidden !important;
}

#wfsModal.bd-mz-deschis .wfsmodal-container {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	margin: 0 auto;
	overflow: hidden;
	border-radius: 12px;
}

#wfsModal.bd-mz-deschis .wfsmodal-header {
	flex: 0 0 auto;
	align-items: center;
	padding: 10px 14px 10px 18px;
}

#wfsModal.bd-mz-deschis .wfsmodal-title {
	font-size: 22px;
	line-height: 1.25;
	margin: 0;
}

#wfsModal.bd-mz-deschis .wfsmodal-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 0;
}

#wfsModal.bd-mz-deschis .wfsmodal-footer {
	flex: 0 0 auto;
	padding: 12px 16px;
	padding-bottom: calc(12px + env(safe-area-inset-bottom));
	background: #fff;
	box-shadow: 0 -6px 16px rgba(0, 0, 0, .08);
	border-top: 1px solid #eee;
}

#wfsModal.bd-mz-deschis .wfs-modal-actions {
	padding: 0;
	gap: 10px 14px;
	align-items: center;
	flex-wrap: wrap;
}

#wfsModal.bd-mz-deschis .bd-mzc-eticheta {
	font-weight: 700;
	font-size: 15px;
	color: #222;
	white-space: nowrap;
}

#wfsModal.bd-mz-deschis .wfs-modal-count {
	flex: 0 0 auto;
}

#wfsModal.bd-mz-deschis .wfs-modal-count input.wfs-qty-btn {
	width: 46px;
	height: 46px !important;
	padding: 0 !important;
	font-size: 22px;
	line-height: 1;
}

#wfsModal.bd-mz-deschis .wfs-modal-count input.wfs-qty-input {
	width: 52px;
	height: 46px !important;
	font-size: 18px;
	font-weight: 700;
}

#wfsModal.bd-mz-deschis .wfsmodal-footer .wfs-modal-add-to-cart {
	flex: 1 1 200px;
	display: flex;
}

#wfsModal.bd-mz-deschis .wfsmodal-footer .wfs-modal-add-to-cart a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 50px;
	padding: 0 14px;
	font-size: 15px;
	border-radius: 8px;
	text-transform: uppercase;
}

/* Conținut */
.bd-mzc {
	color: #222;
	font-size: 15px;
	line-height: 1.45;
}

.bd-mzc *,
.bd-mzc *::before,
.bd-mzc *::after {
	box-sizing: border-box;
}

.bd-mzc__poza {
	position: relative;
	display: block;
	background: #f3f3f3;
	text-align: center;
}

.bd-mzc__poza img {
	display: block;
	width: 100%;
	max-height: 46vh;
	object-fit: contain;
	margin: 0 auto;
}

.bd-mzc__zoom {
	position: absolute;
	right: 10px;
	top: 10px;
	padding: 4px 10px;
	border-radius: 99px;
	background: rgba(0, 0, 0, .65);
	color: #fff;
	font-size: 12px;
}

.bd-mzc__sectiune {
	padding: 16px 18px;
	border-bottom: 1px solid #f0f0f0;
}

.bd-mzc__sectiune:last-child {
	border-bottom: 0;
}

.bd-mzc .bd-mzc__titlu {
	margin: 0 0 10px;
	padding: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
	text-transform: none;
}

.bd-mzc__titlu small {
	font-size: 12px;
	font-weight: 500;
	color: #888;
	margin-left: 4px;
}

.bd-mzc__titlu label {
	font: inherit;
	margin: 0;
}

.bd-mzc__pret {
	margin: 0 0 12px;
	font-size: 15px;
	color: #444;
}

.bd-mzc__pret strong {
	font-size: 24px;
	color: #1f9d1f;
	margin-right: 2px;
}

.bd-mzc__stoc {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 99px;
	background: #fff4e5;
	color: #a35a00;
	font-size: 12px;
	vertical-align: 2px;
}

.bd-mzc__feluri {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bd-mzc__feluri li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
}

.bd-mzc__feluri .bd-mzc__nr {
	flex: 0 0 26px;
	height: 26px;
	border-radius: 50%;
	background: #ba2323;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 26px;
	text-align: center;
}

.bd-mzc__ajutor {
	margin: -4px 0 12px;
	font-size: 13px;
	color: #666;
}

.bd-mzc__suplimente {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bd-mzc__supliment {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 8px;
	padding: 8px 8px 8px 12px;
	border: 2px solid #eee;
	border-radius: 10px;
	transition: border-color .15s, background-color .15s;
}

.bd-mzc__supliment.is-ales {
	border-color: #ba2323;
	background: #fff6f6;
}

.bd-mzc__nume {
	min-width: 0;
}

.bd-mzc__nume strong {
	display: block;
	font-size: 15px;
	font-weight: 600;
}

.bd-mzc__nume span {
	display: block;
	font-size: 13px;
	color: #777;
}

.bd-mzc__stepper {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 4px;
}

.bd-mzc .bd-mzc__btn {
	width: 40px;
	min-width: 0;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #ba2323;
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
	box-shadow: none;
	touch-action: manipulation;
}

.bd-mzc .bd-mzc__btn:disabled {
	background: #e5e5e5;
	color: #aaa;
	cursor: default;
}

.bd-mzc__cate {
	min-width: 30px;
	text-align: center;
	font-size: 18px;
	font-weight: 700;
}

.bd-mzc textarea {
	width: 100%;
	min-height: 64px;
	padding: 10px 12px;
	border: 1px solid #d5d5d5;
	border-radius: 8px;
	font: inherit;
	resize: vertical;
}

.bd-mzc__sumar {
	background: #fafafa;
}

.bd-mzc__linie {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 3px 0;
	font-size: 15px;
}

.bd-mzc__linie--total {
	margin-top: 6px;
	padding-top: 8px;
	border-top: 1px dashed #ccc;
	font-size: 17px;
	font-weight: 700;
}

/* Telefon: fereastra ocupă tot ecranul */
@media (max-width: 600px) {
	#wfsModal.bd-mz-deschis .wfsmodal-dialog {
		padding: 0;
	}

	#wfsModal.bd-mz-deschis .wfsmodal-container {
		height: 100vh;
		height: 100dvh;
		max-height: none;
		border-radius: 0;
	}

	#wfsModal.bd-mz-deschis .wfsmodal-footer .wfs-modal-add-to-cart {
		flex-basis: 100%;
	}

	#wfsModal.bd-mz-deschis .bd-mzc-eticheta {
		flex: 1 1 auto;
	}

	.bd-mzc__poza img {
		max-height: 40vh;
	}
}
