/* RMA Request Form Styles */

/* Support form: remove card hover effect */
.support-request-container .rz-card:hover,
.support-request-container .support-request-card:hover {
    box-shadow: 0 2px 4px rgba(0, 72, 144, 0.08) !important;
    transform: none !important;
}

/* ─── Linear stepper: RMA + Support request wizards (.rma-request-wizard) ─── */
/* Radzen 10.3 marks the current step on the <li> with .rz-state-highlight and .rz-steps-current (not .rz-state-active). */
.rz-card.registration-form-card.rma-request-form-card,
.rz-card.registration-form-card.support-request-form-card {
    padding: 1.5rem 1.75rem 1.75rem;
    box-sizing: border-box;
}

.rz-steps.rma-request-wizard {
    width: 100% !important;
    padding: 1.1rem 1.25rem 1rem !important;
    margin: 0 !important;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-family: var(--ua-font-primary, "Segoe UI", system-ui, sans-serif);
    box-sizing: border-box;
}

.rz-card .rz-steps.rma-request-wizard {
    border-radius: 0;
}

/* Only the tablist <ul> is the step header row (avoids styling a stray .rz-steps-list or second list). */
.rz-steps.rma-request-wizard > ul[role="tablist"] {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0.35rem;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.rz-steps.rma-request-wizard .rz-widget-content {
    padding: 1.15rem 1.25rem 1.35rem !important;
    box-sizing: border-box;
}

.rz-steps.rma-request-wizard .rz-steps-item,
.rz-steps.rma-request-wizard > ul[role="tablist"] > li {
    flex: 1 1 0% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
    min-width: 0 !important;
    max-width: none !important;
}

/* Sharp index badges (on-brand, not generic circles) */
.rz-steps.rma-request-wizard .rz-steps-number {
    width: 2.125rem !important;
    height: 2.125rem !important;
    min-width: 2.125rem !important;
    line-height: 2.125rem !important;
    border-radius: 0 !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    background: #fff !important;
    color: #64748b !important;
    border: 1px solid #cbd5e1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rz-steps.rma-request-wizard .rz-steps-item.rz-steps-current .rz-steps-number,
.rz-steps.rma-request-wizard .rz-steps-item.rz-state-highlight .rz-steps-number,
.rz-steps.rma-request-wizard .rz-state-active .rz-steps-number {
    background: var(--ua-primary-blue, #004890) !important;
    color: #fff !important;
    border-color: var(--ua-primary-blue, #004890) !important;
    box-shadow: none;
}

/* Steps before the current (DOM order) — Radzen does not always emit .rz-state-completed */
.rz-steps.rma-request-wizard > ul[role="tablist"] > .rz-steps-item:has(~ .rz-steps-current) .rz-steps-number,
.rz-steps.rma-request-wizard .rz-state-completed .rz-steps-number,
.rz-steps.rma-request-wizard .rz-state-complete .rz-steps-number {
    background: var(--ua-secondary-dark-blue, #203864) !important;
    color: #fff !important;
    border-color: #1a2f52 !important;
    box-shadow: none;
}

/* Labels: subtle caps for a more “product” / dashboard feel.
   Base size/colour cover the upcoming ("next") steps — current/completed steps
   override colour + weight below. Bumped from 0.65rem/#64748b to 0.72rem/#475569
   per ISPB-652 UAT: the upcoming-step labels read too small and too low-contrast
   on the light stepper background (now ~6.6:1, comfortably WCAG AA). */
.rz-steps.rma-request-wizard .rz-steps-title {
    font-weight: 500;
    font-size: 0.72rem;
    line-height: 1.2;
    margin-top: 0.5rem;
    text-align: center;
    color: #475569;
    white-space: normal;
    max-width: 10rem; /* "COMPANY & AIRCRAFT" should not wrap to 3 lines */
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rz-steps.rma-request-wizard .rz-steps-item.rz-steps-current .rz-steps-title,
.rz-steps.rma-request-wizard .rz-steps-item.rz-state-highlight .rz-steps-title,
.rz-steps.rma-request-wizard .rz-state-active .rz-steps-title {
    color: var(--ua-primary-blue, #004890);
    font-weight: 700;
}

.rz-steps.rma-request-wizard > ul[role="tablist"] > .rz-steps-item:has(~ .rz-steps-current) .rz-steps-title,
.rz-steps.rma-request-wizard .rz-state-completed .rz-steps-title,
.rz-steps.rma-request-wizard .rz-state-complete .rz-steps-title {
    color: #1e3a5f;
    font-weight: 600;
}

/* Connectors: thin, neutral; progress reads from filled steps + title weight */
.rz-steps.rma-request-wizard .rz-steps-connector {
    height: 1px !important;
    background-color: #e2e8f0 !important;
    flex: 1 1 auto !important;
    min-width: 0.5rem;
    margin: 0 0.15rem 0 0.15rem !important;
    align-self: center !important;
    margin-top: 1.05rem !important;
    max-height: 1px;
}

.rz-steps.rma-request-wizard .rz-state-completed + .rz-steps-connector,
.rz-steps.rma-request-wizard .rz-state-complete + .rz-steps-connector {
    background: #94a3b8 !important;
}

/* Support request uses the same linear stepper as RMA (.rma-request-wizard on RadzenSteps). */

/* Fieldset Styling */
.rz-fieldset {
    border-color: var(--ua-hairline, #b0bccb);
    margin-bottom: 0;
    height: 100%;
}

.rz-fieldset-legend {
    color: #004890;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 72, 144, 0.05);
}

.rz-fieldset-content {
    padding: 1rem;
}

/* Form Labels */
.rz-label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: block;
}

/* Input Focus States */
.rz-textbox:focus,
.rz-textarea:focus,
.rz-dropdown:focus {
    border-color: #004890;
    box-shadow: 0 0 0 0.2rem rgba(0, 72, 144, 0.15);
}

/* Compact Form Inputs */
.rz-textbox,
.rz-textarea,
.rz-dropdown {
    font-size: 0.875rem;
}

.rz-textbox,
.rz-dropdown {
    height: 2.25rem;
}

/* Button hover — Radzen uses .rz-button.rz-primary (not .rz-button-primary) */
.rz-button.rz-primary:hover {
    background: var(--ua-primary-blue, #004890);
}

/* Review Card Styling */
.rz-card {
    border: 1px solid var(--ua-hairline, #b0bccb);
    box-shadow: 0 2px 4px rgba(0, 72, 144, 0.08);
}

/* Validation Error Messages */
.rz-message.rz-message-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

/* Invalid Input Border */
.rz-textbox.rz-state-invalid,
.rz-textarea.rz-state-invalid,
.rz-dropdown.rz-state-invalid {
    border-color: #dc3545;
}

/* Valid Input Border */
.rz-textbox.rz-state-valid,
.rz-textarea.rz-state-valid,
.rz-dropdown.rz-state-valid {
    border-color: #28a745;
}

/* Responsive: RMA wizard stepper */
@media (max-width: 768px) {
    .rz-steps.rma-request-wizard {
        padding: 0.75rem 0.5rem 0.85rem !important;
    }

    .rz-card.registration-form-card.rma-request-form-card,
    .rz-card.registration-form-card.support-request-form-card {
        padding: 1.1rem 1rem 1.25rem;
    }

    .rz-steps.rma-request-wizard .rz-widget-content {
        padding: 0.9rem 0.75rem 1.1rem !important;
    }

    .rz-steps.rma-request-wizard .rz-steps-title {
        font-size: 0.6rem;
        max-width: 5rem;
        letter-spacing: 0.04em;
    }

    .rz-steps.rma-request-wizard .rz-steps-number {
        width: 1.85rem !important;
        height: 1.85rem !important;
        min-width: 1.85rem !important;
        line-height: 1.85rem !important;
        font-size: 0.72rem !important;
    }

    .rz-steps.rma-request-wizard .rz-steps-connector {
        margin-top: 0.9rem !important;
    }
}

/* Phones: numbers carry the progress; only the current step shows its label.
   Tiny multi-line labels under every badge read as clutter at this size. */
@media (max-width: 600px) {
    .rz-steps.rma-request-wizard .rz-steps-item:not(.rz-steps-current):not(.rz-state-highlight) .rz-steps-title {
        display: none;
    }

    .rz-steps.rma-request-wizard .rz-steps-item.rz-steps-current .rz-steps-title,
    .rz-steps.rma-request-wizard .rz-steps-item.rz-state-highlight .rz-steps-title {
        font-size: 0.68rem;
        max-width: 7.5rem;
        /* fix-plan PR7: wrap long step labels ("Customer", "Company & Aircraft") instead of truncating */
        white-space: normal;
        line-height: 1.15;
    }
}

/* =========================================
   RMA Confirmation Page Styles
   ========================================= */

.rma-confirmation-container {
    max-width: 700px;
    width: 100%;
}

.rma-confirmation-header {
    max-width: 700px;
    text-align: center;
    border-top: 4px solid var(--rz-success, #28a745);
}

.rma-success-icon-container {
    background: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
    padding: 1rem;
}

.rma-success-icon {
    font-size: 5rem;
}

.rma-success-title {
    color: var(--rz-success, #28a745);
    font-weight: 600;
}

.rma-success-subtitle {
    color: #666;
}

.rma-number-card {
    max-width: 700px;
    text-align: center;
    background: #004890;
}

.rma-number-label {
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

.rma-number-value {
    color: white;
    font-weight: 700;
    font-family: var(--ua-font-primary), sans-serif;
    letter-spacing: 3px;
}

.rma-number-caption {
    color: rgba(255, 255, 255, 0.7);
}

.rma-summary-card {
    max-width: 700px;
    width: 100%;
}

.rma-section-title {
    margin-bottom: 1rem;
    color: #004890;
}

.rma-section-icon {
    margin-right: 0.5rem;
}

.rma-summary-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rma-summary-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.rma-summary-value {
    font-size: 0.95rem;
    color: #2c3e50;
}

.rma-summary-value-highlight {
    font-weight: 600;
    color: #004890;
}

.rma-next-steps-card {
    max-width: 700px;
    width: 100%;
    background: #f8f9fa;
}

.rma-next-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.rma-step-number {
    width: 32px;
    height: 32px;
    background: #004890;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.rma-step-content {
    flex: 1;
}

.rma-step-title {
    color: #004890;
    display: block;
    margin-bottom: 0.25rem;
}

.rma-step-description {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.rma-not-found-card {
    max-width: 600px;
    text-align: center;
}

.rma-not-found-icon {
    font-size: 4rem;
}

/* =========================================
   RMA Lookup Page Styles
   ========================================= */

.rma-lookup-header {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.rma-lookup-icon {
    font-size: 3rem;
    color: #004890;
}

.rma-lookup-title {
    color: #004890;
    font-weight: 600;
}

.rma-lookup-subtitle {
    color: #666;
}

.rma-lookup-form-card {
    max-width: 500px;
    width: 100%;
}

.rma-error-card {
    max-width: 500px;
    width: 100%;
    border-left: 4px solid var(--rz-danger, #dc3545);
    background: #fff5f5;
}

.rma-error-icon {
    font-size: 1.5rem;
}

.rma-error-title {
    font-weight: 600;
    color: var(--rz-danger, #dc3545);
    margin-bottom: 0.25rem;
}

.rma-error-message {
    color: #666;
}

.rma-result-card {
    max-width: 700px;
    width: 100%;
    border-top: 4px solid #004890;
}

.rma-result-header-title {
    color: #004890;
    font-weight: 600;
    margin: 0;
}

.rma-result-date {
    color: #666;
    margin-top: 0.5rem;
}

.rma-section-header {
    color: #004890;
    margin-bottom: 0.75rem;
}

.rma-section-header-icon {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.rma-field-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.2rem;
}

.rma-field-value {
    display: block;
    font-size: 0.9rem;
    color: #2c3e50;
}

.rma-field-value-highlight {
    font-weight: 600;
    color: #004890;
}

.rma-description-box {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0;
    border: 1px solid #c6d0dc;
    font-size: 0.9rem;
    color: #495057;
    white-space: pre-wrap;
}

.rma-help-card {
    max-width: 500px;
    width: 100%;
    background: #f8f9fa;
}

.rma-help-title {
    color: #004890;
}

.rma-help-icon {
    margin-right: 0.5rem;
}

.rma-help-text {
    color: #666;
}

.rma-divider {
    margin: 0;
    border-color: #c6d0dc;
}

/* =========================================
   Support Lookup Page Styles
   ========================================= */

.support-lookup-header {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.support-lookup-icon {
    font-size: 3rem;
    color: #004890;
}

.support-lookup-title {
    color: #004890;
    font-weight: 600;
}

.support-lookup-subtitle {
    color: #666;
}

.support-lookup-form-card {
    max-width: 500px;
    width: 100%;
}

.support-error-card {
    max-width: 500px;
    width: 100%;
    border-left: 4px solid var(--rz-danger, #dc3545);
    background: #fff5f5;
}

.support-error-icon {
    font-size: 1.5rem;
}

.support-error-title {
    font-weight: 600;
    color: var(--rz-danger, #dc3545);
    margin-bottom: 0.25rem;
}

.support-error-message {
    color: #666;
}

.support-result-card {
    max-width: 700px;
    width: 100%;
    border-top: 4px solid #004890;
}

.support-result-header-title {
    color: #004890;
    font-weight: 600;
    margin: 0;
}

.support-result-date {
    color: #666;
    margin-top: 0.5rem;
}

.support-section-header {
    color: #004890;
    margin-bottom: 0.75rem;
}

.support-section-header-icon {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.support-field-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.2rem;
}

.support-field-value {
    display: block;
    font-size: 0.9rem;
    color: #2c3e50;
}

.support-field-value-highlight {
    font-weight: 600;
    color: #004890;
}

.support-description-box {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0;
    border: 1px solid #c6d0dc;
    font-size: 0.9rem;
    color: #495057;
    white-space: pre-wrap;
}

.support-help-card {
    max-width: 500px;
    width: 100%;
    background: #f8f9fa;
}

.support-help-title {
    color: #004890;
}

.support-help-icon {
    margin-right: 0.5rem;
}

.support-help-text {
    color: #666;
}

.support-divider {
    margin: 0;
    border-color: #c6d0dc;
}

/* RMA printable form */
.rma-print-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 1rem 0;
}
.rma-print-table th,
.rma-print-table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}
.rma-print-table th {
    background: #f0f4f8;
    width: 28%;
}
@media print {
    .no-print { display: none !important; }
}

/* RMA GTC: scrollable terms + sticky “I Agree” (inline HTML, not iframe) */
.gtc-panel-root {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.gtc-panel-frame {
    border: 1px solid var(--ua-secondary-light-gray, #c6d0dc);
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    min-height: 0;
    background: var(--rz-body-background, #fff);
}

.gtc-panel-frame--scroll {
    min-height: 0;
}

/* The terms reader fills the screen: its height is the viewport minus everything around it (page header, card title and
   intro, the pinned I Agree bar, card padding and footer), so a large monitor shows more terms instead of a 22rem box
   with half the page empty beneath it (Jordan, 2026-11-02, ~2000x1090). It stays the ONLY scroller on screens tall enough
   to hold it; below the min-height the page scrolls instead, with I Agree still pinned. --gtc-chrome is that "everything
   around it" and was measured on the local host at 1280x720, 1920x1080 and 2560x1440 (desktop: about 90px left under the
   I Agree bar for the card padding and footer, page does not scroll) and 390 wide (phone, where the card title and intro
   wrap taller). 100vh first for browsers without dvh. */
.gtc-terms-body {
    --gtc-chrome: 27rem;
    box-sizing: border-box;
    height: calc(100vh - var(--gtc-chrome));
    height: calc(100dvh - var(--gtc-chrome));
    min-height: 16rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 1rem 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--rz-text-color, #2d3748);
    -webkit-overflow-scrolling: touch;
}

/* Narrower windows wrap the page header, card title and intro onto more lines, so the chrome around the reader grows in
   steps (measured: 768x1024, 600x900, 481x800 and 390x844 each end with no outer scrollbar). */
@media (max-width: 900px) {
    .gtc-terms-body {
        --gtc-chrome: 30rem;
    }
}

@media (max-width: 640px) {
    .gtc-terms-body {
        --gtc-chrome: 34rem;
    }
}

@media (max-width: 480px) {
    .gtc-terms-body {
        --gtc-chrome: 36rem;
        min-height: 12rem;
    }
}

.gtc-terms-body p,
.gtc-terms-body li {
    color: inherit;
}

.gtc-terms-body strong,
.gtc-terms-body b {
    color: var(--rz-text-color, #1a202c);
    font-weight: 600;
}

.gtc-terms-body ol {
    margin: 0.5rem 0 0 1.25rem;
    padding-left: 0.5rem;
}

.gtc-panel-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0.75rem 0.5rem 1rem;
    margin: 0;
    background: var(--rz-card-background, #fff);
    border: 1px solid var(--ua-secondary-light-gray, #c6d0dc);
    border-top: 2px solid var(--ua-primary-blue, #004890);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .gtc-panel-actions {
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    }
}

/* RMA Parts step: intro + per-part fieldsets, add at end (not a full-width primary bar) */
.rma-parts-step {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
}

.rma-parts-intro {
    padding: 0.5rem 0 0.25rem;
    border-bottom: 1px solid var(--ua-secondary-light-gray, #c6d0dc);
    margin-bottom: 0.25rem;
}

.rma-parts-title {
    display: block;
    margin: 0 0 0.25rem 0;
    color: var(--ua-primary-blue, #004890);
    font-weight: 600;
}

.rma-parts-hint {
    color: #555;
    max-width: 40rem;
    font-size: 0.9rem;
}

.rma-part-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rma-part-remove {
    display: flex;
    justify-content: flex-end;
    padding: 0 0 0.25rem 0;
}

.rma-parts-add-wrap {
    display: flex;
    justify-content: flex-start;
    padding: 0.5rem 0 0.25rem 0;
}

.rma-parts-add-btn {
    width: auto;
    min-width: 12rem;
}

.rma-part-fieldset {
    max-width: 100%;
}

.rma-part-fieldset .rz-fieldset-legend,
.rma-part-fieldset .rz-fieldset-legend * {
    color: var(--ua-primary-blue, #004890);
    font-weight: 600;
}

/* Denser part form: top labels + 2-up rows on md+ to reduce scroll */
.rma-part-fieldset--compact .rz-fieldset-content {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.rma-part-fieldset--compact .rma-part-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ua-primary-gray, #6e6e6e);
    margin: 0 0 0.15rem 0;
    line-height: 1.2;
}

.rma-part-fieldset--compact .rma-part-stack {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.rma-part-fieldset--compact .rma-part-stack--po {
    max-width: 20rem;
}

.rma-part-fieldset--compact .rma-part-description {
    min-height: 2.5rem;
}

/* =========================================
   Cohesive wizard text system
   One lead-in (.rma-step-intro) + one boxed note (.rma-note) + one inline hint
   (.rma-hint), shared by every step, so the form reads as a single flow instead
   of a mix of inline-styled gray captions and bespoke bordered cards. Genuine
   warnings stay RadzenAlerts (semantic colour); these cover neutral guidance.
   ========================================= */
.rma-step-intro {
    margin: 0 0 1rem 0;
    max-width: 46rem;
    color: var(--ua-primary-gray, #555);
    font-size: 0.9rem;
    line-height: 1.5;
}

.rma-note {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.7rem 0.85rem;
    background: var(--ua-surface-soft, #f8f9fa);
    border: 1px solid var(--ua-secondary-light-gray, #c6d0dc);
    border-left: 3px solid var(--ua-primary-blue, #004890);
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #495057;
}

.rma-note + .rma-note {
    margin-top: 0.5rem;
}

.rma-note .rma-note-icon {
    color: var(--ua-primary-blue, #004890);
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.rma-note-body {
    min-width: 0;
}

.rma-note-body p {
    margin: 0;
}

.rma-note-body strong {
    color: var(--ua-secondary-dark-blue, #203864);
}

.rma-note-body a {
    color: var(--ua-primary-blue, #004890);
    font-weight: 600;
}

.rma-hint {
    display: block;
    margin: 0.15rem 0 0;
    color: var(--ua-primary-gray, #6c757d);
    font-size: 0.8rem;
    line-height: 1.45;
}


/* Account Number is read-only for a signed-in customer (always their signed-in account). Without a
   visual cue it looks like an ordinary empty-able box that silently ignores typing: muted fill, dashed
   border, no lift shadow (also on hover/focus), and a lock icon. The !important flags are only there to
   beat app.css's brand-wide ".rz-textbox { background/border/box-shadow/color: ... !important }". */
.rma-request-form-card .rma-account-field {
    position: relative;
}

.rma-request-form-card .rma-account-field-locked input.rz-textbox[readonly],
.rma-request-form-card .rma-account-field-locked input.rz-textbox[readonly]:hover,
.rma-request-form-card .rma-account-field-locked input.rz-textbox[readonly]:focus {
    background: color-mix(in srgb, var(--ua-primary-gray, #6e6e6e) 8%, #ffffff) !important;
    border: 1px dashed color-mix(in srgb, var(--ua-primary-gray, #6e6e6e) 45%, #ffffff) !important;
    box-shadow: none !important;
    color: var(--ua-primary-gray, #6e6e6e) !important;
    cursor: not-allowed;
    padding-right: 2.5rem !important;
}

.rma-request-form-card .rma-account-lock-icon {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--ua-primary-gray, #6e6e6e);
    pointer-events: none;
}

/* Return shipping / Billing address fieldsets sit side by side and must line up row for row.
   The "use billing address" checkbox lives in the Return header line (a legend child), so the
   two columns start their first field at the same height; both legends share one fixed height and one
   vertical centring so a checkbox-bearing header and a text-only header end at the same line. Between 768 and
   1279px the columns are side by side but narrow, and the Return header (title + checkbox label) may wrap to two
   lines, so both legends reserve two lines there. */
.rma-address-fieldset .rz-fieldset-legend {
    display: flex !important;
    align-items: center;
    height: 1.75rem;
    box-sizing: border-box;
}

@media (min-width: 768px) and (max-width: 1279px) {
    .rma-address-fieldset .rz-fieldset-legend {
        height: 3.25rem;
    }
}

.rma-address-legend {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 1rem;
}

.rma-address-legend-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.85rem;
    font-weight: 400;
}

.rma-address-legend-action .rz-label {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--ua-primary-gray, #6e6e6e);
    margin: 0;
}

/* Keyboard users can reach and scroll the terms (tabindex=0 on the reader); the ring sits inside the box so the
   frame's overflow:hidden cannot clip it. */
.gtc-terms-body:focus-visible {
    outline: 2px solid var(--ua-primary-blue, #004890);
    outline-offset: -2px;
}

/* The global .rz-card { overflow: hidden } makes the card the nearest scroll container of the sticky I Agree bar, and the
   card never scrolls, so on a window shorter than the reader's floor the bar sat at the end of the page instead of
   staying pinned. The terms card is square and has no content that needs clipping, so it lets the page be the scroller. */
.rz-card.rma-terms-card {
    overflow: visible;
}
