/**
 * mod_psp_payments — styles
 * @version 1.0.0
 */

.psp-payment-module {
    --psp-accent: #0071BB; /* overridden per-instance via inline style */
    --psp-radius: 6px;
    --psp-gap: 0.5rem;
    --psp-btn-height: 38px;
}

/* Title & intro */
.psp-module-title {
    margin-bottom: 0.75rem;
}

.psp-intro-text {
    margin-bottom: 1rem;
}

/* Labels */
.psp-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.psp-label-custom {
    margin-top: 0.75rem;
}

/* Sections */
.psp-amount-section,
.psp-method-section,
.psp-payer-section,
.psp-submit-section {
    margin-bottom: 1.25rem;
}

/* Amount buttons */
.psp-amount-buttons,
.psp-method-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--psp-gap);
}

.psp-amount-btn,
.psp-method-btn {
    padding: 0.45rem 1.1rem;
    border: 2px solid var(--psp-accent);
    border-radius: var(--psp-radius);
    background: transparent;
    color: var(--psp-accent);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.psp-amount-btn:hover,
.psp-method-btn:hover {
    background: color-mix(in srgb, var(--psp-accent) 12%, transparent);
}

.psp-amount-btn.active,
.psp-method-btn.active {
    background: var(--psp-accent);
    color: #fff;
}

/* Custom amount input */
.psp-input-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 160px;
}

.psp-currency-symbol {
    position: absolute;
    left: 0.65rem;
    color: #666;
    pointer-events: none;
}

.psp-custom-amount-input {
    padding-left: 1.8rem;
    border-radius: var(--psp-radius);
    border: 1px solid #ced4da;
    height: calc(1.5em + 0.75rem + 2px);
    font-size: 1rem;
    width: 100%;
}

.psp-custom-amount-input:focus {
    border-color: var(--psp-accent);
    outline: none;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--psp-accent) 25%, transparent);
}

/* Payer fields */
.psp-field {
    margin-bottom: 0.85rem;
}

/* Submit button */
.psp-submit-btn {
    background: var(--psp-accent);
    color: #fff;
    border: none;
    border-radius: var(--psp-radius);
    padding: 0.55rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    height: var(--psp-btn-height);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.psp-wero-inline {
    height: calc(var(--psp-btn-height) - 14px); /* slightly shorter than button to add breathing room */
    width: auto;                                  /* let the 2.6:1 horizontal logo scale naturally */
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.psp-submit-btn:hover:not(:disabled) {
    filter: brightness(1.1);
}

.psp-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Error */
.psp-error-msg {
    margin-bottom: 0.75rem;
}
