#primary {
	padding: 0 20px;
}

/* Wheel Search Widget Styles */
.d-grid:not(.wheel-search-options, .wheel-search-container, .wheel-search-submit) {
  background: rgba(233, 242, 243, 0.6);
  padding: 20px;
  margin-bottom: 20px;
}

.wheel-search-submit {
  display: flex;
  justify-content: end;
  align-items: start;
}

.wheel-search-options:not(.wheel-search-horizontal) .wheel-search-submit {
  padding-bottom: 100px;
}

h3.wheel-search-title {
  font-size: 19px !important;
  font-weight: 600;
  color: #2D8892;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 0;
}

.wheel-search-title span {
  background: #E14F0F;
  width: 60px;
  display: flex;
  height: 60px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: white;
  font-size: 45px;
  aspect-ratio: 1;
  padding-bottom: 3px;
}

div.title {
  max-width: 1440px;
  margin: auto;
  border-bottom: 1px solid #1E1E1E;
  padding: 50px 0 0 0;
  margin-bottom: 25px;
}

div.title h2 {
  font-size: 45px;
  font-weight: 500;
  color: #2D8892;
  margin:0;
  margin-bottom: 50px;
}

form.wheel-search-container select {
  background-color: white;
  font-weight: 200;
  margin: 10px 0;
}

.wheel-search-container.busy .wheel-search-options {
  position: relative;
  opacity: 0.5;
  min-height: 200px; /* Ensure there's enough height for the spinner */
}

.wheel-search-container.busy .wheel-search-options::after {
  content: "\f18c";  /* dashicons-image-rotate */
  font-family: dashicons;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  font-size: 60px;
  animation: 1s infinite ease-in-out spin;
  z-index: 10;
}

.wheel-search-container :is(button, input.button) {
  border: none;
}

@keyframes spin {
  0% {
    transform: rotateZ(0deg) scale(1);
  }
  50% {
    transform: rotateZ(180deg) scale(1.2);
  }
  100% {
    transform: rotateZ(360deg) scale(1);
  }
}

.pagenum h3 {
	color: #E14F0F;
}

.wheel-search-options.wheel-search-horizontal {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 20px;
	max-width: 1440px;
	margin: auto;
	padding: 20px;
}

@media (max-width: 850px) {
	.wheel-search-options.wheel-search-horizontal {
		grid-template-columns: 1fr;
	}
}

.wheel-search-options.wheel-search-horizontal .d-grid {
	margin: 0 !important;
}

.d-grid.wheel-search-martix {
	background: none;
	display: flex;
	gap: 20px;
	padding: 20px 0;
}

.wheel-search-martix img {
	object-fit: contain;
	object-position: top;
	max-width: 56px !important;
}

.wheel-features, .wheel-search-type {
	grid-row: span 2;
}

.page-search-results.loading {
  opacity: 0.6;
  pointer-events: none;
}

.wheel-search-submit {
  display: flex !important;
  gap: 10px;
}

.wheel-search-submit .reset-button {
  background-color: #f5f5f5;
  color: #333;
}

.wheel-search-submit .reset-button:hover {
  background-color: #e0e0e0;
}

.wheel-search-submit input[type="submit"]:hover {
  background-color: #1a6b73;
}

/* Form busy state */
.wheel-search-container.busy {
  opacity: 0.7;
  pointer-events: none;
  overflow: hidden;
}

/* Results busy state */
.page-search-results.busy {
  position: relative;
  opacity: 0.5;
  pointer-events: none;
  min-height: 200px;
}

.page-search-results.busy::after {
  content: "\f18c";  /* dashicons-image-rotate */
  font-family: dashicons;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  font-size: 60px;
  animation: 1s infinite ease-in-out spin;
  z-index: 10;
}

.pagination {
	display: flex;
	justify-content: center !important;
	gap: 20px;
}

.pagination span {
	background: var(--e-global-color-accent);
	padding: 10px 20px;
	border-radius: 3px;
	color: white;
}



.pagination span.current {
	background: var(--e-global-color-accent);
}

.pagination .ajax-page-link {
	border: 1px solid #E14F0F;
	padding: 10px 20px;
	border-radius: 3px;
	transition: all 0.3s ease;
}

@media (max-width: 1035px) {
  .pagination {
    gap: 10px;
    flex-wrap: wrap;
  }

  .pagination span, .pagination .ajax-page-link {
    padding: 5px 10px;
	}
}

.pagination .ajax-page-link:hover {
	background-color: var(--e-global-color-primary);
	color: white;
	border-color: var(--e-global-color-primary);
}

.product-details-buttons {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 10px;
  text-transform: uppercase !important;
}

.product-details-buttons :is(a, button) {
	padding: 10px 20px;
	background: var(--e-global-color-primary);
  color: white !important;
  transition: background 0.3s ease;
  border-radius: 0;
  border: none;
  font-size: 16px;
  font-family: "Nunito Sans", sans-serif;
  text-align: center;
}

.product-details-buttons :is(a, button):hover {
	background: var(--e-global-color-accent);
}

.product-details-table {
  padding: 10px;
}

.push-down {
	margin-top: auto;
}

.elementor-image-gallery .gallery.gallery-columns-4 .gallery-item {
	max-width: 33.33% !important;
}

.header-product-selector-modal {
    display: none;
    position: absolute;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-product-selector-modal.active {
    display: block;
}

.header-product-selector-close {
    position: absolute;
    right: 10px;
    top: 10px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
}

.header-product-selector-content {
    padding: 20px;
}

/* Product Selector Modal */
.product-selector-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    max-height: 100vh;
    overflow-y: auto;
}

.product-selector-modal.active {
    display: block;
}

.product-selector-modal-content {
    width: 100%;
    background: white;
    padding: 20px;
    box-sizing: border-box;
}

@media (max-width: 850px) {
    html:has(.product-selector-modal.active) {
      overflow: hidden !important;
  }
}