/* Holmo Tax Suite — Crediti Fiscali. Stili portati da css/style.css del vecchio File List Plugin (holmo-addons). */
:root {
    --htx-spacing-xs: 10px; --htx-spacing-sm: 20px; --htx-spacing-lg: 40px;
    --htx-blue: #183A6F; --htx-green: #4A862D; --htx-orange: #C77700; --htx-red: #B01916;
    --htx-font-xs: 0.75rem; --htx-font-sm: 0.85rem; --htx-font-md: 1.35rem;
}
.goto-login-block{
    text-align: center;
    margin: var(--htx-spacing-lg) auto;
    padding: var(--htx-spacing-lg);
    background-color: #f7f7fc;
}

.entry-content .goto-login-block .login-button{
    margin-top: var(--htx-spacing-sm);
}



/*** UPLOAD DEI FILE ***/

.entry-content .login-button{
    display: inline-block;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -o-border-radius: 12px;
    min-height: 45px;
    line-height: 45px;
    padding: var(--htx-spacing-xs) var(--htx-spacing-sm);

    font-size: 15px;
    margin: var(--htx-spacing-sm) auto 10px auto;

    font-weight: 500;
    font-style: normal;
    text-decoration: none;
    text-transform: uppercase;

    background-color: #22376f;
    border: 1px solid #22376f;
    color: #fff;

    -webkit-transition: background-color 0.3s ease-in-out;
    -moz-transition: background-color 0.3s ease-in-out;
    -o-transition: background-color 0.3s ease-in-out;
    transition: background-color 0.3s ease-in-out;
}

.entry-content .login-button:hover{
    background-color: transparent;
    border: 1px solid #22376f;
    color: #22376f;
}

.loading

.contact-support-button{
    border: 1px solid var(--htx-red);
    padding: var(--htx-spacing-xs) var(--htx-spacing-lg);
    border-radius: 20px;
    display: inline-block;
    margin-top: var(--htx-spacing-sm);
}



/***** LISTA CREDITI FISCALI ******/

.row.lista-crediti-fiscali{
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--htx-spacing-lg);
    padding-top: var(--htx-spacing-sm);
    padding-bottom: var(--htx-spacing-lg);
}


.header-lista-crediti-fiscali{
    text-align: center;
}

.header-lista-crediti-fiscali h2{
    color: var(--htx-blue);
    text-align: center;
    text-transform: uppercase;
}


.wrapper-single-credito-fiscale{   
   width: 30%;
   border: 1px solid #ccc;
   -webkit-border-radius: var(--border-radius, 12px);
   -moz-border-radius: var(--border-radius, 12px);
   border-radius: var(--border-radius, 12px);

   box-shadow: 1px 3px 6px #777;
   padding-top: var(--htx-spacing-lg);
   padding-bottom: var(--htx-spacing-lg);
}

.wrapper-single-credito-fiscale div,
.wrapper-single-credito-fiscale p,
.wrapper-single-credito-fiscale span{
   padding-right: var(--htx-spacing-sm);
   padding-left: var(--htx-spacing-sm);
}


.wrapper-single-credito-fiscale .valore-del-credito{
   text-align: center;
}

.wrapper-single-credito-fiscale .prezzo-di-vendita{
   padding: var(--htx-spacing-sm);
   font-weight: bold;
   color: #fff;
   font-size: var(--htx-font-md);
   margin: var(--htx-spacing-xs) auto;
   text-align: center;
}

.wrapper-single-credito-fiscale .prezzo-di-vendita.green{
   background-color: var(--htx-green);
}

.wrapper-single-credito-fiscale .prezzo-di-vendita.red{
   background-color: var(--htx-red);
}


.wrapper-single-credito-fiscale .disponibilita{
   text-align: center;
   font-weight: 600;
}

.wrapper-single-credito-fiscale .row.info div{
   padding: 0;
}

.wrapper-single-credito-fiscale .row.info p{
   margin-bottom: var(--htx-spacing-xs);
   font-weight: 500;
}

.wrapper-single-credito-fiscale .row.actions{
   align-items: center;
}

.entry-content .blue-button,
.blue-button{
   text-align: center;
   display: block;
   background-color: var(--primary-blue, var(--htx-blue));
   color: #fff;
   border: 0;
   font-size: var(--htx-font-xs);
   font-weight: 600;
   text-transform: uppercase;
   padding: var(--htx-spacing-xs) var(--htx-spacing-sm);

   -webkit-border-radius: var(--border-radius, 12px);
   -moz-border-radius: var(--border-radius, 12px);
   border-radius: var(--border-radius, 12px);

   -webkit-transition: background-color 0.3s ease-in-out;
   -moz-transition: background-color 0.3s ease-in-out;
   -ms-transition: background-color 0.3s ease-in-out;
   -o-transition: background-color 0.3s ease-in-out;
   transition: background-color 0.3s ease-in-out;
}

.entry-content .blue-button:hover{
   background-color: var(--htx-green);
   color: #fff;
   cursor: pointer;
}

.wrapper-single-credito-fiscale .add-credit-to-cart{
   display: block;
   width: 64px;
   height: 64px;
}

.wrapper-single-credito-fiscale .add-credit-to-cart img{
   display: block;
}


/***
 * Pagina single credito fiscale
 */

.single-credit{
   line-height: 180%;
   max-width: 1024px;
   margin: 0 auto;
}

.single-credit h1{
   font-size: 2rem;
   color: var(--htx-green);
}

.single-credit button{
   margin: var(--htx-spacing-sm) auto var(--htx-spacing-lg) auto;
   width: 100%;
   max-width: 360px;
}
.wrapper-single-credito-fiscale .red { color: var(--htx-red); }
.htx-notice-success { border-color: var(--htx-green); }

/* =========================================================
 * PANNELLO DEL CEDENTE — stile moderno (htx-cp-*)
 * ========================================================= */

.htx-cp {
    --cp-navy: #183A6F;
    --cp-navy-2: #234b8b;
    --cp-teal: #10A8A7;
    --cp-green: #2f9e5b;
    --cp-amber: #c77700;
    --cp-red: #b01916;
    --cp-ink: #17233a;
    --cp-muted: #64708a;
    --cp-line: #e3e8f1;
    --cp-bg: #f6f8fc;
    --cp-radius: 18px;
    max-width: 1080px;
    margin: 0 auto 40px;
    color: var(--cp-ink);
    font-size: 1rem;
    line-height: 1.5;
}
.htx-cp *, .htx-cp *::before, .htx-cp *::after { box-sizing: border-box; }
.htx-cp h2, .htx-cp h3, .htx-cp p { margin: 0; padding: 0; text-transform: none; letter-spacing: 0; }

/* Hero */
.htx-cp-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px 30px;
    margin-bottom: 20px;
    color: #fff;
    border-radius: var(--cp-radius);
    background: linear-gradient(120deg, var(--cp-navy) 0%, var(--cp-navy-2) 55%, var(--cp-teal) 130%);
    box-shadow: 0 14px 34px -18px rgba(24, 58, 111, .7);
}
.entry-content .htx-cp-hero h2 { color: #fff; font-size: 1.6rem; line-height: 1.2; margin-bottom: 4px; }
.htx-cp-hero p { color: rgba(255, 255, 255, .85); font-size: .98rem; }
.htx-cp-hero-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    font-size: 1.7rem;
    font-weight: 700;
}

/* Card */
.htx-cp-card {
    background: #fff;
    border: 1px solid var(--cp-line);
    border-radius: var(--cp-radius);
    padding: 24px 26px;
    margin-bottom: 20px;
    box-shadow: 0 8px 26px -20px rgba(24, 58, 111, .55);
}
.htx-cp-card-head { margin-bottom: 16px; }
.htx-cp-card-head h3 { font-size: 1.15rem; color: var(--cp-navy); line-height: 1.3; margin-bottom: 2px; }
.htx-cp-card-head p { color: var(--cp-muted); font-size: .92rem; }
.htx-cp-step { display: flex; align-items: center; gap: 14px; }
.htx-cp-step > div:not(.htx-cp-progress) { flex: 1 1 auto; min-width: 0; }
.htx-cp-step-num {
    flex: 0 0 auto;
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #e8eefb;
    color: var(--cp-navy);
    font-weight: 700;
}

/* Avvisi */
.htx-cp .htx-notice {
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    background: #fff7e6;
    border: 1px solid #f3d9a4;
    color: #7a4b00;
}
.htx-cp .htx-notice-success { background: #eaf7f0; border-color: #bfe4cf; color: #1d6b40; }
.htx-cp .htx-notice-error { background: #fdeceb; border-color: #f2c1bf; color: var(--cp-red); }

/* Progresso checklist */
.htx-cp-progress { flex: 0 0 150px; text-align: right; }
.htx-cp-progress-text { display: block; font-size: .9rem; color: var(--cp-navy); margin-bottom: 6px; }
.htx-cp-progress-bar { display: block; height: 8px; border-radius: 99px; background: #e8eefb; overflow: hidden; }
.htx-cp-progress-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cp-teal), var(--cp-green)); transition: width .3s ease; }

.htx-cp-details summary { cursor: pointer; color: var(--cp-navy-2); font-weight: 600; font-size: .92rem; padding: 6px 0 12px; list-style: none; }
.htx-cp-details summary::-webkit-details-marker { display: none; }
.htx-cp-details summary::before { content: "▸"; display: inline-block; margin-right: 8px; transition: transform .2s; }
.htx-cp-details[open] summary::before { transform: rotate(90deg); }
.htx-cp-link { display: inline-block; margin: 0 0 14px; color: var(--cp-navy-2); font-weight: 600; text-decoration: underline; }

/* Checklist */
.htx-cp-checks {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}
.htx-cp-checks li { margin: 0; padding: 0; list-style: none; }
.htx-cp-check {
    display: flex; gap: 12px; align-items: flex-start;
    height: 100%;
    padding: 12px 14px;
    border: 1px solid var(--cp-line);
    border-radius: 12px;
    background: var(--cp-bg);
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.htx-cp-check:hover { border-color: #b9c6e2; }
.htx-cp-check input { position: absolute; opacity: 0; pointer-events: none; }
.htx-cp-check-box {
    flex: 0 0 auto;
    width: 22px; height: 22px; margin-top: 1px;
    border-radius: 7px;
    border: 2px solid #b4bfd6;
    background: #fff;
    display: grid; place-items: center;
    transition: all .15s;
}
.htx-cp-check input:checked + .htx-cp-check-box { background: var(--cp-green); border-color: var(--cp-green); }
.htx-cp-check input:checked + .htx-cp-check-box::after { content: "✓"; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.htx-cp-check input:focus-visible + .htx-cp-check-box { outline: 3px solid rgba(16, 168, 167, .4); outline-offset: 2px; }
.htx-cp-check input:checked ~ .htx-cp-check-text strong { color: var(--cp-green); }
.htx-cp-check-text strong { display: block; font-size: .93rem; color: var(--cp-ink); line-height: 1.3; }
.htx-cp-check-text small { display: block; margin-top: 3px; color: var(--cp-muted); font-size: .8rem; line-height: 1.35; }

/* Righe crediti */
.htx-cp-rows { display: grid; gap: 12px; margin-bottom: 14px; }
.htx-cp-row {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1fr 44px;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--cp-line);
    border-radius: 14px;
    background: var(--cp-bg);
}
.htx-cp-field { display: block; margin: 0; }
.htx-cp-field span { display: block; margin-bottom: 5px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--cp-muted); }
.htx-cp .htx-cp-field input {
    display: block; width: 100%; max-width: none; height: 46px;
    margin: 0; padding: 0 14px;
    border: 1.5px solid #d3dbea;
    border-radius: 12px;
    background: #fff;
    color: var(--cp-ink);
    font-size: 1rem;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.htx-cp .htx-cp-field input::placeholder { color: #a3adc2; }
.htx-cp .htx-cp-field input:focus { outline: none; border-color: var(--cp-teal); box-shadow: 0 0 0 4px rgba(16, 168, 167, .16); }
.htx-cp .htx-cp-field input.htx-cp-invalid { border-color: var(--cp-red); background: #fff6f6; }
.htx-cp .htx-cp-remove {
    width: 44px; height: 46px; padding: 0;
    border: 1.5px solid #e2c9c8; border-radius: 12px;
    background: #fff; color: var(--cp-red);
    font-size: 1.4rem; line-height: 1; cursor: pointer;
    transition: background-color .15s;
}
.htx-cp .htx-cp-remove:hover { background: #fdeceb; }

.htx-cp-form-error { margin: 0 0 12px; color: var(--cp-red); font-weight: 600; font-size: .92rem; }

.htx-cp .htx-cp-add {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border: 1.5px dashed #9fb2d8; border-radius: 999px;
    background: transparent; color: var(--cp-navy-2);
    font-weight: 700; font-size: .95rem; cursor: pointer;
    transition: all .15s;
}
.htx-cp .htx-cp-add:hover { background: #eef3fd; border-style: solid; }

/* Footer form */
.htx-cp-footer {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
    margin-top: 22px; padding-top: 18px;
    border-top: 1px solid var(--cp-line);
}
.htx-cp-total { margin-right: auto; color: var(--cp-muted); font-size: .92rem; }
.htx-cp-total strong { display: block; font-size: 1.45rem; color: var(--cp-navy); line-height: 1.2; }
.htx-cp-pricing {
    padding: 6px 14px; border-radius: 999px;
    background: #e8f7f7; color: #0b7a79;
    font-weight: 700; font-size: .85rem;
}
.htx-cp .htx-cp-submit {
    padding: 14px 28px;
    border: 0; border-radius: 999px;
    background: linear-gradient(120deg, var(--cp-navy), var(--cp-navy-2));
    color: #fff;
    font-size: 1rem; font-weight: 700; letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 10px 22px -12px rgba(24, 58, 111, .9);
    transition: transform .15s, box-shadow .15s, opacity .15s;
}
.htx-cp .htx-cp-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(24, 58, 111, .95); }
.htx-cp .htx-cp-submit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.htx-cp-locked-hint { margin-top: 10px; text-align: right; color: var(--cp-amber); font-size: .88rem; font-weight: 600; }
.htx-cp-locked-hint[hidden], .htx-cp-form-error[hidden] { display: none; }

/* Tabella crediti */
.htx-cp-table-wrap { overflow-x: auto; }
.htx-cp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.htx-cp-table th {
    padding: 10px 14px; text-align: left;
    font-size: .76rem; text-transform: uppercase; letter-spacing: .05em;
    color: var(--cp-muted); background: var(--cp-bg);
    border-bottom: 1px solid var(--cp-line);
}
.htx-cp-table th:first-child { border-top-left-radius: 10px; }
.htx-cp-table th:last-child { border-top-right-radius: 10px; }
.htx-cp-table td { padding: 13px 14px; border-bottom: 1px solid var(--cp-line); }
.htx-cp-table tbody tr:last-child td { border-bottom: 0; }
.htx-cp-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.htx-cp-badge-ok { background: #e6f6ed; color: #1d6b40; }
.htx-cp-badge-wait { background: #fff2db; color: #8a5300; }
.htx-cp-empty { color: var(--cp-muted); }

/* Checklist standalone (shortcode a parte) */
.htx-cp-standalone { margin-bottom: 20px; }

/* Responsive */
@media (max-width: 760px) {
    .htx-cp-hero { padding: 20px; }
    .entry-content .htx-cp-hero h2 { font-size: 1.3rem; }
    .htx-cp-card { padding: 18px 16px; }
    .htx-cp-step { flex-wrap: wrap; }
    .htx-cp-progress { flex: 1 1 100%; text-align: left; }
    .htx-cp-row { grid-template-columns: 1fr 1fr; }
    .htx-cp-row .htx-cp-field:first-child { grid-column: 1 / -1; }
    .htx-cp-row .htx-cp-remove { grid-column: 1 / -1; width: 100%; height: 40px; }
    .htx-cp-footer { flex-direction: column; align-items: stretch; }
    .htx-cp .htx-cp-submit { width: 100%; }
    .htx-cp-locked-hint { text-align: left; }

    .htx-cp-table thead { display: none; }
    .htx-cp-table, .htx-cp-table tbody, .htx-cp-table tr, .htx-cp-table td { display: block; width: 100%; }
    .htx-cp-table tr { padding: 10px 0; border-bottom: 1px solid var(--cp-line); }
    .htx-cp-table td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 4px; border: 0; }
    .htx-cp-table td::before { content: attr(data-label); color: var(--cp-muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; }
}
