/* ==========================================================================
   GBC Car Rim Finder block styles
   ========================================================================== */

/* Wrapper (applies on frontend and in editor) */
.gbc-car-rim-finder {
	padding: 0;
}

/* Three dropdowns in a flex row */
.gbc-crf-dropdowns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-end;
}

.gbc-crf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 180px;
	min-width: 160px;
}

.gbc-crf-label {
	font-size: 13px;
	font-weight: 400;
	color: var(--theme-palette-color-1);
	text-transform: uppercase;
	margin-bottom: 0px;
}

.gbc-crf-select {
	height: 50px;
	padding: 0 10px;
	border: none;
	border-radius: 0px;
	background: #222;
	font-size: 14px;
	color: #fff;
	cursor: pointer;
	width: 100%;
	position: relative;
	transition: border-color 0.25s ease;
}

.gbc-crf-field {
	position: relative;
}

.gbc-crf-field::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--theme-palette-color-1);
	border-radius: 0;
	transition: width 0.2s ease-out;
	pointer-events: none;
	z-index: 1;
}

.gbc-crf-field:hover::after,
.gbc-crf-field:has(.gbc-crf-select:focus:not(:disabled))::after {
	width: 100%;
}

.gbc-crf-field:has(.gbc-crf-select:disabled)::after {
	display: none;
}

.gbc-crf-field--btn::after {
	display: none;
}

.gbc-crf-select:hover,
.gbc-crf-select:focus {
	border-bottom-color: var(--theme-palette-color-1);
}

.gbc-crf-select:disabled {
	background: #222;
	color: #909090;
	cursor: not-allowed;
}

.gbc-crf-select:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.25);
	outline: none;
}

/* Search button — sits inline at the end of the dropdowns row */
.gbc-crf-field--btn {
	flex: 0 0 auto;
}

.gbc-crf-field--btn .gbc-crf-search-btn {
	height: 50px;
	margin-top: 0;
	white-space: nowrap;
	border-radius: 0;
}

.gbc-crf-search-icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 0.5em;
	vertical-align: middle;
	fill: currentColor;
}

/* Editor-only notice */
.gbc-car-rim-finder--editor .gbc-crf-editor-notice {
	margin-top: 12px;
	padding: 8px 12px;
	background: #f0f0f1;
	border-left: 3px solid #2271b1;
	font-size: 12px;
	color: #50575e;
	font-style: italic;
}

/* ==========================================================================
   Shop page filter notice
   ========================================================================== */

.gbc-shop-filter-wrapper {
	background: url(../images/gbc-shop-filter-notice-bg.jpg) no-repeat center center;
	background-size: cover;
	padding-top: 200px;
	margin-bottom: 20px;
}

.gbc-shop-filter-notice {
	background: rgba(0,0,0,0.75);
	color: #fff;
	padding: 20px;
}

.gbc-shop-filter-notice p,
.gbc-shop-filter-notice h3 {
	margin: 0;
}
.gbc-shop-filter-notice a {
	color: #fff;
	text-decoration: underline;
}
.gbc-shop-filter-notice a:hover {
	color: var(--theme-palette-color-1);
}
.gbc-shop-filter-notice__label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #fff;
	margin-bottom: 4px;
}

.gbc-shop-filter-notice__brand {
	color: var(--theme-palette-color-1);
	font-size: 28px;
  	font-weight: 500;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.gbc-shop-filter-notice__rim {
	color: #fff;
	margin-bottom: 8px;
}

.gbc-shop-filter-notice__breedset {
	font-weight: 500;
	color: #fff;
	margin-bottom: 8px;
}

.gbc-shop-filter-notice__clear {
	margin-top: 8px;
	text-align: right;
}

/* ==========================================================================
   Product breedset badge
   ========================================================================== */

.gbc-product-badge {
	display: inline-block;
	padding: 5px 10px 5px 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--theme-palette-color-1);
	background: var(--theme-palette-color-2);
	border-radius: 3px;
	margin-bottom: 8px;
}

.gbc-product-badge--breedset {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--theme-palette-color-2);
}


/* ==========================================================================
   Custom shop filters (shortcode [gbc_shop_filters])
   ========================================================================== */

.gbc-shop-filters {
	margin-bottom: 24px;
}

.gbc-filter-group {
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

.gbc-filter-group__title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--theme-palette-color-2);
	margin: 0 0 10px;
}

.gbc-filter-group__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gbc-filter-group__item {
	margin-bottom: 0px;
}

.gbc-filter-group__item.is-active .gbc-filter-group__link {
	color: var(--theme-palette-color-2);
	font-weight: 600;
}

.gbc-filter-group__link {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 6px 0;
	color: var(--theme-palette-color-2);
	text-decoration: none;
	font-size: 15px;
	transition: color 0.2s ease;
	line-height: 1.1;
}

.gbc-filter-group__link:hover {
	color: var(--theme-palette-color-1);
}

.gbc-filter-group__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border: 1px solid var(--theme-palette-color-5);
	border-radius: 2px;
	font-size: 12px;
	color: var(--theme-palette-color-1);
	flex-shrink: 0;
}

.gbc-filter-group__item.is-active .gbc-filter-group__check {
	background: var(--theme-palette-color-2);
	border-color: var(--theme-palette-color-2);
	color: #fff;
}

.gbc-filter-group__name {
	flex: 1;
	text-transform: capitalize;
}

.gbc-filter-group__count {
	color: var(--theme-palette-color-6);
	font-size: 12px;
}

/* ── Shop Filters: expand/collapse toggle ─────────────────────────────── */

.gbc-filter-group__item.is-hidden {
	display: none;
}

.gbc-filter-group__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin-top: 8px;
	padding: 4px 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--theme-palette-color-2);
	background: transparent;
	border: 1px solid var(--theme-palette-color-5);
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.gbc-filter-group__toggle:hover {
	background: var(--theme-palette-color-2);
	border-color: var(--theme-palette-color-2);
	color: #fff;
}

/* ==========================================================================
   Car Context block (product single page)
   ========================================================================== */

.gbc-car-context {
	margin-bottom: 20px;
}

.gbc-car-context__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	font-weight: 600;
	border: 1px solid var(--theme-palette-color-6);
	text-decoration: none;
	transition: background 0.2s ease;
	border-radius: 3px;
}

.gbc-car-context__back:hover {
	background: var(--theme-palette-color-2);
	border: 1px solid var(--theme-palette-color-2);
	color: #fff;
}

.gbc-car-context__arrow {
	font-size: 18px;
	line-height: 1;
}

.gbc-car-context__car {
	display: block;
	margin-bottom: 20px;
}

.gbc-car-context__car-label {
}

.gbc-car-context__car-name {
	font-weight: 600;
}

.gbc-car-context__car-rim {
	font-size: 14px;
	font-weight: 500;
	color: var(--theme-palette-color-1);
}

/* Responsive: stack dropdowns below ~500px */
@media ( max-width: 540px ) {
	.gbc-crf-dropdowns {
		flex-direction: column;
	}

	.gbc-crf-field,
	.gbc-crf-field--btn {
		flex: none;
		width: 100%;
	}
}

