/* ==========================================================================
   Modals — Overlays, Popups, Close Buttons
   Extracted from style.css (Phase 6 modularization)
   ========================================================================== */

/* ---- 1. Generic Modal Overrides ---- */

.modal-header .close:hover {
	background-color: transparent !important;
	color: #000;
}

.modal-header .close {

}

.modal-header {
	/* 	border: 0;
	padding: 0 */
}

div.modal-body a.btn-phone-green.trig-phone-click-aggrio {
	width: 100%;
}

/* ---- 2. Language Modal (#language_modal) ---- */

#language_modal .modal-dialog-centered::before {
	display: none
}

#language_modal .modal-dialog {
	max-width: 960px;
}

#language_modal .modal-content {
	border: 0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 24px 80px rgba(16, 30, 54, 0.24);
}

#language_modal .modal-header {
	align-items: center;
	border-bottom: 0;
	padding: 26px 28px 0;
}

#language_modal .modal-title {
	color: #2e455a;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

#language_modal .modal-dialog .modal-header .close {
	align-items: center;
	color: #45586a;
	display: inline-flex;
	font-size: 30px;
	justify-content: center;
	line-height: 1;
	margin: 0 0 0 auto;
	opacity: 1;
	padding: 0;
	position: static;
	width: 36px;
}

#language_modal .modal-body {
	padding: 18px 28px 30px;
}

.machmon-language-modal__content {
	position: relative;
}

.machmon-language-modal__grid {
	display: grid;
	gap: 10px 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.machmon-language-modal__item {
	opacity: 0;
	transform: translateY(12px);
}

.machmon-language-modal__content.is-animating .machmon-language-modal__item {
	animation: machmonLanguageCascade 0.62s cubic-bezier(.22, 1, .36, 1) both;
	animation-delay: calc(var(--machmon-language-index) * 0.04s);
}

.machmon-language-modal__link {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 12px;
	color: #45586a;
	display: flex;
	gap: 14px;
	min-height: 56px;
	padding: 12px 14px;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.machmon-language-modal__link:hover,
.machmon-language-modal__link:focus {
	background-color: #f6f8fb;
	border-color: #dbe3ea;
	box-shadow: 0 10px 24px rgba(69, 88, 106, 0.08);
	color: #45586a;
	outline: none;
	text-decoration: none;
}

.machmon-language-modal__item.is-active .machmon-language-modal__link {
	background-color: rgba(80, 170, 77, 0.08);
	border-color: rgba(80, 170, 77, 0.35);
}

.machmon-language-modal__flag-wrap {
	align-items: center;
	display: inline-flex;
	flex: 0 0 30px;
	justify-content: center;
	width: 30px;
}

.machmon-language-modal__flag {
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(69, 88, 106, 0.12);
	display: block;
	height: 21px;
	object-fit: cover;
	width: 30px;
}

.machmon-language-modal__label {
	color: inherit;
	display: block;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
}

.machmon-language-modal__item.is-rtl .machmon-language-modal__link {
	direction: rtl;
	justify-content: flex-end;
	text-align: right;
}

@keyframes machmonLanguageCascade {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 991px) {
	#language_modal .modal-dialog {
		margin: 24px auto;
		max-width: calc(100vw - 32px);
	}

	#language_modal .modal-header {
		padding: 22px 22px 0;
	}

	#language_modal .modal-body {
		padding: 16px 22px 24px;
	}

	.machmon-language-modal__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	#language_modal .modal-dialog {
		margin: 12px auto;
		max-width: calc(100vw - 16px);
	}

	#language_modal .modal-header {
		padding: 20px 18px 0;
	}

	#language_modal .modal-title {
		font-size: 24px;
	}

	#language_modal .modal-body {
		padding: 14px 18px 20px;
	}

	.machmon-language-modal__grid {
		gap: 8px;
		grid-template-columns: 1fr;
	}

	.machmon-language-modal__link {
		min-height: 52px;
		padding: 11px 12px;
	}

	.machmon-language-modal__label {
		font-size: 15px;
	}
}

/* ---- 3. Share Modal (#hma_share_modal) ---- */

#hma_share_modal.show {
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 24px !important;
}

#hma_share_modal .modal-dialog-centered::before {
	display: none
}

#hma_share_modal .modal-dialog-centered {
	min-height: unset
}

#hma_share_modal .modal-dialog-centered .modal--title {
	width: 100%;
	margin: 0;
	padding: 0 44px 0 0;
	color: #45586a;
	font-size: 22px;
	line-height: 28px;
	font-weight: 700;
	text-align: center;
}

#hma_share_modal .modal-dialog {
	margin: 0;
	max-width: 424px;
	width: min(424px, 100%);
	transform: none !important;
}

#hma_share_modal .modal-dialog-centered .modal-header .close {
	position: absolute;
	top: 22px;
	right: 22px;
	padding: 0;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f7f8fa;
	color: #45586a;
	opacity: 1;
}

#hma_share_modal .modal-content {
	border: 0;
	border-radius: 8px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
	overflow: hidden;
}

#hma_share_modal .modal-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 28px 22px;
	border-bottom: 1px solid #eaeaea;
}

#hma_share_modal .modal-body {
	padding: 0;
	background: #ffffff;
}

#hma_share_modal .hma_share_ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

#hma_share_modal .hma_share_ul a,
#hma_share_modal .hma_share_ul button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 128px;
	padding: 24px 10px 20px;
	border: 0;
	background: #ffffff;
	color: #45586a;
	font-size: 13px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

#hma_share_modal .hma_share_ul a:hover,
#hma_share_modal .hma_share_ul a:focus,
#hma_share_modal .hma_share_ul button:hover,
#hma_share_modal .hma_share_ul button:focus {
	background: #ffffff;
	color: #45586a;
	outline: none;
}

#hma_share_modal .hma_share_ul i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid #e1e5ea;
	border-radius: 50%;
	color: inherit;
	font-size: 18px;
	line-height: 1;
}

#hma_share_modal .hma-share-icon-svg {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid #e1e5ea;
	border-radius: 50%;
	font-size: 0;
	line-height: 1;
}

#hma_share_modal .hma-share-icon-svg svg {
	width: 16px;
	height: 16px;
	display: block;
	fill: currentColor;
}

#hma_share_modal .hma_share_ul span {
	display: block;
}

/* ---- 4. Contact Model (.hma_sp_contact_model) ---- */

.hma_sp_contact_model input[type=tel].form-control {
	background-color: #fff;
	border: 1px solid #c7d0da;
	box-shadow: none;
	height: 48px;
	padding: 12px 14px;
	border-radius: 6px;
}

.hma_sp_contact_model .modal-footer {
	border-top: 0
}

.hma_sp_contact_model input[type=email].form-control,
.hma_sp_contact_model input[type=text].form-control,
.hma_sp_contact_model textarea.form-control,
.hma_sp_contact_model select.form-control {
	padding: 12px 14px;
	border-radius: 6px;
}

.hma_sp_contact_model .modal-content {
	padding: 20px;
	border-radius: 6px;
	max-width: min(640px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.hma_sp_contact_model .modal-footer>div {
	width: calc(100% - 30px);
	width: 100%
}

form#hma_sp_contact_form .row {
	margin: 0
}

form#hma_sp_contact_form2 .row {
	margin: 0
}

.hma_sp_contact_model {
	border-radius: 6px
}

.hma_sp_contact_model .modal-content {

}

#exampleModal2 .modal--title {
	color: #1d1e22;
	font-size: 18px;
	line-height: 24px;
	font-weight: 700;
}

.hma_sp_contact_model .modal-body {
	padding: 0;
	overflow: auto;
	flex: 1 1 auto;
}

.hma_sp_contact_model label {
	color: #45586a;
	font-size: 14px;
	line-height: 20px;
	font-weight: 600
}

.hma_sp_contact_model input[type=email].form-control,
.hma_sp_contact_model input[type=text].form-control,
.hma_sp_contact_model textarea.form-control,
.hma_sp_contact_model select.form-control {
	background-color: #fff;
	border: 1px solid #c7d0da;
	box-shadow: none;
	height: 48px;
	padding: 12px 14px;
	font-size: 15px;
	line-height: 22px;
	color: #1d1e22;
}

.hma_sp_contact_model .form-control:focus {
	background-color: #fff;
	border-color: #45586a;
	box-shadow: 0 0 0 3px rgba(69, 88, 106, 0.14)
}

.hma_sp_contact_model .select2.select2-container .select2-selection {
	height: 48px
}

.hma_sp_contact_model textarea.form-control {
	min-height: 108px;
	height: auto;
}

.hma_sp_contact_model .modal-header,
.hma_sp_contact_model .modal-footer {
	padding: 0;
	border: 0;
}

.hma_sp_contact_model .modal-header {
	padding-bottom: 20px;
}

.hma_sp_contact_model .modal-footer {
	padding-top: 20px;
}

.hma_sp_contact_model .modal-footer .form-group {
	margin-bottom: 0;
}

.hma_sp_contact_model .modal-footer button {
	min-height: 48px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
}

.hma_sp_contact_model .hma_country_dile_code_col {
	padding-right: 6px;
	padding-left: 0;
}

.hma_sp_contact_model .hma_phone_number_col {
	padding-left: 6px;
	padding-right: 0;
}

.hma_sp_contact_model .col-md-12,
.hma_sp_contact_model .col-12 {
	padding-left: 0;
	padding-right: 0;
}

.hma_sp_contact_model .modal-footer button {
	margin: 0;
	width: 100%
}

#exampleModal2 .modal-body {
	background-color: #fff
}

#exampleModal2 .modal-title {
	font-weight: 700;
}

.wd-location-modal {
	padding: 24px;
}

.wd-location-modal-dialog {
	width: min(920px, 100%);
	max-width: 920px;
	margin: 0 auto;
}

.wd-location-modal-content {
	border: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.wd-location-modal-header {
	align-items: center;
	padding: 24px 24px 0;
	border-bottom: 0;
}

.wd-location-modal-title {
	width: 100%;
	color: #45586A;
	font-size: 20px;
	line-height: 30px;
	font-weight: 700;
}

.wd-location-modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	color: #8a94a6;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	opacity: 1;
}

.wd-location-modal-close:hover,
.wd-location-modal-close:focus {
	color: #45586A;
	background: #f5f7fa;
}

.wd-location-modal-body {
	padding: 20px 24px 24px !important;
	background: #fff;
}

.wd-location-modal-inner {
	background: #fff;
}

.wd-location-modal-heading {
	margin: 0;
	color: #45586A;
	font-size: 16px;
	line-height: 24px;
	font-weight: 700;
}

.wd-location-modal-divider {
	margin: 14px 0 18px;
	border: 0;
	border-top: 1px solid #e6ebf0;
}

.wd-location-modal-frame {
	display: block;
	border-radius: 8px;
	overflow: hidden;
}

.wd-location-modal-actions {
	margin: 16px 0 0;
}

.wd-location-modal-actions a {
	color: #45586A;
	font-size: 14px;
	line-height: 20px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.wd-location-modal-backdrop {
	background: rgba(17, 24, 39, 0.28);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.wd-location-modal-backdrop.show {
	opacity: 1;
}

/* ---- 5. Newsletter Modal (.wd-newsletter-modal) ---- */

#wd-newsletter-modal {
	display: none;
}

.wd-newsletter-email-error {
	display: none;
	color: var(--color-accent-red);
	font-size: 12px;
	line-height: 18px;
	margin-top: 8px;
}

.wd-newsletter-modal {
	position: fixed;
	inset: 0;
	z-index: 9999999;
	display: none;
	justify-content: center;
	align-items: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.45);
}

.wd-newsletter-modal .modal-content {
	position: relative;
	width: min(704px, 100%);
	min-height: 0;
	background-color: #ffffff;
	border: 0;
	border-radius: 6px;
	color: #45586a;
	text-align: center;
	padding: 36px 40px 32px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.wd-newsletter-modal .modal-content h2 {
	margin: 0;
	color: #45586a;
	font-size: 24px;
	line-height: 30px;
	font-weight: 700;
}

.wd-newsletter-modal .modal-content hr {
	margin: 18px 0 22px;
	border: 0;
	border-top: 1px solid #d7d7d7;
}

.wd-subscription-notice {
	text-align: center;
	padding: 12px 0 8px;
}

.wd-subscription-notice-final {
	display: none;
}

.wd-newsletter-modal-message {
	margin: 0 auto 26px;
	max-width: 560px;
	color: #45586a;
	font-size: 16px;
	line-height: 24px;
	text-align: left;
}

.wd-spinner {
	text-align: center;
}

.wd-newsletter-modal-dismiss {
	position: absolute;
	top: 14px;
	right: 18px;
	background: transparent;
	border: 0;
	color: #b9b9b9;
	font-size: 34px;
	line-height: 1;
	padding: 0;
}

.wd-newsletter-modal-dismiss:hover,
.wd-newsletter-modal-dismiss:focus {
	color: #9b9b9b;
	background: transparent;
}

.wd-newsletter-close-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 148px;
	min-height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 6px;
	color: #fff;
	background-color: var(--color-accent-red);
	font-size: 16px;
	line-height: 20px;
	font-weight: 700;
}

.wd-newsletter-close-button:hover,
.wd-newsletter-close-button:focus {
	background-color: #9f1c24;
	color: #fff;
}

body.single-product .hma-btn-primary:hover,
body.single-product .hma-btn-primary:focus,
body.single-product .hma-btn-primary:focus-visible,
body.single-product .wd-newsletter-close-button:hover,
body.single-product .wd-newsletter-close-button:focus {
	background-color: var(--color-primary-dark);
}

body.has-newsletter-modal {
	overflow: hidden;
}

/* ---- 6. Slider Modal (.hma_slider_modal) ---- */

.hma_slider_modal .modal-content {
	padding: 0 20px
}

/* ---- 7. Send Message Modal (#send-aggro-msg) ---- */

#send-aggro-msg .modal-title {
	font-weight: 700;
}

/* ---- 8. Loading Container ---- */

.loading-container {
	text-align: center;
	width: 100%;
	display: flex;
	height: 100%;
	justify-content: center;
	align-items: center;
}

/* ---- 9. Close Buttons ---- */

.wd-close {
  cursor: pointer;
}

.wd-close:hover,
.wd-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* ---- 10. iOS Safari Fixes ---- */

@supports (-webkit-overflow-scrolling: touch) {

	/* CSS specific to iOS devices */
	/* Safari modal issue... */
	body {
		width: 100%;
		max-width: 100%;

	}

	body.modal-open {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
	}

	.modal {
		will-change: display;
	}

	.modal-dialog {
		will-change: transform;
	}

	.modal-body {
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* ---- 11. Responsive — @media (max-width: 767px) ---- */

@media (max-width:767px) {

	#hma_share_modal .modal-dialog {
		max-width: 100%;
	}

	#hma_share_modal.show {
		padding: 16px;
	}

	#hma_share_modal .modal-header {
		padding: 20px 20px 18px;
	}

	#hma_share_modal .modal-dialog-centered .modal--title {
		font-size: 19px;
		line-height: 24px;
	}

	#hma_share_modal .hma_share_ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---- 12. Responsive — @media only screen and (max-width: 768px) ---- */

@media only screen and (max-width:768px) {

	.hma_sp_contact_model .modal-footer button.btn.hma-btn-primary {
		margin-top: 0;
		width: 100%;
		margin-left: 0
	}

}

/* ---- 13. Responsive — @media (max-width: 991px) ---- */

@media (max-width:991px) {

	.hma_sp_contact_model .modal-body {
		padding: 15px 0 0 0
	}

	.hma_sp_contact_model #hma_sp_contact_form {
		width: 100%;
		margin: 0 auto
	}

	.hma_sp_contact_model form#hma_sp_contact_form .row {
		width: 100%;
		margin: 0 auto
	}

	.hma_sp_contact_model .modal-footer button.btn.hma-btn-primary {
		margin-bottom: 20px
	}

	.hma_sp_contact_model .modal--title {
		padding: 10px 35px 10px 15px;
		margin: 0
	}

	.hma_sp_contact_model .modal-header .close {
		top: 16px;
		right: 15px;
		padding: 10px 15px
	}

	.modal-dialog.hma_sp_contact_model {
		margin-top: 10px
	}

	#hma_sp_contact_form {
		width: calc(100% - 30px);
		margin: 0 auto
	}

	.hma_slider_modal .modal-dialog {
		max-width: calc(100% - 30px)
	}

	.hma_slider_modal.show {
		padding: 0 !important
	}
}

/* ---- 14. Responsive — @media (min-width: 576px) ---- */

@media (min-width:576px) {
	.hma_sp_contact_model {
		max-width: 700px
	}
}

/* ---- 15. Responsive — @media (max-width: 576px) ---- */

@media (max-width: 576px) {
	.modal-dialog {
		max-width: 100%;
	}

	.hma_slider_modal .modal-dialog {
		margin: 1.75rem auto
	}
}

/* ---- 16. Responsive — @media (max-width: 367px) ---- */

@media (max-width:367px) {
	.hma_sp_contact_model .modal-footer button {
		display: block;
		width: calc(100% - 30px);
		margin: 15px
	}
}

/* ---- 17. Responsive — @media screen and (max-width: 767px) ---- */

@media screen and (max-width:767px) {

	#send-aggro-msg .modal-dialog {
		margin: 0 auto;
	}

	.modal-dialog-scrollable,
	.modal-dialog-scrollable .modal-content {
		max-height: 100% !important;
	}

	body.modal-open {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
	}

}

/* ---- 18. Responsive — @media (max-width: 767px) [body] ---- */

@media (max-width: 767px) {
	.modal-body {
		padding: 0.2rem 1rem;
	}

	.modal-header {
		padding: 0.3rem 1rem;
	}
}

/* ---- 19. Responsive — @media screen and (max-width: 767px) [exampleModal2] ---- */

@media screen and (max-width:767px) {

	.hma_slider_modal .modal-content {
		padding: 0 10px
	}

	#exampleModal2 .hma_sp_contact_model {
		margin: 0;
		height: 100%;
	}

	#exampleModal2 .hma_sp_contact_model .modal-content {
		height: 100%;
	}

	.hma_slider_modal .modal-dialog {
		margin: 1.75rem auto
	}

	.hma_sp_contact_model .modal-footer button {
		display: block;
		width: calc(100% - 30px);
		margin: 15px
	}
}
