/* TEACH Cart */

.teach-cart {
	--tc-accent: #f5861f;
	--tc-accent-dark: #e07310;
	--tc-band: #ef8b3f;
	--tc-text: #1a1a1a;
	--tc-muted: #6b6b6b;
	--tc-border: #ececec;
	--tc-sidebar-bg: #f9f7f9;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	font-size: 15px;
	color: var(--tc-text);
	padding-top: 80px;
	padding-bottom: 80px;
}

/* Buttons and inputs don't inherit font by default. */
.teach-cart button,
.teach-cart input,
.teach-cart a {
	font-family: inherit;
}

.tc-layout {
	display: flex;
	align-items: flex-start;
	gap: 28px;
}

/* 3/4 items + donation, 1/4 cost breakdown. */
.tc-main {
	flex: 3 1 0;
	min-width: 0;
}

.tc-sidebar {
	flex: 1 1 0;
	min-width: 0;
}

/* ---------- items table ---------- */

.tc-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0 0 24px;
}

.tc-table thead th {
	background: var(--tc-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	padding: 12px 14px;
	border: 0;
}

.tc-table thead th:first-child {
	border-radius: 8px 0 0 8px;
}

.tc-table thead th:last-child {
	border-radius: 0 8px 8px 0;
}

.tc-table tbody td {
	padding: 14px;
	border-bottom: 1px solid var(--tc-border);
	background: #fff;
	vertical-align: middle;
}

.tc-col-remove {
	width: 36px;
}

.tc-remove {
	display: inline-block;
	color: var(--tc-muted);
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	padding: 2px 6px;
}

.tc-remove:hover {
	color: #b32d2e;
}

.tc-qty {
	width: 64px;
	padding: 6px 8px;
	border: 1px solid var(--tc-border);
	border-radius: 6px;
	font-size: 14px;
}

.tc-empty {
	background: #f5f5f5;
	border-radius: 8px;
	padding: 16px 20px;
	color: var(--tc-muted);
	margin: 0 0 24px;
}

/* ---------- totals sidebar ---------- */

.tc-totals {
	background: var(--tc-sidebar-bg);
	border-radius: 8px;
	padding: 20px;
}

.tc-totals-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	color: var(--tc-muted);
	margin: 0 0 10px;
}

.tc-totals-divider {
	border-top: 1px solid var(--tc-text);
	margin: 14px 0;
}

.tc-totals-total {
	font-size: 16px;
	font-weight: 700;
	color: var(--tc-text);
}

.tc-checkout-btn {
	display: block;
	background: var(--tc-accent);
	color: #fff;
	border-radius: 6px;
	padding: 10px 16px;
	margin-top: 16px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: background 0.15s ease;
}

.tc-checkout-btn:hover,
.tc-checkout-btn:focus {
	background: var(--tc-accent-dark);
	color: #fff;
}

/* ---------- donation band ---------- */

.tc-donation {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px 28px;
	background: var(--tc-band);
	border-radius: 10px;
	padding: 34px 32px;
	margin: 8px 0 24px;
}

.tc-donation-heading {
	color: #fff;
	font-size: 24px;
	font-weight: 600;
	margin: 0;
}

.tc-donation-options {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 16px;
}

.tc-donation-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 84px;
	min-height: 72px;
	padding: 10px 14px;
	background: transparent;
	border: 1px solid #fff;
	border-radius: 10px;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.tc-donation-option:hover,
.tc-donation-option:focus {
	background: #fff;
	color: var(--tc-accent-dark);
}

/* Preset dollar-amount buttons are square. */
.tc-donation-option[data-amount] {
	width: 100px;
	height: 100px;
	min-width: 0;
	min-height: 0;
	padding: 10px;
}

.tc-donation-custom {
	box-sizing: border-box;
	min-height: 100px;
}

.tc-donation-option.tc-busy {
	opacity: 0.6;
	pointer-events: none;
}

.tc-donation-custom {
	cursor: default;
	font-weight: 600;
	font-size: 13px;
}

.tc-donation-custom:hover,
.tc-donation-custom:focus {
	background: transparent;
	color: #fff;
}

.tc-donation-custom-field {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
}

/* High-specificity + !important so theme input styling can't repaint it. */
.teach-cart .tc-donation .tc-donation-custom-input {
	width: 64px;
	background: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid #fff !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 14px;
	padding: 2px 4px;
	outline: none;
	-moz-appearance: textfield;
	appearance: textfield;
}

.tc-donation-custom-input::-webkit-outer-spin-button,
.tc-donation-custom-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.tc-donation-custom-go {
	background: #fff;
	border: 0;
	border-radius: 6px;
	color: var(--tc-accent-dark);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	cursor: pointer;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
	.tc-layout {
		flex-direction: column;
	}

	.tc-sidebar {
		flex-basis: auto;
		width: 100%;
	}

	.tc-donation {
		justify-content: center;
		text-align: center;
	}
}

@media (max-width: 640px) {
	.tc-table thead {
		display: none;
	}

	.tc-table,
	.tc-table tbody,
	.tc-table tr,
	.tc-table td {
		display: block;
		width: 100%;
	}

	.tc-table tr {
		border: 1px solid var(--tc-border);
		border-radius: 8px;
		margin: 0 0 12px;
		overflow: hidden;
	}

	.tc-table tbody td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		border-bottom: 0;
		padding: 10px 14px;
	}

	.tc-table tbody td[data-label]::before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--tc-muted);
		font-size: 13px;
	}

	.tc-col-remove {
		width: auto;
		justify-content: flex-end;
	}
}
