/* Getwine popups (front end). */

body.gwt-popup-open {
	overflow: hidden;
}

.gwt-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 100px 16px 40px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.gwt-popup-overlay.is-visible {
	opacity: 1;
}

.gwt-popup {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
	padding: 60px 32px 32px;
	background: #fbfaf7;
	color: #2b2723;
	border-radius: 12px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
	font-family: "General Sans", "Open Sans", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	text-align: center;
	transform: translateY(-12px);
	transition: transform 0.25s ease;
}

.gwt-popup-overlay.is-visible .gwt-popup {
	transform: none;
}

.gwt-popup--wide {
	max-width: 880px;
}

.gwt-popup *,
.gwt-popup *::before,
.gwt-popup *::after {
	box-sizing: border-box;
}

/* Close button, flush in the top-right corner. */
.gwt-popup__close {
	position: absolute;
	top: 0;
	right: 0;
	margin: 0;
	padding: 14px 20px;
	border: 0;
	border-radius: 0 12px 0 12px;
	background: #9e2427;
	background-image: none;
	box-shadow: none;
	text-shadow: none;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	min-height: 0;
	height: auto;
	width: auto;
	cursor: pointer;
	transition: background 0.15s ease;
}

.gwt-popup__close:hover,
.gwt-popup__close:focus {
	background: #7d1512;
	color: #fff;
	outline: none;
}

.gwt-popup__close:focus-visible {
	outline: 2px solid #2b2723;
	outline-offset: -4px;
}

/* Title. */
.gwt-popup__title {
	margin: 0 0 16px;
	padding: 0;
	font-family: "Clash Display", "Open Sans", sans-serif;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.15;
	color: #2b2723;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	text-shadow: none;
}

/* Text blocks (Markdown). */
.gwt-popup__text {
	margin: 0 0 16px;
}

.gwt-popup__text:last-child {
	margin-bottom: 0;
}

.gwt-popup__text p {
	margin: 0 0 12px;
}

.gwt-popup__text p:last-child {
	margin-bottom: 0;
}

.gwt-popup__text h1,
.gwt-popup__text h2,
.gwt-popup__text h3,
.gwt-popup__text h4 {
	margin: 0 0 12px;
	font-family: "Clash Display", "Open Sans", sans-serif;
	font-weight: 600;
	line-height: 1.2;
	color: #2b2723;
	text-transform: none;
	letter-spacing: normal;
}

.gwt-popup__text h1 { font-size: 28px; }
.gwt-popup__text h2 { font-size: 24px; }
.gwt-popup__text h3 { font-size: 20px; }
.gwt-popup__text h4 { font-size: 18px; }

.gwt-popup__text strong {
	font-weight: 700;
}

.gwt-popup__text a {
	color: #7d1512;
	text-decoration: underline;
}

.gwt-popup__text ul,
.gwt-popup__text ol {
	margin: 0 0 12px;
	padding-left: 24px;
	text-align: left;
	display: inline-block;
}

.gwt-popup__text img {
	max-width: 100%;
	height: auto;
}

/* Buttons. */
.gwt-popup__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0 0 16px;
}

.gwt-popup__buttons:last-child {
	margin-bottom: 0;
}

.gwt-popup .gwt-popup__button {
	display: inline-block;
	flex: 1 1 auto;
	max-width: 100%;
	padding: 13px 24px;
	border: 1px solid #b42b2e;
	border-radius: 10px;
	font-family: "Clash Display", "Open Sans", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	background-image: none;
	box-shadow: none;
	text-shadow: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.gwt-popup .gwt-popup__button:hover,
.gwt-popup .gwt-popup__button:focus {
	text-decoration: none;
	outline: none;
}

.gwt-popup .gwt-popup__button--red {
	background: #7d1512;
	border-color: #b42b2e;
	color: #fff;
}

.gwt-popup .gwt-popup__button--red:hover,
.gwt-popup .gwt-popup__button--red:focus {
	background: #b42b2e;
	color: #fff;
}

.gwt-popup .gwt-popup__button--green {
	background: #8fae1e;
	border-color: #8fae1e;
	color: #fff;
}

.gwt-popup .gwt-popup__button--green:hover,
.gwt-popup .gwt-popup__button--green:focus {
	background: #7f982f;
	border-color: #7f982f;
	color: #fff;
}

.gwt-popup .gwt-popup__button--white {
	background: #fff;
	border-color: #b42b2e;
	color: #b42b2e;
}

.gwt-popup .gwt-popup__button--white:hover,
.gwt-popup .gwt-popup__button--white:focus {
	background: #b42b2e;
	color: #fff;
}

/* Images. */
.gwt-popup__image {
	margin: 0 0 16px;
}

.gwt-popup__image:last-child {
	margin-bottom: 0;
}

.gwt-popup__image a {
	display: block;
}

.gwt-popup__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Small screens. */
@media (max-width: 600px) {
	.gwt-popup-overlay {
		padding: 60px 12px 24px;
	}

	.gwt-popup {
		padding: 56px 20px 24px;
		font-size: 15px;
	}

	.gwt-popup__title {
		font-size: 26px;
	}

	.gwt-popup__close {
		padding: 12px 16px;
		font-size: 13px;
	}

	.gwt-popup .gwt-popup__button {
		flex-basis: 100%;
	}
}
