@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');


*{margin:0;padding:0;box-sizing:border-box}
  html, body, #root { width:100%; height:100%; }
  body{background-color:#fff; display:flex; flex-direction:column; align-items:center; font-family: "Rubik", sans-serif; overflow:auto;}
  .container{overflow-y:auto;flex-grow:1;width:100%;padding:20px;display:flex}
  .image-wrapper{position:relative;height:fit-content;overflow:hidden}
  .image-wrapper img{display:block;width:100%;height:auto}
  .left-image.image-wrapper {width:98.8%; z-index: 1; --preview-radius: 8px; border-radius: var(--preview-radius);}
  .overlay-container{position:absolute;top:0;left:0;width:100%;height:100%; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; border-radius: var(--preview-radius);}
  .overlay{position:relative;height:100%;overflow:hidden;pointer-events:none}
  .overlay img{width:max-content; height:-webkit-fill-available; object-fit:contain; position:absolute;top:0; width: auto; border-radius: var(--preview-radius);}

  .slider{position:absolute;top:0;left:50%;width:4px;height:100%;background:#fff;cursor:ew-resize;transform:translateX(-50%);z-index:10}
  .slider-handle{position:absolute;top:50%;left:50%;width:30px;height:30px;background:rgba(242,255,255,.5);border-radius:50%;transform:translate(-50%,-50%);border:2px solid #fff;display:flex;justify-content:center;align-items:center;cursor:pointer;box-shadow:0 0 10px rgba(0,0,0,0.3);transition:all .3s ease;}
  .slider-handle:hover{background:#fff;transform:translate(-50%,-50%) scale(1.1)}
  .thumbnail-bar{display:block;justify-content:center;padding:10px;background-color:#fff;white-space:nowrap}
  .thumbnail-bar img{height:100px;margin:0 5px;cursor:pointer;border:2px solid transparent;transition:border .3s; padding:2px;}
  .thumbnail-bar img.active{background-color: #fff;
    border: 3px solid #41d0e0;
    padding: 2px;}
  .thumbnail-bar img:hover{background-color: #fff;
    border: 3px solid #41d0e0;
    padding: 2px;}
  .thumbnail-bar img.corner-img:hover {border:0}
  .main-wrapper {overflow-y:auto;flex-grow:1;width:100%;padding:0;display:flex;margin:0 auto;max-width:1320px}
  .left-side {width:70%; padding-top:5px; position: relative; z-index: 1;}
  .right-side {width:30%; height:770px; overflow-y:auto; overflow-x:hidden; padding-top:5px; position: relative; z-index: 2;}
  .bottom-slider .thumbnail-bar {display:flex;justify-content:start;padding:10px;background-color:#fff;white-space:nowrap}
  .bottom-slider .thumbnail-bar img{height:60px;margin:0 5px;cursor:pointer;border:2px solid transparent;transition:border .3s; border-radius:8px; padding:2px}
  .bottom-slider .thumbnail-bar img.active{background-color: #fff;
    border: 3px solid #41d0e0;
    padding: 2px;}
  .bottom-slider .thumbnail-bar img:hover{background-color: #fff;
    border: 3px solid #41d0e0;
    padding: 2px;}
  .info-icon{position:absolute;bottom:20px;left:20px;color:#fff;cursor:pointer;background:#fff;border-radius:4px;z-index: 9;}
  .download-icon{position:absolute;bottom:20px;right:20px;color:#fff;cursor:pointer;background:#fff;border-radius:4px}
  .info-icon img, .download-icon img{width:40px;height:40px;text-align:center;margin:auto;vertical-align:middle;padding:8px}
  .mobile-message{display:none}

   .download-icon-2 {
    border-radius: 4px;
    top: 15px;
    color: #fff;
    cursor: pointer;
    position: absolute;
    left: 20px;
    width: auto;
    z-index: 10;
}
.download-icon-2 img {
height: 25px;
    width: auto;
}
.pool-card {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
  touch-action: manipulation;
  cursor: pointer;
}

/* Keep overlays/icons anchored to image bounds on all devices. */
.pool-card-media {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

/* Temporary disabled state for products under Retry-In-Progress */
.pool-card.retry-temp-disabled {
  cursor: not-allowed;
}

.pool-card.retry-temp-disabled .retry-temp-disabled-img {
  border: 2px solid #808183 !important;
  opacity: 0.7;
}

.pool-card.retry-temp-disabled .pool-card-media {
  pointer-events: none;
}

.retry-progress-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.retry-progress-icon {
  color: #808183;
  font-size: 20px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.65);
}
.thumbnail:not(.active) {
    border: 2px solid transparent !important;
}

/* .left-image.image-wrapper {width: 100%;  } */
.pool-card .title {
  margin: 0;
  font: normal 500 15px/24px 'Porsche Next', sans-serif;
  letter-spacing: 0;
  color: #010205;
  line-height: 12px;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}
a .icon-box {display:none;}

/* truncate title text */
.truncate-text {
  max-width: 100px; /* adjust width as per your layout */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tooltip wrapper (for subtitle only) */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
  z-index: 5;
}

.tooltip-content-fixed {
  position: absolute;
  bottom: 120%; /* show above the subtitle */
  left: 50%;
  transform: translateX(-50%);
  background-color: #000;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  z-index: 9999; /* ensures above other cards */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

/* Show tooltip on hover */
.tooltip-wrapper:hover .tooltip-content-fixed {
  visibility: visible;
  opacity: 1;
}


/* Optional tooltip arrow */
.tooltip-content-fixed::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
}

/* subtitle style */
.pool-card small {
  font-size: 14px;
  color: #4A4A4A;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.pool-card .mt-2.text-right {
  padding: 0px 10px;
}

  .material-group.collapsed {border:1px solid #eee; box-shadow:none}
  .material-group{margin-bottom:20px;border-bottom:1px solid #eee;padding:0; box-shadow:0 3px 10px #00000030; border-radius:8px}
  .material-group h5{margin-bottom:0!important;color:#010205;cursor:pointer;padding:15px;background-color:transparent;border-radius:5px 5px 0 0;display:flex;justify-content:space-between;align-items:center; font-size:15px; font-weight:500; letter-spacing:.3px}
  .material-group h5 i{transition:transform .3s ease; font-weight:600; font-size:11px; color:#808183}
  .material-group h5[aria-expanded="true"] i{transform:rotate(180deg)}
  .base-image{width:100%;height:auto;display:block;border-radius: var(--preview-radius);}
  .overlay#copingOverlay,.overlay#spaOverlay,.overlay#vaOverlay,.overlay#deckOverlay,.overlay#wtOverlay {position:absolute;top:0}
  .overlay#copingOverlay {z-index: 9;}
  .active-angle { border:3px solid #007bff }
  .material-group .p-l-15 {
    padding-left:25px;
    padding-right:25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .material-group .p-l-15 .width-50 {display:flex}
  .material-group .collapse {padding-top:20px; border-top:1px solid transparent}
  .material-group .collapse.show {padding-top:20px; border-top:1px solid #eee}
  .top-header, .info-header {padding:15px 0px 5px 30px; display:flex; justify-content:space-between; align-items:center; /*border-bottom:1px solid #ddd;*/ background-color:#fff; width:100%}
  .top-header {border-bottom:0; padding-top:10px;padding-left: 15px;}
  .right-heading-icon{display: flex; align-items: center; gap: 16px; margin-right: 25px;}

  .logo-section {display:contents; align-items:center; gap:15px}
  .logo {height:50px}
  .logo-section h1 {font-size:30px; margin:0; font-weight:800}
  .icons {display:none; gap:10px; font-size:16px; flex-direction:column; position:absolute; top:60px; right:30px; background-color:#fff; border:1px solid #ccc; padding:10px}
  .icons.show {display:flex}
  .info-header {display:flex}
  .contact-info, .project-info {display:inline-flex; gap:0; font-size:15px; color:#4A4A4A}
  .contact-info div, .project-info div {min-width:100px; line-height:1.4; margin-bottom:10px}
  .summary-btn, .loan-btn {border: 1px solid #010205;  border-radius: 4px; font-size: 14px; font-weight: 500; letter-spacing: .4px; padding: 6px 14px; background-color: #fff; color: #010205;}
  /* .summary-btn {background-color:#fff;color:#010205}
  .summary-btn:hover {background-color:#010205;color:#fff}
  .loan-btn {background-color:#010205;color:#fff}
  .loan-btn:hover {background-color:#fff;color:#010205} */
  .loan-btn:hover, .loan-btn:active, .summary-btn:hover, .summary-btn:active {    background-color:  #010205 ; color:#fff; }

.actions {display:flex; gap:15px; font-size:12px; justify-content: flex-end; padding-right: 14px;}
.font-17 {font-size:17px; font-weight: 600;}
.font-italic{ font-style:italic; text-decoration: none !important;}
.font-italic[x-apple-data-detectors] { text-decoration: none !important;} 
  .cost-icon{display:inline-block;vertical-align:top; padding-top:8px; font-size:20px; padding-right:2px; color:#808183}
  /* Loader */
  .loader-container {position: fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:9999;background:rgba(255,255,255,0.7)}
  .loader {border:5px solid #f3f3f3;border-top:5px solid #3498db;border-radius:50%;width:50px;height:50px;animation:spin 2s linear infinite}
  button:disabled {
    background: linear-gradient(to right, #e0e0e0, #eeeeee);
    color:#999;
    cursor: not-allowed;
    border-color: #e0e0e0;
  } 

.logo-poolpix-2{height: 40px;}

  
.icon-box {padding: 0px 20px 0px 10px;}
a .icon-box {opacity:0.8;}
a .icon-box:hover {opacity:1;}

.logo-section div a {margin: auto 0px;padding: 5px;}
.logo-section div a:hover {background: #f5f5f5;}
button:disabled:hover {color: #999;}
.menu-toggle {display: inline-block; font-size: 20px; cursor: pointer;}

  /* New style for loader */
  .loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6); /* dark glass effect */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  backdrop-filter: blur(4px); /* frosted glass */
}

.loader-box {
  /* background: white; */
  padding: 20px;
  border-radius: 6px;
  /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); */
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}

.loader-box span {
  margin: 0 auto;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #e5e7eb;
  border-top: 6px solid #3b82f6;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  animation: spin 1s linear infinite;
}

.loader-text {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b; /* slate-800 */
  font-family: "Rubik", sans-serif;
}

/* Inline loader for overlays */
.loader-inline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.loader-inline .spinner {
  width: 30px;
  height: 30px;
  border-width: 4px;
  margin: 0 auto;
}

.loader-inline .loader-text {
  font-size: 12px;
  font-weight: 500;
  color: #1e293b;
  font-family: "Rubik", sans-serif;
}

.alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: rgba(0, 0, 0, 0.6); */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1300;
  backdrop-filter: blur(6px);
  background: rgba(15, 23, 42, 0.65);
}

.alert-modal {
  background: #fff;
  padding: 30px 50px;
  border-radius: 5px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  animation: popup 0.3s ease-out;
}

.alert-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.alert-message {
  font-size: 16px;
  margin-bottom: 20px;
  color: #444;
}

/* AI Pool page layout */
.ai-pool-page {
  width: 100%;
  min-height: 100vh;
  background: #fff;
  --ai-blue: #35659e;
}

.ai-pool-layout {
  gap: 20px;
}

.ai-panel {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 3px 10px #00000014;
  padding: 16px;
}

.ai-preview-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-title {
  font-size: 20px;
  font-weight: 700;
  color: #010205;
}

.ai-subtitle {
  font-size: 13px;
  color: #4a4a4a;
}

.ai-preview {
  min-height: 420px;
}

.ai-enhance-card {
  background: #fff;
  border: 1px solid #e6eef7;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 18px #00000014;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-enhance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-enhance-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}

.ai-enhance-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.ai-enhance-scroll::-webkit-scrollbar {
  height: 6px;
}

.ai-enhance-scroll::-webkit-scrollbar-track {
  background: #e9edf2;
  border-radius: 999px;
}

.ai-enhance-scroll::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ai-blue) 70%, #ffffff);
  border-radius: 999px;
}

.ai-enhance-rail {
  height: 4px;
  background: #e6e9ef;
  border-radius: 999px;
  width: 75%;
}

.ai-pill-large {
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 999px;
  box-shadow: none;
  border: 1px solid #e0e6ef;
  background: #fff;
  color: #2f3b52;
}

.ai-pill.ai-pill-large.active {
  border-color: var(--ai-blue);
  color: var(--ai-blue);
  background: #f5f9ff;
}

.ai-apply-btn {
  min-width: 0;
  height: 26px;
  border-radius: 999px;
  font-size: 11px;
  padding: 0 10px;
  gap: 4px;
  width: auto;
  max-width: max-content;
  display: inline-flex;
  align-self: flex-start;
  background: var(--ai-blue);
  border-color: var(--ai-blue);
  color: #fff;
  box-shadow: 0 6px 14px #35659e33;
}

.ai-history-card {
  background: #fff;
  border: 1px solid #e6eef7;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 14px #00000012;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-history-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

.ai-history-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.ai-history-item {
  width: 180px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f7f7f7;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ai-history-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ai-history-item:hover {
  border-color: var(--ai-blue);
  box-shadow: 0 4px 10px #0000001a;
}

.ai-history-add {
  border: 2px dashed #cbd5e1;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
  flex-direction: column;
}

.ai-history-add span {
  text-align: center;
}

.ai-upload {
  border: 2px dashed #d5d5d5;
  border-radius: 12px;
  min-height: 420px;
  background: #f7f7f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  padding: 16px;
  gap: 8px;
}

.ai-upload-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ai-blue);
  box-shadow: 0 2px 6px #0000001f;
}

.ai-upload-title {
  font-size: 16px;
  font-weight: 600;
  color: #010205;
}

.ai-upload-subtitle {
  font-size: 13px;
  color: #6b7280;
}

.ai-hidden-input {
  display: none;
}

.ai-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
}

.ai-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ai-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 6px;
  text-align: center;
  padding: 16px;
}

.ai-overlay-title {
  font-weight: 600;
}

.ai-overlay-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

.ai-spin {
  animation: spin 1s linear infinite;
}

.ai-compare {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
}

.ai-tag {
  position: absolute;
  top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 6;
}

.ai-tag-before {
  left: 14px;
  background: #2b2010;
  color: #f9f4e8;
}

.ai-tag-after {
  right: 14px;
  background: color-mix(in srgb, var(--ai-blue) 86%, #1aa7a1);
  color: #ffffff;
}

.ai-compare-before {
  position: absolute;
  inset: 0;
}

.ai-slider-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.ai-slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  z-index: 4;
  transform: translateX(-50%);
}

.ai-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a4a4a;
  box-shadow: 0 2px 8px #00000033;
}

.ai-right {
  padding-left: 0;
}

.ai-right::-webkit-scrollbar {
  width: 8px;
}

.ai-right::-webkit-scrollbar-track {
  background: #f2f4f7;
  border-radius: 999px;
}

.ai-right::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ai-blue) 65%, #ffffff);
  border-radius: 999px;
  border: 2px solid #f2f4f7;
}

.ai-right::-webkit-scrollbar-thumb:hover {
  background: var(--ai-blue);
}

.ai-right {
  scrollbar-width: thin;
  scrollbar-color: var(--ai-blue) #f2f4f7;
}

.ai-section {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px #00000014;
}

.ai-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ai-blue);
  margin-bottom: 10px;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.ai-option-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-option-card.active {
  border-color: var(--ai-blue);
  background: #f5f9ff;
  box-shadow: 0 2px 6px #00000014;
}

.ai-option-icon {
  width: 44px;
  height: 44px;
  color: var(--ai-blue);
}

.ai-option-label {
  font-size: 11px;
  font-weight: 700;
  color: #4a4a4a;
  text-align: center;
}

.ai-vibe-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.ai-vibe-card.active {
  border-color: var(--ai-blue);
  box-shadow: 0 2px 6px #00000014;
}

.ai-vibe-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

.ai-vibe-label {
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #4a4a4a;
}

.ai-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-enhance-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-suboptions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ai-suboption {
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #4a4a4a;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-suboption.active {
  border-color: var(--ai-blue);
  background: #f5f9ff;
  color: var(--ai-blue);
}

.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  color: #4a4a4a;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ai-pill.active {
  border-color: var(--ai-blue);
  background: #f5f9ff;
  color: var(--ai-blue);
}

.ai-pill.ai-apply-btn {
  background: var(--ai-blue);
  border-color: var(--ai-blue);
  color: #fff;
}

.ai-primary-btn {
  width: auto;
  border: 1px solid var(--ai-blue);
  background: var(--ai-blue);
  color: #fff;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-primary-btn--full {
  width: 100%;
}

.ai-primary-btn:disabled {
  background: #e0e0e0;
  border-color: #e0e0e0;
  color: #999;
  cursor: not-allowed;
}

.ai-secondary-btn {
  border: 1px solid #35659e;
  background: #fff;
  color: #35659e;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.ai-secondary-btn:hover {
  background: #f5f9ff;
}

.ai-error {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fff2f2;
  color: #b91c1c;
  border: 1px solid #f5c2c2;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 12px;
}

.ai-tooltip {
  position: fixed;
  z-index: 9999;
  background: #111827;
  color: #fff;
  font-size: 11px;
  line-height: 1.3;
  padding: 8px 10px;
  border-radius: 6px;
  transform: translate(-50%, -100%);
  pointer-events: none;
  width: 200px;
  text-align: center;
  box-shadow: 0 6px 18px #00000033;
}

.ai-tooltip-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #111827;
}

@media (max-width: 1024px) {
  .ai-pool-layout {
    flex-direction: column;
  }

  .ai-image-wrap,
  .ai-compare {
    aspect-ratio: 4 / 3;
  }
}

.alert-btn {
  padding: 8px 16px;
  background: #007bff;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  width: 50%;
}

.alert-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

/* Overlay */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65); /* dark backdrop */
  backdrop-filter: blur(6px); /* glass blur */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.25s ease-in-out;
}

/* Modal box */
.confirm-modal {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-radius: 5px;
  padding: 30px 50px;
  width: 95%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  animation: scaleUp 0.3s ease-out;
  position: relative;
}

/* Title */
.confirm-title {
  font-size: 22px;
  font-weight: 600;
  color: #1e293b; /* slate-800 */
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Message */
.confirm-message {
  font-size: 18px;
  color: #475569; /* slate-600 */
  margin-bottom: 30px;
  line-height: 1.5;
}

/* Actions */
.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* Cancel button */
.btn-cancel {
  border: 1px solid #010205; 
  border-radius: 4px; 
  background: #fff; 
  color: #010205; 
  font-size: 14px; 
  font-weight: 500; 
  letter-spacing: .4px; 
padding: 6px 14px;
}

.btn-cancel:hover {
      background-color:  #010205 ; color:#fff; transform: none; 
}

/* Confirm button */
.btn-confirm {
  background: #010205;
  border:1px solid #010205;        
  border-radius: 4px;
  box-shadow: none; 
  color: #fff;    
  font-size: 14px; 
  font-weight: 500; 
  padding: 6px 14px; 
  transition: none; 
  letter-spacing: .4px;
}

.btn-confirm:hover {
  background:#010205; color:#fff;  box-shadow: none; transform: none;
}

/* Close button (top-right X) */
.close-btn {
  position: absolute;
  top: 5px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 22px;
  font-weight: bold;
  color: #64748b; /* slate-500 */
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.close-btn:hover {
  color: #fff; /* red when hovered */
}

/* src/components/toast/Toast.css */
.toast-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  min-width: 250px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  z-index: 2000;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
  animation: slideIn 0.3s ease-out;
  vertical-align: middle;
}

.toast-bar.success {
  background: #28a745;
}

.toast-bar.error {
  background: #dc3545;
}

.toast-bar.info {
  background: #17a2b8;
}

.toast-bar .close-btn {
  position: static;
  background: transparent;
  border: none;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
  font-weight: normal;
}

.center-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20; /* higher than overlays */
  background: rgba(255, 255, 255, 0.6); /* optional dim */
  border-radius: 8px;
  padding: 10px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes popup {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes spin {0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
.content-container {width:100%; padding-top:0px}

.content-container.fullscreen-sidebar-active .right-side {
  border-radius: 16px 0 0 16px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  position: fixed !important;
  top: 50% !important;
  right: 28px !important;
  transform: translateY(-50%);
  height: auto !important;
  max-height: calc(100vh - 96px);
  padding: 12px;
  z-index: 1400;
  transition: transform 0.28s ease, opacity 0.22s ease, box-shadow 0.28s ease;
  will-change: transform, opacity;
}

.content-container.fullscreen-sidebar-active .right-side.fullscreen-sidebar-hidden {
  transform: translate(120%, -50%);
  opacity: 0;
  pointer-events: none;
}

.content-container.fullscreen-sidebar-no-transition .right-side,
.content-container.fullscreen-sidebar-no-transition .fullscreen-sidebar-toggle {
  transition: none !important;
}

.fullscreen-sidebar-toggle {
  position: fixed;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  z-index: 1450;
  width: 34px;
  height: 84px;
  border: none;
  border-radius: 16px 0 0 16px;
  background: #35659e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(53, 101, 158, 0.32);
  transition: right 0.28s ease, background-color 0.2s ease, box-shadow 0.28s ease;
}

.fullscreen-sidebar-toggle.sidebar-open {
  right: calc(30vw + 11px);
}

.fullscreen-sidebar-toggle.sidebar-closed {
  right: 0;
}

/* Fullscreen */
/* .fullscreen-mode {position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0,0,0,0.9);z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px} */
.fullscreen-mode {
  position: fixed;
  top: 0;
  left: 0;
 width: 100% !important; 
  height: 100%;
  background-color: #000000e6;
  padding: 20px;
  z-index: 1300;
  overflow-y: auto !important;
  box-sizing: border-box;
  display: flex;
  justify-content: center;

}
.fullscreen-mode .image-wrapper {width:90%!important;height:80%!important;max-width:1200px}
.fullscreen-mode.image-wrapper .base-image {border-radius: 8px; height: auto; width: 100%;}
.fullscreen-mode .media-stage {
  overflow: hidden;
  border-radius: 8px;
}
.fullscreen-zoom-frame {
  position: relative;
  width: 100%;
  transform-origin: center center;
}
.fullscreen-mode .fullscreen-zoom-frame {
  transition: transform 0.22s ease;
}
.fullscreen-mode .fullscreen-zoom-frame.zoomed-out {
  cursor: zoom-in;
}
.fullscreen-mode .fullscreen-zoom-frame.zoomed-max {
  cursor: zoom-out;
  touch-action: none;
}
.fullscreen-mode .fullscreen-zoom-frame.is-panning,
.fullscreen-mode .fullscreen-zoom-frame.is-panning img,
.fullscreen-mode .fullscreen-zoom-frame.is-panning .overlay-container,
.fullscreen-mode .fullscreen-zoom-frame.is-panning .overlay {
  cursor: grabbing;
}
.fullscreen-mode .fullscreen-zoom-frame.zoomed-max .slider,
.fullscreen-mode .fullscreen-zoom-frame.zoomed-max .slider-handle,
.fullscreen-mode .fullscreen-zoom-frame.zoomed-out .slider,
.fullscreen-mode .fullscreen-zoom-frame.zoomed-out .slider-handle {
  cursor: ew-resize;
}

/* .fullscreen-mode .slider-handle {width:40px;height:40px} */
.fullscreen-mode .slider {width:6px}
.fullscreen-close {position:absolute;top:4px;right:4px;font-size:30px;color:#fff;cursor:pointer;z-index:1001;background: rgb(0 0 0 / 86%);width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.fullscreen-header {position:absolute;top:0px;left:inherit;font-size:18px;color:#fff;z-index:1001;background:rgba(0,0,0,0.5);padding:10px 20px;border-radius:5px}
.fullscreen-zoom-controls {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1301;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.fullscreen-zoom-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}
.fullscreen-zoom-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.fullscreen-mode .info-icon, .fullscreen-mode .download-icon {display:none}

.content-wrapper {
  /* max-width: 880px; */
  max-width: fit-content;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  margin: auto;
  user-select: none;
}

.media-stage {
  position: relative;
  width: 100%;
}

.create-video-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 12;
  background: #35659e;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(53, 101, 158, 0.3);
  cursor: pointer;
}

.create-video-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.media-next-btn,
.media-prev-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e3e7ee;
  background: #fff;
  color: #35659e;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.media-next-btn {
  right: 10px;
}

.media-prev-btn {
  left: 10px;
}

.media-next-btn:disabled,
.media-prev-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.video-preview {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #f3f5f8;
  overflow: hidden;
  display: block;
  position: relative;
}

.video-merge-live {
  position: relative;
  width: 100%;
}

.video-merge-live .overlay-container {
  position: absolute;
  inset: 0;
}

.video-preview .overlay-container {
  position: absolute;
  inset: 0;
}

.video-preview .base-image {
  width: 100%;
  height: auto;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #4a5568;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  z-index: 10;
}

.video-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.video-placeholder-inner i {
  font-size: 22px;
  color: #35659e;
}

.video-placeholder-title {
  font-weight: 700;
  font-size: 13px;
  color: #2f3b52;
}

.video-placeholder-subtitle {
  font-size: 12px;
  color: #6b7280;
}

.video-ready {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-frame {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 42px;
  background: rgba(0, 0, 0, 0.25);
}

.video-ready-text {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.slider-handle {
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: ew-resize;
  position: relative; /* Required for positioning the arrows */
}

/* Common styles for both arrows */
.slider-handle::before,
.slider-handle::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-style: solid;
  border-color: #333;
  top: 50%;
}

/* Create the left arrow shape */
.slider-handle::before {
  border-width: 0 0 3px 3px;
  left: 15px;
  transform: translateY(-50%) rotate(45deg);
}

/* Create the right arrow shape */
.slider-handle::after {
  border-width: 3px 3px 0 0;
  right: 15px;
  transform: translateY(-50%) rotate(45deg);
}


.content-container .nav-item {
  border-top: 2px solid transparent; 
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-bottom: none;            
  border-radius: 4px 4px 0 0;
  transition:all 0.3s ease-in-out;

}


.content-container .nav-item.active  {
  border-top: 2px solid #35659e; 
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  border-bottom: none;            
  border-radius: 4px 4px 0 0;
  /* margin-bottom: -1px;  */
  background-color: #f9f9f9;
  color: #35659e;
  border-color: #35659e #eee transparent #eee;
  transition:all 0.3s ease-in-out;
}

.content-container .nav-item:hover  {
  border-top: 2px solid #41d0e0; 
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  border-bottom: none;            
  border-radius: 4px 4px 0 0;
  /* margin-bottom: -1px;  */
  background-color: #f9f9f9;
  color: #2eb5c5;
  border-color: #41d0e0 #eee transparent #eee;
  transition:all 0.3s ease-in-out;
}






.content-container .nav-item .nav-link {color: #b9b8b8;}

.content-container .nav-item.active .nav-link {
  color: #35659e;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.content-container .nav-item .nav-link .dropdown .btn {background-color: transparent; border: 0;}
.content-container .nav-item .nav-link {border-color: transparent;}
.content-container .nav-item .nav-link:hover, .content-container .nav-item .nav-link:focus {border-color: transparent; color: #2eb5c5;}
.content-container .nav-item .dropdown .btn {background-color: transparent; border-color: transparent; color: #555454;font-size: 20px;font-weight: 600;}
.content-container .nav { padding-left: 25px; padding-top: 5px;}

.material-group .collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.material-group .collapse.show {
  max-height: 1000px;
}
.material-group h5 i {
  transition: transform 0.3s ease;
}
.material-group h5[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* This wrapper contains tabs + dropdown inside slider container */
/* .tabs-wrapper,
.combo-section,
.nav-tabs {
    overflow: visible !important;
} */

/* Dropdown must always stay above slider */
.dropdown-menu.show {
    position: fixed  !important;
    /* z-index: 99 !important; */
    /* top: 35px !important;
    /* left: auto !important; */
    /* right: 0 !important; */
    /* transform: none !important; */
}
/* Force dropdown above images */
.dropdown-menu {
    z-index: 99999999 !important;
}

/* Fix image container blocking dropdown */
.image-wrapper {
    /* overflow: visible !important; */
    z-index: 1;
}

/* Ensure card wrapper doesn't clip dropdown */
.pool-card {
    overflow: visible !important;
    position: relative;
    z-index: 2;
}
/* Ensure material selector does NOT cover dropdown */
.material-selector,
.material-list-wrapper,
.material-box,
#materialBox,
.water-material-container {
    overflow: visible !important;
    position: relative !important;
    z-index: 1;
}

/* Dropdown highest priority */
.dropdown-menu {
    z-index: 99999999 !important;
    position: absolute !important;
}

.combo-full-overlay {
  transition: clip-path 0.25s ease-out;
}
.overlay img {
  transition: width 0.25s ease-out, clip-path 0.25s ease-out;
}
/* .slider {
  transition: left 0.25s ease-out;
} */
/* Black bold arrows for Bootstrap Carousel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none !important; /* remove default arrow */
  width: 40px !important;
  height: 40px !important;
  border: solid black;
  border-width: 0 6px 6px 0; /* thickness = bold */
  display: inline-block;
  padding: 10px;
}

/* Left arrow */
.carousel-control-prev-icon {
  transform: rotate(135deg); /* ← */
}

/* Right arrow */
.carousel-control-next-icon {
  transform: rotate(-45deg); /* → */
}
.pp-progress-wrapper {
  width: 300px;
  height: 22px;
  background: #e5e7eb;
  border-radius: 20px;
  margin: 25px auto 15px auto;
  position: relative;
  overflow: hidden;
}

.pp-progress-fill {
  height: 100%;
  background: #1e88e5;
  border-radius: 20px;
  transition: width 0.25s linear;
}

.pp-progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
  pointer-events: none;
}
.pp-progress-wrapper {
  width: 300px;
  height: 22px;
  background: #e5e7eb;
  border-radius: 20px;
  margin: 25px auto 15px auto;
  position: relative;
  overflow: hidden;
}

.pp-progress-fill {
  height: 100%;
  background: #1e88e5;
  transition: width 0.25s linear;
}

.pp-progress-text {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 12px;
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}
/* HARD RESET BOOTSTRAP PROGRESS OVERRIDES */
.progress,
.progress-bar {
  all: unset !important;
}

/* FULLY REMOVE Bootstrap before applying your styles */
.progress,
.progress-bar {
  display: block !important;
}
.dropdown-item {padding-top: 10px; padding-bottom: 10px;}
.nav-tabs .dropdown-menu {padding:0; border-radius:0px;}
.dropdown-item:focus, .dropdown-item:hover { background-color:#f7f7f7;}

/* button.summary-btn[disabled] {
    border-color: #999 !important;
    background: #fff !important;
} */
button.summary-btn[disabled],
 button.loan-btn[disabled]{
    background: #fff !important;
    border-color: #e0e0e0 !important;
    color: #e0e0e0 !important;
    cursor: not-allowed;
}
.top-header, .info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-item.save-icon-btn {display: none;}
.combo-tabs-bar.phone-device .nav-item.save-icon-btn {display: inline-block;}
.combo-tabs-bar.phone-device .nav-item.save-icon-btn {
  background: #f9f9f9;
  border-radius: 4px 4px 0 0;
  border-style: solid solid none;
  border-width: 2px 1px medium;
  padding: 10px 12px;
  margin-right: 7px;
  margin-left: 0;
  line-height: 1;
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.combo-tabs-bar.phone-device .nav-item.save-icon-btn img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* @media (max-width: 1366px) {
    .content-wrapper {max-width: 100% !important;}
} */


.share-icon-bg
{background-image: url(../../public/images/share-icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 20px;
    height: 20px;margin-right: 15px;}

.share-icon-bg:hover {background-image: url(../../public/images/share-icon-blue.png);}

.share-copy-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #222222;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  z-index: 10050;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.failed-retry-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(220, 53, 69, 0.15);
  border-radius: 8px;
  border: 2px solid #dc3545;
  z-index: 10;
}

.failed-retry-panel {
  background-color: #fff;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  margin: 30% auto 0;
  width: 70%;
}

.failed-retry-btn {
  margin-top: 8px;
  padding: 6px 12px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
}

.failed-retry-btn:disabled {
  background-color: #6c757d;
  color: #fff;
}

@media (min-width: 1025px) {
  .content-container {
    overflow: visible;
  }

  .main-wrapper {
    overflow: visible;
  }

  .combo-tabs-bar {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: #fff;
    border-bottom: 1px solid #eee;
  }

  .desktop-info-header {
    padding-left: 25px;
    padding-right: 25px;
  }

  .desktop-info-header .col-md-2 {
    width: 20%;
  }

  .desktop-header-actions {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .content-container .main-wrapper .right-side {
    position: sticky;
    top: 72px;
    align-self: flex-start;
    height: calc(100vh - 84px);
    max-height: calc(100vh - 84px);
  }

  /* Show 3 rows (6 products) per expanded group, scroll inside the group. */
  .right-side {
    --product-row-height: 140px;
  }

  .right-side .material-group .p-l-15 {
    max-height: calc((var(--product-row-height) * 3) + 24px);
    overflow-y: auto;
    padding-bottom: 12px;
    gap: 12px 16px;
  }

  .right-side .material-group .p-l-15 .width-50 {
    min-height: var(--product-row-height);
  }

  .right-side .pool-card {
    height: 100%;
  }

  .right-side .pool-card img.main-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
  }
}

/* Maruti dummy design  */
.custom-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 280px;
  text-align: center;
}

.modal-box button {
  width: 100%;
  margin-top: 10px;
}

.retry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.retry-modal {
  background: #ffffff;
  width: 360px;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: popupScale 0.2s ease;
}

@keyframes popupScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.retry-title {
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

.retry-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.retry-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

.retry-option:hover {
  background: #f4f7ff;
  border-color: #4a6cf7;
}

.retry-option.active {
  background: #e7ecff;
  border-color: #4a6cf7;
  font-weight: 600;
}

.retry-option input {
  accent-color: #4a6cf7;
}

.retry-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.cancel-btn {
  background: #6c757d;
  color: white;
}

.save-btn {
  background: #4a6cf7;
  color: white;
}

.save-btn:disabled {
  background: #b7c3ff;
  cursor: not-allowed;
}

.retry-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.retry-modal {
  background: #ffffff;
  width: 1200px;
  max-width: 95vw;
  max-height: 95vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: popupScale 0.2s ease;
}

.retry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  position: relative;
  padding-right: 28px;
}

.retry-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  padding: 0;
}

.retry-section {
  margin-top: 20px;
}

.section-tag {
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 10px;
}

.section-tag.blue {
  background: #e7f0ff;
  color: #2354d7;
}

.section-tag.green {
  background: #e9f9ef;
  color: #1c8c4c;
}

.section-tag.red {
  background: #e9f9ef;
  color: #87190e;
}

.section-tag.darkred {
  background: #e9f9ef;
  color: #8B0000;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.check-card {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.2s ease;
  position: relative;
}
.check-card:hover:not(.disabled) {
  border-color: #35659e;
  box-shadow: 0 2px 8px rgba(53, 101, 158, 0.2);
}
.check-card.selected {
  border-color: #35659e;
  background: #e7ecff;
}
.check-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.check-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check-card-image {
  aspect-ratio: auto;
  width: 100%;
  min-height: 48px;
  padding: 35px 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-card-image i {
  font-size: 30px;
  color: #4a6cf7;
}
.check-card.selected .check-card-image i {
  color: #2354d7;
}
.check-card-label {
  padding: 20px 8px;
  font-size: 16px;
  text-align: center;
  line-height: 1.25;
}

textarea {
  width: 100%;
  min-height: 80px;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 10px;
}

.retry-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}


@media (max-width:1250px){
  /* .contact-info,.actions {width: 97%;} */
  .actions { justify-content: flex-end;}
}


@media (max-width:1200px){
.material-group .p-l-15 {padding-left: 20px;}
.pool-card img.main-img {width: 87%;}
.right-side {width: 33%;margin-left: 0px;}
.left-side {width: 65%; padding: 5px; margin-left: 10px;}
.pool-card .mt-2.text-right {padding: 10px 10px 0px;}
/* .pool-card small {overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;} */
}


@media (max-width:1030px){ 
  .content-container .nav {
    width: 100%;
    padding: 15px 10px 0px 15px;
    margin-bottom: 5px !important;
  }
}




/* @media (min-width: 1025px) {
  .elementPositioning { 
    left: -152px; 
  }
}

@media (min-width: 1025px) {
  .elementPositioning { 
    left: -152px; 
  }
} */


@media (max-width:1024px){ 
  .right-side{height: 620px;}
  .overlay {
    pointer-events: none;
  }
  .overlay img {
    pointer-events: none;
  }

}

@media (min-width: 769px) and (max-width: 820px) { /* Your styles for the newer iPad Air/iPad 10th gen in portrait */ 
.info-header {padding:15px 0 5px 20px;}
.material-group .p-l-15 {grid-template-columns:  repeat(4,1fr)  ;} 
.contact-info div {font-size: 12px;}
.font-17 {font-size: 15px;}
.contact-info div, .project-info div {min-width: 95px;}

}  


/* --- For Phones and Tablets in Landscape --- */
@media screen and (orientation: landscape) and (min-width: 600px) and (max-width: 950px) {
 .text-muted {font-size: 13px;}
 .left-side {width: 65%;}
 .right-side {width: 33%;}
 .main-wrapper {display: flex;}
 /* .pool-card img.corner-img { width: 35px; height: 35px;} 
 .material-group .p-l-15 {padding-left: 15px;}*/
.pool-card img.main-img {display: inline-block; height: 60px;}
.pool-card img.corner-img {position: initial; width: 92%; height: auto;top: inherit;bottom: 30px; }
.material-group .p-l-15 {padding-left: 12px; grid-template-columns: repeat(2, 1fr);}
.thumbnail-bar img {padding: 0; margin: 0 auto;}
.pool-card .mt-2.text-right {padding: 0px 4px 0px;}
.material-group h5 { padding: 12px 15px;}
}

@media screen and (orientation: landscape) and (min-width: 901px) and (max-width: 930px) {
  .right-side {height: 530px;}
}


@media screen and (orientation: landscape) and (min-width: 801px) and (max-width: 900px) {
   .right-side {height: 560px;}
}








@media (max-width:992px){
.pool-card .mt-2.text-right {padding: 5px 10px 0px;}
.right-side {height: 580px;}
.pool-card img.corner-img {left: -14px; width: 40px; height: 40px;}
.cost-icon {display: none;}
.download-icon-2 img {
height: 20px;}
  }

@media (max-width:930px) {.right-side {height: 565px;}}

@media (max-width:900px) {.right-side {height: 560px;} }

@media (max-width:880px) {.right-side {height: 540px;} }

@media (max-width:850px){.right-side {height: 530px;}}

@media (max-width:820px){.right-side {height: 520px;}}






@media only screen 
  and (min-width: 744px) 
  and (max-width: 834px) 
  and (orientation: portrait) {
     .left-side, .right-side{width:100%;}
     .left-side {padding: 0; margin-left: 0;}
     .main-wrapper {display: block;}
     .right-side {height: auto;}
     .pool-card img.corner-img {width: 80px; height: 80px;top: 60%;}
     .pool-card .mt-2.text-right {padding: 5px 10px 0px;}
  }





@media (max-width:767px){
  .fullscreen-sidebar-toggle {
    right: 0;
    width: 30px;
    height: 72px;
    border-radius: 12px 0 0 12px;
  }

  .fullscreen-sidebar-toggle.sidebar-open,
  .fullscreen-sidebar-toggle.sidebar-closed {
    right: 0;
  }

  html, body, #root, .content-container {
    overflow-x: hidden !important;
  }

  .combo-tabs-bar {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .combo-tabs-bar .nav-item {
    flex: 0 0 auto;
  }

  .hideBtn {display: none !important;}
  .text-muted {font-size: 13px; margin-bottom: 6px;}
  .mobile-message{display:block;color:#fff;text-align:center;margin:10px;}
  .main-wrapper {display:block; overflow-y: inherit;}
  .content-container {padding:0px}
  .left-side, .right-side{width:100%}
  .fullscreen-mode .image-wrapper {width:95%!important;height:60%!important;}
  .contact-info, .project-info {display:contents;}
  .pool-card .mt-2.text-right {padding: 10px 10px 0px;}
  .right-side {margin-top: 0px; margin-bottom: 60px; overflow: scroll; height: 420px;}
  /* .pool-card img.corner-img {width: 40px; height:40px;top: inherit;bottom: 30px;} */
  .left-side {padding: 0; margin-left: 0;}
  .left-image.image-wrapper {width: 100%;  z-index: 1; --preview-radius: 8px; border-radius: var(--preview-radius);}
  /* .image-wrapper img {border-radius: 0px !important;} */
  .container.bottom-slider {max-width: fit-content;}
  .top-header { padding: 10px 10px 5px;display: flex; text-align: center;}
  .logo {    margin-bottom: 10px; display: none;}
  .right-heading-icon{align-items: inherit;margin-right: 0px;margin-left: auto;}
  .logo-section h1 {font-size: 20px;margin-bottom: 20px; display: none;}
  .bottom-slider .thumbnail-bar img { height: 60px !important;} 
.pool-card img.main-img {width: auto;}
.pool-card img.corner-img {position: initial; width: 92%; height: auto;top: inherit;bottom: 30px; }
.material-group .p-l-15 {grid-template-columns: repeat(2, 1fr); padding-left: 25px;   padding-right: 0;}
.thumbnail-bar img {padding: 0; margin: 0 auto;}
.pool-card .mt-2.text-right {padding: 0px 10px 0px;}
.material-group h5 { padding: 12px 15px;}
.contact-info div, .project-info div {width: 33%;}
.logo-mobile {font-size: 20px; margin: 0; font-weight: 800;}
.info-mobile i {font-size: 24px; color: #999;}
.material-group .collapse.show {padding-top: 10px;}
.pool-card {margin-bottom: 10px;}
.top-header {padding-left: 15px;}
/* .thumbnail-bar img.corner-img:hover, .thumbnail-bar img.active  {border: 1px solid #010205;} */
.actions {justify-content: flex-start !important; padding-left: 0;}
  /* .right-side {height:auto; overflow-y:auto}
  .right-side {height: 500px;} */
.summary-btn {display: none;}
.nav-item.save-icon-btn { background: #f9f9f9; border-radius: 4px 4px 0 0; border-style: solid solid none; border-width: 2px 1px medium; padding: 10px 12px; margin-right: 7px; display: inline-block;}
.contact-info .full-width {width:100%;}
.right-heading-icon {display:none;}

  .failed-retry-panel {
    margin: 22% auto 0;
    width: 82%;
    padding: 10px;
  }

  .failed-retry-btn {
    width: 100%;
  }

  .pool-card-media {
    position: relative;
    display: inline-block;
    max-width: 100%;
  }

  .quick-retry-btn {
    top: 0;
    right: 0;
    transform: translate(35%, -35%);
  }

  .retry-modal {
    width: 94vw;
    padding: 16px;
  }

  .retry-section .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .retry-section .check-card-image {
    padding: 18px 0;
    min-height: 40px;
  }

  .retry-section .check-card-label {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.2;
    padding: 12px 8px;
  }
}





@media screen and (orientation: landscape) and (min-width: 701px) and (max-width: 800px) {
   .right-side {height: 470px;}
}

/* --- For Phones and Tablets in Landscape --- */
@media screen and (orientation: landscape) and (min-width: 600px) and (max-width: 700px) {
 .right-side {height: 440px;}
}

@media (max-width:580px){
.contact-info div, .project-info div {width: 50%;}
.font-17 {font-size: 16px;}
/* .fullscreen-mode.image-wrapper .base-image {height: 400px;} */
 }

 @media (max-width:350px){ 
    .top-header {padding:5px 0px 5px 30px}
 }




 /* .overlay img{top: 0px !important; left: -152px !important;} */
 

/* Target Safari on macOS ONLY (Excludes iPhone/iPad) */
/* @media (pointer: fine) {
    @supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {
           .overlay img{top: 0px !important; left: -152px !important;}
    }
} */



/* @media (max-width:500px){

.pool-card img.main-img {display:none;}
.pool-card img.corner-img {position: initial; width: 92%; height: auto;top: inherit;bottom: 30px; }
.material-group .p-l-15 {padding-left: 12px;}
.thumbnail-bar img {padding: 0; margin: 0 auto;}
.pool-card .mt-2.text-right {padding: 0px 10px 0px;}
} */


/* Rule for Mobile Phones in Landscape */
@media only screen 
    and (min-width: 568px) 
    and (max-width: 926px) 
    and (orientation: landscape) {

    .overlay img {
        top: 0px !important;
        left: 0px !important;
    }
}



@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px)
  and (-webkit-min-device-pixel-ratio: 1) {

    .overlay img {
        top: 0px !important;
        left: 0px !important;
    }
}

@media only screen 
  and (min-resolution: 2dppx) 
  and (min-width: 768px) 
  and (max-width: 1366px) {

    .overlay img {
        top: 0px !important;
        left: 0px !important;
    }
}


/* @media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 1024px) 
  and (orientation: landscape) 
  and (-webkit-min-device-pixel-ratio: 2) {

    .overlay img {
        top: 0px !important;
        left: 0px !important;
    }
} */

/* .dropdown-menu {
  max-width: calc(100vw - 16px);
} */
