/* Becomeyoo Buy Button Sticky Widget */
.bew-bbs *,
.bew-bbs *::before,
.bew-bbs *::after {
	box-sizing: border-box;
}

.bew-bbs {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1002;
	pointer-events: none;
}

.bew-bbs-bar,
.bew-bbs-dropdown,
.bew-bbs-overlay {
	pointer-events: auto;
}

/* ── Bar ── */
.bew-bbs-bar {
	position: relative;
	z-index: 3;
	background-color: #ffffff;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	padding: 12px 20px;
}

.bew-bbs-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1280px;
	margin: 0 auto;
	gap: 16px;
}

.bew-bbs-info {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1;
	overflow: hidden;
}

.bew-bbs-info-format {
	font-weight: 600;
	color: #333333;
}

.bew-bbs-info-price {
	color: #2f4858;
	font-weight: 700;
}

.bew-bbs-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

/* Toggle button (arrow) */
.bew-bbs-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: none !important;
	background-color: transparent !important;
	border: 1px solid #ddd;
	border-radius: 6px;
	cursor: pointer;
	transition: transform 0.3s ease, border-color 0.2s ease;
	padding: 0;
	flex-shrink: 0;
}

.bew-bbs-toggle:hover,
.bew-bbs-toggle:focus,
.bew-bbs-toggle:active {
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	outline: none;
	border-color: #999;
}

.bew-bbs-toggle svg {
	width: 14px;
	height: 14px;
	fill: #333;
	transition: transform 0.3s ease;
}

.bew-bbs.bew-bbs--open .bew-bbs-toggle svg {
	transform: rotate(180deg);
}

/* Main buy button */
.bew-bbs-main-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 28px;
	background-color: #EB801D;
	color: #ffffff !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.5px;
	border-radius: 6px;
	transition: background-color 0.2s ease;
	white-space: nowrap;
}

.bew-bbs-main-btn:hover {
	background-color: #d4711a;
	color: #ffffff !important;
	text-decoration: none !important;
}

.bew-bbs-main-btn:focus,
.bew-bbs-main-btn:active {
	color: #ffffff !important;
	text-decoration: none !important;
	outline: none;
	box-shadow: none !important;
}

/* ── Dropdown ── */
.bew-bbs-dropdown {
	position: absolute;
	bottom: 100%;
	left: 0;
	right: 0;
	z-index: 2;
	background-color: #ffffff;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
	border-top: 1px solid #eee;
	transform: translateY(100%);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.bew-bbs.bew-bbs--open .bew-bbs-dropdown {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

.bew-bbs-dropdown-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 20px;
}

.bew-bbs-dropdown-title {
	font-size: 18px;
	font-weight: 700;
	color: #333333;
	margin-bottom: 16px;
}

/* ── Option row ── */
.bew-bbs-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
	gap: 16px;
}

.bew-bbs-option:last-child {
	border-bottom: none;
}

.bew-bbs-option-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bew-bbs-option-format {
	font-weight: 600;
	color: #333333;
}

.bew-bbs-option-price {
	color: #2f4858;
	font-weight: 700;
}

.bew-bbs-option-action {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bew-bbs-option-logo img {
	width: 80px;
	height: auto;
	display: block;
}

.bew-bbs-option-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 20px;
	background-color: #EB801D;
	color: #ffffff !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.5px;
	border-radius: 4px;
	transition: background-color 0.2s ease;
	white-space: nowrap;
}

.bew-bbs-option-btn:hover {
	background-color: #d4711a;
	color: #ffffff !important;
	text-decoration: none !important;
}

.bew-bbs-option-btn:focus,
.bew-bbs-option-btn:active {
	color: #ffffff !important;
	text-decoration: none !important;
	outline: none;
	box-shadow: none !important;
}

/* ── Overlay ── */
.bew-bbs-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.3);
	z-index: 1;
}

.bew-bbs.bew-bbs--open .bew-bbs-overlay {
	display: block;
}

/* ── Responsive visibility ── */
@media (min-width: 768px) {
	.bew-bbs--hide-desktop {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.bew-bbs--hide-mobile {
		display: none !important;
	}

	.bew-bbs-bar-inner {
		gap: 10px;
	}

	.bew-bbs-info {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}

	.bew-bbs-info-format {
		font-size: 13px;
	}

	.bew-bbs-info-price {
		font-size: 15px;
	}

	.bew-bbs-dropdown-inner {
		padding: 16px;
	}

	.bew-bbs-option {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.bew-bbs-option-action {
		width: 100%;
		justify-content: space-between;
	}
}
