/* US sales tax checkout (Views/Shared/_TaxCheckout.cshtml, Scripts/TaxCheckout.js).
   Palette follows the mockups in Docs\Tax flow revise.html, which take their tokens from the app
   (_DemoLayout.css wizard, Subscribe.css payment fields, Pricing.cshtml). */
.tc,
.tcAddressForm,
.tcReceipt,
#billingAddressSection {
    --tc-ink: #1a1a1a;
    --tc-muted: #6b6b6b;
    --tc-field: #F9F9F9;
    --tc-field-b: #EBEBEB;
    --tc-rule: #d9d9d9;
    --tc-red: #cb1111;
    --tc-err-bg: #f9dfdd;
    --tc-ok: #1e8a4c;
    --tc-ok-bg: #dcf5e3;
    --tc-warn: #8a6100;
    --tc-warn-bg: #fdf3d8;
    --tc-info-bg: #F3F8FF;
    --tc-blue: #3B82F6;
    font-family: 'Roboto', Arial, sans-serif;
    color: #000;
}

.tc { width: 100%; }

.tcSectionTitle {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 6px 0 16px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #3a3a3a;
}
.tcSectionTitle::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e4e4e4;
}

/* ---------- fields ---------- */
.tcRow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.tcLabel {
    flex: 0 0 180px;
    margin: 0;
    font-size: 15px;
    color: var(--tc-ink);
}
.tcCompact .tcLabel { flex-basis: 150px; }
.tcCtl {
    flex: 1;
    min-width: 0;
    position: relative;
}
.tcSplit {
    display: flex;
    gap: 12px;
}
.tcSplit > * { flex: 1; min-width: 0; }

.tc .tcInput,
.tcAddressForm .tcInput {
    box-sizing: border-box;
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    background: var(--tc-field);
    border: 1px solid var(--tc-field-b);
    border-radius: 2px;
    font-size: 15px;
    color: #000;
    outline: none;
    box-shadow: none;
}
.tcAddressForm .tcInput:focus,
.tc .tcInput:focus { border-color: #9a9a9a; background: #fff; }
.tcAddressForm .tcInput.tcOk { border-color: #7cc49a; background: #fff; }
.tcAddressForm .tcInput.tcErr,
.tc .tcInput.tcErr { border-color: var(--tc-red); background: #fff; }
.tcLocked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--tc-muted);
    background: #F0F0F0 !important;
}

.tcFieldHint,
.tcHint {
    font-size: 13px;
    color: var(--tc-muted);
    margin-top: 6px;
    line-height: 1.45;
}
.tcFieldHint { margin: -6px 0 12px 196px; }
.tcCompact .tcFieldHint { margin-left: 166px; }
.tcFieldError {
    font-size: 13px;
    color: var(--tc-red);
    margin-top: 6px;
}

/* ---------- autocomplete ---------- */
.tcAutoWrap { position: relative; }
.tcAutoList {
    position: absolute;
    z-index: 30;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--tc-field-b);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    max-height: 280px;
    overflow-y: auto;
}
.tcAutoList li[data-i] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 14px;
}
.tcAutoList li[data-i] > span { display: flex; flex-direction: column; }
.tcAutoList li[data-i] i { color: var(--tc-muted); margin-top: 2px; }
.tcAutoList li[data-i]:hover,
.tcAutoList li.active { background: #f3f3f3; }
.tcAutoCredit {
    padding: 4px 14px 2px;
    font-size: 11px;
    color: #a0a0a0;
    text-align: right;
}

/* ---------- banners ---------- */
.tcBanner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    margin-bottom: 16px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
}
.tcBanner > i { font-size: 20px; line-height: 1.2; flex-shrink: 0; }
.tcBanner > div { flex: 1; }
.tcBannerOk { background: var(--tc-ok-bg); }
.tcBannerOk > i { color: var(--tc-ok); }
.tcBannerErr { background: var(--tc-err-bg); }
.tcBannerErr > i { color: var(--tc-red); }
.tcBannerWarn { background: var(--tc-warn-bg); }
.tcBannerWarn > i { color: var(--tc-warn); }
.tcBannerInfo { background: var(--tc-info-bg); }
.tcBannerInfo > i { color: var(--tc-blue); }
.tcBannerClose {
    border: 0;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    padding: 0 0 0 8px;
    cursor: pointer;
}

.tcChoices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: -4px 0 16px;
}
.tcChoice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--tc-field-b);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.tcChoice:has(input:checked) { border-color: #000; background: #fafafa; }
.tcChoice input { margin-top: 4px; accent-color: #000; }
.tcChoice > span { display: flex; flex-direction: column; }

.tcAsEntered { margin: 2px 0 8px 196px; font-size: 13px; }
.tcCompact .tcAsEntered { margin-left: 166px; }
.tcLinkBtn {
    border: 0;
    background: transparent;
    padding: 0;
    color: #000;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}
.tcMuted { color: var(--tc-muted); }
.tcAsEntered .tcMuted { margin-left: 6px; }

@keyframes tcSpin { to { transform: rotate(360deg); } }
.tcSpin { display: inline-block; animation: tcSpin 1s linear infinite; }

.tcStepLoading,
.tcQuoteLoading {
    padding: 28px 0;
    text-align: center;
    color: var(--tc-muted);
    font-size: 15px;
}

/* ---------- quote / summary ---------- */
.tcTwoCol {
    display: flex;
    gap: 44px;
    align-items: flex-start;
}
.tcTwoCol > .tcCol { flex: 1; min-width: 0; }

.tcCard {
    border: 1px solid var(--tc-field-b);
    border-radius: 8px;
    background: #fff;
    margin-bottom: 14px;
}
.tcCardHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--tc-field-b);
    font-size: 16px;
}
.tcCardHeadPlain { border-bottom: 0; padding-bottom: 6px; }
.tcCardBody { padding: 0 20px 8px; }

.tcAddressCard { padding-bottom: 14px; font-size: 16px; line-height: 1.55; }
.tcAddressCard > div[data-tc] { padding: 0 20px; }
.tcAddressCard .tcAddrName { font-weight: 700; font-size: 17px; }
.tcAddressCardSmall { font-size: 15px; }

.tcBadge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    vertical-align: middle;
}
.tcBadgeOk { background: var(--tc-ok-bg); color: #145c33; }
.tcBadgeWarn { background: var(--tc-warn-bg); color: var(--tc-warn); }
.tcBadgeNeutral { background: #eef1f5; color: #3a4452; }

.tcOutlineBtn {
    border: 1px solid #1a1a1a;
    background: transparent;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    flex-shrink: 0;
}
.tcOutlineBtn:hover { background: #FDA22F; border-color: #FDA22F; }

.tcLine {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #efefef;
    font-size: 16px;
}
.tcLine small {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--tc-muted);
}
.tcLine > span:last-child { text-align: right; white-space: nowrap; }
.tcLine.tcTotal {
    border-top: 2px solid #000;
    border-bottom: 0;
    margin-top: 8px;
    font-size: 19px;
    font-weight: 700;
}
.tcLine.tcMeta { font-size: 14px; color: var(--tc-muted); }
.tcLine.tcMeta > span:last-child { color: #333; white-space: normal; }

.tcNote {
    font-size: 13px;
    color: var(--tc-muted);
    line-height: 1.5;
    margin: -2px 0 12px;
}
.tcNoteWarn { color: var(--tc-warn); }

.tcDivider { height: 1px; background: var(--tc-field-b); margin: 0 0 16px; }

/* Subscribe.css (loaded later, on both pages) styles these legacy classes for its old stacked
   layout - out-rank it inside the checkout so the rows stay label-left / control-right. */
.tc .tcRow.subscribeEmailRow { flex-direction: row; align-items: center; }
.tc .tcRow.checkoutBtnRow { margin: 4px 0 0; align-items: flex-start; }
.tc .tcInput.subscribeEmailInput { max-width: none; height: 46px; border-radius: 2px; padding: 10px 14px; }
/* The checkout shows its own email error ([data-tc="emailError"]); Subscribe.js's copy would repeat it. */
.tc .error-message { display: none !important; }
.tc [data-step="payment"] .tcRow { align-items: flex-start; }
.tc [data-step="payment"] .tcLabel { padding-top: 12px; flex-basis: 140px; }
.tc [data-step="payment"] .tcPayBtn { min-width: 0; width: 100%; max-width: 280px; }

.tcPayBtn {
    min-width: 220px;
    height: 48px;
    border: 0;
    border-radius: 8px;
    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}
.tcPayBtn.disable-button { background: #b0b0b0; cursor: not-allowed; pointer-events: none; }
.tcPayIcons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 22px;
    color: #555;
}
.tcPayIcons img { height: 22px; }
.tcSecureNote {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 18px;
    font-size: 13px;
    color: var(--tc-muted);
    line-height: 1.5;
}
.tcSecureNote i { font-size: 16px; }

/* ---------- wizard integration ---------- */
/* Checkout steps of the Pricing wizard (package cards -> billing address -> quote -> payment ->
   finish); AccountBase.js adds .tcCheckoutActive. Wider so the payment method and email fields
   get proper room, and a fixed body height so the pop-up doesn't resize - and jump, since it's
   vertically centred - every time the step changes. */
#customDatasetModal.tcCheckoutActive .modal-dialog { max-width: 1060px; }
#customDatasetModal.wizard-mode.tcCheckoutActive #modal-body {
    height: min(620px, calc(100vh - 330px));
    max-height: none;
    /* No permanently reserved scrollbar strip here (_DemoLayout.css reserves one for the other
       steps): the checkout steps fit this height, and without the strip the grey "Selected
       Package" bar reaches the right edge of the pop-up. */
    scrollbar-gutter: auto;
}

/* Checkout step 3a - package cards (#checkoutSelect in _Account.cshtml; cards from AccountBase.js's
   renderCheckoutCards). Styling only, following the "Choose your analysis pack" mockup: heading,
   roomier cards, "What is included?" as a link, Buy Now under the divider; and the cards fill the
   pop-up's fixed checkout height instead of leaving an empty band above the footer. */
#customDatasetModal.tcCheckoutActive #checkoutSelect { min-height: 100%; }
#checkoutSelect .tcPlansHead { text-align: center; margin: 2px 0 4px; }
#checkoutSelect .tcPlansTitle { font-size: 24px; font-weight: 700; color: #1a1a1a; line-height: 1.2; }
#checkoutSelect .tcPlansSub { margin-top: 4px; font-size: 14px; color: #6b6b6b; }
#customDatasetModal.tcCheckoutActive #checkoutCardsRow { flex: 1; }
#customDatasetModal.tcCheckoutActive #checkoutCardsRow .wizardCheckoutGrid { flex: 1; }
#checkoutSelect .wizardCheckoutGrid { gap: 20px; }

#checkoutSelect .wizardCheckoutCard {
    padding: 26px 24px 24px;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
}
#checkoutSelect .wizardCheckoutCardRecommended {
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, .16);
}
#checkoutSelect .wizardCheckoutRecommendedHeader { border-radius: 10px 10px 0 0; }
#checkoutSelect .wizardCheckoutCardEyebrow { font-size: 15px; margin-bottom: 8px; }
#checkoutSelect .wizardCheckoutCardName { font-size: 20px; margin-bottom: 16px; }
#checkoutSelect .wizardCheckoutCardPrice { font-size: 32px; }
#checkoutSelect .wizardCheckoutCardPriceRow { align-items: baseline; margin-bottom: 6px; }
#checkoutSelect .wizardCheckoutIncludedToggle {
    background: none;
    padding: 0;
    font-size: 13px;
    color: #3B82F6;
    text-decoration: underline;
    text-underline-offset: 3px;
}
#checkoutSelect .wizardCheckoutIncludedToggle:hover { color: #1d4ed8; }
#checkoutSelect .tcTaxMayApply { margin: 0 0 14px; font-size: 13px; }
#checkoutSelect .wizardCheckoutCardDescription { font-size: 14px; line-height: 1.5; color: #333; margin-bottom: 12px; }
#checkoutSelect .wizardCheckoutCardFooter { align-items: flex-start; padding-top: 6px; }
#checkoutSelect .wizardCheckoutCardDivider { margin-bottom: 18px; }
#checkoutSelect .wizardCheckoutBuyBtn { padding: 11px 30px; font-size: 15px; }

#checkoutSelect .wizardCheckoutPromoCard {
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
    margin-bottom: 4px;
}
#checkoutSelect .wizardCheckoutPromoRight .tcTaxMayApply { margin-top: -6px; }
#checkoutSelect .tcPricingFootnote { margin: 18px 0 0; font-size: 13px; }

/* First-time buyers also get the wide "First Analysis Special" card on top: tighten the spacing so
   the promo card, the three packs and their Buy Now buttons still fit the pop-up without scrolling. */
#checkoutSelect:has(.wizardCheckoutPromoCard) .tcPlansHead { margin: 0 0 2px; }
#checkoutSelect:has(.wizardCheckoutPromoCard) .tcPlansTitle { font-size: 21px; }
#checkoutSelect:has(.wizardCheckoutPromoCard) .tcPlansSub { margin-top: 2px; font-size: 13px; }
#checkoutSelect .wizardCheckoutPromoCard:first-child { padding: 14px 24px; }
#checkoutSelect .wizardCheckoutPromoCard .wizardCheckoutCardDescription { font-size: 13px; line-height: 1.4; margin-bottom: 4px; }
#checkoutSelect .wizardCheckoutPromoRight .wizardCheckoutCardPrice { margin-bottom: 8px; }
#checkoutSelect .wizardCheckoutPromoRight .tcTaxMayApply { margin-bottom: 8px; }
#checkoutSelect .wizardCheckoutPromoCard ~ .wizardCheckoutGrid .wizardCheckoutCard { padding: 18px 20px 16px; }
#checkoutSelect .wizardCheckoutPromoCard ~ .wizardCheckoutGrid .wizardCheckoutCardEyebrow { margin-bottom: 6px; }
#checkoutSelect .wizardCheckoutPromoCard ~ .wizardCheckoutGrid .wizardCheckoutCardName { margin-bottom: 10px; }
#checkoutSelect .wizardCheckoutPromoCard ~ .wizardCheckoutGrid .wizardCheckoutCardPrice { font-size: 28px; }
#checkoutSelect .wizardCheckoutPromoCard ~ .wizardCheckoutGrid .tcTaxMayApply { margin-bottom: 8px; }
#checkoutSelect .wizardCheckoutPromoCard ~ .wizardCheckoutGrid .wizardCheckoutCardDescription { font-size: 13px; line-height: 1.4; margin-bottom: 6px; }
#checkoutSelect .wizardCheckoutPromoCard ~ .wizardCheckoutGrid .wizardCheckoutCardFooter { padding-top: 2px; }
#checkoutSelect .wizardCheckoutPromoCard ~ .wizardCheckoutGrid .wizardCheckoutCardDivider { margin-bottom: 12px; }
#checkoutSelect .wizardCheckoutPromoCard ~ .wizardCheckoutGrid .wizardCheckoutBuyBtn { padding: 9px 26px; }
#checkoutSelect:has(.wizardCheckoutPromoCard) .tcPricingFootnote { margin-top: 10px; }

#customDatasetModal .tcNextBtn:not([disabled]) { background-color: #000; color: #fff; }
#customDatasetModal .tcNextBtn[disabled] { cursor: not-allowed; opacity: 1; }
#customDatasetModal .tcNextBtn { min-width: 170px; padding: 0 22px; }
#checkoutPaymentSelect .tc #PaymentMethod,
#checkoutPaymentSelect .tc .__subscribeUserEmail { height: 46px; }

/* ---------- /Subscribe page ---------- */
.payment-page.tcSubscribePage {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 60px;
}
.tcSubscribePage .tc { margin-top: 26px; }
/* Package + price in one full-width bar, like the wizard's "Selected Package" bar. */
.tcPackageBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    background: #F0F0F0;
    border-radius: 8px;
}
.tcPackageBarLeft { flex: 1; min-width: 0; max-width: 420px; }
.tcPackageBarLabel { display: block; margin-bottom: 6px; font-size: 13px; color: #1a1a1a; }
.tcSubscribePage .tcPackageBarSelect {
    height: 46px;
    font-size: 16px;
    font-weight: 500;
    background-color: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    max-width: none;
}
.tcPackageBarRight { flex-shrink: 0; text-align: right; }
.tcSubscribePage .tcPackageBar #totalPackagePriceId {
    padding: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    color: #1a1a1a;
}
.tcPackageBarNote,
.tcSubscribePage .tcPackageBar #totalPackagePriceText {
    padding: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    color: #6b6b6b;
}
.tcSubscribePage .tcPackageBarTax { margin: 10px 0 0; }
@media (max-width: 767px) {
    .tcPackageBar { flex-direction: column; align-items: stretch; }
    .tcPackageBarLeft { max-width: none; }
    .tcPackageBarRight { text-align: left; }
}
.tcSubscribeNav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}
.tcSubscribeNav .tcNavBtnNext { margin-left: auto; }
.tcNavBtn {
    display: inline-flex;
    align-items: center;
    height: 52px;
    padding: 0 26px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
}
.tcNavBtnBack { border: 1px solid #1a1a1a; background: #fff; color: #000; }
.tcNavBtnNext { border: 0; background: #000; color: #fff; }
.tcNavBtnNext[disabled] { background: #b0b0b0; cursor: not-allowed; }

/* ---------- receipt ---------- */
.tcReceipt { max-width: 520px; margin: 18px auto; text-align: left; }
.tcReceipt.tcLoading { padding: 20px; text-align: center; color: var(--tc-muted); }
.tcReceiptActions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 6px 0 24px;
}
.tcReceiptBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 26px;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    background: #fff;
    color: #000;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
}
.tcReceiptBtn:hover { background: #FDA22F; border-color: #FDA22F; }

/* ---------- wizard finish step ---------- */
/* Figure 8 of Docs\Tax flow revise ("Thank-you screen with receipt"): pale-green check, "Thank you
   for Subscribing!", the receipt card, Download receipt + Get Started under it, then the support
   line - and no wizard footer. The body takes over the footer's height, so the pop-up keeps the
   size it had on the checkout steps. */
#customDatasetModal.tcFinishActive #btns,
#customDatasetModal.tcFinishActive #mainBody > hr.lineCenter { display: none !important; }
#customDatasetModal.wizard-mode.tcCheckoutActive.tcFinishActive #modal-body {
    /* 123px = the footer's divider (33px with margins) + button row (90px) */
    height: calc(min(620px, calc(100vh - 330px)) + 123px);
}
#checkoutSuccessSelect { font-family: 'Roboto', Arial, sans-serif; padding: 14px 0 6px; }
#customDatasetModal.tcFinishActive #checkoutSuccessSelect { min-height: 100%; justify-content: center; }
#checkoutSuccessSelect .tcFinishIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #dcf5e3;
    color: #1e8a4c;
    font-size: 34px;
}
#checkoutSuccessSelect .tcFinishTitle {
    margin-bottom: 10px;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
    color: #1a1a1a;
}
#checkoutSuccessSelect .tcFinishSub {
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.45;
    color: #6b6b6b;
}
#checkoutSuccessSelect .tcFinishSub b { color: #4a4a4a; }
#checkoutSuccessSelect .tcReceipt {
    max-width: 440px;
    margin: 0 auto 22px;
    border-radius: 7px;
    box-shadow: rgba(0, 0, 0, .06) 0 0 16px;
}
#checkoutSuccessSelect .tcCardHead { padding: 13px 18px; font-size: 14px; }
#checkoutSuccessSelect .tcCardBody { padding: 4px 18px 4px; }
#checkoutSuccessSelect .tcBadge { padding: 2px 10px; font-size: 12.5px; }
#checkoutSuccessSelect .tcLine { padding: 9px 0; font-size: 14px; }
#checkoutSuccessSelect .tcLine small { font-size: 12px; }
#checkoutSuccessSelect .tcLine.tcTotal { margin-top: 4px; padding-top: 12px; border-top-width: 1.5px; font-size: 16px; }
#checkoutSuccessSelect .tcLine.tcMeta { font-size: 12.5px; }
#checkoutSuccessSelect .tcLine.tcMeta:last-child { border-bottom: 0; }
#checkoutSuccessSelect .tcLine.tcMeta > span:last-child { color: #555; line-height: 1.5; }
#checkoutSuccessSelect .tcFinishActions { gap: 12px; margin: 0 0 20px; }
#checkoutSuccessSelect .tcReceiptBtn,
#checkoutSuccessSelect .tcFinishStartBtn {
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}
#checkoutSuccessSelect .tcFinishStartBtn { display: inline-flex; border: 1px solid #000; background: #000; color: #fff; }
#checkoutSuccessSelect .tcFinishStartBtn:hover { background: #FDA22F; border-color: #FDA22F; color: #000; }
/* Only when a dataset was uploaded: sits under the buttons, separated from the receipt. */
#checkoutSuccessSelect #checkoutSuccessProcessingBlock { max-width: 480px; margin: 0 auto 18px; padding-top: 20px; border-top: 1px solid #EBEBEB; }
#checkoutSuccessSelect .wizardProcessingTitle { margin: 0 0 6px; font-size: 20px; }
#checkoutSuccessSelect .wizardProcessingSubtitle { margin-bottom: 16px; font-size: 14px; }
#checkoutSuccessSelect .tcFinishHelp { font-size: 13px; color: #6b6b6b; }
#checkoutSuccessSelect .tcFinishHelp a { font-weight: 700; color: #000; text-decoration: none; }
#checkoutSuccessSelect .tcFinishHelp a:hover { text-decoration: underline; }

/* ---------- pricing cards ---------- */
.tcTaxMayApply {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 10px;
    font-size: 14px;
    color: var(--tc-muted);
    font-weight: 400;
}
.tcPricingFootnote {
    width: 100%;
    margin: 18px 0 4px;
    text-align: center;
    font-size: 14px;
    color: var(--tc-muted);
}

/* ---------- billing grids (Billing > Subscription / Invoices) ---------- */
/* Figure 12 of Docs\Tax flow revise: uppercase grey headings, rules between rows only, amounts
   right-aligned, an eye icon for View. The heading row stays put while the rows scroll. */
.tcBillingGridWrap {
    height: 340px;
    overflow-y: auto;
    border: 1px solid #EBEBEB;
    background: #fff;
}
.tcBillingGrid {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    color: #1a1a1a;
}
.tcBillingGrid th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 12px 14px;
    background: #fff;
    /* a border on a sticky cell scrolls away with border-collapse; the shadow stays */
    box-shadow: inset 0 -1.5px 0 #e4e4e4;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
    color: #777;
}
.tcBillingGrid td {
    padding: 13px 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    background: #fff;
}
.tcBillingGrid tbody tr:hover td { background: #fafafa; }
.tcBillingGrid tbody tr:has(input:checked) td { background: #f3f7ff; }
.tcBillingGrid .tcGridNum { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tcBillingGrid .tcGridCheck { width: 52px; text-align: center; }
.tcBillingGrid .tcGridView { width: 76px; text-align: center; }
.tcBillingGrid input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    vertical-align: middle;
    cursor: pointer;
    accent-color: #000;
}
.tcGridViewBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #555;
    font-size: 19px;
    cursor: pointer;
}
.tcGridViewBtn:hover { background: #FDA22F; color: #000; }
.tcGridViewBtn:focus-visible { outline: 2px solid #3B82F6; outline-offset: 1px; }
.tcBillingGrid .tcGridEmpty td { padding: 48px 14px; text-align: center; color: #6b6b6b; }
.tcGridMuted { color: #6b6b6b; }
/* _DemoLayout.css gives these heading rows a grey band through their ids. */
.tcBillingGrid #billingInvoiceTableHead th,
.tcBillingGrid #billingPkgTableHead th { background: #fff; line-height: normal; }

/* Download is only usable once a row is ticked: black when enabled, faded when not (the base style
   was the same grey either way, so ticking a row looked like it did nothing). */
#billingSubscriptionModal .invoicesdownload-btn:not(:disabled),
#billingSubscriptionModal .packagesdownload-btn:not(:disabled),
#billingInvoiceViewModal .invoicesdownload-btn,
#billingPkgViewModal .pkgdownload-btn { background-color: #000; color: #fff; }
#billingSubscriptionModal .invoicesdownload-btn:not(:disabled) img,
#billingSubscriptionModal .packagesdownload-btn:not(:disabled) img,
#billingInvoiceViewModal .invoicesdownload-btn img,
#billingPkgViewModal .pkgdownload-btn img { content: url('../img/SVGs/invoice-download-icon-hover.svg'); }
#billingSubscriptionModal .invoicesdownload-btn:disabled,
#billingSubscriptionModal .packagesdownload-btn:disabled { background-color: #dcdcdc; color: #696969; opacity: .55; cursor: not-allowed; }
#billingSubscriptionModal .invoicesdownload-btn:disabled img,
#billingSubscriptionModal .packagesdownload-btn:disabled img { content: url('../img/SVGs/invoice-download-icon.svg'); }

/* Invoice view (Billing > Invoices > eye): compact rows, so package, subtotal, sales tax, total,
   billed-to and order fit without scrolling. */
#billingInvoiceViewRows td { padding-top: 10px; padding-bottom: 10px; font-size: 16px; line-height: 1.45; }

/* ---------- profile menu + account settings ---------- */
#Profile .info-section .user-address {
    display: none;
    align-items: center;
    gap: 4px;
    max-width: 230px;
    margin-top: 2px;
    font-size: 0.85em;
    color: gray;
}
/* style.css sizes every .dropdown-item icon as an 18px menu icon */
#Profile .info-section .user-address i {
    flex: 0 0 auto;
    margin: 0;
    font-size: 1em;
    line-height: 1;
}
#Profile .info-section .user-address span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#billingAddressSection .baGrid {
    display: grid;
    grid-template-columns: 150px 1fr;
    row-gap: 14px;
    column-gap: 16px;
    font-size: 16px;
    margin-bottom: 18px;
}
#billingAddressSection .baGrid > b { font-weight: 700; }
#billingAddressSection .baInfo {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #cfe0fb;
    border-radius: 8px;
    background: var(--tc-info-bg);
    font-size: 15px;
    line-height: 1.5;
}
#billingAddressSection .baInfo i { color: var(--tc-blue); font-size: 18px; }
#billingAddressSection #baEditBtn,
#billingAddressSection #baSaveBtn { background-color: #000; color: #fff; padding: 0 22px; }
#billingAddressSection #baSaveBtn[disabled] { background-color: #b0b0b0; }
#billingAddressSection .baFooter {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e4e4e4;
}

/* ---------- small screens ---------- */
@media (max-width: 767px) {
    .tcTwoCol { flex-direction: column; gap: 8px; }
    .tcTwoCol > .tcCol { width: 100%; }
    .tcRow,
    .tc .tcRow.subscribeEmailRow,
    .tc .tcRow.checkoutBtnRow { flex-direction: column; align-items: stretch; gap: 6px; }
    .tcLabel { flex-basis: auto; }
    .tcFieldHint, .tcAsEntered, .tcCompact .tcFieldHint, .tcCompact .tcAsEntered { margin-left: 0; }
    .tcPayBtn { width: 100%; }
    #billingAddressSection .baGrid { grid-template-columns: 1fr; row-gap: 4px; }
}
