/* Align reserved cart like native cart without JS hooks */
.ars-reserved-cart-wrap {
	display: inline-block;
}

/* Ensure all table cells are vertically aligned to middle */
.ars-reserved-cart table.table th {
	vertical-align: middle !important;
}

.ars-reserved-cart {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 .75rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
}

.ars-reserved-cart .cart-overview {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	position: relative;
}

/* Base table styles to prevent overflow */
.ars-reserved-cart .cart-overview table {
	width: 100%;
	max-width: 100%;
	table-layout: auto;
	box-sizing: border-box;
}

.ars-reserved-cart .header {
	display: flex;
	align-items: center;
	height: 100%;
}

.ars-reserved-cart .header a {
	display: flex;
	align-items: center;
	gap: .35rem;
	text-decoration: none;
	height: 100%;
	line-height: normal;
}

.ars-reserved-cart .header .material-icons {
	font-size: 24px;
	line-height: 1;
	vertical-align: middle;
}

.ars-reserved-cart .header .hidden-sm-down {
	line-height: normal;
	vertical-align: middle;
	display: inline-flex;
	align-items: center;
}

.ars-reserved-cart .ars-reserved-icon {
	height: 24px;
	width: auto;
	display: block;
	vertical-align: middle;
}

.ars-reserved-cart .header .cart-products-count {
	vertical-align: middle;
	line-height: normal;
	display: inline-flex;
	align-items: center;
}


/* --- Product page buttons alignment --- */
/* Ensure our reserve button sits next to Add to Cart and before wishlist */
.product-actions .ars-reserve-actions {
	order: 2;
	/* directly after Add to Cart */
	display: inline-flex;
	margin-left: .5rem;
	/* create space from Add to Cart */
}

/* Cover themes that place actions inside the add-to-cart form */
.product-add-to-cart .ars-reserve-actions {
	display: inline-flex;
	margin-left: .5rem;
}

/* Push common wishlist buttons after the reserve button */
.product-actions .wishlist_button,
.product-actions .js-add-to-wishlist,
.product-actions .addToWishlist,
.product-actions .wishlist-button-add,
.product-actions .favorite-button,
.product-actions .add-to-wishlist {
	order: 3;
}

/* Normalize button height/vertical alignment with native add-to-cart */
.product-actions .ars-reserve-actions .btn,
.product-add-to-cart .ars-reserve-actions .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	/* baseline for themes without fixed height */
	padding: 0 1.25rem;
}

/* Force exact height to match native add-to-cart button */
.product-actions .add-to-reserved,
.product-add-to-cart .add-to-reserved {
	height: 44px;
	padding-top: 0;
	padding-bottom: 0;
	box-sizing: border-box;
}

/* Reserve button disabled state styling */
.product-actions .add-to-reserved:disabled,
.product-add-to-cart .add-to-reserved:disabled,
.product-actions .add-to-reserved.disabled,
.product-add-to-cart .add-to-reserved.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
	background-color: #cccccc !important;
	border-color: #999999 !important;
	color: #666666 !important;
}

/* Ensure disabled button doesn't respond to hover */
.product-actions .add-to-reserved:disabled:hover,
.product-add-to-cart .add-to-reserved:disabled:hover,
.product-actions .add-to-reserved.disabled:hover,
.product-add-to-cart .add-to-reserved.disabled:hover {
	background-color: #cccccc !important;
	border-color: #999999 !important;
	color: #666666 !important;
	box-shadow: none !important;
	transform: none !important;
}


/* Ensure stock badge image never inherits product image white background */
.ars-stock-badge img {
	background: transparent !important;
}

/* Badge container alignment fixes */
.ars-stock-badge {
	display: flex !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	line-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ars-stock-badge img {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	vertical-align: top !important;
}

/* Default badge icon styling */
.ars-stock-badge .ars-badge-default-icon {
	vertical-align: middle;
	box-sizing: border-box;
	color: #ef4444 !important;
}

/* Stock Notices Styling */
.ars-stock-notice {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.ars-stock-notice .ars-notice-content {
	display: flex;
	align-items: flex-start;
	flex-wrap: nowrap;
}

.ars-stock-notice .material-icons {
	flex-shrink: 0;
	margin-top: 2px;
}

.ars-stock-notice span {
	flex: 1;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* Notice type specific styling */
.ars-notice-product {
	margin: 15px 0;
}

.ars-notice-shop {
	margin: 10px 0;
	font-size: 0.9em;
}

.ars-notice-cart {
	margin: 15px 0;
}

/* Notice close button styling */
.ars-notice-close {
	transition: opacity 0.2s ease;
}

.ars-notice-close:hover {
	opacity: 1 !important;
}

.ars-notice-close:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
	.ars-stock-notice {
		padding: 10px 12px;
		font-size: 0.9em;
	}

	.ars-stock-notice .material-icons {
		font-size: 18px;
		margin-right: 6px;
	}

	.ars-notice-close {
		top: 6px !important;
		right: 6px !important;
		padding: 2px !important;
	}
}

/* Pagination wrapper - ensure it appears in footer section */
.pagination-wrapper {
	display: block;
	width: 100%;
	clear: both;
	margin-top: 30px;
	margin-bottom: 20px;
	padding: 20px 0;
}

.pagination-wrapper .pagination-info {
	margin-bottom: 20px !important;
	font-size: 0.95em;
}

.pagination-wrapper .pagination {
	display: block;
	width: 100%;
}

.pagination-wrapper .page-list {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.pagination-wrapper .page-list li {
	margin: 0;
	padding: 0;
	display: inline-block;
}

.pagination-wrapper .page-list li a,
.pagination-wrapper .page-list li span {
	display: inline-block;
	padding: 8px 12px;
	min-width: 40px;
	text-align: center;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.pagination-wrapper .page-list li.pagination-previous,
.pagination-wrapper .page-list li.pagination-next {
	margin: 0 10px;
}

.pagination-wrapper .page-list li.pagination-previous a,
.pagination-wrapper .page-list li.pagination-next a,
.pagination-wrapper .page-list li.pagination-previous span,
.pagination-wrapper .page-list li.pagination-next span {
	padding: 8px 16px;
	white-space: nowrap;
}

.pagination-wrapper .page-list li .page-link {
	margin: 0 4px;
}

/* Style current page link */
.pagination-wrapper .page-list li.current .page-link.current {
	cursor: default;
	pointer-events: none;
	font-weight: bold;
}

/* Custom Quantity Control - Replaces Bootstrap TouchSpin */
.ars-qty-control {
	display: inline-flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fff;
	overflow: hidden;
	width: 100%;
	max-width: 140px;
}

.ars-qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	border: none;
	background-color: #f8f9fa;
	color: #333;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	flex-shrink: 0;
}

.ars-qty-btn:hover {
	background-color: #e9ecef;
	color: #000;
}

.ars-qty-btn:active {
	background-color: #dee2e6;
}

.ars-qty-btn:focus {
	outline: 2px solid #007bff;
	outline-offset: -2px;
}

.ars-qty-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background-color: #f8f9fa;
}

.ars-qty-btn .material-icons {
	font-size: 18px;
	line-height: 1;
	width: 18px;
	height: 18px;
}

.ars-qty-input {
	width: 100%;
	min-width: 50px;
	height: 32px;
	padding: 0 8px;
	margin: 0;
	border: none;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	text-align: center;
	font-size: 14px;
	background-color: #fff;
	color: #333;
	appearance: textfield;
	-moz-appearance: textfield;
	flex: 1;
}

.ars-qty-input::-webkit-outer-spin-button,
.ars-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ars-qty-input:focus {
	outline: none;
	background-color: #fff;
}

.ars-qty-input:disabled {
	background-color: #f8f9fa;
	cursor: not-allowed;
	opacity: 0.6;
}

/* Responsive adjustments for quantity control */
@media (max-width: 767px) {
	.ars-qty-control {
		max-width: 120px;
	}

	.ars-qty-btn {
		width: 28px;
		height: 28px;
	}

	.ars-qty-input {
		height: 28px;
		padding: 0 6px;
		font-size: 13px;
	}

	.ars-qty-btn .material-icons {
		font-size: 16px;
		width: 16px;
		height: 16px;
	}
}

/* Action buttons styling */
.ars-reserved-cart .btn.btn-link.ars-move,
.ars-reserved-cart .btn.btn-link.ars-delete {
	border: 1px solid #24b9d7;
	border-radius: 4px;
	padding: 4px 8px;
	transition: all 0.2s ease;
}

.ars-reserved-cart .btn.btn-link.ars-move:hover,
.ars-reserved-cart .btn.btn-link.ars-delete:hover {
	border-color: #1a9bb8;
	background-color: rgba(36, 185, 215, 0.1);
}

/* Tablet responsive fixes for reserved cart (iPad, iPad Pro, etc.) */
@media (min-width: 768px) and (max-width: 1366px) {

	/* Prevent horizontal overflow on main container */
	.ars-reserved-cart {
		padding: 0 0.75rem;
		overflow-x: hidden;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	/* Make table scrollable horizontally on tablets */
	.ars-reserved-cart .cart-overview {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		width: 100%;
		max-width: 100%;
	}

	.ars-reserved-cart .cart-overview table {
		min-width: 900px;
		/* Slightly larger than mobile for better readability on tablets */
		width: 100%;
		font-size: 0.9rem;
	}

	/* Adjust table header and cells for tablets */
	.ars-reserved-cart .cart-overview table th,
	.ars-reserved-cart .cart-overview table td {
		padding: 10px 8px;
	}

	/* Make product column more compact on tablets */
	.ars-reserved-cart .cart-overview table td:nth-child(2) {
		min-width: 220px;
		max-width: 280px;
		white-space: normal;
	}

	.ars-reserved-cart .cart-overview table td:nth-child(2) img {
		max-width: 70px;
	}

	/* Compact date columns on tablets */
	.ars-reserved-cart .cart-overview table th:nth-child(6),
	.ars-reserved-cart .cart-overview table th:nth-child(7),
	.ars-reserved-cart .cart-overview table td:nth-child(6),
	.ars-reserved-cart .cart-overview table td:nth-child(7) {
		min-width: 100px;
		font-size: 0.85rem;
	}

	/* Adjust quantity control column */
	.ars-reserved-cart .cart-overview table td:nth-child(4) {
		width: 130px;
		min-width: 130px;
	}

	/* Ensure pagination is responsive on tablets */
	.pagination-wrapper {
		padding: 20px 0;
	}

	.pagination-wrapper .pagination-info {
		font-size: 0.9em;
	}
}

/* Mobile responsive fixes for reserved cart */
@media (max-width: 767px) {

	/* Prevent horizontal overflow on main container */
	.ars-reserved-cart {
		padding: 0 0.5rem;
		overflow-x: hidden;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	/* Make table scrollable horizontally on mobile */
	.ars-reserved-cart .cart-overview {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		width: 100%;
		max-width: 100%;
	}

	.ars-reserved-cart .cart-overview table {
		min-width: 800px;
		/* Ensure table maintains minimum width for readability */
		width: 100%;
		font-size: 0.875rem;
	}

	/* Adjust table header and cells for mobile */
	.ars-reserved-cart .cart-overview table th,
	.ars-reserved-cart .cart-overview table td {
		padding: 8px 6px;
		white-space: nowrap;
	}

	/* Make product column more compact on mobile */
	.ars-reserved-cart .cart-overview table td:nth-child(2) {
		min-width: 200px;
		max-width: 250px;
		white-space: normal;
	}

	.ars-reserved-cart .cart-overview table td:nth-child(2)>div {
		flex-wrap: wrap;
		gap: 8px;
	}

	.ars-reserved-cart .cart-overview table td:nth-child(2) img {
		max-width: 60px;
	}

	/* Compact date columns */
	.ars-reserved-cart .cart-overview table th:nth-child(6),
	.ars-reserved-cart .cart-overview table th:nth-child(7),
	.ars-reserved-cart .cart-overview table td:nth-child(6),
	.ars-reserved-cart .cart-overview table td:nth-child(7) {
		min-width: 90px;
		font-size: 0.8rem;
	}

	/* Adjust bulk actions button */
	.ars-reserved-cart .bulk-catalog {
		width: 100%;
		margin-bottom: 10px;
	}

	.ars-reserved-cart .bulk-catalog #ars-bulk-menu {
		width: 100%;
		font-size: 0.9rem;
		padding: 8px 12px;
	}

	/* Compact action buttons */
	.ars-reserved-cart .btn.btn-link.ars-move,
	.ars-reserved-cart .btn.btn-link.ars-delete {
		padding: 4px 6px;
		min-width: auto;
	}

	.ars-reserved-cart .btn.btn-link.ars-move .material-icons,
	.ars-reserved-cart .btn.btn-link.ars-delete .material-icons {
		font-size: 18px;
	}

	/* Adjust quantity control column */
	.ars-reserved-cart .cart-overview table td:nth-child(4) {
		width: 120px;
		min-width: 120px;
	}

	/* Ensure pagination is responsive */
	.pagination-wrapper {
		padding: 15px 0;
		margin-top: 20px;
	}

	.pagination-wrapper .pagination-info {
		font-size: 0.85em;
		padding: 0 10px;
	}

	.pagination-wrapper .page-list {
		gap: 4px;
	}

	.pagination-wrapper .page-list li a,
	.pagination-wrapper .page-list li span {
		padding: 6px 10px;
		min-width: 36px;
		font-size: 0.875rem;
	}

	.pagination-wrapper .page-list li.pagination-previous,
	.pagination-wrapper .page-list li.pagination-next {
		margin: 0 5px;
	}

	.pagination-wrapper .page-list li.pagination-previous a,
	.pagination-wrapper .page-list li.pagination-next a,
	.pagination-wrapper .page-list li.pagination-previous span,
	.pagination-wrapper .page-list li.pagination-next span {
		padding: 6px 12px;
		font-size: 0.85rem;
	}
}

/* Extra small devices */
@media (max-width: 480px) {
	.ars-reserved-cart {
		padding: 0 0.25rem;
	}

	.ars-reserved-cart .cart-overview table {
		font-size: 0.8rem;
		min-width: 750px;
	}

	.ars-reserved-cart .cart-overview table th,
	.ars-reserved-cart .cart-overview table td {
		padding: 6px 4px;
	}

	.ars-reserved-cart .cart-overview table td:nth-child(2) img {
		max-width: 50px;
	}

	.ars-reserved-cart .cart-overview table th:nth-child(6),
	.ars-reserved-cart .cart-overview table th:nth-child(7),
	.ars-reserved-cart .cart-overview table td:nth-child(6),
	.ars-reserved-cart .cart-overview table td:nth-child(7) {
		min-width: 80px;
		font-size: 0.75rem;
	}
}



/* Badge Font Styles */
.ars-font-inter {
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.ars-font-roboto {
	font-family: Roboto, system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
}

.ars-font-poppins {
	font-family: Poppins, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
}

.ars-font-open-sans {
	font-family: 'Open Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
}

.ars-font-lato {
	font-family: Lato, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
}

.ars-font-montserrat {
	font-family: Montserrat, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
}

.ars-font-playfair-display {
	font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif !important;
}