/* ══════════════════════════════════════════════════════════════
   Contribution / Membership only — /members/contribute/transact/
   ══════════════════════════════════════════════════════════════ */

body.civicrm-contribute #crm-container {
    font-family: "Barlow", sans-serif;
}

body.civicrm-contribute #crm-container input.crm-form-text,
body.civicrm-contribute #crm-container input.crm-form-email,
body.civicrm-contribute #crm-container textarea {
    font-family: "Barlow", sans-serif;
}

/* Empty label columns (fees, org checkbox, auto-renew) */
body.civicrm-contribute #crm-container .crm-section .label:not(:has(label, span)) {
    display: none;
}

body.civicrm-contribute #crm-container .crm-price-amount-label-separator {
    display: none;
}

body.civicrm-contribute #crm-container div.help > br:last-child {
    display: none;
}

/* ── Membership tiers → selectable cards ── */
body.civicrm-contribute #crm-container .membership_amount-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.civicrm-contribute #crm-container .membership_amount-content .price-set-row {
    display: contents;
}

body.civicrm-contribute #crm-container .membership_amount-content > .description {
    grid-column: 1 / -1;
    margin-top: 4px;
}

body.civicrm-contribute #crm-container .membership_amount-content .price-set-option-content {
    display: block;
}

body.civicrm-contribute #crm-container .membership_amount-content .crm-option-label-pair {
    position: relative;
    height: 100%;
}

body.civicrm-contribute #crm-container .membership_amount-content .crm-option-label-pair input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

body.civicrm-contribute #crm-container .membership_amount-content .crm-option-label-pair label {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
    margin: 0;
    padding: 20px 44px 20px 20px;
    border: 2px solid #1A1A1A;
    border-radius: 0;
    background-color: #F5F0E6;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

/* Square check mark box, top-right */
body.civicrm-contribute #crm-container .membership_amount-content .crm-option-label-pair label::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 16px;
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border: 2px solid #1A1A1A;
}

body.civicrm-contribute #crm-container .membership_amount-content .crm-price-amount-label {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(1.0625rem, 1rem + 0.3125vw, 1.1875rem);
    line-height: 1.2em;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

body.civicrm-contribute #crm-container .membership_amount-content .crm-price-amount-amount {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(1.625rem, 1rem + 1.5vw, 2rem); /* size-xl */
    line-height: 1em;
    color: #1A1A1A;
}

body.civicrm-contribute #crm-container .membership_amount-content .crm-option-label-pair label:hover {
    border-color: #C9952A;
}

body.civicrm-contribute #crm-container .membership_amount-content .crm-option-label-pair:has(input:checked) label {
    border-color: #C9952A;
    background-color: rgba(201, 149, 42, 0.3); /* bg-brass-30 */
    background-image: repeating-linear-gradient(
        45deg,
        rgba(26, 26, 26, 0.06) 0,
        rgba(26, 26, 26, 0.06) 1px,
        transparent 1px,
        transparent 8px
    );
}

body.civicrm-contribute #crm-container .membership_amount-content .crm-option-label-pair:has(input:checked) label::before {
    border-color: #1A1A1A;
    background-color: #C9952A;
    box-shadow: inset 0 0 0 2px #F5F0E6;
}

body.civicrm-contribute #crm-container .membership_amount-content .crm-option-label-pair:has(input:focus-visible) label {
    outline: 2px solid #1A1A1A;
    outline-offset: 3px;
}

/* Auto-renew note */
body.civicrm-contribute #crm-container #allow_auto_renew .content {
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    color: #6E655B;
}

/* ── Donation: $ prefix, short field ── */
body.civicrm-contribute #crm-container .other_amount-content {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
}

body.civicrm-contribute #crm-container .other_amount-content::before {
    content: "$";
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(1.25rem, 1.125rem + 0.625vw, 1.5rem);
}

body.civicrm-contribute #crm-container .other_amount-content input.crm-form-text {
    flex: 0 0 8rem;
    width: 8rem;
}

body.civicrm-contribute #crm-container .other_amount-content .description {
    flex-basis: 100%;
}

/* ── Checkbox rows (fee cover, reserved space, org) ── */
body.civicrm-contribute #crm-container :is(.cover_processor_fees-content, .reserved_space-content) .price-set-option-content,
body.civicrm-contribute #crm-container .is_for_organization-section .content {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.civicrm-contribute #crm-container :is(.cover_processor_fees-content, .reserved_space-content, .is_for_organization-section) input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
}

body.civicrm-contribute #crm-container .cover_processor_fees-content label {
    font-weight: 600;
    cursor: pointer;
}

/* Reserved space → spec-sheet rows, price right in mono */
body.civicrm-contribute #crm-container .reserved_space-content .price-set-row {
    border-bottom: 1px solid rgba(26, 26, 26, 0.15);
}

body.civicrm-contribute #crm-container .reserved_space-content .price-set-row:first-child {
    border-top: 1px solid rgba(26, 26, 26, 0.15);
}

body.civicrm-contribute #crm-container .reserved_space-content .price-set-option-content {
    padding: 10px 0;
}

body.civicrm-contribute #crm-container .reserved_space-content label {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin: 0;
    cursor: pointer;
}

body.civicrm-contribute #crm-container .reserved_space-content .crm-price-amount-amount {
    font-family: "JetBrains Mono", monospace; /* type-mono */
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    color: #6E655B;
    white-space: nowrap;
}

/* ── Total → Shop Dark band ── */
body.civicrm-contribute #crm-container :is(#totalWithPercentage, #pricesetTotal) {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin: 40px 0 32px;
    padding: 20px 24px;
    background-color: #302922; /* Shop Dark */
    background-image: repeating-linear-gradient(
        45deg,
        rgba(245, 240, 230, 0.08) 0,
        rgba(245, 240, 230, 0.08) 1px,
        transparent 1px,
        transparent 8px
    ); /* diagonal-hatch-dark */
    color: #F5F0E6;
}

body.civicrm-contribute #crm-container :is(#totalWithPercentage, #pricesetTotal) .label {
    margin: 0;
    color: #F5F0E6;
}

body.civicrm-contribute #crm-container :is(#totalWithPercentage, #pricesetTotal) .content {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(1.625rem, 1rem + 1.5vw, 2rem);
    line-height: 1em;
    color: #C9952A;
}

/* ── Payment method → segmented toggle ── */
body.civicrm-contribute #crm-container .payment_processor-section .label {
    display: none;
}

body.civicrm-contribute #crm-container .payment_processor-section .content {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0; /* swallows the &nbsp; between options */
}

body.civicrm-contribute #crm-container .payment_processor-section .crm-option-label-pair {
    position: relative;
}

body.civicrm-contribute #crm-container .payment_processor-section .crm-option-label-pair input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

body.civicrm-contribute #crm-container .payment_processor-section .crm-option-label-pair label {
    display: inline-block;
    margin: 0;
    padding: 12px 28px;
    border: 2px solid #1A1A1A;
    background: transparent;
    color: #1A1A1A;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

body.civicrm-contribute #crm-container .payment_processor-section .crm-option-label-pair:has(input:checked) label {
    background: #1A1A1A;
    color: #F5F0E6;
}

body.civicrm-contribute #crm-container .payment_processor-section .crm-option-label-pair:has(input:focus-visible) label {
    outline: 2px solid #C9952A;
    outline-offset: 3px;
}

body.civicrm-contribute #crm-container #billing-payment-block {
    margin: 0 0 32px;
}

@media (max-width: 540px) {
    body.civicrm-contribute #crm-container .membership_amount-content {
        grid-template-columns: 1fr;
    }
}


/* ══════════════════════════════════════════════════════════════
   Icon glyphs: plain Unicode (session 44, Gotcha #83; collapsed session 65)
   Font Awesome content values on this page were stored empty, so these icons
   are plain Unicode. Pair ✓ with ✕ (U+2715): same Dingbats block, same
   fallback font. The select2 chip remove glyph lives in its top-scope rule.
   ══════════════════════════════════════════════════════════════ */

/* Pane scroll-down hint */
#crm-container.crm-public #bootstrap-theme .af-container-style-pane:not(:has(.ng-invalid-required)):not(:has(.af-button[ng-click="afform.submit()"]))::before {
    content: "↓";
    font-family: var(--e-global-typography-text-font-family, "Barlow"), sans-serif;
    font-weight: 400;
}

/* Clear button at rest: check */
#crm-container.crm-public #bootstrap-theme .crm-af-field a.crm-hover-button[title="Clear"] i.crm-i.fa-times::before {
    content: "✓";
    font-family: var(--e-global-typography-text-font-family, "Barlow"), sans-serif;
    font-weight: 600;
    font-style: normal;
}

/* Clear button hover/focus: cross */
#crm-container.crm-public #bootstrap-theme .crm-af-field a.crm-hover-button[title="Clear"]:hover .crm-i.fa-times::before,
#crm-container.crm-public #bootstrap-theme .crm-af-field a.crm-hover-button[title="Clear"]:focus .crm-i.fa-times::before {
    content: "✕";
}

/* select2 single-select clear at rest: check */
#crm-container.crm-public #bootstrap-theme .select2-container .select2-choice abbr::before {
    content: "✓";
    font-family: var(--e-global-typography-text-font-family, "Barlow"), sans-serif;
    font-weight: 600;
}

/* select2 single-select clear hover: cross */
#crm-container.crm-public #bootstrap-theme .select2-container .select2-choice abbr:hover::before {
    content: "✕";
}

/* ═══════════════════════════════════════════════════════════════
   Event cart — view_cart + cart_checkout (session 44)
   /members/event/view_cart/     → body.civicrm-event-view_cart
   /members/event/cart_checkout/ → body.civicrm-event-cart_checkout
   (participants / confirm / thank-you share one URL + class)
   Classic QuickForm, NO #bootstrap-theme, no Bootstrap reset (#79, #81)
   ═══════════════════════════════════════════════════════════════ */

/* ── Canvas + column ── */
:is(body.civicrm-event-cart_checkout, body.civicrm-event-view_cart) #crm-container {
    font-family: "Barlow", sans-serif;
}

:is(body.civicrm-event-cart_checkout, body.civicrm-event-view_cart) #crm-main-content-wrapper {
    box-sizing: border-box;
    max-width: 720px;
    margin-inline: auto;
    padding: 64px 32px; /* space-xl / space-l */
}

/* ── Event headings → type-h3 + brass rule ── */
body.civicrm-event-cart_checkout #crm-container h3.event-title {
    margin: 40px 0 20px;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 2px solid #C9952A;
    background: none;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(1.625rem, 1rem + 1.5vw, 2rem); /* size-xl */
    line-height: 1.15em;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1A1A1A;
}

/* ── Fieldset reset ── */
body.civicrm-event-cart_checkout #crm-container fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

/* Participant block → bordered card, legend as REF label on the border */
body.civicrm-event-cart_checkout #crm-container fieldset.participant {
    margin: 0 0 16px;
    padding: 20px 24px 24px;
    border: 2px solid #1A1A1A;
    background-color: #F5F0E6;
}

body.civicrm-event-cart_checkout #crm-container fieldset.participant > legend {
    float: none;
    width: auto;
    margin: 0 0 0 -8px;
    padding: 0 8px;
    border: 0;
    background: none;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1A1A1A;
}

/* Profile sub-groups ("Choose Role:", "Your Registration Info") */
body.civicrm-event-cart_checkout #crm-container fieldset.crm-profile > legend {
    float: none;
    width: 100%;
    margin: 16px 0 16px;
    padding: 0 0 8px;
    border: 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.15);
    background: none;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem); /* size-sm */
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6E655B; /* color-text-muted */
}

/* ── Stacked label / field ── */
body.civicrm-event-cart_checkout #crm-container .crm-section {
    float: none;
    margin: 0 0 20px;
    padding: 0;
}

body.civicrm-event-cart_checkout #crm-container .crm-section .label {
    margin: 0 0 6px;
}

body.civicrm-event-cart_checkout #crm-container .crm-section :is(.content, .edit-value) {
    margin: 0;
    padding: 0;
}

/* ── Inputs: underline style (matches event register + AfForms) ── */
body.civicrm-event-cart_checkout #crm-container input.crm-form-text {
    box-sizing: border-box;
    width: 100%;
    max-width: 40rem;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid #1A1A1A;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    color: #1A1A1A;
    font-family: "Barlow", sans-serif;
    font-size: clamp(1.25rem, 1.125rem + 0.625vw, 1.5rem); /* size-lg */
    font-weight: 400;
}

body.civicrm-event-cart_checkout #crm-container select.crm-form-select {
    box-sizing: border-box;
    width: auto;
    max-width: 40rem;
    min-width: 12rem;
    padding: 8px 28px 8px 0;
    border: 0;
    border-bottom: 1px solid #1A1A1A;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    color: #1A1A1A;
    font-family: "Barlow", sans-serif;
    font-size: clamp(1.25rem, 1.125rem + 0.625vw, 1.5rem);
    font-weight: 400;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9952A' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    cursor: pointer;
}

body.civicrm-event-cart_checkout #crm-container :is(input.crm-form-text, select.crm-form-select):focus {
    outline: none;
    border-bottom: 2px solid #C9952A;
    margin-bottom: -1px;
}

/* ── Participant links ── */
body.civicrm-event-cart_checkout #crm-container a.link-delete {
    display: block;
    margin: 8px 0 0;
    text-align: right;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8125rem;
    color: #6E655B;
}

/* Hide Delete when it's the only participant for that event */
body.civicrm-event-cart_checkout #crm-container .participants:has(> fieldset.participant:only-of-type) a.link-delete {
    display: none;
}

body.civicrm-event-cart_checkout #crm-container a.link-add {
    display: inline-block;
    margin: 0 0 8px;
    padding: 8px 16px;
    border: 2px solid #1A1A1A;
    color: #1A1A1A;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

body.civicrm-event-cart_checkout #crm-container a.link-add:hover,
body.civicrm-event-cart_checkout #crm-container a.link-add:focus-visible {
    background: #1A1A1A; /* btn-outline hover */
    color: #F5F0E6;
}

/* ── Price choices ── */
body.civicrm-event-cart_checkout #crm-container .price_choices {
    margin: 16px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(26, 26, 26, 0.15);
}

/* Hide the required $0 "Admission" radio (price field 18) — it exists only
   to satisfy eventcart validation and is pre-checked by default */
body.civicrm-event-cart_checkout #crm-container .price_choices .label:has(+ .content input[name$="_price_18"]),
body.civicrm-event-cart_checkout #crm-container .price_choices .content:has(input[name$="_price_18"]) {
    display: none;
}

/* Optional Donation: $ prefix, short field */
body.civicrm-event-cart_checkout #crm-container .price_choices .label {
    margin: 0 0 6px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.civicrm-event-cart_checkout #crm-container .price_choices .content:has(input.four) {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

body.civicrm-event-cart_checkout #crm-container .price_choices .content:has(input.four)::before {
    content: "$";
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(1.25rem, 1.125rem + 0.625vw, 1.5rem);
}

body.civicrm-event-cart_checkout #crm-container .price_choices input.four {
    flex: 0 0 8rem;
    width: 8rem;
}

/* ── Buttons → btn-primary / btn-outline ── */
body.civicrm-event-cart_checkout #crm-container .crm-submit-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0 16px;
    padding: 0;
    border: 0;
    background: none;
}

/* "Return to Cart": quiet */
body.civicrm-event-cart_checkout #crm-container a[href*="view_cart"] {
    color: #6E655B;
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
}

/* ── Summary tables (confirm, thank-you, view_cart) ── */
:is(body.civicrm-event-cart_checkout, body.civicrm-event-view_cart) #crm-container table {
    width: 100%;
    margin: 0 0 32px;
    border: 0;
    border-collapse: collapse;
    background: none;
}

:is(body.civicrm-event-cart_checkout, body.civicrm-event-view_cart) #crm-container table :is(tr, th, td) {
    background: none;
}

:is(body.civicrm-event-cart_checkout, body.civicrm-event-view_cart) #crm-container table th {
    padding: 10px 16px 10px 0;
    border: 0;
    border-bottom: 2px solid #1A1A1A;
    text-align: left;
    white-space: nowrap;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1A1A1A;
}

:is(body.civicrm-event-cart_checkout, body.civicrm-event-view_cart) #crm-container table td {
    padding: 12px 16px 12px 0;
    border: 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.12);
    vertical-align: top;
    font-size: clamp(1.0625rem, 1rem + 0.3125vw, 1.1875rem); /* size-base */
    line-height: 1.5em;
    color: #1A1A1A;
}

:is(body.civicrm-event-cart_checkout, body.civicrm-event-view_cart) #crm-container table :is(th, td):is(.cost, .amount, .total) {
    text-align: right;
}

:is(body.civicrm-event-cart_checkout, body.civicrm-event-view_cart) #crm-container table :is(th, td):last-child {
    padding-right: 0;
}

/* Participant names under the count (inline padding-left in markup) */
body.civicrm-event-cart_checkout #crm-container table .participants {
    padding-left: 0 !important;
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    color: #6E655B;
}

/* Thank-you: location + date under the event title */
body.civicrm-event-cart_checkout #crm-container table :is(.event-location, .event-data) {
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    line-height: 1.5em;
    color: #6E655B;
}

/* Total row → Shop Dark band (matches contribution page) */
body.civicrm-event-cart_checkout #crm-container table tfoot td {
    padding: 16px 16px 16px 0;
    border: 0;
    background-color: #302922; /* Shop Dark */
    color: #F5F0E6;
}

body.civicrm-event-cart_checkout #crm-container table tfoot td:first-child {
    padding-left: 20px;
}

body.civicrm-event-cart_checkout #crm-container table tfoot td:last-child {
    padding-right: 20px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(1.625rem, 1rem + 1.5vw, 2rem);
    line-height: 1em;
    color: #C9952A;
}

/* ── Thank-you ── */
body.civicrm-event-cart_checkout #crm-container .crm-event-thankyou-form-block > p:first-child {
    margin: 0 0 24px;
    padding: 16px 20px;
    font-weight: 700;
    background-color: rgba(201, 149, 42, 0.3); /* bg-brass-30 */
    background-image: repeating-linear-gradient(
        45deg,
        rgba(26, 26, 26, 0.06) 0,
        rgba(26, 26, 26, 0.06) 1px,
        transparent 1px,
        transparent 8px
    );
}

body.civicrm-event-cart_checkout #crm-container .crm-event-thankyou-form-block > p {
    margin: 0 0 24px;
    font-size: clamp(1.0625rem, 1rem + 0.3125vw, 1.1875rem);
    line-height: 1.65em;
}

body.civicrm-event-cart_checkout #crm-container .crm-event-thankyou-form-block > p strong {
    font-family: "JetBrains Mono", monospace; /* order number */
    font-weight: 500;
}

/* ── Mobile ── */
@media (max-width: 767px) {
    :is(body.civicrm-event-cart_checkout, body.civicrm-event-view_cart) #crm-main-content-wrapper {
        padding: 32px 16px;
    }

    body.civicrm-event-cart_checkout #crm-container fieldset.participant {
        padding: 16px 16px 20px;
    }

    /* Price column duplicates Total at one participant per line */
    :is(body.civicrm-event-cart_checkout, body.civicrm-event-view_cart) #crm-container table :is(th, td).cost {
        display: none;
    }
}

/* Cart checkout — profile email hidden, mirrored from cart email (snippet 10215) */
body.civicrm-event-cart_checkout.tbw-email-mirror .participant .profile-group .crm-section:has(input[name$="[email-Primary]"]) { display: none; }
/* Cart checkout — donation help (eventcart template drops help_post; copy mirrors price field 14) */
body.civicrm-event-cart_checkout .price_choices .content:has(input[name$="_price_14"])::after { content: "Enter 0 to skip."; display: block; margin-block-start: 6px; font-size: 0.875rem; color: #6E655B; }

/* Cart thank-you: hide the empty billing block. Stripe's widget collects no billing address, and eventcart's ThankYou.tpl
   prints the block whenever payment is required (its state lookup falls through to the first state, AL).
   Scoped to the thank-you block so the payment step's own billing inputs are untouched. */
body.civicrm-event-cart_checkout .crm-event-thankyou-form-block .billing_name_address-group { display: none !important; }

/* ── Form validation errors: brass band + red rule ── */
:is(body.civicrm-event-register, body.civicrm-contribute, body.civicrm-event-cart_checkout) #crm-container div.messages.crm-error {
    margin: 0 0 32px;
    padding: 16px 20px;
    border: 0;
    border-inline-start: 5px solid #C62828;
    border-radius: 0;
    box-shadow: none;
    color: #1A1A1A;
    background-color: rgba(201, 149, 42, 0.3); /* bg-brass-30 */
    background-image: repeating-linear-gradient(45deg, rgba(26, 26, 26, 0.06) 0, rgba(26, 26, 26, 0.06) 1px, transparent 1px, transparent 8px); /* diagonal-hatch */
    font-size: clamp(1.0625rem, 1rem + 0.3125vw, 1.1875rem);
    line-height: 1.5em;
}

:is(body.civicrm-event-register, body.civicrm-contribute, body.civicrm-event-cart_checkout) #crm-container div.messages.crm-error #errorList {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

:is(body.civicrm-event-register, body.civicrm-contribute, body.civicrm-event-cart_checkout) #crm-container div.messages.crm-error #errorList li {
    margin: 0 0 4px;
    font-weight: 600;
}

:is(body.civicrm-event-register, body.civicrm-contribute, body.civicrm-event-cart_checkout) #crm-container div.messages.crm-error i.crm-i {
    color: #C62828;
    margin-inline-end: 0.4em;
}
/* ---------- /members/qrcodecheckin: door scan result (staff phones + kiosk) ----------
   Scoped by the QR Code Checkin extension's own IDs, so it is a no-op on every other page.
   Status classes come from the extension: qrcheckin-status-success (just checked in),
   qrcheckin-status-other (already Attended, or any other status), qrcheckin-status-not-checked-in. */
#qrcheckin-participant-name {
    font-family: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
    font-weight: 700;
    font-size: clamp(40px, 11vw, 72px);
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #302922;
    margin: 12px 0 8px;
}
#qrcheckin-event-name {
    font-size: 20px;
    line-height: 28px;
    color: #302922;
    margin: 0 0 20px;
}
#qrcheckin-status-line {
    box-sizing: border-box;
    padding: 18px 24px 20px;
    margin: 0 0 20px;
    border-radius: 3px;
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: #6E655B;
}
#qrcheckin-status {
    display: block;
    margin-top: 4px;
    font-family: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 8vw, 48px);
    line-height: 1.05;
    letter-spacing: 0.04em;
}
#qrcheckin-status-line.qrcheckin-status-success {
    background: #1F7A3D;
    color: #FFFFFF;
}
#qrcheckin-status-line.qrcheckin-status-other {
    background: #B3261E;
    color: #FFFFFF;
}
#qrcheckin-status-line.qrcheckin-status-not-checked-in {
    background: #C9952A;
    color: #1A1A1A;
}
#qrcheckin-fee-level-line,
#qrcheckin-fee-amount-line,
#qrcheckin-role {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 22px;
    color: #6E655B;
}
#qrcheckin-unpermissioned-successful-message {
    padding: 20px 24px;
    margin: 12px 0 24px;
    border-left: 3px solid #C9952A;
    background: #F0E5C6;
    font-size: 20px;
    line-height: 30px;
    color: #302922;
}
#qrcheckin-unpermissioned-successful-message p {
    margin: 0;
}

/* Legacy option 34: stays active so renewal mode works, never offered.
   Options 23 and 34 share one .price-set-row, so hide only option 34's own wrapper. */
body.civicrm-contribute #crm-container .price-set-row:has(#CIVICRM_QFID_34_price_10) {
    display: contents;
}
body.civicrm-contribute #crm-container .price-set-option-content:has(#CIVICRM_QFID_34_price_10) {
    display: none;
}
/* Session 62: select2 single selects on contribute pages (page 5 on-behalf Country/State), underline + brass chevron to match text inputs */
body.civicrm-contribute #crm-container .select2-container .select2-choice {
  height: auto; padding: 0 28px 0 0; border: 0; border-bottom: 1px solid #1A1A1A; border-radius: 0; box-shadow: none;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23C9952A' stroke-width='2'/></svg>") no-repeat right 4px center / 12px 8px;
  font-family: "Barlow", sans-serif; font-size: 1.5rem; line-height: 32px; color: #1A1A1A;
}
body.civicrm-contribute #crm-container .select2-container .select2-choice .select2-chosen { margin: 0; line-height: 32px; }
body.civicrm-contribute #crm-container :is(.select2-container-active, .select2-dropdown-open) .select2-choice { border-bottom: 2px solid #C9952A; margin-bottom: -1px; background-color: transparent; }

/* s91: Afform submit buttons match btn-primary (43px, square, Barlow Condensed 700). Beats the stream's --crm-btn-height (29px) and the .btn "Modernize" block (Gotchas #77, #146). */
#crm-container.crm-public #bootstrap-theme button.af-button { height: auto; padding: 8px 32px; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: clamp(1rem, 0.875rem + 0.5vw, 1.125rem); line-height: 1.5; letter-spacing: normal; border-radius: 0; box-shadow: none !important; color: #F5F0E6 !important; }
#crm-container.crm-public #bootstrap-theme button.af-button:hover { background-color: #A87A1F !important; transform: none; box-shadow: none !important; }
#crm-container.crm-public #bootstrap-theme button.af-button .crm-i { display: none; }

/* s91: select2 dropdown panel shared spec with the contact form: square, 19px, full-row brass-tint highlight, no stream band behind it. */
#select2-drop.crm-container { border-radius: 0; font: 400 19px/1.65 Barlow, sans-serif; }
#select2-drop.crm-container .select2-results { padding: 0; }
#select2-drop.crm-container .select2-results li.select2-result { padding: 0; }
#select2-drop.crm-container .select2-results li.select2-highlighted { background: transparent !important; }
#select2-drop.crm-container .select2-results .select2-result-label { font-size: 19px; line-height: 1.65; padding: 8px 16px; border-radius: 0; }

