.ip-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba( 0, 0, 0, 0.6 );
}

.ip-popup-overlay[hidden] {
	display: none;
}

body.ip-popup-open {
	overflow: hidden;
}

.ip-popup {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 85vh;
	overflow-y: auto;
	padding: 32px 32px 24px;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.25 );
}

.ip-popup-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.ip-popup-close:hover,
.ip-popup-close:focus {
	background: rgba( 0, 0, 0, 0.07 );
}

.ip-popup-heading {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.3;
}

.ip-popup-heading[hidden] {
	display: none;
}

.ip-popup-content {
	margin-bottom: 24px;
}

.ip-popup-content p:last-child {
	margin-bottom: 0;
}

.ip-popup-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
}

.ip-popup-button {
	padding: 10px 22px;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	font-size: 15px;
	cursor: pointer;
}

.ip-popup-accept {
	border-color: transparent;
	background: #2c3e50;
	color: #fff;
}

.ip-popup-accept:hover,
.ip-popup-accept:focus {
	opacity: 0.9;
}

@media ( max-width: 480px ) {
	.ip-popup {
		padding: 28px 20px 20px;
	}

	.ip-popup-actions {
		justify-content: stretch;
	}

	.ip-popup-button {
		flex: 1 1 auto;
	}
}
