.novacia-thank-you-page {
    padding: 56px 0 72px;
    background: #f7f7f7;
    color: #333;
}
.novacia-thank-you-page__container { width: min(1060px, calc(100% - 40px)); margin: 0 auto; }
.novacia-thank-you-page__hero { margin-bottom: 34px; text-align: center; }
.novacia-thank-you-page__title { margin: 0; color: #333; font-size: clamp(24px, 2.5vw, 30px); line-height: 1.23; font-weight: 600; letter-spacing: -.02em; }
.novacia-thank-you-page__title strong { color: #6b5b9c; font-weight: inherit; }
.novacia-thank-you-page__subtitle { margin: 14px auto 0; font-size: 14px; line-height: 1.5; }
.novacia-thank-you-page__subtitle a { color: #514579; text-decoration: underline; overflow-wrap: anywhere; }
.novacia-thank-you-page__layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.novacia-thank-you-invoice { min-width: 0; display: grid; gap: 20px; }
.novacia-thank-you-invoice__preview { min-width: 0; min-height: 560px; padding: 18px; border-radius: 20px; background: #fff; box-shadow: 0 0 34px #00000008; overflow: hidden; }
.novacia-thank-you-invoice__pages canvas { display: block; width: 100%; height: auto; }
.novacia-thank-you-invoice__pages canvas + canvas { margin-top: 18px; border-top: 1px solid #eee; }
.novacia-thank-you-invoice__pages p, .novacia-thank-you-invoice__empty { padding: 24px; margin: 0; font-size: 14px; line-height: 1.6; color: #777; text-align: center; }
.novacia-thank-you-invoice__fallback { display: block; padding: 12px; color: #6657a8; text-align: center; font-size: 14px; }
.novacia-thank-you-invoice__fallback.is-rendered { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.novacia-thank-you-invoice__fallback.is-rendered:focus { position: static; width: auto; height: auto; padding: 12px; clip-path: none; white-space: normal; }
.novacia-thank-you-side { display: grid; gap: 20px; min-width: 0; }
.novacia-thank-you-card { min-width: 0; padding: 24px 20px; border-radius: 16px; background: #fff; }
.novacia-thank-you-details { display: grid; gap: 14px; }
.novacia-thank-you-block + .novacia-thank-you-block { padding-top: 14px; border-top: 1px solid #e4e4e4; }
.novacia-thank-you-row { display: grid; grid-template-columns: minmax(105px, .9fr) minmax(0, 1.8fr); gap: 12px; align-items: baseline; }
.novacia-thank-you-row + .novacia-thank-you-row { margin-top: 8px; }
.novacia-thank-you-term { color: #999; font-size: 12px; line-height: 1.5; }
.novacia-thank-you-value { color: #333; font-size: 12px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.novacia-thank-you-order__title { margin: 4px 0 20px; color: #333; font-size: 18px; line-height: 1.3; font-weight: 600; }
.novacia-thank-you-order__items { max-height: 236px; overflow-y: auto; padding-right: 10px; scrollbar-width: thin; scrollbar-color: #aaa #f4f4f4; }
.novacia-thank-you-order__items::-webkit-scrollbar { width: 5px; }
.novacia-thank-you-order__items::-webkit-scrollbar-thumb { background: #aaa; border-radius: 4px; }
.novacia-thank-you-order__item { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; border-top: 1px solid #e4e4e4; }
.novacia-thank-you-order__item:first-child { padding-top: 0; border-top: 0; }
.novacia-thank-you-order__item:last-child { padding-bottom: 0; }
.novacia-thank-you-order__media { align-self: start; border-radius: 6px; overflow: hidden; }
.novacia-thank-you-order__media img { display: block; width: 100%; height: auto; }
.novacia-thank-you-order__name { margin: 0 0 12px; color: #333; font-size: 12px; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.novacia-thank-you-order__meta { color: #999; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.novacia-thank-you-order__qty { color: #999; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.novacia-thank-you-actions { display: grid; }
.novacia-thank-you-actions__button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; border: 1px solid #ddd; border-radius: 7px; color: #333; font-size: 14px; line-height: 1.3; font-weight: 500; text-decoration: none; text-align: center; transition: background-color .2s; }
.novacia-thank-you-actions__button:hover { color: #333; background: #e4e4e4; }
.novacia-thank-you-actions__button:focus-visible { outline: 2px solid #6b5b9c; outline-offset: 3px; }
.novacia-thank-you-actions__button--muted { border-color: transparent; background: #ececec; }
.novacia-thank-you-actions__icon { width: 18px; height: 18px; flex: 0 0 18px; }
.novacia-thank-you-empty { max-width: 760px; margin: auto; padding: 30px; border-radius: 16px; background: #fff; }
.novacia-thank-you-empty h2 { margin: 0 0 12px; font-size: 24px; }
.novacia-thank-you-empty p { font-size: 15px; line-height: 1.5; }
.novacia-thank-you-empty a { color: #6657a8; }
@media (max-width: 900px) {
    .novacia-thank-you-page__layout { gap: 20px; }
    .novacia-thank-you-card { padding: 20px 16px; }
    .novacia-thank-you-invoice__preview { min-height: 460px; padding: 14px; }
    .novacia-thank-you-row { grid-template-columns: minmax(88px, 1fr) minmax(0, 2fr); gap: 8px; }
    .novacia-thank-you-order__item { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; }
}
@media (max-width: 680px) {
    .novacia-thank-you-page { padding: 32px 0 48px; }
    .novacia-thank-you-page__container { width: calc(100% - 28px); }
    .novacia-thank-you-page__hero { margin-bottom: 24px; }
    .novacia-thank-you-page__subtitle { font-size: 12px; }
    .novacia-thank-you-page__layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .novacia-thank-you-invoice__preview { min-height: 0; }
    .novacia-thank-you-invoice { gap: 14px; }
    .novacia-thank-you-row { grid-template-columns: minmax(96px, 1fr) minmax(0, 2fr); }
}

.novacia-thank-you-support__title { margin: 0 0 8px; color: #333; font-size: 16px; line-height: 1.35; font-weight: 600; }
.novacia-thank-you-support__text { margin: 0; color: #777; font-size: 13px; line-height: 1.6; }
.novacia-thank-you-support__contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.novacia-thank-you-support__contact { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 12px; border: 1px solid #e5e1ec; border-radius: 7px; background: #f8f6fb; color: #605080; font-size: 12px; line-height: 1.4; font-weight: 500; text-decoration: none; transition: background-color .2s, border-color .2s; }
.novacia-thank-you-support__contact img, .novacia-thank-you-support__contact svg { flex: 0 0 16px; }
.novacia-thank-you-support__contact--phone { flex-basis: 100%; background: #fff; color: #333; }
.novacia-thank-you-support__contact:hover { background: #eee9f5; border-color: #b9adce; color: #51426d; }
.novacia-thank-you-support__contact:focus-visible { outline: 2px solid #6b5b9c; outline-offset: 3px; }

/* Keep the phone icon visible when call tracking replaces the link text. */
.novacia-thank-you-support__contact--phone::before {
    content: "";
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: url("../../img/phone.svg") center / contain no-repeat;
    mask: url("../../img/phone.svg") center / contain no-repeat;
}
