/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;  margin: 0;
}
/* For Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* Payment Widget (WPWL) - Light Mode (default) */
.wpwl-form {
    background: var(--color-surface-secondary);
}
.wpwl-form-card {
    background: var(--color-surface-secondary);
    border: 0;
}
.wpwl-label-brand {
    display: none;
}

/* Labels */
.wpwl-label {
    color: var(--color-text-primary);
}

/* Input controls */
.wpwl-control {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}
.wpwl-control:focus {
    border-color: var(--business-accent);
    outline: none;
}

/* Select dropdown */
.wpwl-control-brand {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

/* Iframe controls (card number, CVV) */
.wpwl-control-iframe {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
}

/* Submit button */
.wpwl-button-pay {
    background-color: var(--business-accent);
    color: var(--business-accent-button-foreground);
    border: none;
}
.wpwl-button-pay:hover {
    opacity: 0.9;
}
.wpwl-button-pay:focus {
    outline: 2px solid var(--business-accent);
    outline-offset: 2px;
}

/* Error states */
.wpwl-has-error .wpwl-control,
.wpwl-control.wpwl-has-error {
    border-color: #ef4444;
}
.wpwl-hint {
    color: #ef4444;
}

/* Wrapper styling */
.wpwl-wrapper {
    background-color: transparent;
}

/* Brand icon container */
.wpwl-brand {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

