/* Reimbursement payee setup (/payee-setup/{id}) */
.psu {
    color: #32434B;
    width: 100%;
}

.psu-panel {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 0.875rem;
    box-shadow: 0 1px 2px rgba(18, 26, 31, 0.04);
    overflow: hidden;
}

/* Header */
.psu .psu-hero {
    align-items: flex-start;
    border-bottom: 1px solid #E2E8F0;
    display: grid;
    gap: 1rem 1.25rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 1.5rem;
}

.psu .psu-hero__icon {
    align-items: center;
    background: #033D53;
    border-radius: 0.75rem;
    color: #FFFFFF;
    display: inline-flex;
    font-size: 1.375rem;
    height: 3.25rem;
    justify-content: center;
    width: 3.25rem;
}

.psu .psu-hero__title {
    color: #121A1F;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.375rem;
}

.psu .psu-hero__subtitle {
    color: #32434B;
    font-size: 0.875rem;
    line-height: 1.55;
    margin: 0;
    max-width: 40rem;
}

.psu .psu-hero__status {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.psu .psu-hero__status-label {
    color: #32434B;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.psu .psu-chip {
    align-items: center;
    background: #E0F2FE;
    border: 1px solid #033D53;
    border-radius: 999px;
    color: #033D53;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 0.3rem 0.8rem;
    text-align: center;
}

.psu .psu-chip--danger {
    background: #FFF0F2;
    border-color: #5E0011;
    color: #5E0011;
}

/* Stepper */
.psu .psu-stepper {
    border-top: 1px solid #E2E8F0;
    display: grid;
    gap: 0.75rem;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 1.25rem 0 0;
}

.psu .psu-stepper__item {
    align-items: center;
    display: flex;
    gap: 0.625rem;
    min-width: 0;
}

.psu .psu-stepper__item:not(:last-child)::after {
    background: #E2E8F0;
    content: "";
    flex: 1 1 auto;
    height: 2px;
    margin-left: 0.25rem;
    min-width: 1rem;
}

.psu .psu-stepper__item--done:not(:last-child)::after {
    background: #033D53;
}

.psu .psu-stepper__marker {
    align-items: center;
    background: #FFFFFF;
    border: 2px solid #32434B;
    border-radius: 50%;
    color: #32434B;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.8125rem;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.psu .psu-stepper__label {
    color: #32434B;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
}

.psu .psu-stepper__item--current .psu-stepper__marker {
    background: #E0F2FE;
    border-color: #033D53;
    color: #033D53;
}

.psu .psu-stepper__item--current .psu-stepper__label {
    color: #033D53;
    font-weight: 700;
}

.psu .psu-stepper__item--done .psu-stepper__marker {
    background: #033D53;
    border-color: #033D53;
    color: #FFFFFF;
}

.psu .psu-stepper__item--done .psu-stepper__label {
    color: #033D53;
}

/* Alerts */
.psu .psu-alert {
    align-items: flex-start;
    border: 1px solid;
    border-radius: 0.75rem;
    display: flex;
    gap: 0.75rem;
    margin: 1.25rem 1.5rem 0;
    padding: 0.875rem 1.125rem;
}

.psu .psu-alert--info {
    background: #E0F2FE;
    border-color: #033D53;
    color: #033D53;
}

.psu .psu-alert--danger {
    background: #FFF0F2;
    border-color: #5E0011;
    color: #5E0011;
}

.psu .psu-alert__icon {
    font-size: 1.125rem;
    margin-top: 0.1rem;
}

.psu .psu-alert__title {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0;
}

.psu .psu-alert__body {
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 0.25rem 0 0;
}

.psu .psu-alert--centered {
    align-items: center;
}

.psu .psu-alert--centered .psu-alert__icon {
    margin-top: 0;
}

.psu .psu-alert--centered .psu-alert__close {
    margin: 0 -0.5rem 0 0;
}

.psu .psu-refresh {
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #32434B;
    border-radius: 999px;
    color: #32434B;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 0.375rem;
    line-height: 1.25;
    padding: 0.3rem 0.8rem;
}

.psu .psu-refresh:hover:not(:disabled) {
    background: #F6FBFE;
}

.psu .psu-refresh:focus-visible {
    outline: 2px solid #033D53;
    outline-offset: 2px;
}

.psu .psu-refresh:disabled {
    cursor: progress;
}

.psu .psu-alert__content {
    flex: 1 1 auto;
    min-width: 0;
}

.psu .psu-alert__close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0.375rem;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.875rem;
    height: 1.75rem;
    justify-content: center;
    margin: -0.25rem -0.5rem -0.25rem 0;
    padding: 0;
    width: 1.75rem;
}

.psu .psu-alert__close:hover {
    background: #FFFFFF;
}

.psu .psu-alert__close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 1px;
}

/* Body */
.psu .psu-main {
    min-width: 0;
    padding: 0 1.5rem;
}

/* Sections */
.psu .psu-section {
    padding: 1.5rem 0;
}

.psu .psu-section + .psu-section {
    border-top: 1px solid #E2E8F0;
}

.psu .psu-card__header {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.psu .psu-card__num {
    align-items: center;
    background: #E0F2FE;
    border-radius: 50%;
    color: #033D53;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.8125rem;
    font-weight: 700;
    height: 1.75rem;
    justify-content: center;
    width: 1.75rem;
}

.psu .psu-card__title {
    color: #121A1F;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.psu .psu-card__note {
    align-items: center;
    color: #32434B;
    display: flex;
    font-size: 0.8125rem;
    font-weight: 500;
    gap: 0.5rem;
    margin: 1rem 0 0;
}

.psu .psu-card__note i {
    color: #033D53;
}

/* Profile */
.psu .psu-profile {
    background: #F0F4F8;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    display: grid;
    gap: 1rem 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1rem 1.125rem;
}

.psu .psu-field {
    min-width: 0;
}

.psu .psu-field--wide {
    grid-column: 1 / -1;
}

.psu .psu-field__label {
    color: #32434B;
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.psu .psu-field__value {
    color: #121A1F;
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

/* Relationship options */
.psu .psu-options {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.psu .psu-option {
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    margin: 0;
    min-height: 4rem;
    padding: 0.875rem 1rem;
    position: relative;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.psu .psu-option--selected {
    background: #E0F2FE;
    border: 2px solid #033D53;
    padding: calc(0.875rem - 1px) calc(1rem - 1px);
}

.psu .psu-option--disabled {
    cursor: default;
}

.psu .psu-option input.psu-option__input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    left: 0 !important;
    margin: -1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    top: 0 !important;
    white-space: nowrap;
    width: 1px !important;
}

.psu .psu-option:has(.psu-option__input:focus-visible) {
    outline: 2px solid #033D53;
    outline-offset: 2px;
}

.psu .psu-option__icon {
    align-items: center;
    background: #F0F4F8;
    border-radius: 0.5rem;
    color: #033D53;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1rem;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.psu .psu-option--selected .psu-option__icon {
    background: #033D53;
    color: #FFFFFF;
}

.psu .psu-option__label {
    color: #121A1F;
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    min-width: 0;
}

.psu .psu-option__check {
    align-items: center;
    border: 2px solid #32434B;
    border-radius: 50%;
    color: transparent;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.6875rem;
    height: 1.25rem;
    justify-content: center;
    width: 1.25rem;
}

.psu .psu-option--selected .psu-option__check {
    background: #033D53;
    border-color: #033D53;
    color: #FFFFFF;
}

/* Certification */
.psu .psu-cert {
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    gap: 0.875rem;
    margin: 0;
    min-height: 3.5rem;
    padding: 0.875rem 1.125rem;
    position: relative;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.psu .psu-cert--checked {
    background: #E0F2FE;
    border: 2px solid #033D53;
    padding: calc(0.875rem - 1px) calc(1.125rem - 1px);
}

.psu .psu-cert--error {
    background: #FFF0F2;
    border: 2px solid #5E0011;
    padding: calc(0.875rem - 1px) calc(1.125rem - 1px);
}

.psu .psu-cert--error .psu-cert__box {
    border-color: #5E0011;
}

.psu .psu-cert:has(.psu-cert__input:focus-visible) {
    outline: 2px solid #033D53;
    outline-offset: 2px;
}

.psu .psu-cert--disabled {
    cursor: default;
}

.psu .psu-error {
    align-items: center;
    color: #5E0011;
    display: flex;
    font-size: 0.8125rem;
    font-weight: 600;
    gap: 0.4rem;
    margin: 0.5rem 0 0;
}

.psu .psu-cert__box {
    align-items: center;
    background: #FFFFFF;
    border: 2px solid #32434B;
    border-radius: 0.375rem;
    color: transparent;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.75rem;
    height: 1.375rem;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    width: 1.375rem;
}

.psu .psu-cert--checked .psu-cert__box {
    background: #033D53;
    border-color: #033D53;
    color: #FFFFFF;
}

.psu .psu-cert__text {
    color: #121A1F;
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.45;
}

.psu .psu-cert input.psu-cert__input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    left: 0 !important;
    margin: -1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    top: 0 !important;
    white-space: nowrap;
    width: 1px !important;
}

/* Actions */
.psu .psu-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.psu .psu-hint {
    align-items: center;
    color: #32434B;
    display: inline-flex;
    font-size: 0.8125rem;
    font-weight: 500;
    gap: 0.4rem;
    margin-right: auto;
}

.psu .psu-hint i {
    color: #033D53;
}

/* Funding details + what happens next */
.psu .psu-side__title {
    align-items: center;
    color: #121A1F;
    display: flex;
    font-size: 0.875rem;
    font-weight: 700;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
}

.psu .psu-side__title i {
    color: #033D53;
}

.psu .psu-dl {
    background: #F0F4F8;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    display: grid;
    gap: 1rem 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    margin: 0;
    padding: 1rem 1.125rem;
}

.psu .psu-dl__row {
    min-width: 0;
}

.psu .psu-dl__row dt {
    color: #32434B;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin: 0 0 0.15rem;
    text-transform: uppercase;
}

.psu .psu-dl__row dd {
    color: #121A1F;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
    overflow-wrap: anywhere;
}

.psu .psu-next-box {
    background: #F0F4F8;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    padding: 1rem 1.125rem;
}

.psu .psu-next {
    color: #32434B;
    display: grid;
    font-size: 0.8125rem;
    font-weight: 500;
    gap: 0.5rem 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    line-height: 1.5;
    list-style: none;
    margin: 0;
    padding: 0;
}

.psu .psu-next li {
    color: #32434B;
    padding-left: 1.25rem;
    position: relative;
}

.psu .psu-next li + li {
    margin-top: 0.5rem;
}

.psu .psu-next li::before {
    background: #033D53;
    border-radius: 50%;
    content: "";
    height: 0.4rem;
    left: 0.25rem;
    position: absolute;
    top: 0.5rem;
    width: 0.4rem;
}

/* Not found / no access */
.psu .psu-empty {
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 0.875rem;
    display: flex;
    flex-direction: column;
    margin: 1rem auto 0;
    max-width: 32rem;
    padding: 2rem 1.75rem;
    text-align: center;
}

.psu .psu-empty__icon {
    align-items: center;
    background: #E0F2FE;
    border-radius: 50%;
    color: #033D53;
    display: inline-flex;
    font-size: 1.5rem;
    height: 3.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    width: 3.5rem;
}

.psu .psu-empty__title {
    color: #121A1F;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.5rem;
}

.psu .psu-empty__body {
    color: #32434B;
    font-size: 0.875rem;
    line-height: 1.55;
    margin: 0 0 1.25rem;
}

.psu .psu-btn {
    align-items: center;
    border-radius: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.8125rem;
    font-weight: 700;
    gap: 0.5rem;
    justify-content: center;
    letter-spacing: 0.02em;
    line-height: 1;
    min-height: 2.75rem;
    padding: 0 1.375rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.psu .psu-btn--primary {
    background: #033D53;
    border: 1px solid #033D53;
    box-shadow: 0 1px 2px rgba(18, 26, 31, 0.12);
    color: #FFFFFF;
}

.psu .psu-btn--primary:hover:not(:disabled) {
    background: #033D53;
    box-shadow: 0 4px 10px rgba(3, 61, 83, 0.28);
    color: #FFFFFF;
}

.psu .psu-btn--primary:active:not(:disabled) {
    background: #034a66;
    border-color: #034a66;
}

.psu .psu-btn--primary:disabled {
    background: #B9D4E6;
    border-color: #B9D4E6;
    box-shadow: none;
    color: #033D53;
    cursor: not-allowed;
}

.psu .psu-btn--primary[aria-busy="true"],
.psu .psu-btn--primary[aria-busy="true"]:disabled {
    background: #033D53;
    border-color: #033D53;
    color: #FFFFFF;
    cursor: progress;
    opacity: 0.85;
}

.psu .psu-btn--outline {
    background: #FFFFFF;
    border: 1px solid #32434B;
    color: #32434B;
}

.psu .psu-btn--outline:hover {
    background: #F6FBFE;
    color: #32434B;
    text-decoration: none;
}

.psu .psu-btn:focus-visible {
    outline: 2px solid #033D53;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 767px) {
    .psu .psu-hero {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 1.125rem;
    }

    .psu .psu-hero__icon {
        font-size: 1.125rem;
        height: 2.75rem;
        width: 2.75rem;
    }

    .psu .psu-hero__title {
        font-size: 1.125rem;
    }

    .psu .psu-hero__status {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        grid-column: 1 / -1;
    }

    .psu .psu-stepper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .psu .psu-stepper__item::after {
        display: none;
    }

    .psu .psu-alert {
        margin: 1rem 1.125rem 0;
    }

    .psu .psu-main {
        padding: 0 1.125rem;
    }

    .psu .psu-section {
        padding: 1.25rem 0;
    }

    .psu .psu-options,
    .psu .psu-profile,
    .psu .psu-dl,
    .psu .psu-next {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .psu .psu-stepper {
        grid-template-columns: 1fr;
    }

    .psu .psu-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .psu .psu-hint {
        margin-right: 0;
    }

    .psu .psu-actions button {
        width: 100%;
    }
}
