.gps-payment-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.gps-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}
.step { display: flex; align-items: center; text-align: center; flex-direction: column; color: #aaa; }
.step.active { color: #333; font-weight: bold; }
.step.completed { color: #28a745; }
.step-number {
    width: 30px; height: 30px; border-radius: 50%; background-color: #eee;
    line-height: 30px; font-size: 14px; font-weight: bold; margin-bottom: 5px; transition: all 0.3s ease;
}
.step.active .step-number { background-color: #0073aa; color: #fff; }
.step.completed .step-number { background-color: #28a745; color: #fff; }
.step-label { font-size: 12px; }
.step-connector { flex-grow: 1; height: 2px; background-color: #eee; margin: 0 15px; position: relative; top: -10px; }
.gps-step-content .form-group { margin-bottom: 20px; }
.gps-step-content label { display: block; font-weight: 600; margin-bottom: 8px; color: #444; }
.gps-step-content input[type="text"] { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 16px; }
.gps-button {
    display: block; width: 100%; padding: 12px; border: none; border-radius: 5px; font-size: 16px;
    font-weight: bold; text-align: center; cursor: pointer; transition: background-color 0.3s ease; background-color: #0073aa; color: #fff;
}
.gps-button.primary { background-color: #28a745; }
.gps-button.secondary { background-color: #f0f0f0; color: #555; margin-top: 10px; }
.gps-button:hover { background-color: #005a87; }
.gps-button.primary:hover { background-color: #218838; }
.gps-button.secondary:hover { background-color: #e0e0e0; }
.gps-alert { padding: 15px; margin-bottom: 20px; border-radius: 5px; border: 1px solid transparent; }
.gps-alert.gps-error { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
.gps-invoice-details { background: #f9f9f9; border-radius: 5px; padding: 20px; margin-bottom: 20px; }
.gps-invoice-details h3 { margin-top: 0; margin-bottom: 15px; border-bottom: 1px solid #000; padding-bottom: 10px; }
.gps-invoice-details .detail-item { display: flex; padding: 8px 0; font-size: 15px; }
.gps-invoice-details .detail-item span { color: #555; }
.gps-invoice-details .detail-item.total { font-size: 18px; font-weight: bold; border-top: 1px solid #eee; margin-top: 10px; padding-top: 15px; }

/* Aggressively hide checkout fields and labels */
.woocommerce-checkout #customer_details {
    display: none !important;
}
/* Hide the default order table, we have our own summary */
.woocommerce-checkout .woocommerce-checkout-review-order-table {
    display: none !important;
}
/* Make the payment section full width */
.woocommerce-checkout #order_review {
    width: 100% !important;
    float: none !important;
}
/* Center our summary box */
.woocommerce-checkout .gps-payment-container {
    margin-left: auto;
    margin-right: auto;
}

/* --- GPS Wizard Material Design Styles --- */
#gps-wizard-app {
    font-family: "Roboto", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f5f5f5;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 8px;
    overflow: hidden;
}

.wizard-card {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Stepper */
.wizard-nav {
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}
.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #616161;
    flex: 1;
    padding: 0.5rem;
}
.nav-tab .step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #bdbdbd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s;
}
.nav-tab .step-label {
    font-size: 0.875rem;
    transition: color 0.3s;
}
.nav-tab.active .step-number {
    background-color: #1976d2; /* Material Blue */
}
.nav-tab.active .step-label {
    color: #1976d2;
    font-weight: 500;
}
.nav-tab.completed .step-number {
    background-color: #388e3c; /* Material Green */
}
.nav-tab:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Step Content */
.wizard-step {
    padding: 1.5rem;
}
.wizard-step:not(.active) {
    display: none;
}
.wizard-step h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #212121;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Form Elements */
.wizard-form .form-row {
    margin-bottom: 1.5rem;
    position: relative;
}
.wizard-form .form-row input,
.wizard-form .form-row select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #bdbdbd;
    background-color: transparent;
    padding: 0.5rem 0;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.wizard-form .form-row input:focus,
.wizard-form .form-row select:focus {
    outline: none;
    border-bottom: 2px solid #1976d2;
}
.wizard-form .form-row label {
    position: absolute;
    top: 0.5rem;
    left: 0;
    color: #757575;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s;
}
.wizard-form .form-row input:focus + label,
.wizard-form .form-row input:not(:placeholder-shown) + label {
    top: -1rem;
    font-size: 0.75rem;
    color: #1976d2;
}
/* For selects, we can't use the same placeholder trick */
.wizard-form .form-row select + label {
    top: -1rem;
    font-size: 0.75rem;
}

.search-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.search-row input {
    flex-grow: 1;
}

/* Buttons */
.wizard-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    background-color: #1976d2;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: box-shadow 0.3s;
}
.wizard-button:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}
.wizard-button.secondary {
    background-color: #f5f5f5;
    color: #333;
}
.step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* Messages & Summary */
#wizard-message-area {
    padding: 1rem 1.5rem;
    font-weight: 500;
    display: none;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
}
#wizard-message-area.success { color: #388e3c; background: #e8f5e9; display: block; }
#wizard-message-area.error { color: #d32f2f; background: #ffebee; display: block; }

#wizard-summary {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
}
#wizard-summary h4 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
}
#wizard-summary p {
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 600px) {
    #gps-wizard-app {
        margin: 0;
        border-radius: 0;
    }
    .wizard-step {
        padding: 1rem;
    }
    .nav-tab .step-label {
        display: none;
    }
    .step-actions {
        flex-direction: column;
    }
    .wizard-button {
        width: 100%;
        text-align: center;
    }
}