#payment-form-ff-wrapper {
    margin-bottom: 20px;
}

#payment-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 0 20px 0;
    border-radius: 12px;
}

#payment-element {
    margin-bottom: 24px;
    min-height: 120px;
    position: relative;
    border-radius: 8px;
}

#payment-element-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 300px;
    background: rgba(255, 255, 255, 0);
    z-index: 100;
}

td {
    font-size: smaller;
}

.spinner {
    color: #635bff;
    font-size: 14px;
}

.spinner::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: text-bottom;
    border: 2.5px solid rgba(99, 91, 255, 0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spinner-border 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin-right: 10px;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

#submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    border: 0;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.2);
    max-width: 500px;
    margin: 0 auto;
}

#submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 91, 255, 0.3);
}

#submit-button:active {
    transform: translateY(0);
}

#submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    box-shadow: none;
}

#error-message {
    color: #dc2626;
    text-align: center;
    margin-bottom: 16px;
    display: none;
    padding: 14px 16px;
    border-radius: 8px;
    background-color: #fef2f2;
    border: 1px solid rgba(220, 38, 38, 0.15);
    font-size: 14px;
    line-height: 1.5;
}

#error-message:not(:empty) {
    display: block;
}

#submit-button .spinner {
    margin-right: 8px;
    display: none;
}

.hidden {
    display: none;
}

.ff-btn-submit {
    display: none !important;
    visibility: hidden !important;
}

@media (max-width: 576px) {
    #payment-form {
        padding: 16px 0;
        box-shadow: none;
    }
    
    #submit-button {
        padding: 16px 24px;
        font-size: 15px;
    }
}