#flexa-checkout-button {
    background-color: #224229;
    border: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 45px;
    border-radius: 0px 0px 0px 0px;
    padding: 5px 30px 5px 30px;
    color: #fff;
    width: 100%;
    cursor: pointer;
}

#flexa-checkout-button:hover {
    background-color: #313232;
    border: 0;
    color: #fff;
}

.flexa-modal-open {
    overflow: hidden;
}

#flexa-checkout-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.flexa-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.flexa-modal-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.flexa-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flexa-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 32px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.flexa-modal-btn:hover, .flexa-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.flexa-local-pickup-btn {
    background-color: #224229;
    color: white;
    padding: 12px 60px;
}

.flexa-personal-pickup-btn {
    background-color: #313232;
    color: white;
    padding: 12px 30px;
}

.flexa-cash-payment-btn {
    background-color: #ffc107;
    color: #212529;
}

.flexa-klarna-payment-btn {
    background-color: #ffa8cd;
    color: #000;
}

.flexa-back-btn {
    background-color: #313232;
    color: white;
    padding: 12px 50px;
    font-size: 14px;
    margin-top: 15px;
    border: none;
    border-radius: 32px;
}

.flexa-modal-step {
    transition: all 0.3s ease;
}

.flexa-modal-back {
    text-align: center;
    margin-top: 15px;
}

.flexa-modal-button-group {
    width: 100%;
}

.flexa-modal-button-group-local-pickup {
    border-bottom: 1px solid #82878745;
    padding-bottom: 20px;
}

.wc-block-cart__submit {
    display: none;
}

@media (min-width: 768px) {
    .flexa-modal-button-group {
        width: 50%;
    }
    .flexa-modal-buttons {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .flexa-modal-btn {
        flex: 1;
        margin: 0 5px;
    }


    .flexa-modal-button-group-local-pickup {
        border-right: 1px solid #82878745;
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* Loading state styles */
.flexa-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.flexa-modal-btn:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: flexa-spin 1s linear infinite;
}

@keyframes flexa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
