/* container gadget */
.gx-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: flex-start;
}
.gx-container.two-cols .gx-box {
  flex: 0 0 calc((84% - 10px) / 2);
}
.gx-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  border:1px solid #d6b786;
  margin-bottom: 8px;
  padding: 10px;
  height: auto;
}
.gx-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}
.gx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

/* default: 2 colonne */
.gx-group {
  flex: 0 0 calc(50% - 8px);
}

/* primo box: elementi su una riga */
.gx-group:first-child {
  flex: 0 0 98%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 15px;
}
.gx-group:first-child .gx-title {
  margin-bottom: 0px;
}
.gx-group:first-child .gx-toggle,
.gx-group:first-child .gx-copy {
  display: inline-block;
  margin-right: 10px;
}
.gx-group:first-child .gx-links {
  flex-direction: row;
  align-items: center;
  gap: 5px;
}
.gx-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 0;
  margin-top: 4px;
  border: 1px solid #d6b786;
  background-color: hsla(0, 100%, 93%, 0.30);
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  border-radius: 4px;
}
.gx-title {
  font-size: 13px;
  font-weight: bold;
  color: #785c58;
  margin-bottom: 0px;
}
.gx-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.gx-toggle,
.gx-copy {
  cursor: pointer;
  margin-top: 4px;
  user-select: none;
  color: #737c1c;
}
.gx-toggle:hover,
.gx-copy:hover {
  text-decoration: underline;
}
/* area codice */
.gx-code-area {
  display: none;
  margin-top: 10px;
}
.gx-code-area.open {
  display: block;
}
/* blocchi codice */
.gx-code-item {
  margin-bottom: 2px;
}
/* stile codice */
.gx-code-item pre {
  background: #f5f5f5;
  padding: 12px;
  border: 1px solid #ddd;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
}
/* copia */
.gx-copy {
  margin-left: 8px;
}
.edit {
  background: #fffd38;
  padding: 0 2px;
  border-radius: 3px;
}
.testo_edit {
  background: #fce1e9ff;
  padding:0 4px;
  border-radius: 3px;
}
.small{
  display: inline-block;
  border:1px solid #ddd;
  background:#f5f5f5;
  padding:4px;
  margin-top: 6px;
  text-align:left;
  font-size: 12px;
  overflow-wrap:break-word;
  width: 500px;

}   