.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_footer button,
#gform_submit_button_21,
.gform_button {
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    z-index: -1 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

#cwc-button-container {
    padding: 20px 0;
    text-align: center;
}

.cwc-form-row {
    margin-bottom: 20px;
}


#cwc-submit-btn,
.checkout-button {
    width: 100%;
    max-width: 400px;
    padding: 18px;
    font-size: 20px;
    font-weight: 700;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 50px;
    /* Modern pill shape */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 14px rgba(0, 115, 170, 0.4);
}

#cwc-submit-btn:hover:not(:disabled) {
    background-color: #005177;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.5);
}

#cwc-submit-btn:active:not(:disabled) {
    transform: translateY(1px);
}

#cwc-submit-btn:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
}

/* Fee Notice & Loader */
.cwc-fee-notice {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.cwc-loader {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, .1);
    border-radius: 50%;
    border-top-color: #333;
    animation: cwc-spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
    border-top-color: #fff;
}

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

.cwc-fee-notice strong {
    display: flex;
    align-items: center;
}

/* Order Summary Modal Styling */
.cwc-summary-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cwc-summary-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: cwcFadeUp 0.3s ease-out;
}

@keyframes cwcFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cwc-summary-header {
    background: #f8f9fa;
    padding: 24px;
    border-bottom: 1px solid #edf1f4;
    text-align: center;
}

.cwc-summary-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.cwc-summary-body {
    padding: 24px;
}

.cwc-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 15px;
    color: #4a5568;
}

.cwc-summary-row.total {
    border-top: 1px solid #edf1f4;
    margin-top: 16px;
    padding-top: 16px;
    font-weight: 800;
    font-size: 18px;
    color: #1a1a1a;
}

.cwc-summary-row .label {
    opacity: 0.8;
}

.cwc-summary-row .value {
    font-weight: 600;
}

.cwc-summary-row.discount .value {
    color: #2f855a;
}

.cwc-summary-row.fee .value {
    color: #c53030;
}

.cwc-future-badge {
    background: #e6f6ff;
    color: #007bff;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}

.cwc-summary-footer {
    padding: 24px;
    display: flex;
    gap: 12px;
}

.cwc-confirm-btn {
    flex: 2;
    background: #007bff;
    color: #fff !important;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.cwc-confirm-btn:hover {
    background: #0069d9;
    transform: translateY(-1px);
}

.cwc-cancel-btn {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cwc-cancel-btn:hover {
    background: #e2e6ea;
}

/* Inline Preview Badge */
#cwc-plan-preview {
    margin: 15px 0;
    padding: 12px 18px;
    background: #fdfdfd;
    border-radius: 12px;
    border: 1px solid #eee;
    border-left: 5px solid #007bff;
    font-size: 15px;
    color: #1a1a1a;
    display: none;
    animation: cwcSlideIn 0.3s ease-out;
}

#cwc-plan-preview .price {
    font-weight: 800;
    color: #007bff;
}

@keyframes cwcSlideIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}