.wcc-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.wcc-form,
.wcc-card {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(20, 35, 60, 0.06);
}

.wcc-form {
    padding: 24px;
}

.wcc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.wcc-field-full {
    grid-column: 1 / -1;
}

.wcc-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.wcc-field input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #ccd5df;
    border-radius: 12px;
    background: #fff;
}

.wcc-field small,
.wcc-map-help {
    display: block;
    margin-top: 8px;
    color: #5b6777;
    font-size: 13px;
}

.wcc-map-wrap {
    margin-top: 22px;
}

.wcc-map {
    height: 360px;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid #ccd5df;
}

.wcc-actions {
    margin-top: 22px;
}

.wcc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    background: #89c900;
    color: #fff;
}

.wcc-status {
    margin-top: 18px;
    font-weight: 600;
}

.wcc-status.is-error {
    color: #b42318;
}

.wcc-status.is-success {
    color: #027a48;
}

.wcc-results {
    margin-top: 20px;
}

.wcc-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.wcc-card {
    padding: 24px;
}

.wcc-card h3 {
    margin: 0 0 14px;
    font-size: 22px;
}

.wcc-highlight {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 14px;
}

.wcc-meta {
    display: grid;
    gap: 8px;
    color: #344054;
}

.wcc-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.wcc-service-list li {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    background: #f9fbfd;
}

@media (max-width: 767px) {
    .wcc-grid,
    .wcc-report-grid {
        grid-template-columns: 1fr;
    }

    .wcc-form,
    .wcc-card {
        padding: 18px;
    }

    .wcc-map {
        height: 300px;
    }
}

.pac-container { z-index: 999999 !important; }


.wcc-offer-cards {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.wcc-offer-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #d9e2ec;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.wcc-offer-card h4 {
    margin: 8px 0 6px;
    font-size: 18px;
}

.wcc-offer-card p {
    margin: 0;
    color: #344054;
}

.wcc-offer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eefbd5;
    color: #89c900;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.wcc-offer-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #89c900;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.wcc-offer-card__button:hover {
    color: #fff;
    opacity: .92;
}

.wcc-offer-card__missing {
    color: #b54708;
    font-size: 14px;
    font-weight: 600;
}


.wcc-product-summary {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #d8e3ee;
    border-radius: 12px;
    background: #f7fbff;
}
.wcc-product-summary__title {
    font-weight: 700;
    margin-bottom: 8px;
}
.wcc-product-summary__row {
    margin-bottom: 4px;
}
.wcc-product-summary__help {
    margin-top: 8px;
    font-size: 13px;
    opacity: .8;
}


.wcc-error-box {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #f3c6c6;
    border-radius: 16px;
    background: #fff6f6;
    color: #7a271a;
}

.wcc-error-box__title {
    font-weight: 800;
    margin-bottom: 6px;
    color: #b42318;
}

.wcc-error-box p {
    margin: 0 0 14px;
}

.wcc-manual-popup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: #89c900;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.wcc-manual-popup-button:hover {
    opacity: .92;
}


/* Riepilogo dinamico offerta in pagina prodotto */
.wcc-summary-list {
    display: grid;
    gap: 8px;
    margin: 8px 0 14px;
}

.wcc-summary-list__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0, 155, 26, 0.08);
    color: #151a33;
    font-size: 14px;
}

.wcc-summary-list__row strong {
    white-space: nowrap;
    color: #009b1a;
    font-weight: 800;
}

.wcc-summary-empty {
    color: #6b7280;
    font-size: 14px;
}

#wcc-monthly-total,
[data-wcc-monthly-total],
#wcc-pay-today,
[data-wcc-pay-today] {
    color: #151a33;
    font-weight: 800;
}

#wcc-payment-note,
[data-wcc-payment-note] {
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.35;
}

/* Forza il verde del sito sui pulsanti principali */
.single_add_to_cart_button,
button.single_add_to_cart_button,
.wcc-offer-card__button,
.wcc-button,
.wcc-manual-popup-button {
    background: #009b1a !important;
    color: #ffffff !important;
    border-color: #009b1a !important;
}

.single_add_to_cart_button:hover,
button.single_add_to_cart_button:hover,
.wcc-offer-card__button:hover,
.wcc-button:hover,
.wcc-manual-popup-button:hover {
    background: #007f15 !important;
    color: #ffffff !important;
    border-color: #007f15 !important;
}


/* Elementi opzionali riepilogo offerta */
#wcc-offer-title,
[data-wcc-offer-title] {
    font-weight: 800;
}

#wcc-offer-speeds,
[data-wcc-offer-speeds] {
    font-size: 14px;
}


/* wcc-clean-product-configurator: pagina prodotto come configuratore */
.single-product .wapf-product-totals {
    display: none !important;
}

.single-product form.cart .single_add_to_cart_button {
    display: none !important;
}

/* Pulsante sticky Elementor */
#wcc-sticky-checkout-button,
[data-wcc-sticky-checkout-button] {
    cursor: pointer;
}


/* Opzioni configurazione in carrello/checkout */
.wcc-checkout-options {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.4;
}

.wcc-checkout-options li {
    margin: 3px 0;
}

.wcc-checkout-options strong {
    font-weight: 700;
}


/* Nasconde messaggio "prodotto aggiunto al carrello" nella pagina configuratore */
.single-product .woocommerce-message,
.single-product .woocommerce-notices-wrapper .woocommerce-message {
    display: none !important;
}

/* Migliora il riepilogo ordine checkout/carrello */
.wc-block-components-order-summary-item__description .wc-block-components-product-metadata,
.wc-block-components-product-metadata {
    margin-top: 8px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.wc-block-components-product-metadata__description {
    margin-bottom: 6px !important;
}

.wc-block-components-product-details {
    display: grid !important;
    gap: 4px !important;
    margin: 8px 0 0 !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    background: #f5f8fc !important;
}

.wc-block-components-product-details li,
.wc-block-components-product-details__item {
    display: flex !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #33415c !important;
}

.wc-block-components-product-details__name,
.wc-block-components-product-details__value {
    display: inline !important;
    margin: 0 !important;
}

.wc-block-components-product-details__name {
    font-weight: 700 !important;
    color: #17345c !important;
}

.wc-block-components-product-details__value {
    text-align: right !important;
    color: #33415c !important;
}

/* Evita riepiloghi larghi e difficili da leggere nel blocco ordine */
.wc-block-components-order-summary-item__description {
    overflow-wrap: anywhere !important;
}

/* Checkout classico */
.woocommerce-checkout-review-order .variation,
.woocommerce-cart-form .variation {
    display: grid !important;
    gap: 4px !important;
    margin-top: 8px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    background: #f5f8fc !important;
}

.woocommerce-checkout-review-order .variation dt,
.woocommerce-cart-form .variation dt {
    font-weight: 700 !important;
    color: #17345c !important;
}

.woocommerce-checkout-review-order .variation dd,
.woocommerce-cart-form .variation dd {
    margin: 0 0 4px !important;
    color: #33415c !important;
}


/* Prezzi nelle card offerte automatiche da WooCommerce */
.wcc-offer-prices {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.wcc-offer-prices > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 9px 11px;
    border-radius: 10px;
    background: #f2f6fb;
    color: #17345c;
    font-size: 14px;
}

.wcc-offer-prices span {
    font-weight: 600;
}

.wcc-offer-prices strong {
    font-weight: 900;
    color: #009b1a;
    text-align: right;
}

.wcc-offer-prices del {
    opacity: .65;
    margin-right: 4px;
}


/* wcc-final-mobile-142: rifiniture responsive definitive */
@media (max-width: 767px) {
    .wcc-wrapper {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .wcc-form {
        padding: 18px !important;
        border-radius: 16px;
    }

    .wcc-field input {
        min-height: 50px;
        font-size: 16px;
    }

    .wcc-map {
        height: 280px !important;
        border-radius: 14px;
    }

    .wcc-button,
    .wcc-offer-card__button,
    .wcc-manual-popup-button {
        width: 100%;
        min-height: 50px;
    }

    .wcc-card {
        padding: 18px !important;
        border-radius: 16px;
    }

    .wcc-card h3 {
        font-size: 20px;
        line-height: 1.2;
    }

    .wcc-highlight {
        font-size: 16px;
    }

    .wcc-offer-card {
        padding: 15px;
        border-radius: 15px;
    }

    .wcc-offer-prices > div,
    .wcc-summary-list__row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .wcc-offer-prices strong,
    .wcc-summary-list__row strong {
        text-align: left;
    }

    .wcc-product-summary {
        padding: 14px !important;
        border-radius: 12px;
    }
}

/* Migliora la leggibilità del checkout blocks anche da mobile */
@media (max-width: 767px) {
    .wc-block-components-order-summary-item__description,
    .wc-block-components-product-metadata,
    .wc-block-components-product-details {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .wc-block-components-product-details li,
    .wc-block-components-product-details__item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
    }

    .wc-block-components-product-details__value {
        text-align: left !important;
    }
}
