.mc-buy-button-container {
    margin: 30px 0;
    padding: 25px;
    background: #f9f9f9;
    border: 2px solid #7b2cbf;
    border-radius: 8px;
    text-align: center;
}

.mc-product-price {
    margin-bottom: 20px;
    font-size: 24px;
}

.mc-price-label {
    color: #666;
    font-weight: normal;
    margin-right: 10px;
}

.mc-price-amount {
    color: #7b2cbf;
    font-weight: bold;
    font-size: 32px;
}

.mc-buy-button {
    background: #7b2cbf;
    border-color: #7b2cbf;
    color: #fff;
    transition: all 0.3s ease;
}

.mc-buy-button:hover {
    background: #005a87;
    border-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

.mc-buy-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.mc-checkout-loading {
    color: #7b2cbf;
    font-weight: 500;
}

.mc-checkout-loading .spinner {
    float: none;
    margin: 0 10px 0 0;
}

.mc-checkout-error {
    color: #dc3232;
    font-weight: 500;
    padding: 10px;
    background: #fff;
    border-left: 4px solid #dc3232;
    border-radius: 4px;
}

.mc-seller-not-configured {
    border-color: #ffb900;
    background: #fffbf0;
}

.mc-seller-not-configured .mc-notice {
    margin: 0;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    border-radius: 4px;
}

.mc-notice.mc-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
}

.mc-notice.mc-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
}

/* Loader pulsante checkout */
.mc-button-loader {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    vertical-align: middle;
    animation: mc-spin 0.6s linear infinite;
}

@keyframes mc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Popup dati fiscali */
.mc-tax-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.mc-tax-modal.is-active {
    display: block;
}

.mc-tax-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.mc-tax-modal__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    margin: 5vh auto;
    background: #fff;
    border-radius: 6px;
    padding: 20px;
}

.mc-tax-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #333;
}

.mc-tax-modal .mc-tax-form-container {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .mc-buy-button-container {
        padding: 20px 15px;
    }
    
    .mc-price-amount {
        font-size: 28px;
    }
    
    .mc-buy-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
}

.mc-cart-tax-notice {
    margin: 12px 0 10px;
    padding: 12px 14px;
    background: #fff8e5;
    border: 1px solid #fed7aa;
    border-left: 4px solid #ea580c;
    border-radius: 6px;
    color: #7c2d12;
    font-size: 13px;
    line-height: 1.45;
}

.mc-cart-tax-notice p {
    margin: 0;
    color: #7c2d12;
}

.mc-cart-tax-notice p:last-child {
    margin-bottom: 0;
}

.mc-cart-tax-notice__link {
    color: #c2410c;
    font-weight: 700;
    text-decoration: underline;
}

.mc-cart-tax-notice__link:hover {
    color: #9a3412;
}

.mc-cart-tax-notice--success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.mc-cart-tax-notice--success p {
    color: #155724;
}

.mc-cart-tax-notice--pulse {
    animation: mc-cart-tax-pulse 0.45s ease-in-out 2;
}

@keyframes mc-cart-tax-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.45);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(234, 88, 12, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
    }
}

#mc-tax-required-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mc-tax-required-modal__panel {
    background: #fff;
    max-width: 480px;
    width: 100%;
    border-radius: 10px;
    padding: 28px 24px 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mc-tax-required-modal__panel h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
    color: #333;
}

.mc-tax-required-modal__panel p {
    margin: 0 0 10px;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.mc-tax-required-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.mc-tax-required-modal__actions .button {
    flex: 1 1 auto;
    min-width: 140px;
    text-align: center;
}
