/**
 * TRClubAccessVerificationSection Styles
 *
 * "Verifichiamo il tuo accesso al circolo." -- Amministratore di un
 * Circolo only. Two rows (icon | divider | label ... lime arrow), each
 * its own translucent black card with an opaque white rounded border --
 * reusing tr-authorizations.css's own --tr-auth-card-background/
 * --tr-auth-card-height/--tr-auth-card-padding-x/--tr-auth-divider-x/
 * --tr-auth-divider-height/--tr-auth-text-font-family/
 * --tr-auth-text-font-size/--tr-auth-completed-check-icon-size tokens
 * directly (never redeclared here) so this screen's card/divider/icon
 * sizing stays byte-identical to the Authorizations screen's own
 * already-calibrated, height-responsive values. The trailing arrow
 * reuses the exact same continue-icon.svg CSS-mask technique Club
 * Selection's own .tr-club-result-arrow already uses (tr-club-
 * selection.css) -- never a second arrow asset/technique. No new
 * design system; this is deliberately the same visual family as both
 * of those existing screens.
 */

.tr-club-access-group {
    display: flex;
    flex-direction: column;
    gap: var(--tr-space-sm);
    width: 100%;
}

/* margin-top: 0, not just "no override" -- this button is a flex
   sibling of .tr-club-access-group inside .tr-question-content, whose
   own `gap: var(--tr-question-card-to-helper-gap)` (12px, tr-
   question.css) already spaces it from the group exactly like every
   other sibling pair in that same flex column, so no margin is needed
   on top of that gap. Without this override, TROptionButton's own
   shared default (--tr-primary-action-gap-above, now ALSO 12px as of
   2026-10 -- see that rule's own note, tr-question.css -- 18px at the
   time this override was first added) would still apply and ADD to
   the flex gap rather than replace it (margin and flex gap stack, they
   don't collapse) -- would still double-space this button (24px) even
   now that both values happen to match. Zeroing the margin leaves the
   flex gap (already equal to .tr-club-access-group's own --tr-space-sm)
   as the ONLY thing controlling this spacing, matching card-1 ->
   card-2 exactly -- still required, not removed by this task's own
   shared-default change. */
.tr-option-button.tr-primary-action.tr-club-access-verification-continue {
    margin-top: 0;
}

.tr-club-access-row {
    width: 100%;
    height: var(--tr-auth-card-height);
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 0 var(--tr-auth-card-padding-x);
    background: var(--tr-auth-card-background);
    border: 1px solid #ffffff;
    border-radius: var(--tr-auth-card-radius);
    /* Neutralizes native <button> chrome -- same reasoning
       tr-authorizations.css's own .tr-auth-card already documents for
       its own clickable cards. */
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.tr-club-access-row-icon {
    flex: 0 0 auto;
    width: var(--tr-auth-completed-check-icon-size);
    height: var(--tr-auth-completed-check-icon-size);
    background: #ffffff;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* The real, unmodified doc-icon.svg/invite-icon.svg assets (assets/
   icons/mobile/) -- never recreated in CSS, never an emoji/Unicode
   substitute, per this screen's own explicit requirement. */
.tr-club-access-row-icon--doc-icon {
    -webkit-mask-image: url('../../assets/icons/mobile/doc-icon.svg');
    mask-image: url('../../assets/icons/mobile/doc-icon.svg');
}

.tr-club-access-row-icon--invite-icon {
    -webkit-mask-image: url('../../assets/icons/mobile/invite-icon.svg');
    mask-image: url('../../assets/icons/mobile/invite-icon.svg');
}

/* The real, unmodified auth-icon.svg asset (assets/icons/mobile/) --
   reused by the "Autorizzazioni" card on an EXISTING managed player's
   own Scheda (see buildAuthorizationsRow(), tr-player-summary-
   section.js) -- never recreated in CSS, never an emoji/Unicode
   substitute. */
.tr-club-access-row-icon--auth-icon {
    width: var(--tr-player-summary-auth-icon-size);
    height: var(--tr-player-summary-auth-icon-size);
    -webkit-mask-image: url('../../assets/icons/mobile/auth-icon.svg');
    mask-image: url('../../assets/icons/mobile/auth-icon.svg');
}

.tr-club-access-row-divider {
    flex: 0 0 auto;
    width: 1px;
    height: var(--tr-auth-divider-height);
    background: #ffffff;
    margin: 0 var(--tr-auth-divider-x);
}

.tr-club-access-row-label {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--tr-auth-text-font-family);
    font-size: var(--tr-auth-text-font-size);
    color: #ffffff;
}

/* Same technique/sizing/color as Club Selection's own
   .tr-club-result-arrow (tr-club-selection.css) -- never a second
   lime-arrow implementation. */
.tr-club-access-row-arrow {
    flex: 0 0 auto;
    width: var(--tr-auth-completed-check-icon-size);
    height: var(--tr-auth-completed-check-icon-size);
    background: var(--tr-color-accent);
    -webkit-mask-image: url('../../assets/icons/mobile/continue-icon.svg');
    mask-image: url('../../assets/icons/mobile/continue-icon.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* 'document' variant rows only, once a file is selected (see tr-club-
   access-verification-section.js's own buildRow()/setSecondaryLabel())
   -- the real, unmodified cancel-icon.svg asset (same CSS-mask
   technique already used by tr-authorization-detail.css/tr-club-
   selection.css), replacing the arrow in the exact same position/size/
   color -- never a second arrow asset, no layout change. */
.tr-club-access-row-arrow--clear {
    -webkit-mask-image: url('../../assets/icons/mobile/cancel-icon.svg');
    mask-image: url('../../assets/icons/mobile/cancel-icon.svg');
}

/* ---------- Two reusable action-card variants ----------------------

   TRClubAccessVerificationSection's own option rows only (see its own
   buildRow() note) -- marked by .tr-club-access-option-row, alongside
   the shared .tr-club-access-row base above, which the reused
   Autorizzazioni row (buildAuthorizationsRow(), tr-player-summary-
   section.js) also uses but this modifier never does, so that
   finalized card is completely untouched by anything below. Neither
   variant is specific to any one role/screen -- both are reusable by
   any future option that sets variant: 'standard' (default) or
   'document' (see tr-club-access-verification-section.js's own
   buildRow()). Each variant gets its OWN independent set of manual-
   control custom properties (height/icon size/text size/etc.), so
   tuning one never affects the other. Shared across both, untouched:
   card border/radius/background/padding (.tr-club-access-row above),
   vertical divider height/position (.tr-club-access-row-divider
   above), and the arrow (.tr-club-access-row-arrow above).

   Today's two consumers:
   - Amministratore di un Circolo's own two rows + Company
     Verification's own "Ho ricevuto un invito" row: 'standard'.
   - Company Verification's own "Carica la visura camerale" row only:
     'document'.
   Every default below equals whatever the row already rendered at
   before this variant split, so nothing visually changed for any of
   them from this reorganization alone. */

/* ---- Variant 1: standard (icon | divider | label | arrow) ---- */
/* ============================================================
   REUSABLE ACTION CARD VARIANTS

   STANDARD:
   icon | vertical divider | single label | arrow

   DOCUMENT:
   icon | vertical divider | primary label
                           | horizontal divider
                           | secondary/status label | arrow
   ============================================================ */


/* ------------------------------------------------------------
   VARIANT 1 — STANDARD
   Reusable short / single-line action card
   ------------------------------------------------------------ */

.tr-club-access-row--standard {
    /* ===== MANUAL CONTROLS ===== */

    /* Card */
    --tr-club-access-standard-height: 68px;

    /* Left icon */
    --tr-club-access-standard-icon-size: 35px;

    /* Vertical divider */
    --tr-club-access-standard-divider-height: 68%;
    --tr-club-access-standard-divider-margin-left: 21px;
    --tr-club-access-standard-divider-margin-right: 20px;

    /* Text */
    --tr-club-access-standard-text-font-family:
        var(--tr-font-franklin-book-condensed);
    --tr-club-access-standard-text-font-size: 18px;
    --tr-club-access-standard-text-offset-y: 2px;

    height: var(--tr-club-access-standard-height);
}


.tr-club-access-row--standard .tr-club-access-row-icon {
    width: var(--tr-club-access-standard-icon-size);
    height: var(--tr-club-access-standard-icon-size);
}


.tr-club-access-row--standard .tr-club-access-row-divider {
    height: var(--tr-club-access-standard-divider-height);

    margin-left:
        var(--tr-club-access-standard-divider-margin-left);

    margin-right:
        var(--tr-club-access-standard-divider-margin-right);
}


.tr-club-access-row--standard .tr-club-access-row-label {
    font-family:
        var(--tr-club-access-standard-text-font-family);

    font-size:
        var(--tr-club-access-standard-text-font-size);

    font-weight: normal;
    letter-spacing: 0;
    color: #ffffff;

    transform:
        translateY(var(--tr-club-access-standard-text-offset-y));
}



/* ------------------------------------------------------------
   VARIANT 2 — DOCUMENT
   Reusable taller action card with secondary/status line
   ------------------------------------------------------------ */

.tr-club-access-row--document {
    /* ===== MANUAL CONTROLS ===== */

    /* Card */
    --tr-club-access-document-height: 92px;

    /* Left icon */
    --tr-club-access-document-icon-size: 40px;

    /* Vertical divider */
    --tr-club-access-document-divider-height: 68%;
    --tr-club-access-document-divider-margin-left: 16px;
    --tr-club-access-document-divider-margin-right: 20px;

    /* Primary text */
    --tr-club-access-document-primary-font-size: 18px;

    /* Whole text block vertical position */
    --tr-club-access-document-text-offset-y: 3px;

    /* Horizontal divider */
    --tr-club-access-document-divider-spacing: 4px;
    --tr-club-access-document-divider-width: 90%;

    /* Secondary / status text */
    --tr-club-access-document-secondary-font-size: 14px;
    --tr-club-access-document-secondary-gap: 8px;
    --tr-club-access-document-secondary-color: var(--tr-color-accent);

    height: var(--tr-club-access-document-height);
}


.tr-club-access-row--document .tr-club-access-row-icon {
    width: var(--tr-club-access-document-icon-size);
    height: var(--tr-club-access-document-icon-size);
}


.tr-club-access-row--document .tr-club-access-row-divider {
    height: var(--tr-club-access-document-divider-height);

    margin-left:
        var(--tr-club-access-document-divider-margin-left);

    margin-right:
        var(--tr-club-access-document-divider-margin-right);
}


.tr-club-access-row--document .tr-club-access-row-content {
    flex: 1 1 auto;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    transform:
        translateY(var(--tr-club-access-document-text-offset-y));
}


.tr-club-access-row--document .tr-club-access-row-primary-label {
    width: 100%;

    font-family:
        var(--tr-font-franklin-book-condensed);

    font-size:
        var(--tr-club-access-document-primary-font-size);

    font-weight: normal;
    letter-spacing: 0;
    color: #ffffff;
}


.tr-club-access-row--document .tr-club-access-row-divider-horizontal {
    width: var(--tr-club-access-document-divider-width);
    height: 1px;
    background: #ffffff;

    margin-top:
        var(--tr-club-access-document-divider-spacing);

    margin-bottom:
        var(--tr-club-access-document-secondary-gap);
}


.tr-club-access-row--document .tr-club-access-row-secondary-label {
    width: 100%;

    font-family:
        var(--tr-font-franklin-book-condensed);

    font-size:
        var(--tr-club-access-document-secondary-font-size);

    font-weight: normal;
    letter-spacing: 0;

    color:
        var(--tr-club-access-document-secondary-color);
}