.ca-image-button,
.ca_btn {
  background: #0c71c3;
  color: white;
  border: none;
  text-transform: uppercase;
  font-weight: 500;
  padding: 15px 35px;
  border-radius: 0px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.demo-section button {
  background: transparent;
  box-shadow: unset;
  width: 185px;
}

.demo-section {
  display: flex;
  justify-content: center;
}

button#openCalculator {
  background: transparent;
  color: white;
  border: 0px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

button.ca-image-button {
  display: flex;
  justify-content: space-between;
}

.ca-image-button:hover,
.calculator-btn:hover {
  text-decoration: underline;
}

button#calculateBtn {
  margin: 10px 0px;
}

.demo-section svg {
  max-width: 20px;
}

.calculator-content h2 {
  text-align: center;
  font-size: 36px !important;
  font-weight: 900;
  color: white;
}

.calculator-content p {
  color: #ffffff;
  text-align: center;
  font-size: 18px;
}

.input-p {
  text-align: left !important;
}

.calculator-content p {
  font-size: 20px;
}

div#result p {
  padding: 0px;
}

input#bidAmount {
  width: 60%;
  height: 51px;
  border-radius: 0px;
  border: 1px solid gray;
  background: #0b111d;
  margin-right: 15px;
  color: white;
  font-size: 18px;
  padding-left: 10px;
}

div#result p {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

div#result small {
  color: white;
}

/* Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  top: 2%;
  left: 0%;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

input#bidAmount::placeholder {
  color: white;
  font-size: 18px;
  padding-left: 15px;
}

.cs_z_index {
  z-index: 10 !important;
}

.lightbox-container {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-header {
  background: #333;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lightbox-title {
  font-size: 18px;
  font-weight: 500;
}

/* Image Counter */
.image-counter {
  font-size: 16px;
  font-weight: 600;
  background: transparent;
  padding: 8px 16px;
  border-radius: 20px;
  color: white;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.image-container {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.3s ease;
  cursor: grab;
  position: relative;
  z-index: 1;
}

.lightbox-image:active {
  cursor: grabbing;
}

/* Measure Overlay */
.measure-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.3s ease;
}

/* Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 4.5%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.nav-arrow:hover {
  /* background: rgba(0, 0, 0, 0.8); */
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.nav-prev {
  left: 46%;
}

.nav-next {
  right: 45%;
}

.nav-arrow svg {
  width: 24px;
  height: 24px;
}

.zoom-controls {
  background: #333;
  padding: 15px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.zoom-label {
  color: white;
  font-size: 14px;
  min-width: 80px;
}

.zoom-slider {
  flex: 1;
  height: 6px;
  background: #555;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
}

.zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #0c71c3;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.zoom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #764ba2;
}

.zoom-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #0c71c3;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.zoom-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: #764ba2;
}

.zoom-buttons {
  display: flex;
  gap: 8px;
}

.zoom-btn {
  background: #0c71c3;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.zoom-btn:hover {
  background: #764ba2;
  transform: scale(1.1);
}

.reset-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.reset-btn:hover {
  background: #218838;
}

/* Loading animation */
.loading {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0c71c3;
  font-size: 16px;
  z-index: 20;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0c71c3;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Sample content */
.demo-section {
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.demo-section h2 {
  margin-top: 0;
  color: #333;
  margin-bottom: 20px;
}

.calculator-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.calculator-content {
  background: #0b111d;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 500px;
  position: relative;
}

.calculator-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: white;
}
.measurement-badge {
  display: none;
}
/* CSS */
.measurement-badge {
  align-items: center;
  gap: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial;
  color: #0b0b0b; /* main text color */
  background: rgba(
    255,
    255,
    255,
    0
  ); /* transparent — change if you want a background */
  padding: 6px 8px;
  border-radius: 4px;
}
.measurement-badge {
  position: absolute;
  left: 19%;
  z-index: 7;
}
/* icon */
.ma-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  min-width: 28px;
  align-items: center;
  justify-content: center;
  color: #0b0b0b; /* Icon color (uses currentColor inside SVG) */
}

/* text column */
.ma-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

/* title */
.ma-title {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

/* dimensions */
.ma-dimensions {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  /* Use a slightly lighter color if you prefer */
}

/* units inside parentheses — smaller */
.ma-units {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
  color: #666;
}

/* Optional: subtle shadow / backdrop to match screenshot vibe */
.measurement-badge.backdrop {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 10px 12px;
  border-radius: 8px;
}

.result-box {
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
}

.premium_buyer {
  background-color: #111a2d;
}

div#result p {
  padding: 15px 6px;
}

/* Responsive Design */
@media (max-width: 600px) {
  .measurement-badge {
    position: relative;
  }
  .header-nav-container {
    display: flex;
  }
  .lightbox-overlay {
    top: 5%;
  }
  .measurement-badge {
    left: 0%;
    top: 0%;
    position: relative;
  }
  .image-container {
    height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: baseline;
  }

  .ca_product_col {
    z-index: 1 !important;
  }
  .nav-arrow {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    margin: 0 15px;
  }

  .image-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .calculator-modal {
    top: 15%;
  }

  input#bidAmount {
    width: 60%;
  }

  .calculator-content {
    width: 390px;
  }

  .nav-arrow {
    width: 40px;
    height: 40px;
  }

  .nav-prev {
    left: 15%;
    position: unset;
  }

  .nav-next {
    right: 15%;
    position: unset;
  }

  .image-counter {
    font-size: 14px;
    padding: 6px 12px;
  }

  .zoom-controls {
    padding: 10px 15px;
    gap: 10px;
  }
}
/* Responsive tweak (smaller screens) */
@media (max-width: 480px) {
  .ma-title {
    font-size: 12px;
  }
  .ma-dimensions {
    font-size: 13px;
  }
  .ma-units {
    font-size: 11px;
  }
  .ma-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
  }
}
