.bya_hide {
	display: none;
}

/* Empty state — shown when no products match search/filter criteria */
.bya-no-results-row td.bya-no-results-cell {
	padding: 40px 20px !important;
	text-align: center;
	background: transparent;
	border-bottom: 0;
}

.bya-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: #666;
}

.bya-empty-state__icon {
	width: 64px;
	height: 64px;
	color: #999;
	margin-bottom: 4px;
}

.bya-empty-state__icon svg {
	width: 100%;
	height: 100%;
}

.bya-empty-state__heading {
	font-size: 1rem;
	font-weight: 600;
	color: #333;
	margin: 0;
}

.bya-empty-state__message {
	font-size: 0.875rem;
	color: #888;
	margin: 0;
}

/* Filter By dropdown tooltip */
.bya-filter-select-wrap {
	position: relative;
	display: inline-block;
}

.bya-filter-tooltip {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 9999;
	background: #333;
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
	padding: 6px 10px;
	border-radius: 4px;
	white-space: nowrap;
	max-width: 280px;
	white-space: normal;
	pointer-events: none;
	box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.bya-filter-tooltip::before {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 12px;
	border: 5px solid transparent;
	border-bottom-color: #333;
}

.bya-filter-tooltip.bya-tooltip-visible {
	display: block;
}

a.bya_link {
	text-decoration: none !important;
}

.bya_myaccount_buy_again_wrapper,
.bya_product_table_container,
.bya_product_search_container {
	float: left;
	width: 100%;
}

.bya_product_search_container .bya_product_search_btn {
	margin-left: 10px !important;
}

.bya_product_table_container .bya_buy_again_product_table {
	width: 100%;
}

.bya_product_table_container .bya_buy_again_product_table thead {
	background: #f1f1f1;
}

.bya_product_table_container .bya_buy_again_product_table thead th {
	padding: 15px 10px;
	color: #000;
	text-transform: capitalize;
}

.bya_product_table_container .bya_buy_again_product_table tbody td {
	padding: 10px;
	color: #222;
	border-bottom: 0;
	vertical-align: top;
}

.bya_product_table_container .bya_buy_again_product_table tbody tr:nth-child(even) {
	background: #f1f1f1;
}

.bya_product_table_container .bya_buy_again_product_table tbody td img {
	width: 75px;
	height: auto;
}

.bya_product_table_container .bya_buy_again_product_table tbody td a.bya_link {
	text-decoration: none !important;
}

.bya_product_table_container .bya_buy_again_product_table tbody td a.bya_product_title {
	font-size: 1rem;
	font-weight: 400;
	color: #333;
}

.bya_product_table_container .bya_buy_again_product_table tbody td span {
	color: #f00;
	font-size: 14px;
}

.bya_product_table_container .bya_buy_again_product_table tbody td .bya_out_of_stock {
	color: #f00;
	font-weight: 700;
	font-size: 14px;
}

.bya_product_table_container .bya_buy_again_product_table tbody td button,
.order_details .bya_order_item_fields .bya_add_to_cart_container .button,
.order_details .bya_order_item_fields .bya_buy_again_container .button {
	margin-right: 10px;
	margin-bottom: 10px;
	padding: 7px 15px;
	color: #fff;
	border: none;
	border-radius: 5px;
	box-shadow: none;
	font-size: 14px;
	font-weight: 600;
}

.bya_product_table_container .bya_buy_again_product_table tbody td .bya-add-to-cart,
.order_details .bya_order_item_fields .bya_add_to_cart_container .bya-add-to-cart {
	background: #29b58f;
	color: #fff;
}

.bya_product_table_container .bya_buy_again_product_table tbody td .bya-buy-again,
.order_details .bya_order_item_fields .bya_buy_again_container .bya-buy-again {
	background: #0d3993;
	color: #fff;
}

.bya_product_table_container .bya_buy_again_product_table tfoot tr td .page-numbers {
	cursor: pointer;
}

.bya_quantity {
	float: left;
	position: relative;
}

.bya_dialog_box {
	position: absolute;
	background: #333;
	display: block;
	float: left;
	color: #fdfdfd;
	line-height: 30px;
	padding: 5px;
	top: 60px;
	z-index: 1;
	border-radius: 5px;
	width: max-content;
}

.bya_dialog_box p {
	text-align: center;
	margin: 0;
}

.bya-quantity .bya_qty_field {
	width: 75px;
	position: relative;
	height: 40px !important;
}

.bya_dialog_box:after,
.bya_dialog_box:before {
	top: -45%;
	left: 20px;
	border: solid transparent;
	content: "";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.bya_dialog_box:after {
	border-bottom-color: #333;
	border-width: 14px;
	margin-left: 0px;
}

.bya_myaccount_buy_again_wrapper .bya_table_filter_controls_wrap select,
.bya_myaccount_buy_again_wrapper .bya_table_filter_wrap select,
.bya_myaccount_buy_again_wrapper .bya_table_filter_wrap input[type='text'] {
	width: 170px;
	height: 40px;
	border-radius: 5px;
	background: #fdfdfd;
	border: 1px solid #f1f1f1;
}

.bya_myaccount_buy_again_wrapper .bya_table_filter_wrap input[type='search'] {
	padding: 0.6180469716em;
	width: 100%;
	background-color: #ededed;
	color: #43454b;
	box-sizing: border-box;
	font-weight: normal;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.125);
	border-radius: 5px;
}

.bya-product-categories-filter-container {
	width: 100%;
	float: left;
	margin: 15px 0;
}

.bya_myaccount_buy_again_wrapper .bya-product-categories-filter-container input[type='search'] {
	background: none;
	box-shadow: none;
	border-radius: 0;
	padding: 0;
}

.bya_myaccount_buy_again_wrapper .bya-product-categories-filter-container label {
	width: 100%;
	float: left;
	padding: 0;
	margin: 0 0 15px 0;
	color: #333;
	font-size: 16px;
	font-weight: normal;
}

.bya_myaccount_buy_again_wrapper .bya-product-categories-filter-container .select2-container {
	width: 100% !important;
}

.bya_table_filter_controls_wrap {
	background-color: #ffffff;
	padding: 16px 20px;
	box-shadow: 1px 1px 20px 0px #E9E9E9;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
}

.bya-filter-controls-left {
	flex: 0 0 auto;
}

.bya-filter-controls-left .bya_product_count {
	margin: 0;
}

.bya-filter-controls-right {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.bya_product_stock_filter_container,
.bya_product_sort_container {
	display: flex;
	align-items: center;
	gap: 8px;
}

.bya_product_stock_filter_container label,
.bya_product_sort_container label {
	white-space: nowrap;
	margin: 0;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.bya_table_filter_wrap,
.bya_product_table_container {
	background: #ffffff;
	margin-top: 32px;
	padding: 32px 20px 20px 20px;
	box-shadow: 1px 1px 20px 0px #E9E9E9;
	position: relative;
	float: left;
	width: 100%
}

.bya_table_filter_controls_wrap p {
	margin: 15px 0;
}

.bya-guest-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.bya-guest-user {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bya-guest-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.bya-guest-email {
	font-weight: 600;
	color: #333;
}

.bya-guest-logout-button {
	padding: 0.3em 1.8em;
	border-radius: 5px;
	cursor: pointer;
	font-weight: 600;
	color: #ffffff;
	background: #000066;
	border: 1px solid #000066;
}

.bya-guest-logout-button:hover {
	box-shadow: 0 0 3px #000;
	background: #000;
	color: #fff;
	border: 1px solid #000;
}

.bya_table_filter_controls_wrap .bya_filter_button,
.bya_table_filter_wrap .bya-apply-filter .bya_product_search_btn {
	padding: 0.3em 1.41575em;
	border-radius: 5px;
	cursor: pointer;
	text-decoration: none;
	font-weight: 600;
	text-shadow: none;
	display: inline-block;
}

.bya_table_filter_controls_wrap .bya_filter_button,
.bya_table_filter_wrap .bya-apply-filter .bya_product_search_btn {
	color: #ffffff;
	background: #000066;
	border: 1px solid #000066;
}

.bya_table_filter_controls_wrap .bya_filter_button:hover,
.bya_table_filter_wrap .bya-apply-filter .bya_product_search_btn:hover {
	box-shadow: 0 0 3px #000;
	background: #000;
	color: #fff;
	border: 1px solid #000;
}

.bya_product_search_inp {
	width: 100%;
	padding: 10px 20px;
	border-radius: 3px;
	border: 1px solid #cccccc;
}

.bya_product_time_filter_container {
	display: inline-block;
	width: 100%;
	margin-top: 10px;
}

.bya_product_time_filter_container .bya_time_filter_wrap,
.bya_product_time_filter_container .bya_start_date_wrap,
.bya_product_time_filter_container .bya_end_date_wrap {
	width: 33%;
	float: left;
}

.bya_product_time_filter_container .bya_time_filter_wrap {
	text-align: left;
}

.bya_product_time_filter_container .bya_start_date_wrap {
	text-align: center;
}

.bya_product_time_filter_container .bya_end_date_wrap {
	text-align: right;
}

.bya-apply-filter {
	width: 100%;
	display: inline-block;
	text-align: right;
	margin-top: 10px;
}

.bya-current-page {
	height: 32px;
	margin: 0 2px 0 0;
	font-size: 13px;
	text-align: center;
	padding: 0 8px;
	line-height: 2;
	width: 50px;
	min-height: 30px;
	box-shadow: 0 0 0 transparent;
	border-radius: 4px;
	border: 1px solid #8c8f94;
	background-color: #fff;
	color: #2c3338;
}

.bya_readonly {
	opacity: 0.5;
	cursor: not-allowed !important;
	pointer-events: none;
}

@media screen and (max-width: 768px) {
	.bya_product_table_container .bya_buy_again_product_table tbody tr {
		display: block;
	}

	.bya_product_table_container .bya_buy_again_product_table thead {
		display: none;
	}

	.bya_product_table_container .bya_buy_again_product_table tr td::before {
		content: attr(data-title) ": ";
		font-weight: 700;
		float: left;
	}

	.bya_product_table_container .bya_buy_again_product_table tr td {
		display: block;
		border-right: 0;
		text-align: right !important;

	}

	.bya_product_table_container .bya_buy_again_product_table tbody td button {
		float: none;
		margin-right: 0;
	}

	.bya_table_filter_controls_wrap {
		flex-direction: column;
		align-items: flex-start;
	}

	.bya-filter-controls-right {
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
	}

	.bya_product_time_filter_container {
		display: block;
		margin-top: 15px;
	}

	.bya_product_time_filter_container .bya_time_filter_wrap,
	.bya_product_time_filter_container .bya_start_date_wrap,
	.bya_product_time_filter_container .bya_end_date_wrap {
		width: 100%;
		display: block;
		float: left;
		margin: 5px 0;
	}
}

/* Favourite column */
tr.bya-row-loading {
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.bya-favourite-cell {
	text-align: center !important;
	vertical-align: middle !important;
}

.bya-favourite-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	cursor: pointer !important;
	padding: 4px !important;
	margin: 0 !important;
	min-height: 0 !important;
	min-width: 0 !important;
	width: auto !important;
	height: auto !important;
	line-height: 1 !important;
	font-size: inherit !important;
	border-radius: 0 !important;
	color: #cccccc !important;
	transition: color 0.2s ease, transform 0.15s ease;
	vertical-align: middle !important;
}

.bya-favourite-btn:hover,
.bya-favourite-btn:focus {
	color: #f5a623 !important;
	transform: scale( 1.2 );
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border: none !important;
	outline: none !important;
}

.bya-favourite-btn.bya-is-favourite {
	color: #f5a623 !important;
}

.bya-favourite-btn:disabled {
	opacity: 0.5 !important;
	cursor: not-allowed !important;
	transform: none !important;
}

.bya-star-icon {
	display: block;
	width: 22px;
	height: 22px;
	fill: currentColor;
	flex-shrink: 0;
	pointer-events: none;
}

.bya-favourite-na {
	color: #aaa;
	font-size: 16px;
	display: block;
	text-align: center;
}

/* Product badge design */
.bya-badge {
	top: 0;
	margin: 0;
	padding: 0 10px;
	position: absolute;
	min-width: 80px;
	height: 35px;
	font-size: 16px;
	text-align: left !important;
	line-height: 35px;
	z-index: 1;
}

.buy-order-again-form-wrapper {
	float: left;
	width: 100%;
}

.buy-order-again-form-wrapper h1 {
	font-size: 24px;
	font-weight: 400;
	color: #000;
}

.buy-order-again-form-wrapper table,
.buy-order-again-form-wrapper table th,
.buy-order-again-form-wrapper table td {
	border: none !important;
}

.buy-order-again-form-wrapper table th {
	padding: 15px 10px;
	color: #000;
	background: #f8f8f8;
}

.buy-order-again-form-wrapper table td {
	padding: 10px;
	color: #222;
	border-bottom: 0;
	vertical-align: top;
}

.buy-order-again-form-wrapper table tr:nth-child(even) {
	background: #fbfbfb;
}

.bya-proceed-buy-order-again {
	border: 0;
	background: #43454b;
	border-color: 1px solid #43454b;
	color: #fff;
	cursor: pointer;
	padding: .6180469716em 1.41575em;
	text-decoration: none;
	font-weight: 600;
	text-shadow: none;
	float: right;
}

.bya-proceed-buy-order-again:disabled,
.bya-check-column:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.buy-order-again-form-wrapper table.bya-order-buy-again-table td p.out-of-stock {
	color: #f00 !important;
	font-weight: 700;
	font-size: 14px;
}

/* Container Styling */
#bya-guest-form-container {
	max-width: 450px;
	margin: 30px auto;
	padding: 25px;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Form Row & Labels */
#bya_guest_form .form-row {
	margin-bottom: 20px;
}

#bya_guest_form label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #333;
	font-size: 14px;
}

/* Input Fields */
#bya_guest_form input[type="email"],
#bya_guest_form input[type="text"] {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 16px;
	transition: border-color 0.3s, box-shadow 0.3s;
	box-sizing: border-box;
	/* Ensures padding doesn't affect width */
	margin-bottom: 12px;
}

/* Specifically handling the email input with the icon */
#bya_user_email {
	padding-right: 40px !important;
	/* Make room for your base64 icon */
}

#bya_guest_form input:focus {
	border-color: #007cba;
	box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
	outline: none;
}

/* Buttons */
#bya_guest_form button {
	width: 100%;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.3s ease;
}

/* Fetch/Send Button */
.bya-fetch-email-btn {
	background-color: #007cba;
	color: white;
}

.bya-fetch-email-btn:hover {
	background-color: #006799;
}

/* Verify Button */
.bya-verify-otp-btn {
	background-color: #4CAF50;
	color: white;
	margin-top: 10px;
}

.bya-verify-otp-btn:hover {
	background-color: #45a049;
}

/* OTP Section (when it becomes visible) */
#bya_otp_section {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

/* OTP Code specific styling */
.bya-otp-code {
	text-align: center;
	letter-spacing: 5px;
	font-weight: bold;
	font-size: 20px !important;
}

/* Feedback Messages */
#bya_form_message {
	margin-top: 15px;
	padding: 10px;
	border-radius: 4px;
	font-size: 14px;
	text-align: center;
	display: none;
}

#bya_form_message.success {
	display: block;
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

#bya_form_message.error {
	display: block;
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

#bya_resend_container {
	margin-top: 10px;
	font-size: 0.9em;
}

/* Responsive adjust */
@media (max-width: 480px) {
	#bya-guest-form-container {
		margin: 15px;
		padding: 15px;
	}
}
