/**
 * Site-specific presentation layer.
 *
 * Prefer Blocksy variables so changes made in the Customizer continue to
 * cascade into the child theme. Add new overrides here instead of editing the
 * parent theme or the business plugin.
 */

@font-face {
	font-family: "Be Vietnam Pro";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/be-vietnam-pro/400-vi.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
	font-family: "Be Vietnam Pro";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/be-vietnam-pro/400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Be Vietnam Pro";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/be-vietnam-pro/500-vi.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
	font-family: "Be Vietnam Pro";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/be-vietnam-pro/500-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Be Vietnam Pro";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/be-vietnam-pro/600-vi.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
	font-family: "Be Vietnam Pro";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/be-vietnam-pro/600-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Be Vietnam Pro";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/be-vietnam-pro/700-vi.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
	font-family: "Be Vietnam Pro";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/be-vietnam-pro/700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Be Vietnam Pro";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/be-vietnam-pro/800-vi.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
	font-family: "Be Vietnam Pro";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/be-vietnam-pro/800-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--psm-font-sans: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--cupdien-focus-ring: 0 0 0 3px rgb(40 114 250 / 28%);
	--cupdien-surface: #f8fafc;
	--cupdien-border: #e2e8f0;
	--cupdien-text-muted: #475569;
	--cupdien-text: #334155;
	--cupdien-white: #ffffff;
}

html,
body,
button,
input,
select,
textarea {
	font-family: var(--psm-font-sans);
}

:where(.psm-time, .psm-countdown, .psm-price, [class*="__time"], [class*="__count"], [class*="__price"]) {
	font-variant-numeric: tabular-nums;
}

/* Accessibility */

:where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--theme-palette-color-1, #2872fa);
	outline-offset: 3px;
	box-shadow: var(--cupdien-focus-ring);
}

.power-schedule-manager :where(img, svg) {
	max-width: 100%;
	height: auto;
}

/* Footer */

.cdld-footer {
	width: 100%;
	text-align: center;
}

.cdld-footer__copyright {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}

.cdld-footer__copyright strong {
	font-weight: 700;
}

.cdld-footer__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 12px;
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.7;
}

.cdld-footer__nav a {
	color: inherit;
	text-decoration: none;
	text-underline-offset: 3px;
	transition:
		color 0.2s ease,
		text-decoration-color 0.2s ease;
}

.cdld-footer__nav a:hover {
	color: var(--theme-palette-color-1, #2872fa);
	text-decoration: underline;
}

.cdld-footer__nav span[aria-hidden="true"] {
	opacity: 0.65;
}

.cdld-footer__disclaimer {
	max-width: 960px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.75;
	color: var(--theme-text-color, var(--cupdien-text-muted));
	opacity: 0.88;
}

/* Community notice */

.cdld-topbar {
	width: 100%;
	margin: 0;
	background: var(--cupdien-surface);
	border-bottom: 1px solid var(--cupdien-border);
	font-size: 15px;
	line-height: 1.6;
}

.cdld-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: min(
		calc(100% - 32px),
		var(--theme-normal-container-max-width, 1290px)
	);
	min-height: 56px;
	margin-inline: auto;
	padding-block: 8px;
}

.cdld-topbar__message {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: var(--cupdien-text-muted);
}

.cdld-topbar__message > span:last-child {
	min-width: 0;
}

.cdld-topbar__icon {
	flex: 0 0 auto;
	font-size: 17px;
	line-height: 1;
}

.cdld-topbar__actions {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 10px;
}

.cdld-topbar__actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid #dbe3ec;
	border-radius: 999px;
	background: var(--cupdien-white);
	color: var(--cupdien-text);
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.cdld-topbar__actions a:hover {
	background: var(--theme-palette-color-1, #2872fa);
	border-color: var(--theme-palette-color-1, #2872fa);
	color: var(--cupdien-white);
	transform: translateY(-1px);
}

.cdld-topbar__actions a:active {
	transform: translateY(0);
}

#header [data-row="middle"] {
	--height: 96px !important;
}

/* Tablet */

@media (max-width: 900px) {
	.cdld-topbar__inner {
		flex-direction: column;
		justify-content: center;
		gap: 10px;
		padding-block: 12px;
		text-align: center;
	}

	.cdld-topbar__message {
		justify-content: center;
	}

	.cdld-topbar__actions {
		justify-content: center;
		flex-wrap: wrap;
	}

	.cdld-footer__disclaimer {
		max-width: 760px;
	}
}

/* Mobile */

@media (max-width: 600px) {
	.cdld-topbar {
		font-size: 14px;
	}

	.cdld-topbar__inner {
		width: calc(100% - 24px);
		gap: 7px;
		padding-block: 9px;
	}

	.cdld-topbar__message {
		align-items: flex-start;
		text-align: left;
	}

	.cdld-topbar__icon {
		margin-top: 3px;
	}

	.cdld-topbar__actions {
		display: block;
		width: 100%;
	}

	.cdld-topbar__actions a:first-child {
		display: none;
	}

	.cdld-topbar__actions a {
		width: 100%;
		min-height: 38px;
		padding-inline: 10px;
		font-size: 13px;
		white-space: normal;
	}

	#header [data-row="middle"] {
		--height: 72px !important;
	}

	.cdld-footer__copyright {
		font-size: 15px;
	}

	.cdld-footer__nav {
		gap: 5px 9px;
		font-size: 14px;
	}

	.cdld-footer__disclaimer {
		font-size: 14px;
		line-height: 1.7;
	}
}

/* Very small screens */

@media (max-width: 390px) {
	.cdld-topbar__actions {
		grid-template-columns: 1fr;
	}

	.cdld-footer__nav span[aria-hidden="true"] {
		display: none;
	}

	.cdld-footer__nav {
		flex-direction: column;
		gap: 4px;
	}
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.cdld-topbar__actions a:hover {
		transform: none;
	}
}
