.hfng-tooltip-wrap {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

.hfng-tooltip-icon {
    font-size: 16px;
    color: #0073aa;
    cursor: help;
}

.hfng-enable-feature-text {
    font-size: 14px;
    color:black;
    font-weight: bold;
}

.hfng-feature-text {
    font-size: 14px;
    color:black;
}

.hfng-feature-text .title  {
    font-weight: bold;
}

.hfng-tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 220px;
    background-color: #23282d;
    color: #fff;
    text-align: left;
    border-radius: 4px;
    padding: 8px;
    position: absolute;
    z-index: 1000;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: opacity 0.3s ease;
    font-size: 13px;
    line-height: 1.4;
}

.hfng-tooltip-wrap:hover .hfng-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.hfng-version-box {
    max-width: 400px;
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    background: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* ombreggiatura leggera */
}

.hfng-version-box p {
    font-weight: bold;
    margin: 5px 0;
}

/* Pulsanti */
.hfng-button {
    background-color: #ff9900; 
    width: 150px;
    text-align: center;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
}

.hfng-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.hfng-button:hover:enabled {
    background-color: #e68a00;
}

.hfng-button:hover:disabled {
    background-color: lightgray;
}

.hfng-button:hover {
    background-color: #e68a00;
}

.hfng-button:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.button-container {
  display: flex;          /* Usa Flexbox per allineare i bottoni orizzontalmente */
  gap: 10px;              /* Aggiungi spazio tra i bottoni (opzionale, puoi cambiare il valore) */
  justify-content: flex-start; /* Allinea i bottoni all'inizio (a sinistra) */
}

/* Textarea */
.hfng-textarea {
    width: 100%;
    min-height: 80px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    font-size: 13px;
}

/* Messaggi */
.hfng-error { color: #ff3333; font-weight: bold; }
.hfng-success { color: #66cc66; font-weight: bold; }

.hfng-divider {
    border-top-width: 19px;
    height: 1px;
    border-top-color: #dd9933;
    border-top-style: solid;
    width: 100%;
    margin: 20px auto;
}

.hfng-divider-small {
    border-top-width: 9px;
    height: 1px;
    border-top-color: #dd9933;
    border-top-style: dotted;
    width: 30%;
    margin: 20px auto;
}

.hfng-status-running { color: green; font-weight: bold; }
.hfng-status-offline { color: red; font-weight: bold; }
.hfng-status-premium { color: orange; font-weight: bold; }

.hfng-logo-wrap {
    text-align: center;
    margin-top: 20px;
}

.hfng-logo {
    max-width: 280px;
    height: auto;
}

.hfng-logo-info {
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
}

.hfng-feature-disabled {
    color: #999;
    margin-top: 5px;
    font-style: italic;
}

.hfng-uri-patterns-table td {
    max-height: 300px;
    overflow: auto;
    display: block; /* mantiene lo scroll verticale */
    padding: 5px;   /* opzionale per un po’ di respiro */
}

.hfng-uri-pattern-label {
    display: block;
    white-space: nowrap; /* impedisce che il path vada a capo */
    margin-bottom: 3px;  /* un piccolo spazio tra checkbox */
}

.hfng-uri-pattern-label span {
    margin-left: 5px; /* spazio tra checkbox e testo */
}

.hfng-rest-endpoints-cell {
    max-height: 300px;
    overflow: auto;      /* scroll verticale se serve */
    display: block;      /* necessario per far funzionare max-height */
    padding: 5px;        /* opzionale, per respiro */
}

.hfng-rest-endpoint-label {
    display: block;
    white-space: nowrap; /* impedisce il wrap del path */
    margin-bottom: 3px;  /* spazio tra checkbox */
}

.hfng-rest-endpoint-label span {
    margin-left: 5px;    /* spazio tra checkbox e testo */
}

.hfng-select-wrapper {
    max-height: 300px;
    overflow: auto;        /* scroll verticale se le opzioni sono tante */
}

.hfng-select-wrapper select {
    width: 100%;           /* occupa tutta la larghezza disponibile */
    box-sizing: border-box;/* evita problemi di padding */
}

.hfng-select-list {
    margin-top: 10px; 
    list-style: disc; 
    padding-left: 20px; 
    line-height: 1.6;
}

.hfng-visit-hwpress {
    margin-top:20px; 
    font-size:13px; 
    color:#666;
}

[x-cloak] {
    display: none !important;
}



/* header / hero */
header.hfng-site-hero {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #d11c1c;
    border-radius: 10px;
    padding: 36px 24px;
    margin-bottom: 28px;
}

.hfng-site-hero .hfng-top-row {
    display: flex;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
}

.logo .dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
}

.hfng-hero-content {
    margin-top: 20px;
    text-align: center;
}

.hfng-hero-content h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.2px;
    color: rgba(1, 0, 0, 0.95);
}

.hfng-hero-content h2 {
    margin: 12px auto 0;
    max-width: 900px;
    color: rgba(1, 0, 0, 0.95);
}


.hfng-hero-content p {
    margin: 12px auto 0;
    max-width: 900px;
    color: rgba(1, 0, 0, 0.95);
}

.hfng-hero-ctas {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.hfng-btn {
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.hfng-btn-primary {
    background: #fff;
    color: var(--accent);
}

.hfng-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.12);
}


/* features */

.hfng-features {
    background: var(--card);
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

.hfng-features h2 {
    margin: 0 0 14px;
}

.hfng-core-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.hfng-feature {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #a4a5a7;
    background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6),
    transparent
    );
}

.hfng-feature h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.hfng-feature p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.hfng-plan-color-trial-expired {
    background-color: #d00;
    color: #fff;
    padding: 0.2em 0.5em;
    border-radius: 0.3em;
    font-weight: bold;
    display: inline-block;
}

.hfng-plan-color-trial-active {
    background-color: #f5a623;
    color: #fff;
    padding: 0.2em 0.5em;
    border-radius: 0.3em;
    font-weight: bold;
    display: inline-block;
}

.hfng-plan-color-free {
    background-color: #5cb85c;
    color: #fff;
    padding: 0.2em 0.5em;
    border-radius: 0.3em;
    font-weight: bold;
    display: inline-block;
}

.hfng-plan-color-pro {
    background-color: #46b48e;
    color: #fff;
    padding: 0.2em 0.5em;
    border-radius: 0.3em;
    font-weight: bold;
    display: inline-block;
}

.hfng-plan-color-age {
    background-color: #7957d5;
    color: #fff;
    padding: 0.2em 0.5em;
    border-radius: 0.3em;
    font-weight: bold;
    display: inline-block;
}

.hfng-plan-color-ent {
    background-color: #0073aa;
    color: #fff;
    padding: 0.2em 0.5em;
    border-radius: 0.3em;
    font-weight: bold;
    display: inline-block;
}
.hfng-plan-title {
    font-weight: bold;
    font-size:20px;
}



      
/* compact feature list for original text block */
      
.hfng-original-block {
    margin-top: 1rem;
    padding: .125rem 1rem;
    background: #f3f7fb;
    border-radius: 8px;
    color: #0f172a;
}

.hfng-original-block p {
    line-height: 1;
}

      
/* pricing / compare */
.hfng-compare {
    margin: 28px 0;
}
      
.hfng-compare h2 {
    margin-bottom: 18px;
}

.hfng-compare h3 {
    font-size: 16px;
}

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

.hfng-plan {
    background: var(--card);
    border-radius: 10px;
    padding: 18px;
    border: 1px solid #e6edf3;
    box-shadow: 0 6px 20px rgba(3, 7, 18, 0.02);
    display: flex;
    flex-direction: column;
}

.hfng-plan:hover {
    transition: all 0.3s ease;
    transform: translateY(-.125rem);
    cursor: pointer;
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(216, 127, 18, 0.12);
    background: var(--card);
    color: var(--accent);
    border-color: var(--accent);
}

.hfng-plan h3 {
    margin: 0 0 6px;
}
      
.hfng-plan .hfng-tag { 
    margin-top: 10px;       
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}

.hfng-plan ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.hfng-plan li {        
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-top: 1px dashed #f1f5f9;
    font-size: 14px;
    color: #111;
    gap: .5rem;      
}
      
.hfng-plan li:first-of-type {        
    border-top: 0;
}

.hfng-plan .hfng-cta {
    margin-top: auto;
}

/* responsive */
@media (max-width: 1024px) {
    .hfng-plans {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hfng-plans {
        grid-template-columns: 1fr;
    }
        
    .hfng-site-hero {
        padding: 22px;
    }
}

 .hfng-can-upgrade {
    font-size: 14px;
    margin: bottom 10px;
    display:inline-block;
 }

.hfng-current-plan {
    border: 2px solid #0073aa;
    background-color: #f0f8ff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.hfng-disclaimer {
    display: inline-block;
    margin-top: 10px;
    text-align: center;
    padding: 0.5rem 1rem;    
    color: rgba(255,255,255,0.1);
    border-left: 3px solid #f5a623;  /* colore evidenziato */
    border-radius: 4px;
}

.hfng-disclaimer p {
    text-align: center;
    padding: 0.5rem 1rem;    
    color: black;
}

.hfng-tail {
 display: flex;
 justify-content: center; /* Centra orizzontalmente */  
}

.hfng-site-hero .hfng-disclaimer::before {
    content: "ℹ️ ";          /* piccola icona info prima del testo */
}


input[type="checkbox"]:disabled {
    border: 2px dotted gray;
    background-color: #f1f1f1;
}
input[type="radio"]:disabled {
    border: 2px dotted gray;
    background-color: #f1f1f1;
}


input[type="checkbox"]:disabled:checked {
    background-color: #cccccc !important; 
    border-color: gray !important; 
}


.x-checkbox input[type="checkbox"]:disabled {
    border: 2px dotted gray !important; 
    background-color: #f1f1f1 !important;
}








      