/*
 * Course Bundle Builder – front-end styles.
 * Change the variables below to fine-tune the look without touching the rest.
 */
.cbb-form {
	--cbb-border: #2b2b2b;
	--cbb-radius: 12px;
	--cbb-bg: #ffffff;
	--cbb-label: #000000;
	--cbb-placeholder: #8c8c8c;
	--cbb-value: #000000;
	--cbb-gap: 16px;
	--cbb-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='11' viewBox='0 0 20 11'%3E%3Cpath d='M1 1l9 9 9-9' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cbb-form .cbb-fieldset {
	border: 0;
	margin: 0 0 24px;
	padding: 0;
	min-width: 0;
}

.cbb-form .cbb-heading {
	display: block;
	float: none;
	width: 100%;
	margin: 0 0 var(--cbb-gap);
	padding: 0;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--cbb-label);
}

.cbb-form .cbb-slot {
	position: relative;
	margin: 0 0 var(--cbb-gap);
}

/* The label sits inside the box, over the top of the select. */
.cbb-form .cbb-label {
	position: absolute;
	top: 18px;
	left: 28px;
	right: 64px;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--cbb-label);
	pointer-events: none;
	z-index: 1;
}

/*
 * The whole box is the select, so clicking anywhere opens it.
 * Layout properties use !important because many themes style every
 * select on product pages (padding, arrow icon, height) with stronger selectors.
 */
.cbb-form select.cbb-select {
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	display: block;
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 80px !important;
	margin: 0 !important;
	padding: 44px 64px 16px 28px !important;
	text-indent: 0 !important;
	border: 1px solid var(--cbb-border) !important;
	border-radius: var(--cbb-radius) !important;
	background: var(--cbb-bg) var(--cbb-chevron) no-repeat right 24px bottom 22px / 20px 11px !important;
	box-shadow: none !important;
	font: inherit;
	font-size: 15px;
	letter-spacing: 0.05em;
	line-height: 1.3 !important;
	color: var(--cbb-placeholder);
	cursor: pointer;
	text-overflow: ellipsis;
}

/* Hide the arrow some browsers still draw. */
.cbb-form select.cbb-select::-ms-expand {
	display: none;
}

.cbb-form select.cbb-select.cbb-has-value {
	color: var(--cbb-value);
}

.cbb-form .cbb-select option {
	color: var(--cbb-value);
	letter-spacing: normal;
}

.cbb-form .cbb-select option:disabled {
	color: var(--cbb-placeholder);
}

.cbb-form .cbb-select:focus {
	outline: none;
}

.cbb-form .cbb-select:focus-visible {
	outline: 2px solid var(--cbb-border);
	outline-offset: 2px;
}

.cbb-form .single_add_to_cart_button:disabled,
.cbb-form .single_add_to_cart_button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

@media (max-width: 480px) {
	.cbb-form .cbb-label { left: 20px; }
	.cbb-form select.cbb-select {
		padding-left: 20px !important;
		background-position: right 18px bottom 22px !important;
	}
}

/* Option dropdowns (e.g. Format, Level) that appear under a variable course. */
.cbb-form .cbb-group {
	margin: 0 0 var(--cbb-gap);
}

.cbb-form .cbb-group > .cbb-slot {
	margin-bottom: 0;
}

.cbb-form .cbb-attributes:not(:empty) {
	margin: 12px 0 0 24px;
}

.cbb-form .cbb-slot--attribute {
	margin-bottom: 12px;
}

.cbb-form .cbb-slot--attribute:last-child {
	margin-bottom: 0;
}

@media (max-width: 480px) {
	.cbb-form .cbb-attributes:not(:empty) { margin-left: 12px; }
}
