/* CS Training Table — colours in one place; override in theme/Elementor CSS if needed. */
.cs-table-wrap {
	--cs-accent: #000098;
	--cs-accent-hover: #0000cc;
	--cs-text: #111;
	--cs-muted: #555;
	--cs-border: #eee;
	--cs-soft: #f5f6fa;
	width: 100%;
}

/* HEADER */
.cs-table-header {
	display: grid;
	grid-template-columns: 60px 1fr 160px 250px;
	gap: 10px;
	padding: 14px 16px;
	background: var(--cs-soft);
	border-radius: 12px;
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: #000;
}

/* ROW */
.cs-table-row {
	display: grid;
	grid-template-columns: 60px 1fr 160px 250px;
	gap: 10px;
	align-items: center;
	padding: 14px 16px;
	border: 1px solid var(--cs-border);
	border-radius: 12px;
	background: #fff;
	margin-bottom: 10px;
	transition: box-shadow .2s;
}
.cs-table-row:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.cs-table-row.is-open { box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }

.cs-col-no,
.cs-col-title,
.cs-col-fee { font-weight: 600; color: var(--cs-text); }

/* TITLE + DROPDOWN TOGGLE */
.cs-title-toggle {
	all: unset;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	cursor: pointer;
	text-align: left;
}
/* Themes / Elementor often style every button:hover (e.g. a pink background).
   Lock our toggle so it always looks like plain text. */
.cs-table-wrap .cs-title-toggle,
.cs-table-wrap .cs-title-toggle:hover,
.cs-table-wrap .cs-title-toggle:focus,
.cs-table-wrap .cs-title-toggle:active {
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
	color: inherit !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font: inherit !important;
	transform: none !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 4px !important;
	width: 100% !important;
	text-align: left !important;
	white-space: normal !important;
	border-radius: 0 !important;
}
.cs-table-wrap .cs-title-toggle:focus-visible { outline: 2px solid var(--cs-accent) !important; outline-offset: 4px; border-radius: 6px; }
.cs-title-text { font-weight: 600; color: var(--cs-text); line-height: 1.4; }
.cs-title-toggle:hover .cs-title-text { color: var(--cs-accent); }
.cs-title-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--cs-accent);
}
.cs-chevron {
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .2s;
}
.cs-title-toggle[aria-expanded="true"] .cs-chevron { transform: rotate(-135deg) translateY(-1px); }

/* DETAILS PANEL (full row width) */
.cs-details {
	grid-column: 1 / -1;
	overflow: hidden;
}
.cs-details-inner {
	margin-top: 4px;
	padding: 14px 16px;
	background: var(--cs-soft);
	border-radius: 10px;
	color: var(--cs-muted);
	font-size: 14px;
	line-height: 1.6;
	font-weight: 400;
}
.cs-details-inner > *:first-child { margin-top: 0; }
.cs-details-inner > *:last-child { margin-bottom: 0; }
.cs-details-inner img { max-width: 100%; height: auto; }
.cs-details-link a { color: var(--cs-accent); font-weight: 600; text-decoration: none; }
.cs-details-link a:hover { text-decoration: underline; }

/* FEE */
.cs-price-display del { opacity: .55; font-weight: 400; margin-right: 4px; }
.cs-price-display ins { text-decoration: none; }
.cs-price-each { display: block; font-size: 12px; font-weight: 400; color: var(--cs-muted); }

/* ACTION */
.cs-col-action {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex-wrap: wrap;
}

/* QTY */
.cs-qty-box {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #f5f6f8;
	padding: 6px;
	border-radius: 999px;
}
.cs-qty-box button {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: none;
	background: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
	color: #000;
	line-height: 1;
	padding: 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.cs-table-wrap .cs-qty-box button:hover,
.cs-table-wrap .cs-qty-box button:focus,
.cs-table-wrap .cs-qty-box button:active {
	background: #fff !important;
	color: #000 !important;
	border: none !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .08) !important;
	padding: 0 !important;
}
.cs-qty-box button:disabled { opacity: .35; cursor: default; }
.cs-qty {
	width: 36px !important;
	text-align: center !important;
	border: none !important;
	background: transparent !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	color: #000 !important;
	opacity: 1 !important;
	-webkit-text-fill-color: #000 !important;
	padding: 0 !important;
	margin: 0 !important;
	outline: none !important;
	box-shadow: none !important;
}

/* BUTTON */
.cs-btn {
	background: var(--cs-accent) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 10px !important;
	padding: 10px 16px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	transition: background .2s;
	cursor: pointer;
}
.cs-btn:hover { background: var(--cs-accent-hover) !important; }
.cs-btn.loading { opacity: .7; }
.cs-btn.soldout {
	background: #999 !important;
	cursor: not-allowed;
	pointer-events: none;
}
/* WooCommerce's "View cart" link after an AJAX add — keep it on its own line. */
.cs-col-action .added_to_cart {
	flex-basis: 100%;
	text-align: right;
	font-size: 13px;
	color: var(--cs-accent);
}

/* MOBILE */
@media (max-width: 768px) {
	.cs-table-header { display: none; }
	.cs-table-row {
		grid-template-columns: 32px 1fr auto;
		gap: 10px 12px;
	}
	.cs-col-fee {
		justify-self: end;
		text-align: right;
		font-size: 15px;
	}
	.cs-col-action {
		grid-column: 1 / -1;
		justify-content: space-between;
		margin-top: 4px;
	}
	.cs-col-action .added_to_cart { text-align: left; }
}
