/**
 * BigBite Butchery Styles
 */

/* Common */
.bb-weight-selector,
.bb-cut-selector,
.bb-bundle-selector,
.bb-notes-wrap {
	margin: 15px 0;
	direction: rtl;
}

/* Compact bundle selector (for desktop) */
.bb-bundle-selector {
	margin-bottom: 10px;
}

.bb-selector-label,
.bb-notes-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 12px;
}

/* Weight Selector */
.bb-weight-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bb-weight-preset {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 80px;
	padding: 12px 15px;
	background: #2a2a2a;
	border: 2px solid #444;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
}

.bb-weight-preset:hover {
	border-color: #666;
	background: #333;
}

.bb-weight-preset.selected {
	border-color: #c00000;
	background: rgba(192, 0, 0, 0.15);
}

.bb-weight-preset input[type="radio"] {
	display: none;
}

.bb-weight-amount {
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 4px;
}

.bb-weight-price {
	font-size: 13px;
	color: #c00000;
	font-weight: 700;
}

/* Custom weight input */
.bb-weight-custom {
	margin-top: 15px;
	padding: 15px;
	background: #222;
	border-radius: 8px;
}

.bb-custom-input-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
}

.bb-weight-minus,
.bb-weight-plus {
	width: 40px;
	height: 40px;
	border: 2px solid #c00000;
	background: transparent;
	color: #c00000;
	font-size: 20px;
	font-weight: bold;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.2s ease;
}

.bb-weight-minus:hover,
.bb-weight-plus:hover {
	background: #c00000;
	color: #fff;
}

.bb-custom-weight-input {
	width: 100px;
	height: 40px;
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	background: #333;
	border: 2px solid #444;
	border-radius: 6px;
	color: #fff;
}

.bb-custom-weight-input:focus {
	outline: none;
	border-color: #c00000;
}

.bb-weight-unit {
	color: #888;
	font-size: 14px;
}

.bb-custom-price {
	margin-top: 12px;
	text-align: center;
}

.bb-custom-price-label {
	color: #888;
	margin-left: 8px;
}

.bb-custom-price-value {
	font-size: 20px;
	font-weight: 700;
	color: #c00000;
}

/* Cut Options */
.bb-cut-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bb-cut-option {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	background: #2a2a2a;
	border: 2px solid #444;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.bb-cut-option:hover {
	border-color: #666;
	background: #333;
}

.bb-cut-option.selected {
	border-color: #c00000;
	background: rgba(192, 0, 0, 0.15);
}

.bb-cut-option input[type="radio"] {
	display: none;
}

.bb-cut-text {
	font-size: 14px;
	font-weight: 500;
	color: #fff;
}

/* Bundle Deals */
.bb-bundle-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bb-bundle-option {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px 20px;
	padding-left: 50px; /* Room for checkmark */
	background: #2a2a2a;
	border: 2px solid #444;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
}

/* Hide the radio input completely */
.bb-bundle-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.bb-bundle-option:hover {
	border-color: #666;
	background: #333;
}

.bb-bundle-option.selected {
	border-color: #4caf50 !important;
	border-width: 3px !important;
	background: rgba(76, 175, 80, 0.15) !important;
	box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.bb-bundle-option.selected .bb-bundle-price {
	color: #4caf50 !important;
}

.bb-bundle-option.bb-sale {
	border-color: #c00000;
	margin-top: 15px; /* Make room for badge */
}

/* Radio is styled in the main .bb-bundle-option block */

/* Bundle deal - Sale badge - moved to top right of the option */
.bb-bundle-option .bb-sale-badge {
	position: absolute;
	top: -10px;
	left: 10px;
	right: auto;
	background: #c00000;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 10px;
	pointer-events: none;
}

.bb-bundle-weight {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	flex: 1;
}

.bb-bundle-price {
	font-size: 18px;
	font-weight: 700;
	color: #c00000;
}

.bb-bundle-savings {
	font-size: 12px;
	color: #4caf50;
	background: rgba(76, 175, 80, 0.1);
	padding: 3px 8px;
	border-radius: 10px;
}

/* Notes */
.bb-notes-wrap {
	margin-top: 20px;
}

.bb-notes-input {
	width: 100%;
	padding: 12px;
	background: #2a2a2a;
	border: 1px solid #444;
	border-radius: 6px;
	color: #fff;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
	min-height: 60px;
}

.bb-notes-input:focus {
	outline: none;
	border-color: #c00000;
}

.bb-notes-input::placeholder {
	color: #888;
}

/* Per kg label */
.bb-price-per-kg {
	font-size: 14px;
	font-weight: 400;
	color: #aaa;
	margin-right: 5px;
}

/* Disabled weight selector when bundle is selected */
.bb-weight-selector.bb-disabled {
	opacity: 0.4;
	pointer-events: none;
	position: relative;
}

.bb-weight-selector.bb-disabled::after {
	content: "בחרת חבילת מבצע";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	padding: 8px 15px;
	border-radius: 5px;
	font-size: 12px;
	white-space: nowrap;
}

/* Bundle option hover effect */
.bb-bundle-option {
	transition: all 0.2s ease;
}

.bb-bundle-option:hover:not(.selected) {
	transform: scale(1.02);
	border-color: #666;
}

.bb-bundle-option.selected {
	transform: scale(1.02);
}

/* Checkmark element */
.bb-bundle-check {
	position: absolute;
	top: 50%;
	left: 15px;
	transform: translateY(-50%);
	font-size: 22px;
	font-weight: bold;
	color: #4caf50;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.bb-bundle-option.selected .bb-bundle-check {
	opacity: 1;
}

/* Sale badge turns green when selected */
.bb-bundle-option.selected .bb-sale-badge {
	background: #4caf50 !important;
}

/* Mobile */
@media (max-width: 480px) {
	.bb-weight-presets {
		gap: 6px;
	}
	
	.bb-weight-preset {
		min-width: 70px;
		padding: 10px 12px;
	}
	
	.bb-weight-amount {
		font-size: 12px;
	}
	
	.bb-weight-price {
		font-size: 11px;
	}
	
	.bb-cut-options {
		gap: 6px;
	}
	
	.bb-cut-option {
		padding: 8px 14px;
	}
	
	.bb-cut-text {
		font-size: 12px;
	}
	
	.bb-bundle-option {
		flex-wrap: wrap;
		gap: 8px;
		padding: 12px 15px;
	}
	
	.bb-bundle-weight {
		font-size: 14px;
	}
	
	.bb-bundle-price {
		font-size: 16px;
	}
}
