/*
 * Paw Visit Date & Time picker. Scoped to .cdc-pv-dt; uses the site's own
 * palette (the checkout's --cdc-* ramp): brand green, deep evergreen, CTA
 * yellow. Gravity's theme CSS is off on this site (gform_disable_form_theme_css),
 * but forms built on the newer Orbital framework still load its reset
 * (.gform-theme--framework :where(...), specificity 0,1,0) after this file — so
 * every rule here is scoped two classes deep (.cdc-pv-dt .cdc-pv-dt__x).
 */

.cdc-pv-dt {
	--pv-green: var(--bs-primary, #018c6e);
	--pv-green-ink: #016d56;
	--pv-green-soft: #e6f3ef;
	--pv-dark: #0e3229;
	--pv-ink: #1d2a27;
	--pv-ink-soft: #55655f;
	--pv-line: #dbe3df;
	--pv-paper: #f6f9f7;
	--pv-radius: 14px;
	--pv-focus: 0 0 0 3px #fff, 0 0 0 5px var(--pv-green);

	color: var(--pv-ink);
	font-family: inherit;
}

.cdc-pv-dt .cdc-pv-dt__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 16px;
}

.cdc-pv-dt .cdc-pv-dt__cal,
.cdc-pv-dt .cdc-pv-dt__times {
	padding: 16px;
	border: 1px solid var(--pv-line);
	border-radius: var(--pv-radius);
	background: #fff;
	min-width: 0;
}

.cdc-pv-dt .cdc-pv-dt__step {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	font-weight: 600;
	font-size: 15px;
}

.cdc-pv-dt .cdc-pv-dt__num {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--pv-dark);
	color: #ffc40c;
	font-size: 12px;
	font-weight: 700;
}

.cdc-pv-dt .cdc-pv-dt__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.cdc-pv-dt .cdc-pv-dt__month {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
}

.cdc-pv-dt button {
	font: inherit;
	cursor: pointer;
	touch-action: manipulation;
}

.cdc-pv-dt button:focus-visible {
	outline: none;
	box-shadow: var(--pv-focus);
}

.cdc-pv-dt .cdc-pv-dt__nav {
	width: 44px;
	height: 44px;
	border: 1px solid var(--pv-line);
	border-radius: 12px;
	background: #fff;
	color: var(--pv-ink);
	font-size: 22px;
	line-height: 1;
}

.cdc-pv-dt .cdc-pv-dt__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.cdc-pv-dt .cdc-pv-dt__days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}

.cdc-pv-dt .cdc-pv-dt__wd {
	padding: 4px 0;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--pv-ink-soft);
}

.cdc-pv-dt .cdc-pv-dt__day {
	aspect-ratio: 1;
	min-height: 40px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: var(--pv-green-soft);
	color: var(--pv-green-ink);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	transition: background-color 120ms ease, color 120ms ease;
}

.cdc-pv-dt .cdc-pv-dt__day:hover:not(:disabled) {
	border-color: var(--pv-green);
}

.cdc-pv-dt .cdc-pv-dt__day:disabled {
	background: transparent;
	color: #a7b3ae;
	font-weight: 400;
	cursor: default;
}

.cdc-pv-dt .cdc-pv-dt__day.is-loading {
	background: var(--pv-paper);
	color: #a7b3ae;
}

.cdc-pv-dt .cdc-pv-dt__day.is-selected {
	background: var(--pv-green);
	color: #fff;
}

.cdc-pv-dt .cdc-pv-dt__span {
	grid-column: 1 / -1;
}

.cdc-pv-dt .cdc-pv-dt__dayname {
	margin: 0 0 10px;
	font-weight: 600;
}

.cdc-pv-dt .cdc-pv-dt__group + .cdc-pv-dt__group {
	margin-top: 12px;
}

.cdc-pv-dt .cdc-pv-dt__glabel {
	margin: 0 0 6px;
	font-size: 13px;
	color: var(--pv-ink-soft);
}

.cdc-pv-dt .cdc-pv-dt__glist {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 8px;
}

.cdc-pv-dt .cdc-pv-dt__slot {
	min-height: 48px;
	padding: 0 10px;
	border: 1px solid var(--pv-line);
	border-radius: 12px;
	background: #fff;
	color: var(--pv-ink);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	transition: border-color 120ms ease, background-color 120ms ease;
}

.cdc-pv-dt .cdc-pv-dt__slot:hover {
	border-color: var(--pv-green);
}

.cdc-pv-dt .cdc-pv-dt__slot.is-selected {
	border-color: var(--pv-green);
	background: var(--pv-green);
	color: #fff;
}

.cdc-pv-dt .cdc-pv-dt__msg {
	margin: 4px 0;
	font-size: 14px;
	color: var(--pv-ink-soft);
}

.cdc-pv-dt .cdc-pv-dt__msg.is-error {
	color: #b3261e;
}

.cdc-pv-dt .cdc-pv-dt__link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--pv-green-ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	min-height: 44px;
}

.cdc-pv-dt .cdc-pv-dt__spin {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	vertical-align: -2px;
	border: 2px solid var(--pv-green-soft);
	border-top-color: var(--pv-green);
	border-radius: 50%;
	animation: cdc-pv-spin 0.8s linear infinite;
}

@keyframes cdc-pv-spin {
	to {
		transform: rotate(360deg);
	}
}

.cdc-pv-dt .cdc-pv-dt__summary:empty {
	display: none;
}

.cdc-pv-dt .cdc-pv-dt__summary {
	margin-top: 12px;
}

.cdc-pv-dt .cdc-pv-dt__summary.is-set {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-radius: var(--pv-radius);
	background: var(--pv-dark);
	color: #e6f0ec;
}

.cdc-pv-dt .cdc-pv-dt__summary.is-set .cdc-pv-dt__link {
	margin-left: auto;
	color: #ffc40c;
}

.cdc-pv-dt .cdc-pv-dt__check {
	display: grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #ffc40c;
	color: var(--pv-dark);
	font-weight: 700;
}

.cdc-pv-dt .cdc-pv-dt__sumtext {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cdc-pv-dt .cdc-pv-dt__sumlabel {
	font-size: 12px;
	color: #a8c4ba;
}

.cdc-pv-dt .cdc-pv-dt__tz {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--pv-ink-soft);
}

.cdc-pv-dt-preview {
	padding: 12px;
	border: 1px dashed #c3cfca;
	border-radius: 8px;
	color: #55655f;
}

@media (max-width: 640px) {
	.cdc-pv-dt .cdc-pv-dt__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.cdc-pv-dt .cdc-pv-dt__cal,
	.cdc-pv-dt .cdc-pv-dt__times {
		padding: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cdc-pv-dt *,
	.cdc-pv-dt *::before {
		animation: none !important;
		transition: none !important;
	}
}
