.elementor-popup-modal .dialog-close-button {
  top: 20px !important;
  right: 35px !important;
  background: #ffffff00;
  padding: 6px;
  border-radius: 30px;
}
.elementor-popup-modal .dialog-close-button:hover {
  background: #fff;
  padding: 6px;
  border-radius: 30px;
}
/* Custom styles for popup product details */
/* Loader styles */
.popup-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.popup-loader .spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007aff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Column gallery layout */
.custom-gallery-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin: 15px 0 30px;
}
.custom-gallery-main-image {
  width: 100%;
  margin: 0;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-radius: 30px;
  border: 1px solid #2e53ed00;
}
img#main-gallery-image {
  height: 400px;
}
.main-gallery-image {
  max-height: 100%;
  /* Image will not exceed the container height */
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
}
/* Remove horizontal scrollbar and prep for carousel */
.custom-gallery-thumbnails {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: hidden;
  position: relative;
  min-height: 80px;
}
.gallery-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}
/* TEMP: Always show arrows for debugging */
button.carousel-arrow.left,
button.carousel-arrow.right {
  display: flex;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: #6e6e73;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  color: #fff;
  opacity: 1;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  flex: none !important;
  align-self: auto !important;
  order: 0 !important;
  user-select: none;
  pointer-events: auto;
  /* Remove default button styles */
  padding: 0;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}
.carousel-arrow.left {
  left: -20px;
}
.carousel-arrow.right {
  right: -20px;
}
button.carousel-arrow.left:hover,
button.carousel-arrow.right:hover {
  background: #1d1d1f;
  color: #fff;
}
.carousel-arrow::-moz-focus-inner {
  border: 0;
}
.carousel-arrow[disabled] {
  opacity: 0.3;
  pointer-events: none;
}
img.gallery-thumbnail {
  border-radius: 15px !important;
  width: 80px;
  height: auto;
  object-fit: cover;
  border: 1px solid #1d1d1f;
  border-radius: 15px;
  cursor: pointer;
  flex: 0 0 auto;
  transition: border 0.2s;
}
.gallery-thumbnail:hover {
  border: 1px solid #1d1d1f;
  border-radius: 15px;
}
.gallery-thumbnail.active {
  border: 1px solid #2e53ed;
  border-radius: 15px;
}
.popup-product-title {
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.3;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  --gradient-start: #1D1D1F;
  --gradient-end: #2e53ed;
  background-image: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}
.popup-product-description {
  padding: 0;
  font-size: 14px;
  color: #6e6e73;
}
.popup-product-logos {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  flex-wrap: wrap;
}
.popup-product-logo img,
.popup-product-logo[src] {
  display: flex !important;
  height: auto !important;
  width: 300px !important;
  max-width: 60px !important;
  min-width: 60px !important;
  margin: 0 !important;
  object-fit: contain !important;
}
.popup-tabs {
  margin: 0 0 50px;
}
.popup-tab-headers {
  margin: 0px 0 10px;
  display: flex;
  gap: 5px;
  padding: 5px;
  border-radius: 30px;
  width: fit-content;
  background: #fff;
}
button.popup-tab-btn {
  background-color: #ff000000 !important;
  color: #1d1d1f !important;
  border: 1px solid #1d1d1f00;
  font-size: 14px;
  padding: 5px 18px;
}
button.popup-tab-btn:hover {
  color: #fff !important;
  background-color: #1d1d1f !important;
}
button.popup-tab-btn.active {
  background-color: #2e53ed !important;
  color: #fff !important;
  border: 1px solid #2e54ed00;
}
.popup-tab-content.popup-tab-content-overview,
.popup-tab-content.popup-tab-content-specification,
.popup-tab-content.popup-tab-content-documents {
  background-color: #fff;
  border-radius: 15px;
  padding: 30px;
}
p.popup-product-paragraph.paragraph-1,
p.popup-product-paragraph.paragraph-2,
p.popup-product-paragraph.paragraph-3,
p.popup-product-paragraph.paragraph-4,
p.popup-product-paragraph.paragraph-5,
p.popup-product-paragraph.paragraph-6 {
  padding: 0;
  margin: 0 0 10px;
}
.popup-tab-content-specification h3:nth-of-type(1) {
  margin: 0 0 15px;
}
h3.popup-section-title {
  font-size: 18px;
  font-weight: 600;
  padding: 0;
  margin: 25px 0 15px;
}
h3#popup-product-literature-title {
  font-size: 18px;
  font-weight: 600;
  padding: 0;
  margin: 0 0 15px;
}
.popup-product-colours {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.popup-product-colour {
  display: flex;
  flex-direction: column;
  align-items: center;
}
img.popup-colour-swatch {
  border-radius: 50% !important;
  height: 50px !important;
  width: 50px !important;
}
span.popup-colour-label {
  padding-top: 10px;
  font-size: 13px;
  width: 60px;
  text-align: center;
}
.popup-product-literature-list {
  display: flex;
  flex-direction: column;
}
a.popup-product-literature-link {
  font-size: 14px;
  padding: 8px 18px 8px 22px;
  margin: 2px 0;
  color: #1d1d1f;
  width: fit-content;
  border-radius: 5px;
  border: 1px solid #1d1d1f00;
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
a.popup-product-literature-link:hover {
  color: #1d1d1f;
  text-decoration: underline;
  text-underline-offset: 4px;
}
a.popup-product-literature-link::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  margin-left: -24px;
  vertical-align: middle;
  background: url('data:image/svg+xml;utf8,<svg width="14" height="14" viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M8 2v8m0 0l-3-3m3 3l3-3M2 14h12" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center center;
  background-size: 14px 14px;
  content: '';
}
a.popup-product-literature-link:hover::before {
  /* Keep icon white on hover */
  filter: none;
}
.elementor-field-group .elementor-field-textual:focus {
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0%);
}
input[type=date],
input[type=email],
input[type=number],
input[type=password],
input[type=search],
input[type=tel],
input[type=text],
input[type=url],
select,
textarea {
  padding: 15px;
}
.elementor-field-group-name::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 16px;
  /* Start at input's vertical center */
  opacity: 0;
  color: #6e6e73;
  font-size: 14px;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 3;
}
.elementor-field-group-name:has(.elementor-field:focus)::after,
.elementor-field-group-name:has(.elementor-field:not(:placeholder-shown))::after {
  content: "Name";
  top: 7px;
  opacity: 1;
  font-size: 7px;
  color: #6e6e73;
  transition: all 0.2s;
  font-weight: 600;
}
.elementor-field-group-email::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 16px;
  opacity: 0;
  color: #6e6e73;
  font-size: 14px;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 3;
}
.elementor-field-group-email:has(.elementor-field:focus)::after,
.elementor-field-group-email:has(.elementor-field:not(:placeholder-shown))::after {
  content: "Email";
  top: 7px;
  opacity: 1;
  font-size: 7px;
  color: #6e6e73;
  transition: all 0.2s;
  font-weight: 600;
}
.elementor-field-group-message::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 16px;
  opacity: 0;
  color: #6e6e73;
  font-size: 14px;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 3;
}
.elementor-field-group-message:has(.elementor-field:focus)::after,
.elementor-field-group-message:has(.elementor-field:not(:placeholder-shown))::after {
  content: "Message";
  top: 7px;
  opacity: 1;
  font-size: 7px;
  color: #6e6e73;
  transition: all 0.2s;
  font-weight: 600;
}
/* Hide placeholder on focus or when not empty for all textual fields */
.elementor-field:focus::placeholder,
.elementor-field:not(:placeholder-shown)::placeholder {
  opacity: 0;
  transition: opacity 0.2s;
}
.elementor-field::placeholder {
  opacity: 1;
  transition: opacity 0.2s;
}
.elementor-field-group-name input:focus {
  padding-top: 20px;
}
.elementor-field-group-email input:focus {
  padding-top: 20px;
}
.elementor-field-group-message textarea:focus {
  padding-top: 25px;
  /* Adjust as needed for your label size */
}
#elementor-popup-modal-45087 .dialog-close-button:hover {
  background-color: #ffffff;
}
@media screen and (min-width: 1px) and (max-width: 450px) {
  .popup-tab-headers {
    gap: 5px;
    padding: 5px;
    flex-direction: column;
    width: auto;
  }
  .popup-producot-title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 10px;
  }
}