/* Balmet – how to order with Econt. Colours of the site's theme (Hotlock): dark #292734, yellow #ffc600. */

/* ---- the link to the video ---- */
.balmet-hto-open {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #292734;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: #ffc600;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.4;
}
.balmet-hto-open:hover,
.balmet-hto-open:focus {
	color: #000;
	text-decoration-color: #292734;
}
.balmet-hto-open::before {
	content: "";
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ffc600 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8 6l6 4-6 4z' fill='%23292734'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
.balmet-hto-rate-link {
	display: block;
	margin-top: 8px;
	font-size: 14px;
}

/* ---- the section „Доставка с Еконт“ in the checkout ---- */
.balmet-econt[hidden],
.balmet-econt [hidden] {
	display: none !important;
}
.balmet-econt {
	clear: both;
	margin: 10px 0 40px;
	padding: 24px 24px 20px;
	background: #fafafa;
	border: 1px solid #e5e5e5;
	border-top: 3px solid #ffc600;
}
.balmet-econt__title {
	margin: 0 0 8px;
}
.balmet-econt__hint {
	margin: 0 0 16px;
	max-width: 760px;
}
.balmet-econt__hint .balmet-hto-open {
	display: flex;
	width: fit-content;
	margin-top: 10px;
}
.balmet-econt__need {
	margin: 0 0 16px;
	padding: 12px 16px;
	background: #fff6d6;
	border-left: 4px solid #ffc600;
	color: #292734;
	font-weight: 600;
}
.balmet-econt__waiting,
.balmet-econt__stale {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 0;
	padding: 16px;
	background: #fff;
	border: 1px dashed #c9c9c9;
	color: #4c4b51;
}
.balmet-econt__stale {
	margin-bottom: 12px;
	border-style: solid;
	border-color: #ffc600;
	background: #fffbea;
}
.balmet-econt__open-now,
.balmet-econt__refresh,
.balmet-econt__change {
	padding: 8px 18px;
	background: #292734;
	border: 0;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}
.balmet-econt__open-now:hover,
.balmet-econt__open-now:focus,
.balmet-econt__refresh:hover,
.balmet-econt__refresh:focus {
	background: #ffc600;
	color: #292734;
}
.balmet-econt__summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #e5e5e5;
	color: #292734;
}
.balmet-econt__tick {
	color: #1e7b34;
	font-weight: 700;
	font-size: 18px;
}
.balmet-econt__summary-text {
	flex: 1 1 260px;
}
.balmet-econt__change {
	padding: 8px 18px;
	background: #292734;
	border: 0;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}
.balmet-econt__change:hover,
.balmet-econt__change:focus {
	background: #ffc600;
	color: #292734;
}

/* Econt's own box, moved here out of its pop-up (only when the script did it). */
html.balmet-econt-inline #econt_delivery_calculate_buttons,
html.balmet-econt-inline #calculate_shipping_button {
	display: none !important;
}
html.balmet-econt-inline #balmet-econt #delivery_with_econt_calculate_shipping {
	display: block !important;
	position: static;
	right: auto;
}
html.balmet-econt-inline #balmet-econt .econt-modal {
	position: static;
	z-index: auto;
	width: auto;
	height: auto;
	padding: 0;
	overflow: visible;
	background: none;
}
html.balmet-econt-inline #balmet-econt .econt-modal-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: #fff;
}
html.balmet-econt-inline #balmet-econt span.close {
	display: none;
}
html.balmet-econt-inline #balmet-econt #place_iframe_here {
	padding: 6px 0 0;
	background: #fff;
}
html.balmet-econt-inline #balmet-econt #delivery_with_econt_iframe {
	display: block;
	width: 100%;
	height: 560px;
	max-height: none;
}
html.balmet-econt-inline #balmet-econt .econt-loader {
	min-height: 260px;
	background-image: url("../../plugins/deliver-with-econt-1/public/images/loader.gif") !important;
}

/* ---- the window with the video ---- */
/* A browser without <dialog> (iOS before 15.4) would show it in the page: closed is hidden. */
.balmet-hto-dialog:not([open]) {
	display: none;
}
.balmet-hto-dialog {
	width: min(980px, 94vw);
	max-height: 94vh;
	padding: 0;
	border: 0;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
	overflow: auto;
}
.balmet-hto-dialog::backdrop {
	background: rgba(20, 19, 26, 0.75);
}
.balmet-hto-dialog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 10px 10px 18px;
	background: #292734;
}
.balmet-hto-dialog__title {
	margin: 0;
	color: #fff;
	font-weight: 600;
	line-height: 1.3;
}
.balmet-hto-dialog__close {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: 0;
	color: #fff;
	font-size: 30px;
	line-height: 40px;
	cursor: pointer;
}
.balmet-hto-dialog__close:hover,
.balmet-hto-dialog__close:focus {
	color: #ffc600;
	background: none;
}
.balmet-hto-dialog__more {
	margin: 0;
	padding: 12px 18px 16px;
}

/* ---- the player ---- */
.balmet-hto-player {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	background: #1a1a1a;
	object-fit: contain;
}
.balmet-hto-player.is-phone {
	aspect-ratio: 9 / 16;
}
.balmet-hto-player--dialog.is-phone {
	max-height: calc(94vh - 120px);
	margin: 0 auto;
}

/* ---- the page „Как да поръчам“ ---- */
.balmet-hto {
	max-width: 900px;
}
.balmet-hto__lead {
	font-size: 1.1em;
}
.balmet-hto__video {
	margin: 24px 0 8px;
}
.balmet-hto__video .balmet-hto-player.is-phone {
	max-width: 420px;
	margin: 0 auto;
}
.balmet-hto .balmet-hto__video figcaption {
	position: static !important;
	margin: 8px 0 0 !important;
	padding: 0 !important;
	background: none !important;
	font-size: 14px !important;
	color: #908f94 !important;
	text-align: left !important;
}
.balmet-hto__h {
	margin: 36px 0 14px;
}
.balmet-hto-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: balmet-step;
}
.balmet-hto-steps li {
	position: relative;
	margin: 0 0 14px;
	padding-left: 46px;
	min-height: 32px;
	counter-increment: balmet-step;
}
.balmet-hto-steps li::before {
	content: counter(balmet-step);
	position: absolute;
	left: 0;
	top: -3px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #ffc600;
	color: #292734;
	font-weight: 700;
	line-height: 32px;
	text-align: center;
}
.balmet-hto__cta {
	margin-top: 32px;
}
.balmet-hto .balmet-hto__button,
.balmet-hto .balmet-hto__button:visited {
	display: inline-block;
	padding: 16px 34px;
	background: #ffc600;
	color: #292734 !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
}
.balmet-hto .balmet-hto__button:hover,
.balmet-hto .balmet-hto__button:focus {
	background: #292734;
	color: #fff !important;
}

@media (max-width: 767px) {
	.balmet-econt {
		padding: 18px 14px 14px;
		margin-left: -2px;
		margin-right: -2px;
	}
	html.balmet-econt-inline #balmet-econt #delivery_with_econt_iframe {
		height: 760px;
	}
}

.balmet-hto__title {
	margin: 0 0 18px;
}

/* The short label of the video link in the narrow order table on a phone. */
.balmet-hto-short {
	display: none;
}
@media (max-width: 767px) {
	.woocommerce-checkout-review-order-table .balmet-hto-long {
		display: none;
	}
	.woocommerce-checkout-review-order-table .balmet-hto-short {
		display: inline;
	}
	.woocommerce-checkout-review-order-table .balmet-hto-rate-link {
		font-size: 13px;
	}
}
