.gs-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex: 0 0 42px;
}

.gs-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gs-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--button-disabled);
    transition: .1s;
}

.gs-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    z-index: 1;
}

.gs-slider .gs-icon-check,
.gs-slider .gs-icon-x {
    position: absolute;
    left: 7px;
    bottom: 7px;
    z-index: 2;
    display: block;
    width: 10px;
    height: 10px;
    pointer-events: none;
}

.gs-slider .gs-icon-check {
    display: none;
}

.gs-slider .gs-icon-check img,
.gs-slider .gs-icon-x img {
    display: block;
    width: 100%;
    height: 100%;
    color: var(--svg-secondary-color);
    stroke-width: 1;
}

.gs-slider .gs-icon-check img {
    width: 20px;
    height: 20px;
    margin: -5px;
} 

input:checked+.gs-slider {
    background-color: var(--svg-secondary-color);
}

input.gs-pending+.gs-slider,
input:disabled+.gs-slider,
input:checked:disabled+.gs-slider {
    background-color: #799DC7 !important;
}

input:disabled+.gs-slider {
    cursor: not-allowed;
    opacity: .5;
}

input:checked+.gs-slider:before {
    transform: translateX(18px);
}

input:checked+.gs-slider .gs-icon-x {
    display: none;
}

input:checked+.gs-slider .gs-icon-check {
    display: block;
    transform: translateX(18px);
}

.gs-round {
    border-radius: 24px;
}

.gs-round:before {
    border-radius: 50%;
}

.gs-accordion-heading {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin: 2% 2% 1.5% 2%;
    border-bottom: 3px solid #f0f0f0;
    padding-bottom: 1%;
}

.geosafe-box {
    background: var(--light-color) 0 0 no-repeat padding-box;
    border-radius: 5px;
    padding: 10px;
    min-height: 139px;
    box-shadow: -1px -1px 4px #00000040, 4px 4px 4px 0px #00000040;
}

.gs-accordion-heading h3 {
    color: var(--home-text-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 20px;
    margin: 0.5rem 0 0 0;
    padding: 0 2%;
}

.gs-accordion-heading .gs-accordion-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2%;
    margin: -1rem 0;
}

.gs-accordion-heading p {
    margin: 0;
    font-size: 14px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.gs-accordion-icon {
    font-size: 24px;
    color: var(--svg-secondary-color);
    font-weight: bold;
}

.gs-accordion-icon img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-bottom: 2rem;
    color: var(--svg-secondary-color);
    stroke-width: 1;
}

.gs-accordion-body {
    padding: 0 25px 25px;
}

.gs-toggle-row {
    display: flex;
    align-items: center;
    width: 50%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 0;
    gap: 10px;
}

.gs-toggle-row:last-of-type {
    border-bottom: none;
}

.gs-toggle-label {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding-right: 5%;
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: bold;
}

/* La base deve coprire la scritta piu' lunga ("Disabilitato"): con una base piu' stretta
   il contenuto la allarga comunque, la label elastica cede lo spazio e il toggle,
   che la precede, si sposta a sinistra solo su quelle righe. */
.gs-toggle-status {
    flex: 0 0 90px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: bold;
}


.gs-pending-alert {
    text-align: left;
    font-family: base-font-light, Arial, sans-serif;
    font-size: 14px;
    background-color: #F9FAFB;
    padding: 10px;
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-left-color: var(--button-light-aziende-color);
    border-left-width: thick;
    border-left-style: outset;
}

.gs-pending-alert img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.gs-btn-container {
    text-align: center;
    place-self: flex-end;
    min-width: 25%;
    margin-top: 20px;
}

.gs-amount-row {
    display: flex;
    align-items: center;
    width: 50%;
    min-width: 0;
    margin: 15px 0;
    font-size: 16px;
    padding-right: 1em;
}

.gs-amount-row label {
    font-weight: bold;
    font-size: 16px;
    flex: 1 1 auto;
}

.gs-amount-input {
    min-width: 120px;
    max-width: 180px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: right;
    font-size: 14px;
}


.gs-hide {
    display: none !important;
}

.gs-lock-alert {
    text-align: left;
    font-family: base-font-light, Arial, sans-serif;
    font-size: 14px;
    background-color: #F9FAFB;
    padding: 10px;
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-left-color: var(--button-light-aziende-color);
    border-left-width: thick;
    border-left-style: outset;
}

.gs-lock-alert img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.gs-float-group {
    position: relative;
    margin: 1.5rem 0 0 0;
    max-width: 300px;
}

.gs-float-input {
    padding-right: 40px !important;
}

.gs-float-label {
    position: absolute;
    top: 0.5em;
    left: 1em;
    font-size: 14px;
    transition: all 0.18s ease;
    pointer-events: none;
    font-weight: normal;
    margin: 0;
}

.gs-float-input:focus~.gs-float-label,
.gs-float-input:not(:placeholder-shown)~.gs-float-label {
    top: -18px;
    left: 0;
    font-size: 12px;
    font-weight: bold;
}

.gs-float-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
}

/* Sotto i 768px le due colonne al 50% non entrano: il blocco deve stare in fondo al file
   perche' @media non aggiunge specificita' e le regole base di .gs-amount-row/-input
   sono dichiarate piu' avanti. */
@media (max-width: 767px) {
    .gs-toggle-row,
    .gs-amount-row      { width: 100%; }
    .gs-amount-row      { padding-right: 0; }
    .gs-amount-input    { min-width: 90px; }
    .gs-accordion-body  { padding: 0 12px 15px; }
    .gs-toggle-status   { flex: 0 0 78px; font-size: 13px; }
    .gs-accordion-icon img { margin-bottom: 0; }
    .gs-float-eye       { padding: 10px; right: 4px; }
}