/* Popup Checkout */
/* hide scroll bar when popup is open */
body.popup-open {
    overflow: hidden;
    max-height: calc(100vh - var(--wd-admin-bar-h));
    margin: 0;
    padding: 0;
}

.popup-checkout {
    background-color: #22222280;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: 0 !important;
    z-index: 1000000000;
    display: flex;
    justify-content: center;
    overflow: auto;
    font-family: sans-serif;
}

.popup-checkout form.checkout.woocommerce-checkout {
    box-sizing: border-box;
    background-color: #fff;
    max-width: 95%;
    padding: 11px 16px 22px;
    margin: 5em 0;
    position: relative;
    border-radius: 9px;
    box-shadow: 0 10px 20px 0 rgb(0, 0, 0, 0.2);
    height: max-content;
}


.btn-cod {
    background-color: #c0392b !important;
    color: #fff !important;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: .9; transform: scale(1.05); }
    100% { opacity: 1; }
}

.cod-fee-amount, .shipping-amount, .subtotal-amount, .discount-amount {
    font-weight: 900;
}

.popup-checkout .woocommerce-billing-fields__field-wrapper {
    text-align: left;
}

.popup-checkout #order_review_heading {
    font-family: sans-serif !important;
}

.popup-checkout span.woocommerce-input-wrapper {
    display: block;
}

.popup-checkout span.woocommerce-input-wrapper label.radio {
    margin: 0;
    padding: 0;
}

.missing > * {
    border: 2px solid red !important;
}

.missing::after {
    content: 'Campo Obbligatorio';
    background: url('https://pezzellashop.com/wp-content/uploads/2025/10/cross-sign-red.png') no-repeat 45px center;
    background-size: 15px;
    padding-left: 65px;
    display: block;
    color: red;
    background-color: #ff00001a;
    margin-top: -1px;
    border-radius: 0px 0px 10px 10px;
    width: 97%;
    margin: auto;
}

.popup-checkout .place-order {
    text-align: center;

}

.popup-checkout .place-order #place_order {
    background-color: var(--btn-accented-bgcolor);
    color: #fff;
}

.popup-checkout .place-order #place_order:hover {
    background-color: var(--btn-accented-bgcolor-hover);
}

.popup-checkout .close {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 1em;
    cursor: pointer;
}

.popup-checkout #shipping_method {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-checkout tfoot {
    background: rgb(235, 235, 235) !important;
    border-radius: 6px;
}

.popup-checkout td.product-name {
    font-weight: 800;
}

.popup-checkout a.woocommerce-remove-coupon,
.popup-checkout .tax_label,
.popup-checkout thead,
.popup-checkout .includes_tax {
    display: none;
}

.popup-checkout td,
.popup-checkout th {
    padding: 0;
}

.popup-checkout .cart-discount span.woocommerce-Price-amount.amount {
    margin-left: 2px;
}


/* Generato da Claude */

.popup-checkout .quantity-option, .popup-checkout .cross-sell-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 3px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}


.popup-checkout .quantity-option:hover {
    border-color: rgb(122 78 45);
    background-color: rgb(205 164 96);
}

.popup-checkout .quantity-option.selected, .popup-checkout label:has(input[type="checkbox"]:checked) .cross-sell-item {
    border-color: rgb(122 78 45);
    background-color: rgb(205 164 96);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2);
}

.popup-checkout .cross-sell-items input[type="checkbox"] {
    display: none;
}

.popup-checkout .product-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.popup-checkout .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.popup-checkout .product-details {
    flex: 1;
    text-align: left;
}

.popup-checkout .quantity-text {
    font-weight: 800;
    color: #333;
    line-height: 1.4;
}

.popup-checkout .discount-badge {
    display: inline-block;
    background: #ed2222;
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    margin-top: 5px;
    line-height: 1;
}

.popup-checkout .price-details, .cross-sell-price {
    text-align: right;
}

.popup-checkout .original-price,  .cross-sell-price .old bdi {
    text-decoration: line-through;
    color: #696969;
    font-size: 14px;
}

.popup-checkout .final-price, .cross-sell-price bdi {
    font-size: 18px;
    font-weight: 800;
    color: #333;
}

.woocommerce-billing-fields h3 {
    padding: 1em 0 0;
    text-align: center;
}

.popup-checkout .order-summary {
    background-color: rgb(235,235,235) !important;
    padding: 8px 12px 5px;
    margin-top: 20px;
    border-radius: 6px;
}

.popup-checkout #billing_e_richiesta_la_fattura_field {display:none}

.popup-checkout .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.popup-checkout .summary-row.discount .discount-amount {
    color: #d63638;
}

.popup-checkout .summary-row.total {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 10px;
    font-size: 18px;
}

.popup-checkout .place-order {
    margin-top: 20px;
}

.popup-checkout .place-order button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 800;
    background-color: #ed2222 !important;
    color: #fff;
    flex-wrap: wrap;
    gap: 0 10px;
}

.popup-checkout .place-order button .price {
    color: #fff;
}

.popup-checkout p.caricamento {
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Additional Info */
.additional-items {
    margin-top: 20px;
}

.additional-items-options {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: auto;
    box-shadow: 2px 2px 4px #22222270;
    padding: 1em;
    border-radius: 8px;
    border: 1px solid #22222212;
}

.additional-items .item-left {
    width: 50%;
}

.additional-items .item-left h3 {font-size: 1.1em;margin: 0;text-align: left;}

.additional-items .item-right {
    width: 50%;
    text-align: right;
}

.additional-items .item-right label {
    text-align: right;
}

.additional-items .btn.additional-btn {
    padding: 0.5em 1em;
    min-height: 0;
    font-weight: 600;
    color: #cda460;
    background: none;
    border: 2px solid #cda460;
    font-size: 14px;
}

.additional-items .btn.additional-btn.checked {
    background: #cda460;
    color: #222;
}

.additional-items hr {
    border: none;
    border-bottom: 1px solid rgb(209 7 7);
    opacity: .2;
    width: 98%;
    max-width: 100%;
    margin: 0.5em auto;
}