.qr-page-shell {
    padding-bottom: 24px;
    height: auto;
}

.steps {
    visibility: hidden;
}

.steps * {
    display: none !important;
}

.qr-page-header {
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #d9dee5;
}

.qr-page-header .formLogo {
    flex: 0 0 auto;
}

.qr-header-copy {
    display: grid;
    gap: 10px;
    max-width: 640px;
}

.qr-overline,
.qr-success-status {
    display: inline-flex;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f4efe4;
    color: #4f4633;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.qr-page-title,
.qr-success-title {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    line-height: 1.15;
    color: #1f2430;
}

.qr-page-intro,
.qr-success-lead,
.qr-success-note,
.qr-section-heading p,
.qr-membership-description,
.qr-membership-hint,
.qr-footer-brand {
    color: #5a6474;
    font-size: 0.98rem;
    line-height: 1.6;
}

.qr-page-intro p:last-child,
.qr-page-intro-bottom p:last-child,
.qr-section-heading p:last-child {
    margin-bottom: 0;
}

.qr-card,
.qr-success-card {
    border-radius: 20px;
    border: 1px solid #e3e6eb;
    background: #fff;
    box-shadow: 0 12px 30px rgba(18, 31, 53, 0.08);
}

.qr-page-shell #personForms {
    overflow: visible;
    margin-bottom: 0;
}

.qr-page-shell .forms-wrapper {
    height: auto;
    min-height: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    overflow: visible;
}

.qr-page-shell .form-body {
    width: min(100%, 720px);
    overflow: visible;
    min-height: 560px;
    padding-bottom: 18px;
}

.qr-card {
    padding: 28px;
    max-width: 680px;
    margin: 0 auto;
}

.qr-card-muted {
    margin-top: 16px;
    box-shadow: none;
}

.qr-alert,
.qr-validation-summary {
    margin-bottom: 18px;
}

.qr-section-heading {
    margin-bottom: 18px;
}

.qr-section-heading h2 {
    margin-bottom: 6px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2430;
}

.qr-membership-list {
    display: grid;
    gap: 12px;
}

.qr-membership-option {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #d8dde6;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.qr-membership-option:hover {
    border-color: #20314b;
    box-shadow: 0 10px 24px rgba(22, 32, 48, 0.08);
    transform: translateY(-1px);
}

.qr-membership-option.is-selected {
    border-color: #18273b;
    box-shadow: 0 12px 26px rgba(24, 39, 59, 0.14);
}

.qr-membership-option.is-disabled {
    opacity: 0.76;
}

.qr-membership-option.qr-invalid {
    border-color: #c62828;
}

.qr-membership-radio {
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: #1e2d43;
}

.qr-membership-copy {
    display: grid;
    gap: 4px;
}

.qr-membership-title {
    color: #1f2430;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
}

.qr-membership-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
    text-align: right;
}

.qr-membership-price,
.qr-membership-flow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.qr-membership-price {
    background: #f0f4f8;
    color: #213146;
}

.qr-membership-flow {
    background: #fbf5e8;
    color: #6e5320;
}

.qr-membership-hint {
    margin: 18px 0 0;
}

.qr-vipps-area {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.qr-confirmation-check {
    margin-top: 20px;
}

.qr-confirmation-label {
    display: grid;
    grid-template-columns: 22px minmax(0, auto);
    column-gap: 12px;
    row-gap: 2px;
    align-items: start;
    margin: 0;
    cursor: pointer;
    color: #1f2430;
}

.qr-confirmation-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #1e2d43;
}

.qr-confirmation-label span {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.qr-confirmation-text {
    grid-column: 2;
    margin-top: 2px;
    color: #5a6474;
    font-size: 0.93rem;
    line-height: 1.5;
}

.qr-confirmation-text > :first-child {
    margin-top: 0;
}

.qr-confirmation-text > :last-child {
    margin-bottom: 0;
}

.vipps-button-host {
    width: 100%;
    max-width: 360px;
}

.vipps-button-host vipps-mobilepay-button {
    display: block;
    width: 100%;
    cursor: pointer;
}

.qr-page-shell-success .forms-wrapper {
    display: flex;
    justify-content: center;
}

.qr-page-shell-success .form-body {
    width: 100%;
    display: grid;
    justify-items: center;
    padding-bottom: 36px;
}

.qr-success-card {
    width: 100%;
    max-width: 560px;
    padding: 28px 24px;
    margin-bottom: 12px;
}

.qr-success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.qr-success-icon svg {
    width: 72px;
    height: 72px;
    stroke: #1f9f4a;
    fill: rgba(31, 159, 74, 0.12);
    stroke-width: 1.75;
}

.qr-success-copy {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.qr-success-lead,
.qr-success-note {
    margin: 0;
}

.qr-receipt-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.qr-receipt-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid #eceff3;
}

.qr-receipt-row dt,
.qr-receipt-row dd {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.45;
}

.qr-receipt-row dt {
    color: #677081;
}

.qr-receipt-row dd {
    color: #1f2430;
    text-align: right;
    font-weight: 600;
}

.qr-receipt-reference {
    font-size: 0.82rem;
    word-break: break-all;
}

.qr-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding: 18px 4px 0;
}

.qr-footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.qr-footer-link {
    color: #223653;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.qr-footer-link:hover {
    text-decoration: underline;
}

.qr-footer-link.is-disabled {
    color: #8a92a0;
    text-decoration: none;
    cursor: default;
}

@media (max-width: 767.98px) {
    html,
    body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body {
        margin: 0;
    }

    #appBox {
        width: 100%;
        max-width: none;
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        height: auto;
        border: none;
        border-radius: 0;
        box-shadow: none !important;
        overflow: visible;
        display: flex;
        flex-direction: column;
    }

    .qr-page-shell {
        flex: 0 0 auto;
        display: block;
        padding: 0;
    }

    .qr-page-shell #personForms {
        display: block;
    }

    .qr-page-shell .forms-wrapper {
        padding: 0 12px 12px;
    }

    .qr-page-shell .form-body {
        width: 100%;
        min-height: 0;
        display: block;
        padding-bottom: 0;
    }

    .qr-page-header {
        gap: 10px;
        margin: 0;
        padding: 6px 12px 4px;
        border-bottom: none;
        align-items: center;
    }

    .qr-page-header .formLogo {
        position: static;
        top: auto;
        right: auto;
        height: 32px;
        padding-right: 0;
    }

    .qr-page-title,
    .qr-success-title {
        font-size: clamp(1.05rem, 4.4vw, 1.25rem);
        line-height: 1.2;
    }

    .qr-header-copy {
        gap: 4px;
    }

    .qr-card {
        display: block;
    }

    .qr-card,
    .qr-success-card {
        padding: 12px 12px;
        border-radius: 14px;
    }

    .qr-section-heading {
        margin-bottom: 10px;
    }

    .qr-section-heading h2 {
        font-size: 1rem;
    }

    .qr-membership-list {
        gap: 8px;
    }

    .qr-success-card {
        max-width: 100%;
        margin-bottom: 0;
    }

    .qr-membership-option {
        grid-template-columns: 22px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 12px;
        align-items: center;
    }

    .qr-membership-radio {
        width: 18px;
        height: 18px;
    }

    .qr-membership-meta {
        grid-column: auto;
        justify-items: end;
        text-align: right;
    }

    .qr-membership-title {
        font-size: 0.92rem;
        line-height: 1.25;
    }

    .qr-membership-price {
        min-height: 26px;
        padding: 3px 8px;
        font-size: 0.78rem;
    }

    .qr-confirmation-check {
        margin-top: 10px;
    }

    .qr-confirmation-label {
        column-gap: 10px;
    }

    .qr-confirmation-label span,
    .qr-confirmation-text {
        line-height: 1.35;
    }

    .qr-confirmation-text {
        font-size: 0.88rem;
    }

    .qr-vipps-area {
        margin-top: 12px;
        padding-top: 2px;
        padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
        position: static;
        background: transparent;
    }

    .qr-confirmation-text {
        font-size: 0.82rem;
        line-height: 1.3;
    }

    .qr-page-shell .forms-wrapper {
        padding: 0 10px 8px;
    }

    .qr-card-muted,
    .qr-page-intro-bottom {
        display: none;
    }

    #appBox > footer {
        flex: 0 0 auto;
        border-top: none !important;
        padding: 6px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    }

    #appBox footer .container {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 12px;
        width: 100%;
        padding: 0;
    }

    #appBox footer .container > div[style*="inline-flex"] {
        display: inline-flex !important;
        align-items: center;
        flex-wrap: nowrap;
        margin-right: auto;
        margin-top: 0 !important;
        max-width: none !important;
        white-space: nowrap;
    }

    #appBox footer .footerLogo,
    #appBox footer .footerlogo,
    #appBox footer .GreyLogo {
        flex: 0 0 auto;
        display: block;
        position: static !important;
        right: auto !important;
        bottom: auto !important;
        max-height: 20px !important;
        margin-top: 0 !important;
        float: none !important;
    }

    .qr-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .qr-receipt-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .qr-receipt-row dd {
        text-align: left;
    }
}
