/* TFM Scheduled Pickup - checkout picker. Self-contained: no dependency on theme markup. */
.tfsp {
	--tfsp-accent: #0071e3;
	--tfsp-accent-soft: rgba(0, 113, 227, 0.1);
	--tfsp-text: #1d1d1f;
	--tfsp-muted: #6e6e73;
	--tfsp-line: rgba(0, 0, 0, 0.1);
	--tfsp-radius: 14px;
	box-sizing: border-box;
	margin: 24px 0;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--tfsp-line);
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
	color: var(--tfsp-text);
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}
.tfsp[hidden], .tfsp [hidden] { display: none !important; }
.tfsp *, .tfsp *::before, .tfsp *::after { box-sizing: border-box; }

.tfsp__title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 16px; }
.tfsp__section + .tfsp__section { margin-top: 20px; }
.tfsp__label { font-size: 13px; font-weight: 600; color: var(--tfsp-muted); text-transform: none; margin-bottom: 8px; }
.tfsp__label .required { color: #d70015; text-decoration: none; border: 0; }

.tfsp__cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tfsp__month { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.tfsp button { font-family: inherit; }
.tfsp__nav {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; padding: 0; margin: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--tfsp-accent);
	cursor: pointer; transition: background 0.15s ease;
}
.tfsp__nav:hover:not(:disabled) { background: var(--tfsp-accent-soft); }
.tfsp__nav:disabled { color: #c7c7cc; cursor: default; }

.tfsp__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; justify-items: center; }
.tfsp__dow { font-size: 12px; font-weight: 600; color: var(--tfsp-muted); padding: 6px 0; text-transform: uppercase; letter-spacing: 0.02em; }
.tfsp__blank { width: 100%; }

.tfsp__day {
	position: relative;
	width: 40px; height: 40px; max-width: 100%;
	padding: 0; margin: 0;
	border: 0; border-radius: 50%;
	background: transparent; color: #c7c7cc;
	font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums;
	cursor: default;
	transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.tfsp__day.is-available { color: var(--tfsp-accent); background: var(--tfsp-accent-soft); cursor: pointer; font-weight: 600; }
.tfsp__day.is-available:hover { background: rgba(0, 113, 227, 0.2); }
.tfsp__day.is-available:active { transform: scale(0.94); }
.tfsp__day.is-selected { background: var(--tfsp-accent); color: #fff; }
.tfsp__day.is-today:not(.is-selected)::after {
	content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px;
	border-radius: 50%; background: currentColor;
}

.tfsp__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.tfsp__slot {
	padding: 10px 8px; margin: 0;
	border: 1px solid var(--tfsp-line); border-radius: 12px;
	background: #fff; color: var(--tfsp-text);
	font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums;
	cursor: pointer; min-height: 44px;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.tfsp__slot:hover:not(:disabled) { border-color: var(--tfsp-accent); }
.tfsp__slot.is-selected { background: var(--tfsp-accent); border-color: var(--tfsp-accent); color: #fff; }
.tfsp__slot:disabled { color: #c7c7cc; background: #f5f5f7; text-decoration: line-through; cursor: not-allowed; }

.tfsp button:focus-visible { outline: 3px solid rgba(0, 113, 227, 0.55); outline-offset: 2px; }

.tfsp__summary { margin: 16px 0 0; font-weight: 600; color: var(--tfsp-text); }
.tfsp__summary:empty { display: none; }
.tfsp__empty { margin: 8px 0 0; color: var(--tfsp-muted); grid-column: 1 / -1; }
.tfsp__error { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff1f0; color: #b3261e; }

/* Loading indicator */
.tfsp.is-loading::before {
	content: ""; position: absolute; top: 18px; right: 18px; width: 18px; height: 18px;
	border: 2px solid var(--tfsp-accent-soft); border-top-color: var(--tfsp-accent); border-radius: 50%;
	animation: tfsp-spin 0.7s linear infinite;
}
.tfsp { position: relative; }
@keyframes tfsp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.tfsp.is-loading::before { animation-duration: 2s; }
	.tfsp * { transition: none !important; }
}

@media (max-width: 480px) {
	.tfsp { padding: 16px; border-radius: 16px; }
	.tfsp__slots { grid-template-columns: repeat(3, 1fr); }
	.tfsp__day { width: 100%; max-width: 44px; height: 44px; }
}

/* Accessibility (0.4.0): screen-reader-only status line, high-contrast mode, clearer full slots. */
.tfsp__sr {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (forced-colors: active) {
	.tfsp__day.is-available, .tfsp__slot { border: 1px solid ButtonText; }
	.tfsp__day.is-selected, .tfsp__slot.is-selected { background: Highlight; color: HighlightText; border-color: Highlight; forced-color-adjust: none; }
	.tfsp__day:disabled, .tfsp__slot:disabled, .tfsp__nav:disabled { color: GrayText; border-color: GrayText; }
	.tfsp button:focus-visible { outline: 3px solid Highlight; }
}
@media (prefers-contrast: more) {
	.tfsp__day:disabled, .tfsp__slot:disabled { color: #636366; }
	.tfsp__slot, .tfsp__day.is-available { border-color: #1d1d1f; }
}
