/**
 * Main stylesheet for EhabGroup plugin
 * This file imports all modular CSS files
 */

/* Import modular stylesheets */
@import url("gift-feature.css");
@import url("extended-warranty.css");

/* Common styles used across the plugin */
.ehabgroup-feature-container {
	margin: 15px 0;
	padding: 10px;
	border-radius: 5px;
}

.ehabgroup-highlight {
	color: #f39c12;
	font-weight: bold;
}

.ehabgroup-button {
	display: inline-block;
	padding: 8px 15px;
	background-color: #f39c12;
	color: #fff;
	border-radius: 4px;
	text-decoration: none;
	font-weight: bold;
	transition: all 0.3s ease;
}

.ehabgroup-button:hover {
	background-color: #e67e22;
}

/**
 * EhabGroup Store Enhancements - Styles
 */

/* Installment sidebar styling */
#installment-sidebar {
	position: fixed !important;
	left: -500px;
	top: 0 !important;
	/* Force top alignment */
	bottom: 0 !important;
	/* Ensure full height */
	width: 480px;
	height: 100% !important;
	background: #f9f9f9 !important;
	/* Force opaque background */
	padding: 20px;
	overflow-y: auto;
	transition: left 0.3s ease;
	box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
	z-index: 999999 !important;
	/* Max z-index */
	font-size: 14px;
	/* Base font size */
}

#installment-sidebar h3 {
	font-size: 18px;
	margin-bottom: 15px;
	font-weight: bold;
}

#installment-sidebar h4 {
	font-size: 16px;
	margin-bottom: 10px;
	font-weight: 600;
}

#installment-sidebar table th {
	font-size: 14px;
}

#installment-sidebar table tr {
	font-size: 12px;
}

#installment-sidebar table td {
	font-size: 14px;
}

#close-sidebar {
	position: absolute;
	right: 10px;
	cursor: pointer;
	color: #333;
	font-size: 24px;
}

.bank-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	justify-content: space-between;
}

.bank-grid div {
	width: 29%;
	text-align: center;
}

.bank-grid img {
	width: 90px;
	height: auto;
	display: block;
	margin: 0 auto 5px;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.bank-grid img:hover {
	transform: scale(1.05);
}

table,
th,
td {
	border: 1px solid #ddd;
	padding: 8px;
}

table {
	width: 100%;
	border-collapse: collapse;
	padding: 12px;
	margin-top: 10px;
}

/* Button styling */
#show-installment-sidebar-button {
	background-color: #4caf50;
	color: white;
	padding: 10px 15px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	margin: 10px 0;
	transition: background-color 0.3s;
}

#show-installment-sidebar-button:hover {
	background-color: #45a049;
}

/* Tab styling */
.tabs {
	display: flex;
	margin-bottom: 15px;
}

.tab {
	padding: 10px 15px;
	background-color: #f1f1f1;
	border: none;
	cursor: pointer;
	flex: 1;
	text-align: center;
	transition: background-color 0.3s;
}

.tab:hover {
	background-color: #ddd;
}

.tab.active {
	background-color: #ccc;
	font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	#installment-sidebar {
		width: 66%;
		left: -500px;
		top: 0;
	}

	.bank-grid div {
		width: 45%;
	}

	.bank-grid img {
		width: 70px;
	}
}

@media (max-width: 480px) {
	.bank-grid div {
		width: 28%;
	}

	.bank-grid img {
		width: 50px;
	}

	#installment-sidebar {
		padding: 10px;
	}
}

/* Reservation sidebar styling */
#reservation-sidebar-unique {
	position: fixed;
	right: -350px;
	top: 0;
	width: 350px;
	height: 100%;
	background: #fff;
	padding: 20px;
	overflow-y: auto;
	transition: 0.3s;
	box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
	z-index: 1000;
	border-left: 2px solid #ddd;
	font-family: Arial, sans-serif;
}

.reserve-button {
	background-color: #007bff;
	color: white;
	padding: 10px 15px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	margin: 10px 0;
	transition: background-color 0.3s;
}

.reserve-button:hover {
	background-color: #0056b3;
}

.form-group {
	margin-bottom: 15px;
}

label {
	display: block;
	margin-bottom: 5px;
	font-size: 14px;
	color: #333;
}

input[type="text"],
input[type="tel"],
select {
	width: 100%;
	padding: 10px;
	font-size: 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus {
	border-color: #007bff;
	outline: none;
	box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.submit-btn {
	width: 100%;
	padding: 12px;
	background-color: #28a745;
	color: #fff;
	font-size: 16px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.submit-btn:hover {
	background-color: #218838;
}

/* Installment Trigger Card */
.installment-trigger-card {
	margin-top: 15px;
	margin-bottom: 20px;
	cursor: pointer;
	width: 100%;
	direction: rtl;
	/* Ensure RTL layout */
}

.installment-header {
	font-size: 14px;
	/* Smaller font */
	font-weight: 700;
	margin-bottom: 5px;
	color: #000;
	text-align: right;
}

.installment-content {
	background-color: rgba(250, 183, 38, 0.15);
	/* Transparent #fab726 */
	border: 1px solid rgba(250, 183, 38, 0.3);
	border-radius: 8px;
	padding: 10px 15px;
	display: flex;
	justify-content: space-between;
	align-content: center;
	align-items: center;
	margin: 10px 0 20px;
	width: 100%;
	box-sizing: border-box;
	transition: background-color 0.2s;
}

.installment-content:hover {
	background-color: rgba(250, 183, 38, 0.25);
}

.installment-info {
	display: flex;
	align-items: center;
	gap: 8px;
}

.installment-amount {
	font-size: 13px;
	/* Smaller font */
	font-weight: 600;
	color: #333;
	white-space: nowrap;
}

.installment-icon {
	color: #f39c12;
	/* Match the theme */
	font-size: 18px;
	width: 18px;
	height: 18px;
	display: inline-block;
	vertical-align: middle;
	line-height: 1;
}

.installment-action {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #f39c12;
	/* Match the theme */
	font-weight: 500;
	font-size: 13px;
	/* Smaller font */
	white-space: nowrap;
}

.installment-action .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	text-decoration: none;
}

/* Hide the old button if it still exists in some cache */
#show-installment-sidebar-button {
	display: none !important;
}

/* Carousel Styling */
.carousel-wrapper {
	position: relative;
	width: 100%;
	margin: 20px 0;
	padding: 0 40px;
	/* Space for buttons */
	box-sizing: border-box;
}

.carousel-track-container {
	overflow: hidden;
	/* Hide scrollbars */
	width: 100%;
	scroll-behavior: smooth;
	white-space: nowrap;
	/* CSS Scroll Snap */
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	/* Firefox */
	-ms-overflow-style: none;
	/* IE/Edge */
}

.carousel-track-container::-webkit-scrollbar {
	display: none;
	/* Chrome/Safari */
}

.carousel-item {
	display: inline-block;
	width: 25%;
	/* 4 items per row on PC */
	text-align: center;
	scroll-snap-align: start;
	box-sizing: border-box;
	padding: 5px;
	vertical-align: top;
}

.carousel-item img {
	max-width: 100%;
	height: auto;
	cursor: pointer;
	transition: transform 0.2s;
	border: 1px solid #eee;
	padding: 5px;
	border-radius: 4px;
}

.carousel-item img:hover {
	transform: scale(1.05);
}

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	color: #555;
	transition: all 0.2s;
}

.carousel-btn:hover {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.prev-btn {
	left: 0;
}

.next-btn {
	right: 0;
}

/* Responsive Carousel */
@media (max-width: 768px) {
	.carousel-item {
		width: 33.333%;
		/* 3 items per row on Mobile */
	}

	.carousel-wrapper {
		padding: 0 30px;
	}
}

/* Hide fallback grid styles */
.bank-grid {
	display: none;
}