/* Share popup: fallback for browsers without the Web Share API
   (see assets/js/page-actions.js). Child rules are scoped under the dialog
   so the theme's global button reset (pink border/background on buttons and
   their :hover/:focus) cannot outrank them. */
.ipmba-share-dialog {
	width: min(420px, calc(100vw - 32px));
	max-width: none;
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 48px -12px rgba(34, 33, 95, .35);
	color: #22215f;
}

.ipmba-share-dialog::backdrop {
	background: rgba(34, 33, 95, .45);
}

/* Fallback when showModal() is unavailable: the attribute alone opens it. */
.ipmba-share-dialog[open]:not(:modal) {
	position: fixed;
	inset: 50% auto auto 50%;
	z-index: 10000;
	transform: translate(-50%, -50%);
}

.ipmba-share-dialog .ipmba-share-dialog__panel {
	position: relative;
	padding: 28px 24px 24px;
}

.ipmba-share-dialog .ipmba-share-dialog__title {
	margin: 0 0 20px;
	font-family: Roboto, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 24px;
	color: #22215f;
}

.ipmba-share-dialog .ipmba-share-dialog__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #687387;
	font-size: 26px;
	line-height: 36px;
	cursor: pointer;
}

.ipmba-share-dialog .ipmba-share-dialog__close:hover,
.ipmba-share-dialog .ipmba-share-dialog__close:focus {
	background: #f1f7fb;
	color: #22215f;
}

.ipmba-share-dialog .ipmba-share-dialog__options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.ipmba-share-dialog .ipmba-share-dialog__option {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid #d8e3ea;
	border-radius: 10px;
	background: #fff;
	color: #22215f;
	font-family: Roboto, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
}

.ipmba-share-dialog .ipmba-share-dialog__option:hover,
.ipmba-share-dialog .ipmba-share-dialog__option:focus {
	border-color: #0786c8;
	background: #f7fbff;
	color: #22215f;
}

.ipmba-share-dialog .ipmba-share-dialog__option svg {
	flex-shrink: 0;
}

.ipmba-share-dialog .ipmba-share-dialog__option--facebook svg {
	color: #0866ff;
}

.ipmba-share-dialog .ipmba-share-dialog__option--x svg {
	color: #000;
}

.ipmba-share-dialog .ipmba-share-dialog__option--whatsapp svg {
	color: #25d366;
}

.ipmba-share-dialog .ipmba-share-dialog__option--copy svg {
	color: #0786c8;
}

/* Print: keep only the page content. Site chrome and anything marked
   .ipmba-no-print are dropped. */
@media print {
	.elementor-location-header,
	.elementor-location-footer,
	#wpadminbar,
	.ipmba-no-print,
	.ipmba-share-dialog {
		display: none !important;
	}

	body {
		background: #fff !important;
	}
}
