/* Shared activation and memo layout. Keep the copy in every donor identical. */
:root {
    --activation-ink: #1a1a1a;
    --activation-link: #0a3d91;
    --activation-dialog-ink: #1a1a1a;
    --activation-width: min(520px, 90vw);
    --activation-text-size: 16px;
}
.pt-flow-dark {
    --activation-ink: #ffffff;
    --activation-link: #ffffff;
}
body.pt-activation-page,
body.pt-order-memo-mode {
    font-family: Inter, Arial, sans-serif;
    font-size: var(--activation-text-size);
    line-height: 1.5;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}
body.pt-activation-page .main,
body.pt-order-memo-mode .main {
    width: 100%;
    min-height: 0;
    margin-top: 28px;
    padding: 0;
    gap: 0;
}
body.pt-activation-page .main > .container,
body.pt-order-memo-mode .pt-order-memo-card {
    box-sizing: border-box;
    width: var(--activation-width);
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    padding: 28px;
    justify-content: flex-start;
    border-radius: 28px;
    color: var(--activation-ink);
}
body.pt-activation-page #instruction-container {
    box-sizing: border-box;
    width: 100%;
    padding: 0 !important;
}
body.pt-activation-page .container .text,
body.pt-activation-page .loading-text,
body.pt-order-memo-mode .pt-order-memo-content,
body.pt-order-memo-mode .pt-order-memo-text,
body.pt-order-memo-mode .pt-order-memo-lead {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    color: var(--activation-ink) !important;
    font-family: Inter, Arial, sans-serif !important;
    font-size: var(--activation-text-size) !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere;
}
body.pt-activation-page .container .text.bgr {
    font-size: 32px !important;
    margin-top: 0;
    letter-spacing: 2px;
}
body.pt-activation-page .container > .text:last-child {
    margin-bottom: 0;
}
body.pt-activation-page .mb-30 { margin-bottom: 20px; }
body.pt-activation-page .form-wrapper,
body.pt-activation-page #access-form { width: 100%; }
body.pt-activation-page .input-field {
    box-sizing: border-box;
    width: min(360px, 100%);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-family: Inter, Arial, sans-serif !important;
}
body.pt-activation-page .buttons,
body.pt-order-memo-mode .pt-order-memo-actions {
    box-sizing: border-box;
    width: var(--activation-width);
    max-width: none;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    gap: 14px;
}
body.pt-activation-page .buttons > .btn,
body.pt-order-memo-mode .pt-order-memo-actions > .btn {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    min-height: 50px;
    padding: 13px 20px;
    border-radius: 25px;
    font-family: Inter, Arial, sans-serif !important;
    font-size: var(--activation-text-size) !important;
    line-height: 1.5 !important;
    white-space: normal;
    overflow-wrap: anywhere;
}
body.pt-activation-page .buttons > .btn-continue,
body.pt-activation-page .buttons > .btn-get-code,
body.pt-order-memo-mode .pt-order-memo-actions > .btn-get-code {
    color: var(--activation-ink) !important;
}
body.pt-activation-page .buttons > .btn-expanded,
body.pt-order-memo-mode .pt-order-memo-actions > .btn-expanded {
    /* Legacy FAQ HTML contains non-breaking indentation around its content.
       Do not let those text nodes consume space as anonymous flex items. */
    display: block;
    font-size: 0 !important;
    line-height: 0 !important;
    padding: 22px;
    border-radius: 28px;
}
body.pt-activation-page .expanded-text,
body.pt-order-memo-mode .expanded-text {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    color: var(--activation-ink) !important;
    font-family: Inter, Arial, sans-serif !important;
    font-size: 0 !important;
    line-height: 0 !important;
}
body.pt-activation-page .expanded-text .question,
body.pt-activation-page .expanded-text .answer,
body.pt-order-memo-mode .expanded-text .question,
body.pt-order-memo-mode .expanded-text .answer {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 0;
    color: var(--activation-ink) !important;
    font: 400 var(--activation-text-size)/1.5 Inter, Arial, sans-serif !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere;
}
body.pt-activation-page .expanded-text .question,
body.pt-order-memo-mode .expanded-text .question {
    margin: 0 0 16px;
    font-weight: 600 !important;
    text-align: center;
}
body.pt-activation-page .expanded-text .answer,
body.pt-order-memo-mode .expanded-text .answer {
    margin: 0;
    text-align: left;
}
body.pt-activation-page .expanded-text a,
body.pt-order-memo-mode .expanded-text a {
    color: var(--activation-link) !important;
}
body.pt-activation-page .container .ps-console-modal-box {
    color: var(--activation-dialog-ink) !important;
    padding: 22px;
}
/* Keep rating appearance in the theme; separate the footer from help actions. */
@media (max-width: 768px) {
    :root {
        --activation-width: min(420px, 90vw);
        --activation-text-size: 14px;
    }
    body.pt-activation-page .main,
    body.pt-order-memo-mode .main { margin-top: 20px; }
    body.pt-activation-page .main > .container,
    body.pt-order-memo-mode .pt-order-memo-card { padding: 20px; border-radius: 24px; }
    body.pt-activation-page .buttons > .btn-expanded,
    body.pt-order-memo-mode .pt-order-memo-actions > .btn-expanded { padding: 20px; }
}

/* Expanding help grows downward instead of anchoring the following footer. */
body.pt-activation-page,
body.pt-order-memo-mode {
    overflow-anchor: none;
}
body.pt-activation-page .buttons,
body.pt-order-memo-mode .pt-order-memo-actions {
    margin-bottom: 64px !important;
}
body.pt-has-fixed-rating.pt-activation-page .rating-box,
body.pt-order-memo-mode .pt-order-memo-page .rating-box {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    margin: auto auto 20px;
}
body.pt-activation-page .language-switcher,
body.pt-order-memo-mode .language-switcher {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    margin: 0;
    order: initial;
}
@media (max-width: 768px) {
    body.pt-activation-page .buttons,
    body.pt-order-memo-mode .pt-order-memo-actions {
        margin-bottom: 48px !important;
    }
}
