
/* === choices === */
/* Contenedor general */

html, body {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: clamp(8px, 1.5vw, 12px);
}


#palette, #palette-main-wrapper, #palette-main, #palette-panels, #palette-properties, #palette-layers {
  box-sizing: border-box;
}


 .info-list, .info-list ul, .info-body, .info-list li {
  font-family: 'JetBrains Mono';
  font-weight: lighter;
  max-width: 100vw !important;
  width: 100% !important;
  display: block !important;
  color: #313131;
}



.choices {
  font-family: monospace;
  max-width: fit-content; /* o lo que tú quieras */
  font-size: clamp(8px, 1.5vw, 12px);
  background-color: rgb(245, 245, 245);
  border: 1px solid rgb(74, 67, 61);
  border-radius: 12px;
  color: rgb(74, 67, 61);
}

/* Tamaño del campo desplegado */
.choices__inner {
  background-color: rgb(237, 237, 237);
  font-family: monospace;
  min-height: 28px !important;
  padding: 4px 8px !important;
  font-size: clamp(8px, 1.5vw, 12px);
  line-height: 1.2;
}


.choices__item {
  font-family: monospace;
  color: rgb(74, 67, 61);
  font-size: clamp(8px, 1.5vw, 12px);
}
/* === Reset & Base === */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: monospace;
  overflow: auto;
  background-color: #fff;
}


.canvas-dragger {
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 25px;
  background: black;
  color: white;
  font-size: clamp(8px, 1.5vw, 12px);
  text-align: center;
  line-height: 25px;
  cursor: move;
  border-bottom-right-radius: 4px;
  z-index: 10;
}


#canvas-wrapper {
  position: absolute;
  z-index: 0;
  top: 5px;
  left: 5px;
  width: calc(100vw - 10px);
  height: calc(100vh - 10px);
  overflow: hidden;
}
 

#main-canvas {
  width: 100%;
  height: 100%;
  position: relative;
}

canvas {
  user-select: none;
  -webkit-user-select: none; /* For Safari/Chrome */
  -moz-user-select: none;    /* For Firefox */
  -ms-user-select: none;     /* For IE/Edge */
  pointer-events: none;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none; /* IMPORTANTE si hay botones encima */
}


/* === Resizers === */
.resizer.top-right {
  top: 0;
  right: 0;
  cursor: nesw-resize;
  width: 30px;
  height: 30px;
  border-top-right-radius: 6px;
  border-bottom-left-radius: 6px; 
  background-color: rgb(237, 237, 237);
  border: 1px solid rgb(74, 67, 61);
  color: #3c3c3c;
  font-size: clamp(8px, 1.5vw, 12px);
  font-family: 'pixel_DBT';
  position: absolute;
  z-index: 10;
}


.top-left { top: 0; left: 0; cursor: nwse-resize; }
.top-right { top: 0; right: 0; cursor: nesw-resize; }
.bottom-left { bottom: 0; left: 0; cursor: nesw-resize; }
.bottom-right { bottom: 0; right: 0; cursor: nwse-resize; }



/* === BUTTONS === */

@font-face {
  font-family: 'pixel_DBT';
  src: url('fonts/pixel_DBT.ttf') format('truetype');
}

.icon-btn,
.tool-btn,
.pause-btn,
.bottom-btn {
  width: 30px;
  height: 30px;
  border-top-right-radius: 6px;
  border-bottom-left-radius: 6px;
  background-color: rgb(237, 237, 237);
  border: 1px solid  rgb(49, 49, 49) !important;
  color: rgb(237, 237, 237);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#growth-btn {
  width: 30px !important;
  height: 30px !important;
  border-top-right-radius: 6px !important;
  border-bottom-left-radius: 6px !important;
  background-color: rgb(237, 237, 237) !important;
  color: rgb(237, 237, 237) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}


.tool-btn,
.pause-btn,
#growth-btn {
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

.tool-btn.active,
.pause-btn.active,
#growth-btn.active {
  opacity: 1 !important;
  background: rgb(237, 237, 237);
  color: rgba(49, 49, 49, 0.8);
}

.tool-btn:hover,
.pause-btn:hover,
#growth-btn:hover {
  opacity: 1;
  background: rgb(255, 251, 30) !important;
  color: rgba(49, 49, 49, 0.8);
}

.fullscreen-btn {
  position: absolute;
  top: 0;
  right: 30px; /* justo a la izquierda del handle */
  z-index: 10;
}


/* === Pop-up Panels === */
.popup
 {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
  font-family: monospace;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: auto;
  max-width: 95vw;
  max-height: 90vh;
  background: transparent;
  border-radius: 12;
  box-shadow: none;
}



/* HEADER */


.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;    /* Fondo oscuro SIEMPRE */
  margin-bottom: 8px;
  color: rgb(237, 237, 237);
  border-top-right-radius: 18px;
  font-size: clamp(8px, 1.5vw, 12px);
  width: 100%;
  cursor: grab;
  pointer-events: all;
}




/* CONTENIDO  & TEXTO */
/*text pop up */
.popup-content {
  background: rgb(245, 245, 245);
  border: 1px solid rgba(60, 60, 60, 0.8);
  padding: 5px;
  color: rgb(60, 60, 60, 0-8);
  font-size: clamp(8px, 1.5vw, 12px);
  overflow-y: auto;
  max-height: 70vh;
  border-radius: 0;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
  display: block;
  flex-direction: column;
}



/* OPCIONAL: estilos para etiquetas e inputs */
.popup-content label {
  display: flex;
  flex-direction: column !important;
  font-size: clamp(8px, 1.5vw, 12px);
  color: rgb(49, 49, 49);
  gap: 4px;
}



/* === Hide UI === */
/* === Hide UI === */
body.hide-ui #palette,
body.hide-ui #main-actions,
body.hide-ui #tool-actions,
body.hide-ui .popup,
body.hide-ui #bottom-buttons,
body.hide-ui .fullscreen-btn,
body.hide-ui .resizer.top-right {
  display: none !important;
}

#bottom-buttons.hidden {
  display: none !important;
}

/*INFORMATIVE POPUP */

/*background pop up */

.info-style {
  font-family: monospace;
  background-color: rgb(237,237,237, 0.8);
  color: rgb(60, 60, 60, 0.8);
  max-width: 95vw;      /* ← NUNCA más ancho que pantalla */
  width:max-content;
  overflow-x: hidden;
  box-sizing: border-box;
  word-break: break-word; 
  height: auto;
  max-height: 90vh;     /* ← máximo 90% de alto de pantalla */
  padding: 9px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 12px;
  position: fixed;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(60, 60, 60, 0.8);
  transform: translate(-50%, -50%);
  text-align: center;
}




 .popup-header {
  font-weight: lighter;
  display: flex;
  width: 100%;
  justify-content: space-between;
}


.shortcuts{
  background: none;
  border: none;
  display: flex;
  font-weight: lighter;
  font-family: monospace;
  font-size: clamp(8px, 1.5vw, 12px);
  cursor: pointer;
}



.info-text {
  font-family: monospace;
  font-size: clamp(8px, 1.5vw, 12px);
  text-align: left;
}

.info-text .info-title {
  background: rgb(237, 237, 237);
  color:  rgba(49,49,49);
  border: 1px solid rgba(60, 60, 60, 0.8);
  
  font-size: clamp(40px, 13vw, 180px); /* Si el pop-up se achica, el título nunca será menos de 40px */ 
  padding-left: 0;
  padding-top: 15px;
  padding-bottom: 15px;
  max-width: 100%;
  font-family: 'JetBrains Mono';
  text-align: center;
  font-weight: lighter;
  align-items: center;
  border-top-left-radius: 100px;
  border-bottom-right-radius: 100px;
}

.info-text .info-title h2 {
  margin-left: 0px;
}

.info-text .info-subtitle {
  color: rgba(49, 49, 49);
  font-size: clamp(8px, 1.5vw, 12px);
  padding-left: 7px;
  padding-top: 15px;
  padding-bottom: 15px;
  border-top-right-radius: 6px;
  border-bottom-left-radius: 6px;
  max-width: 100%;
  font-family: 'JetBrains Mono';
  font-weight: lighter;
  justify-content: space-between;
  align-items: left;
}

.info-text .info-dividertop {
    border: none;
    border-top: 1px solid #313131;
    margin-bottom: 35px;   /* Controla el espacio arriba y abajo */
    margin-top: 80px;
    max-width: 100%;
    height: 0;         /* Importante: ¡No agregues alto extra! */
  }

  .info-text .info-dividerbottom {
    border: none;
    border-top: 1px solid #313131;
    margin-top: 15px;
    margin-bottom: 160px; 
    max-width: 100%;
    height: 0;         /* Importante: ¡No agregues alto extra! */
  }

.info-text .info-section-title {
  background:rgba(49, 49, 49);
  color:  rgb(237, 237, 237);
  border-top-right-radius: 12px;
  border-bottom-left-radius: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: clamp(8px, 1.5vw, 12px);
  padding: 3px 0px 3px 7px;
  font-family: 'JetBrains Mono';
  font-weight: lighter;
  justify-content: space-between;
  align-items: left;
}

.info-text .info-body .li{
  font-family: 'JetBrains Mono';
  font-weight: lighter;
  color: #313131 !important; 
  font-size: clamp(8px, 1.5vw, 16px) !important;
  font-family: 'JetBrains Mono' !important;
  font-weight: lighter !important;
  justify-content: space-between !important;
  align-items: left !important;
  max-width: 100% !important;
  overflow-x: hidden;
  margin-bottom: 4px;
  padding-left: 1px;

}




.info-text .info-list li {
  color: #313131;
  font-family: 'JetBrains Mono';
  font-weight: lighter;
  font-size: clamp(8px, 1.5vw, 12px);
  padding-left: 7px;
  max-width: 100%;
  overflow-x: hidden;
  margin-bottom: 4px;

}



.info-text .info-footer {
  font-size: clamp(8px, 1.5vw, 12px);
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  font-style: italic;
  text-align: center;
}

.info-list ul {
  max-width: fit-content;
}

.info-text ul {
  max-width: 100%;
  text-align: left;
}





/*TOOL PALETTE ALL MENU */

/* --- PALETTE Y PANEL PRINCIPAL --- */
#palette {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  height: 40vh;
  max-height: 40vh;
  min-height: 200px;
  box-sizing: border-box;
}


#palette-main-wrapper {
  display: flex;
  flex-direction: column;
  height: fit-content;
  box-sizing: border-box;
  background-color: rgba(237, 237, 237, 0.8);
  border: 1px solid rgba(49, 49, 49);
  border-top-right-radius: 12px;
  border-bottom-left-radius: 12px;
  padding: 10px;     /* ← El padding da espacio interno al borde */
}

#palette-main {
  display: flex;
  align-items: stretch;
  flex-direction: row;
  height: 100%;
  box-sizing: border-box;
  gap: 10px;         /* ← Este es el espacio entre tools y panels */
  padding: 0;
  min-width: 0;
}

#palette-tools-col {
  display: flex;
  flex-direction: column; /* Tools title encima de los botones */
  height: 100%;
}





/* --- Contenido scrolleable SOLO DENTRO de cada panel --- */
#palette-properties .tool-options,
#layer-panel {
  overflow-y: auto;
}

/* Capas: el listado debe usar el alto del panel */

/* --- SIDEBAR --- */
#palette-sidebar-wrapper {
  margin-left: 0px;
  z-index: 2;
  background-color:rgb(237, 237, 237);
  border: 1px solid rgba(49, 49, 49, 0.8);
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  border-top-right-radius: 8px;
}

#palette-sidebar {
  background: rgb(237, 237, 237);
  margin: 10px;
  padding: 10px;
  border-top-right-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}


.tool-options input,
.tool-options select {
  flex-direction: column;
}

/* Ajusta scrollbars sólo en paneles internos */



/* === LIBRERIAS === */

/* === Tippy.js custom theme: modulariem === */
.tippy-box[data-theme~='modulariem'] {
  background-color: rgb(237, 237, 237); /* gris claro */
  color: rgba(49, 49, 49, 0.8);                /* texto gris oscuro */
  border: 1px solid rgba(49, 49, 49, 0.8);     /* borde gris oscuro */
  font-family: "JetBrains Mono";
  font-size: clamp(8px, 1.5vw, 12px);
  border-radius: 0px;
  border-top-left-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: none;
}

/* Cambia el color de la flechita según la posición del tooltip */
.tippy-box[data-theme~='modulariem'][data-placement^='top'] > .tippy-arrow::before {
  border-top-color: rgba(49, 49, 49, 0.8)
}
.tippy-box[data-theme~='modulariem'][data-placement^='bottom'] > .tippy-arrow::before {
  border-bottom-color: rgba(49, 49, 49, 0.8)
}
.tippy-box[data-theme~='modulariem'][data-placement^='left'] > .tippy-arrow::before {
  border-left-color: rgba(49, 49, 49, 0.8)
}
.tippy-box[data-theme~='modulariem'][data-placement^='right'] > .tippy-arrow::before {
  border-right-color: rgba(49, 49, 49, 0.8)
}

/* === LAYERS === */

 


.header-left {
  display: block;
  align-items: center;
  gap: 12px;
}

.popup-close button {
  background: rgb(255, 251, 30) !important;    /* Fondo oscuro SIEMPRE */
  border:1px solid rgb(49,49,49) !important;
  color: rgb(49, 49, 49) !important;       /* Texto claro */
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(8px, 1.5vw, 12px);
  border-radius: 0 !important;
  border-top-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
  padding: 3px 14px 3px 14px;
  cursor: pointer;
  font-weight: lighter;
  min-width: 0;
  box-sizing: border-box;
  display: inline-block;
  height: auto;
  
}

button.popup-close {
  color: rgb(49, 49, 49) !important;
  border: 1px solid rgb(49, 49, 49) !important;       /* Texto claro */
}

/* Unifica el estilo de todos los botones */
.popup-header button,
.popup-shortcuts {    
  border: none;
  color:rgba(203, 196, 194);      /* Texto claro */
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(8px, 1.5vw, 12px);
  padding: 3px 14px 3px 14px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 12px;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
  font-weight: lighter;
  min-width: 0;
  box-sizing: border-box;
  display: inline-block;
  height: auto;
}
.lang-btn{
  color: rgb(49, 49, 49) !important;
  border: 1px solid rgb(49, 49, 49) !important;   
  border-radius: 0px !important;
  border-top-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

#palette-header {
     /* Fondo oscuro SIEMPRE */
  display: flex;
  justify-content: space-between;
  align-items: left;
  background: transparent;
  color: rgb(237, 237, 237);      /* Texto claro */
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(8px, 1.5vw, 12px);
  border-radius: 0px 12px 0 0;
  font-weight: lighter;
  width: 100%;
  padding: 6px 18px 0 18px;
}

.popup-header button:hover,
.lang-btn:hover,
.lang-btn.active {
  background: rgb(255, 251, 30);       /* Verde claro en hover */
  color: rgba(49, 49, 49, 0.8);      /* Texto oscuro */
}


.lang-switch {
  display: block;
  gap: 8px; 
  align-items: center;
}




/* --- Otros detalles útiles --- */
.tool-options label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 5px;
}



/* --- TOOLS --- */

#palette-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 12px;
  padding: 10px;
  background-color: rgba(236, 235, 235, 0.9);
  height: 100%;
  overflow-y: auto;
  align-items: center;
}

#palette-panels {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  flex: 1 1 0;
  gap: 0px;
  border-top-right-radius: 18px;
}

#palette-panels > .header-pill,
#palette-panels > .layers-header {
  margin-bottom: 0; /* por si acaso */
}

#palette-properties,
#palette-layers {
  flex: 1 1 0;
  min-height: 0;       /* <--- esto permite que el panel haga scroll en vez de romper el contenedor */
  max-height: 100%;    /* <--- esto limita el crecimiento */
  display: flex;
  flex-direction: rowx;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  background: rgba(203, 196, 194, 0.9);
  border-top-right-radius: 18px;
  overflow: auto;      /* <--- activa el scroll si el contenido se sale */
}

/* --- Encabezados iguales --- */

#properties-title, 
.header-pill,
.tools-capsule,
#tools-title {
  background: rgb(237, 237, 237); 
  color: #313131;
  font-size: clamp(8px, 1.5vw, 12px);
  display: flex;
  align-items: flex-start;    /* CORREGIDO aquí */
  font-family: 'JetBrains Mono', monospace;
  font-weight: lighter;
  width: fit-content;
  max-width: fit-content;
  max-height: fit-content;
  padding: 3px 14px 3px 14px;
  border-radius: 0px;
  border-bottom-right-radius: 12px;
  border-top-left-radius: 12px;
  margin-bottom: 0;
  margin-top: 0;
}


  
  .layers-header{
    background: rgb(237, 237, 237); 
    color: #313131;
  margin: 0;
  border: 0px !important;
  font-size: clamp(8px, 1.5vw, 12px);
  font-family: 'JetBrains Mono', monospace;
  max-width: fit-content;
  max-height: fit-content;
  font-weight: lighter;
  }

 #options-gradient,
#options-text,
#options-shape,
#options-grid,
#options-image,
#options-growth,
#options-export {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  margin: 10px;
}

#layer-panel{
  margin: 10px;
}

#layer-type-menu {
  position: absolute;
  top: 110%;  /* justo debajo del botón */
  left: 0;
  background: white;
  border: 1px solid #ccc;
  z-index: 999;
  min-width: 120px;
  box-shadow: 0 2px 8px #0001;
  padding: 4px 0;
}

.layer-type-option {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(8px, 1.5vw, 12px);
  padding: 7px 18px;
  cursor: pointer;
  transition: background 0.12s;
}
.layer-type-option:hover {
  background: #e2e2e2;
}


#layers-list {
  height: 100%; /* o el alto de tu panel */
  overflow-y: auto;
  background: #f8f8f8;
}



/* UI FOR THE SEED BAR */ /* UI FOR THE SEED BAR */ /* UI FOR THE SEED BAR */

/* ── Seed search & display ── */

#seed-search-input {
  width: auto;
  height: 30px;
  padding: 4px 8px;
  background: rgb(237, 237, 237); 
  color:  rgb(123, 123, 123);
  border: 1px solid  rgb(49, 49, 49);
  border-top-right-radius: 6px;
  border-bottom-left-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(8px, 1.5vw, 12px);
  text-align: center;
}


/* Input semilla casi transparente y full opacity on hover/focus */
#seed-search-input {
  opacity: 0.2;                      /* muy baja por defecto */
  transition: opacity 0.25s ease;    /* transición suave */
}

#seed-search-input:hover,
#seed-search-input:focus {
  opacity: 1;                        /* full opacity al pasar el ratón o hacer focus */
}

#palette.panels-collapsed #palette-panels {
  display: none;
}

#palette:not(.panels-collapsed) #palette-panels {
  display: block;
}

/* TOOLS HELPER */ /* TOOLS HELPER */ /* TOOLS HELPER */ /* TOOLS HELPER */ /* TOOLS HELPER */ 

/* BUTTONS POSITION */ /* BUTTONS POSITION */ /* BUTTONS POSITION */ /* BUTTONS POSITION */ 


.pause-btn img {
  width: 16px;
  height: 16px;
}


.tool-btn img{
width: 16px;
height: 16px;
}



/* BUTTONS POSITION *//* BUTTONS POSITION *//* BUTTONS POSITION *//* BUTTONS POSITION *//* BUTTONS POSITION */
#manual-resize-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgb(237, 237, 237); 
  border: 1px solid  rgb(123, 123, 123);
  border-top-left-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 6px;
  border-radius: 4px;
  z-index: 999;
}
/* === Growth‑only widget === */ /* === Growth‑only widget === */ /* === Growth‑only widget === */ /* === Growth‑only widget === */
.popup-growth {
  position:relative;
  z-index: 1000;
}
#bottom-buttons {
  position: fixed !important ;
  right: 12px !important ;
  bottom: 12px !important ;
  display: flex !important ;
  flex-direction: row !important ;
  gap: 10px !important ;
  z-index: 9999 !important ;
  align-items: flex-end !important ; /* para alinear el input a la derecha también */
}
/* === Slider Styling === */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  width: 100%;
  height: 20px; /* Space for thumb */
  cursor: pointer;
}

/* Track (black line) */
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border:  1px solid black;
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border:  1px solid black;
}

input[type="range"]::-ms-track {
  height: 6px;
  border:  1px solid black;
}

/* Thumb (5px radius green circle) */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; 
  height: 16px;
  border-radius: 12px;
  background: rgb(237, 237, 237);; /* Green from your CSS */
   /* Center on track */
  cursor: pointer;
  margin-top: -6px;
}

input[type="range"]::-moz-range-thumb {
  width: 16px; 
  height: 16px;
  border-radius: 12px;
  background: rgb(237, 237, 237);; /* Green from your CSS */
   /* Center on track */
  cursor: pointer;
  margin-top: -6px;
}

input[type="range"]::-ms-thumb {
  width: 16px; 
  height: 16px;
  border-radius: 12px;
  background: rgb(237, 237, 237); /* Green from your CSS */
   /* Center on track */
  cursor: pointer;
  margin-top: -6px;
}

/* Focus/Hover states for accessibility */
input[type="range"]:focus {
  outline: none;
}

input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:hover::-moz-range-thumb,
input[type="range"]:hover::-ms-thumb {
  box-shadow: 0 0 4px rgb(255, 251, 30, 0.5); /* Subtle glow on hover */
}

#growth-popup {
  width: fit-content;
  height: fit-content;

  /* purely visual: */
  background: rgb(237, 237, 237);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
}

/* 2) the “dragging” override: clears the pin */
#growth-popup.dragging {
  bottom: auto;
  right: auto;
}

#growth-popup.popup-growth {
  position: fixed !important;  /* keep it fixed so dragging can work */
  top:    auto   !important;    /* unset the original top/left */
  left:   auto   !important;
  bottom: 50px   !important;    /* your preferred offset */
  right:  50px   !important;
}