/* Hide WC default variation selects when custom UI is active. */
.fcbo2-bulk-mode table.variations,
.fcbo2-bulk-mode .reset_variations {
	display: none !important;
}

/* Hide WC price/variation info + native qty only in bulk_qty mode. */
.fcbo2-bulk-mode.fcbo2-has-bulk-qty .single_variation {
	display: none !important;
}

/* ------------------------------------------------------------------ */
/* Main container                                                      */
/* ------------------------------------------------------------------ */

.fcbo2-ui {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 12px 0 16px;
}

/* ------------------------------------------------------------------ */
/* Option section (wrapper per attribute)                              */
/* ------------------------------------------------------------------ */

.fcbo2-option-section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fcbo2-section-label {
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

/* ------------------------------------------------------------------ */
/* Option pills (image_radio & pill types)                             */
/* ------------------------------------------------------------------ */

.fcbo2-option-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.fcbo2-option-pill {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.fcbo2-option-pill:hover {
	border-color: #999;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.fcbo2-option-pill.is-selected {
	border-color: #000;
	box-shadow: 0 0 0 1px #000;
}

.fcbo2-option-pill.is-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.fcbo2-option-pill--text {
	padding: 8px 16px;
	border-radius: 6px;
}

.fcbo2-pill-image {
	width: 88px;
	height: 100%;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.fcbo2-pill-label {
	font-size: 12px;
	line-height: 1.2;
	color: #333;
	text-align: center;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Dropdown type                                                       */
/* ------------------------------------------------------------------ */

.fcbo2-dropdown-wrap {
	display: inline-flex;
	position: relative;
}

.fcbo2-dropdown {
	padding: 9px 36px 9px 12px;
	border: 1px solid #bbb;
	border-radius: 3px;
	font-size: 14px;
	line-height: 1.4;
	color: #333;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E") no-repeat right 12px center;
	background-size: 10px 6px;
	min-width: 200px;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease;
}

.fcbo2-dropdown:hover {
	border-color: #888;
}

.fcbo2-dropdown:focus {
	outline: none;
	border-color: #555;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* ------------------------------------------------------------------ */
/* Size / quantity cards (bulk_qty type)                                */
/* ------------------------------------------------------------------ */

.fcbo2-size-cards-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.fcbo2-size-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.fcbo2-size-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 10px 4px;
	height: 100px;
	width: 100px;
	background: #fff;
	transition: border-color 0.15s ease, opacity 0.15s ease;
}

.fcbo2-size-card:hover {
	border-color: #999;
}

.fcbo2-size-card--out-of-stock {
	opacity: 0.5;
}

.fcbo2-size-card__label {
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

.fcbo2-size-card__qty {
	width: 60px;
	text-align: center;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 6px 4px;
	font-size: 14px;
	-moz-appearance: textfield;
	appearance: textfield;
}

.fcbo2-size-card__qty::-webkit-inner-spin-button,
.fcbo2-size-card__qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.fcbo2-size-card__qty:focus {
	outline: none;
	border-color: #666;
}

.fcbo2-size-card__qty:disabled {
	background: #f5f5f5;
	cursor: not-allowed;
}

.fcbo2-size-card__price {
	font-size: 11px;
	color: #888;
	margin-top: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	text-align: center;
}

/* ------------------------------------------------------------------ */
/* Totals                                                              */
/* ------------------------------------------------------------------ */

.fcbo2-totals {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 14px;
	color: #333;
	padding-top: 4px;
}

.fcbo2-totals__count,
.fcbo2-totals__sum {
	white-space: nowrap;
}

.fcbo2-totals strong {
	font-weight: 700;
}

.fcbo2-clear-btn {
	background: none;
	border: none;
	color: #c33;
	font-size: 14px;
	cursor: pointer;
	padding: 4px 8px;
	text-decoration: none;
}

.fcbo2-clear-btn:hover {
	color: #a00;
	text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Add to cart button overrides                                        */
/* ------------------------------------------------------------------ */

.fcbo2-bulk-mode.fcbo2-has-bulk-qty .woocommerce-variation-add-to-cart .quantity {
	display: none !important;
}

.fcbo2-bulk-mode.fcbo2-has-bulk-qty .single_add_to_cart_button {
	opacity: 1 !important;
	cursor: pointer !important;
}

.fcbo2-bulk-mode.fcbo2-has-bulk-qty .single_add_to_cart_button.fcbo2-btn-inactive {
	opacity: 0.5 !important;
	cursor: not-allowed !important;
}

/* ------------------------------------------------------------------ */
/* Loading & notices                                                   */
/* ------------------------------------------------------------------ */

.fcbo2-loading {
	opacity: 0.6;
	pointer-events: none;
}

.fcbo2-notice {
	padding: 10px 16px;
	margin-bottom: 12px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.4;
	white-space: pre-line;
}

.fcbo2-notice--success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.fcbo2-notice--error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}