/* The age gate and the alcohol warning (tripbagalil-core 1.39.0). Design: Lori, https://claude.ai/artifact/KPb5ENJ2NTqnDgkV28xkm7 */

/* The warning line, black on white in a black frame, at least 18 pixels (regulation 3 of the warning regulations, 2013). */
.tbg-alcohol-warning { display: inline-block; max-width: 100%; box-sizing: border-box; margin: 12px 0 0; border: 2px solid #000; border-radius: 6px; background: #fff; color: #000; font-size: 18px; line-height: 1.4; font-weight: 700; padding: 8px 14px; }
.tbg-cathead .tbg-alcohol-warning { margin-top: 16px; }
/* The head of a category page is a grid of named areas: the line spans the whole width, under the heading and the text. */
.tbg-cathead__main > .tbg-alcohol-warning { grid-column: 1 / -1; justify-self: start; }
.tbg-results__head .tbg-alcohol-warning, .tbg-listing__head .tbg-alcohol-warning { margin-top: 14px; }

/* The window. Under the accessibility toolbar (9600), over the page; the cookie banner (9500) never shows with it. */
.tbg-age { position: fixed; inset: 0; z-index: 9550; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.tbg-age[hidden] { display: none; }
.tbg-age__backdrop { position: absolute; inset: 0; background: rgba(16, 27, 61, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tbg-age__dialog { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; box-sizing: border-box; background: #fff; border-radius: 24px; box-shadow: 0 20px 60px rgba(13, 46, 36, 0.28); padding: 36px 36px 28px; text-align: center; color: #063c30; }
.tbg-age__icon { width: 72px; height: 72px; margin: 0 auto; border-radius: 999px; background: #eefae8; color: #07513d; display: flex; align-items: center; justify-content: center; }
.tbg-age__title { margin: 18px 0 10px; font-size: 28px; line-height: 1.25; font-weight: 800; color: #063c30; }
.tbg-age__title:focus, .tbg-age__title:focus-visible { outline: none; } /* the heading takes the focus only so a screen reader starts there */
.tbg-age__text { margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: #45665e; }
.tbg-age__actions { display: flex; gap: 12px; }
.tbg-age__btn { flex: 1 1 0; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 0 16px; border: 1px solid #b7ccc4; border-radius: 999px; background: #fff; color: #063c30; font: inherit; font-size: 17px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; }
.tbg-age__btn:hover { background: #eefae8; color: #063c30; }
.tbg-age__btn--primary { background: #07513d; border-color: #07513d; color: #fff; }
.tbg-age__btn--primary:hover { background: #063c30; border-color: #063c30; color: #fff; }
.tbg-age__btn:focus-visible { outline: 3px solid #ff7a05; outline-offset: 2px; }
.tbg-age__note { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: #45665e; }
html.tbg-age-open, html.tbg-age-open body { overflow: hidden; }
/* The high contrast mode of the accessibility toolbar colours every link blue: the primary link keeps its white text. */
html.a11y-high-contrast .tbg-age__btn--primary { color: #fff !important; background: #063c30 !important; }

@media (max-width: 600px) {
	.tbg-age__dialog { padding: 28px 22px 22px; }
	.tbg-age__icon { width: 64px; height: 64px; }
	.tbg-age__icon svg { width: 32px; height: 32px; }
	.tbg-age__title { margin: 16px 0 8px; font-size: 24px; }
	.tbg-age__text { margin-bottom: 20px; font-size: 16px; }
	.tbg-age__actions { flex-direction: column; gap: 10px; }
	.tbg-age__btn { flex: none; width: 100%; }
}
