/* Cookie consent banner, preferences dialog and the placeholder shown instead of blocked embeds. */
.ew-cc[hidden],
.ew-cc [hidden] { display: none !important; }

.ew-cc { font-family: var(--ew-font-jakarta); font-size: 15px; line-height: 1.5; color: var(--ew-body-text); }
.ew-cc a { color: var(--ew-purple); text-decoration: underline; }
.ew-cc p { margin: 0; }

.ew-cc__banner {
	position: fixed; z-index: 99990; left: 20px; bottom: 20px; width: calc(100% - 40px); max-width: 460px;
	background: var(--ew-white); border-radius: 12px; padding: 22px 22px 18px;
	box-shadow: 0 8px 40px rgba(20, 15, 34, .28); border-top: 4px solid var(--ew-mustard);
}
.ew-cc__title { font-weight: 800; font-size: 18px; color: var(--ew-purple); margin-bottom: 6px; }
.ew-cc .ew-cc__title--lg { font-family: var(--ew-font-jakarta); font-size: 24px; font-weight: 800; line-height: 1.2; text-transform: none; letter-spacing: 0; margin: 0 0 8px; padding-right: 40px; }
.ew-cc__text { margin-bottom: 14px; }
.ew-cc__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ew-cc__actions--end { justify-content: flex-end; margin-top: 18px; }

/* Accept and Reject look the same on purpose: refusing is as easy as accepting. */
.ew-cc__btn {
	font: inherit; font-weight: 700; cursor: pointer; border-radius: 6px; padding: 11px 18px; min-height: 44px; border: 2px solid var(--ew-purple);
}
.ew-cc__btn--primary { background: var(--ew-purple); color: var(--ew-white); }
.ew-cc__btn--primary:hover { background: var(--ew-white); color: var(--ew-purple); }
.ew-cc__btn--link { background: transparent; color: var(--ew-purple); border-color: transparent; text-decoration: underline; padding-left: 6px; padding-right: 6px; }
.ew-cc__btn:focus-visible, .ew-cc__close:focus-visible, .ew-cc__switch input:focus-visible + .ew-cc__slider { outline: 3px solid var(--ew-mustard); outline-offset: 2px; }

.ew-cc__overlay {
	position: fixed; z-index: 99995; inset: 0; background: rgba(20, 15, 34, .6); display: flex; align-items: center; justify-content: center; padding: 16px;
}
.ew-cc__dialog {
	position: relative; background: var(--ew-white); border-radius: 12px; padding: 28px; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto;
	border-top: 4px solid var(--ew-mustard);
}
.ew-cc__close { position: absolute; top: 6px; right: 8px; background: none; border: 0; font-family: var(--ew-font-jakarta); font-weight: 400; font-size: 32px; line-height: 1; cursor: pointer; color: var(--ew-purple); min-width: 44px; min-height: 44px; }
.ew-cc__row { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-top: 1px solid #e3e3e3; }
.ew-cc__row-title { font-weight: 800; color: var(--ew-purple); margin-bottom: 2px; }
.ew-cc__always { font-weight: 700; color: var(--ew-green); white-space: nowrap; padding-top: 2px; }

.ew-cc__switch { position: relative; flex: 0 0 auto; width: 52px; height: 30px; display: block; margin-top: 2px; }
.ew-cc__switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.ew-cc__slider { position: absolute; inset: 0; background: #b9b9c6; border-radius: 30px; transition: background .2s; }
.ew-cc__slider::before { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; background: #fff; border-radius: 50%; transition: transform .2s; }
.ew-cc__switch input:checked + .ew-cc__slider { background: var(--ew-green); }
.ew-cc__switch input:checked + .ew-cc__slider::before { transform: translateX(22px); }

/* Placeholder over a blocked embed. */
.ew-cc-embed {
	position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center;
	background: #1d1733; color: #fff; font-family: var(--ew-font-jakarta); font-size: 15px; line-height: 1.5;
}
.ew-cc-embed__box { max-width: 440px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.ew-cc-embed p { margin: 0; }
.ew-cc-embed .ew-cc__btn--primary { background: var(--ew-mustard); border-color: var(--ew-mustard); color: var(--ew-purple); }
.ew-cc-embed .ew-cc__btn--primary:hover { background: #fff; border-color: #fff; }
.ew-map__embed .ew-cc-embed, .ew-video__wrap .ew-cc-embed { border-radius: inherit; }
.ew-map__embed .ew-w__c { position: relative; }
.ew-hs__bgvideo .ew-cc-embed { display: none; } /* the brand background video simply stays as its still picture */

@media (max-width: 600px) {
	.ew-cc__banner { left: 0; right: 0; bottom: 0; width: 100%; max-width: none; border-radius: 12px 12px 0 0; padding: 18px 16px 16px; }
	.ew-cc__actions .ew-cc__btn--primary { flex: 1 1 calc(50% - 5px); }
	.ew-cc__dialog { padding: 22px 18px; }
	.ew-cc__row { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ew-cc__slider, .ew-cc__slider::before { transition: none; } }

.ew-cc-embed--static { position: relative; inset: auto; min-height: 220px; border-radius: 12px; }
.ew-video__wrap { position: relative; }
.ew-video__overlay .ew-cc-embed { cursor: default; }
