/*
 * Kake Click & Collect — checkout.
 * The box copies the Elementor checkout boxes (Your order, Coupon, Payment):
 * white, 1px near-black border, 30px padding, 24px gap, navy uppercase heading.
 * Inner controls copy the checkout inputs (cream fill, brown border, square corners).
 * Re-brand by overriding these variables on .kt-cc.
 */
.kt-cc {
	--kt-cc-box-bg: #ffffff;
	--kt-cc-box-border: #141318;
	--kt-cc-box-pad: 30px;
	--kt-cc-gap: 24px;
	--kt-cc-accent: #e7bc20;        /* selected day / checkbox fill */
	--kt-cc-accent-ink: #141318;    /* text on accent */
	--kt-cc-ink: #003462;           /* headings, selected outline */
	--kt-cc-border: #8b6f4b;        /* matches checkout inputs */
	--kt-cc-soft: #f9f5f1;          /* matches checkout input background */
	--kt-cc-muted: rgba(20, 19, 24, .62);
	--kt-cc-radius: 0px;
	margin: 0 0 var(--kt-cc-gap);
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}
.kt-cc *, .kt-cc *::before, .kt-cc *::after { box-sizing: border-box; }

.kt-cc__card {
	border: 1px solid var(--kt-cc-box-border);
	background: var(--kt-cc-box-bg);
	border-radius: var(--kt-cc-radius);
	padding: var(--kt-cc-box-pad);
}
/* Same look as "Billing details" / "Your order"; the theme's own h3 rules win where they apply. */
#kt-cc .kt-cc__heading,
.kt-cc .kt-cc__heading {
	margin: 0 0 24px;
	padding: 0;
	color: var(--kt-cc-ink);
	font-family: Jost, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
}
.kt-cc__label { font-family: Jost, sans-serif; color: #141318; }

/* Checkbox toggle */
.kt-cc__toggle {
	display: flex !important;
	align-items: center;
	gap: .7em;
	margin: 0 !important;
	cursor: pointer;
	font-family: Jost, sans-serif;
	font-weight: 700;
	color: #141318;
	font-size: 16px;
	line-height: 1.3;
}
.kt-cc__toggle input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.kt-cc__toggle-box {
	flex: none;
	width: 22px;
	height: 22px;
	border: 1px solid var(--kt-cc-border);
	background: var(--kt-cc-soft);
	border-radius: var(--kt-cc-radius);
	display: grid;
	place-items: center;
	transition: background .15s, border-color .15s;
}
.kt-cc__toggle-box::after {
	content: "";
	width: .38em;
	height: .7em;
	border: solid var(--kt-cc-accent-ink);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) translate(-1px, -1px);
	opacity: 0;
}
.kt-cc__toggle input:checked + .kt-cc__toggle-box { background: var(--kt-cc-accent); border-color: var(--kt-cc-accent); }
.kt-cc__toggle input:checked + .kt-cc__toggle-box::after { opacity: 1; }
.kt-cc__toggle input:focus-visible + .kt-cc__toggle-box { outline: 2px solid var(--kt-cc-ink); outline-offset: 2px; }
.kt-cc__toggle-text { flex: 1; }

.kt-cc__badge {
	flex: none;
	font-size: .78rem;
	font-weight: 600;
	padding: .2em .6em;
	background: #fff;
	border: 1px solid var(--kt-cc-border);
	border-radius: var(--kt-cc-radius);
	color: var(--kt-cc-ink);
	white-space: nowrap;
}

.kt-cc__intro { margin: .5em 0 0 calc(22px + .7em); }
.kt-cc--info .kt-cc__intro, .kt-cc--only .kt-cc__intro { margin-left: 0; }
.kt-cc__intro p { margin: 0 0 .2em; }
.kt-cc__sub { font-weight: 600; }
.kt-cc__notice { color: var(--kt-cc-muted); font-size: .93em; }

/* Info list (shortcode / before ticking) */
.kt-cc__infolist { list-style: none; margin: .9em 0 0; padding: 0; display: grid; gap: .5em; }
.kt-cc__infolist li { display: flex; flex-direction: column; line-height: 1.35; margin: 0; }
.kt-cc__infolist span { color: var(--kt-cc-muted); font-size: .93em; }
.kt-cc__preview { margin-left: calc(22px + .7em); }
.kt-cc.is-collect .kt-cc__preview { display: none; }

/* Options (revealed when ticked) */
.kt-cc__options { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(20, 19, 24, .15); }
.kt-cc.is-delivery .kt-cc__options { display: none; }
.kt-cc__field { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.kt-cc__field:last-child { margin-bottom: 0; }
.kt-cc .kt-cc__label { display: block; font-size: 16px; font-weight: 700; margin: 0 0 .6em; padding: 0; float: none; width: auto; }
.kt-cc__label .required { color: #b3261e; text-decoration: none; border: 0; }

.kt-cc__sr { position: absolute !important; opacity: 0; width: 1px; height: 1px; margin: 0; }

/* Location cards */
.kt-cc__locs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: .6em; }
.kt-cc__loc {
	position: relative;
	display: flex !important;
	align-items: flex-start;
	justify-content: space-between;
	gap: .6em;
	margin: 0 !important;
	padding: .8em .9em;
	background: var(--kt-cc-soft);
	border: 1px solid var(--kt-cc-border);
	border-radius: var(--kt-cc-radius);
	cursor: pointer;
	line-height: 1.35;
	transition: box-shadow .15s, border-color .15s;
}
.kt-cc__loc:hover { border-color: var(--kt-cc-ink); }
.kt-cc__loc.is-selected { background: #fff; border-color: var(--kt-cc-ink); box-shadow: inset 0 0 0 1px var(--kt-cc-ink), inset 4px 0 0 var(--kt-cc-accent); }
.kt-cc__loc:has(.kt-cc__sr:focus-visible) { outline: 2px solid var(--kt-cc-ink); outline-offset: 2px; }
.kt-cc__loc-main { display: flex; flex-direction: column; min-width: 0; }
.kt-cc__loc-name { color: var(--kt-cc-ink); }
.kt-cc__loc-when, .kt-cc__loc-addr { font-size: .88em; color: var(--kt-cc-muted); }

/* Date field (looks like a checkout input; opens the calendar) */
.kt-cc__datepicker { position: relative; width: 100%; max-width: 100%; min-width: 0; }
#kt-cc .kt-cc__date-input,
#kt-cc .kt-cc__date-input:hover,
#kt-cc .kt-cc__date-input:focus,
#kt-cc .kt-cc__date-input:active {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75em;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: .65em 1em;
	background: var(--kt-cc-soft);
	color: #141318;
	border: 1px solid var(--kt-cc-border);
	border-radius: var(--kt-cc-radius);
	box-shadow: none;
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	text-decoration: none;
	white-space: normal;
	height: auto;
	max-width: 100%;
	overflow: hidden;
	cursor: pointer;
}
#kt-cc .kt-cc__date-input:focus-visible { outline: 2px solid var(--kt-cc-ink); outline-offset: 1px; }
#kt-cc .kt-cc__datepicker.is-open .kt-cc__date-input { outline: 1px solid var(--kt-cc-ink); outline-offset: -1px; }
#kt-cc .kt-cc__date-input:disabled { cursor: not-allowed; opacity: .7; }
.kt-cc__date-text {
	flex: 1 1 auto;
	min-width: 0;
	white-space: normal;
	overflow-wrap: anywhere;
	padding: .15em 0;
}
.kt-cc__date-window { white-space: nowrap; }
.kt-cc__date-short { display: none; }
.kt-cc__date-text.is-placeholder { color: rgba(20, 19, 24, .55); }
.kt-cc__date-input.has-value .kt-cc__date-text { color: var(--kt-cc-ink); font-weight: 600; }
.kt-cc__date-icon { flex: none; color: var(--kt-cc-border); }

/* Calendar (dropdown) */
.kt-cc__cal[hidden] { display: none !important; }
.kt-cc__datepicker .kt-cc__cal {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 60;
	width: 340px;
	max-width: 100%;
	min-width: 0;
	box-shadow: 0 10px 28px rgba(20, 19, 24, .14);
}
.kt-cc__cal { background: #fff; border: 1px solid var(--kt-cc-border); border-radius: var(--kt-cc-radius); padding: .75em; }
.kt-cc__cal-empty { margin: 0; color: var(--kt-cc-muted); font-size: .93em; }
.kt-cc__cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5em; }
.kt-cc__cal-title { font-weight: 600; color: var(--kt-cc-ink); }
#kt-cc .kt-cc__cal-nav,
#kt-cc .kt-cc__cal-nav:hover,
#kt-cc .kt-cc__cal-nav:focus,
.kt-cc .kt-cc__cal-nav {
	width: 2.2em;
	height: 2.2em;
	padding: 0;
	margin: 0;
	border: 1px solid var(--kt-cc-border);
	background: #fff;
	color: var(--kt-cc-ink);
	border-radius: var(--kt-cc-radius);
	font-size: 1.1em;
	line-height: 1;
	cursor: pointer;
	min-height: 0;
	box-shadow: none;
}
.kt-cc .kt-cc__cal-nav:disabled { opacity: .3; cursor: default; }
.kt-cc__cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.kt-cc__cal-dow { font-size: .75em; font-weight: 600; color: var(--kt-cc-muted); padding: .3em 0; text-transform: uppercase; letter-spacing: .03em; }
.kt-cc__cal-day {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	font-size: .92em;
	border-radius: var(--kt-cc-radius);
}
.kt-cc__cal-day.is-unavailable { color: rgba(20, 19, 24, .28); }
#kt-cc .kt-cc__cal-day.is-available,
#kt-cc .kt-cc__cal-day.is-available:focus,
.kt-cc .kt-cc__cal-day.is-available {
	width: 100%;
	padding: 0;
	margin: 0;
	min-height: 0;
	border: 1px solid var(--kt-cc-border);
	background: var(--kt-cc-soft);
	color: var(--kt-cc-ink);
	font-weight: 600;
	cursor: pointer;
	box-shadow: none;
	line-height: 1;
}
#kt-cc .kt-cc__cal-day.is-available:hover,
.kt-cc .kt-cc__cal-day.is-available:hover { background: #fff; border-color: var(--kt-cc-ink); }
#kt-cc .kt-cc__cal-day.is-selected,
#kt-cc .kt-cc__cal-day.is-selected:hover,
#kt-cc .kt-cc__cal-day.is-selected:focus,
.kt-cc .kt-cc__cal-day.is-selected { background: var(--kt-cc-accent); border-color: var(--kt-cc-accent); color: var(--kt-cc-accent-ink); }
.kt-cc .kt-cc__cal-day:focus-visible, .kt-cc .kt-cc__cal-nav:focus-visible { outline: 2px solid var(--kt-cc-ink); outline-offset: 1px; }

@media (max-width: 600px) {
	/* Short date on small screens: "Wed 7 Oct · 6pm–10pm" (wraps before the time if still too long). */
	.kt-cc__date-long { display: none; }
	.kt-cc__date-short { display: inline; }
	.kt-cc__datepicker .kt-cc__cal { width: 100%; }
}
@media (max-width: 480px) {
	.kt-cc { --kt-cc-box-pad: 20px; }
	#kt-cc .kt-cc__heading,
.kt-cc .kt-cc__heading { font-size: 20px; margin-bottom: 18px; }
	.kt-cc__intro, .kt-cc__preview { margin-left: 0; }
}

/* Order view (thank-you / my account) */
.kt-cc-order { margin-bottom: 2em; }
.kt-cc-order__table th { width: 35%; }
