.mobile-font .step-layout .step-content__title,
.mobile-font .step-layout .step-popup__title{
    font-size: 6.2vw !important;
    line-height: 8.2vw !important;
}

.mobile-font .step-layout .step-content__subtitle,
.mobile-font .step-layout .step-content__description,
.mobile-font .d4me-btn {
    font-size: 4.1vw !important;
    line-height: 6.2vw !important;
}

.mobile-font .font-14 {
    font-size: 3.6vw !important;
}
.mobile-font .line-height-24 {
    line-height: 6.2vw !important;
}

.mobile-font h1 {
    font-size: 10.4vw !important;
    line-height: 12.6vw !important;
}

.change-language-dropdown .dropdown-menu {
    width: 240px;
    height: 400px;
    margin-top: 8px !important;
    overflow-y: hidden;
}

@media all and (max-width: 622px) {
    .modal-dialog {
        width: 100% !important;
    }
}

.term-and-conditions-check {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
}
    .--reversed .term-and-conditions-check {
        text-align: right;
    }

.term-and-conditions-check a {
    text-decoration: underline;
    color: inherit;
}

.single-site-map-wrapper {
    height: 200px; 
    overflow: hidden; 
    width: calc(100% + 32px); 
    margin-left: -16px;
    margin-top: 32px;
    margin-bottom: 32px;
}
.single-site-map {
    /* so blue border will not be visible */
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    margin-top: -2px;
    margin-left: -2px;
}

.single-site-map-wrapper .btn-map-close,
.single-site-map-wrapper .map-footer-select-btn-wrapper {
    display: none;
}

.single-site-map-wrapper.--full-screen {
    position: absolute;
    z-index: 2;
    inset: 0;
    height: unset;
    width: unset;
    margin: unset;
}

.single-site-map-wrapper.--full-screen .btn-map-close {
    display: block;
    top: 24px;
}
.single-site-map-wrapper.--full-screen .map-footer-select-btn-wrapper {
    display: block;
    bottom: 5%;
}

.step-popup__title.text__vertical-wrapper {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    -webkit-line-clamp: 3;
}

.map-footer-select-btn-wrapper {
    width: 100%;
    position: fixed;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
    .map-footer-select-btn-wrapper .d4me-btn.--secondary {
        width: fit-content;
    }
    .map-footer-select-btn-wrapper .d4me-btn.--primary {
        max-width: 335px;
    }

.payment-providers__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.payment-card-marks {
    --payment-acceptance-mark-w: 60px;
    --payment-acceptance-mark-h: 40px;
    --payment-program-mark-h: 48px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.payment-card-marks__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.payment-card-marks__bank-logo {
    display: flex;
    justify-content: center;
}

.payment-card-marks__bank-logo img {
    max-height: 52px;
    width: auto;
}

.payment-card-marks__acceptance-mark,
.payment-card-marks__program-mark {
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-card-marks__acceptance-mark {
    width: var(--payment-acceptance-mark-w);
    height: var(--payment-acceptance-mark-h);
}

.payment-card-marks__program-mark {
    height: var(--payment-program-mark-h);
}

.payment-card-marks__acceptance-mark img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.payment-card-marks__program-mark img {
    height: var(--payment-program-mark-h);
    width: auto;
    object-fit: contain;
}

/* Two equal halves so the label/value split always lands on the horizontal center,
   whatever the labels and values are: labels end just before it, values start just after. */
.payment-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 8px;
}

/* Rows exist only so narrow screens can keep each value next to its own label; on wider
   screens they dissolve into the grid, so every label/value pair shares the centered split. */
.payment-summary__row {
    display: contents;
}

.payment-summary__label {
    text-align: right;
}

.payment-summary__value {
    text-align: left;
    /* Values like an order ref can be one long unbroken string — let it break mid-word
       instead of forcing the grid wider than the frame. */
    min-width: 0;
    word-break: break-word; /* legacy fallback */
    overflow-wrap: anywhere;
}

.pb-32 {
    padding-bottom: 32px !important;
}
.px-48 {
    padding-inline: 48px;
}

@media screen and (min-width: 768px) {
    .single-site-map-wrapper {
        height: 300px;
        margin-top: 48px;
        margin-bottom: 68px;
    }

    .frame-layout > .frame-content {
        min-height: 0;
        margin-block: 24px;
        overflow-y: auto;
    }
}

/* ---- SMALL && X-SMALL VIEW ---- */
@media screen and (max-width: 767px) {
    .step-content.--adjusted-margin {
        margin-top: 24px;
    }
    .map-footer-select-btn-wrapper {
        bottom: 24px;
        width: calc(100% - 32px);
        flex-direction: column;
    }
        .map-footer-select-btn-wrapper .d4me-btn.--secondary {
            width: 335px;
            max-width: 335px;
        }
    
    .payment-card-marks {
        --payment-acceptance-mark-w: 52px;
        --payment-acceptance-mark-h: 34px;
        --payment-program-mark-h: 40px;
    }
    .payment-card-marks__bank-logo img {
        max-height: 40px;
    }
    /* Narrow screens: drop the grid entirely — each row is a plain line where the value
       runs on right after its own label, instead of lining up in a shared column. */
    .payment-summary {
        display: block;
    }
        .payment-summary__row {
            display: block;
        }
        .payment-summary__label,
        .payment-summary__value {
            text-align: left;
        }
}

/* ---- Barcode camera scanner (BlazorBarcodeScanner.ZXing.Cpp) ----
   The package ships these layout rules as Blazor scoped CSS, but this app does not link a
   .styles.css bundle, so they would never load. Repeated here unscoped - without them the
   detection overlay renders as a blank block underneath the video instead of on top of it. */
.zxing-video-container {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.zxing-video-container.full-width {
    display: block;
    width: 100%;
}

.zxing-video {
    display: block;
    max-width: 100%;
}

.zxing-video-container.full-width .zxing-video {
    width: 100%;
    height: auto;
}

.zxing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* The reader sits in a flex row, so without this the section shrinks to the video's
   intrinsic size instead of filling the popup. */
.zxing-container {
    width: 100%;
}

/* Holds the camera dropdown's place while the list is still being read - the same 40px pill it
   gives way to, or to nothing at all where the phone turns out to have just the one camera. */
.barcode-scanner__camera-skeleton {
    flex: 1;
    height: 40px;
    border-radius: 16px;
}

.barcode-scanner__viewfinder {
    position: relative;
    width: 100%;
}

.barcode-scanner__viewfinder.--loading {
    align-self: stretch;
    margin-top: 4px;
}

.barcode-scanner__viewfinder .barcode-scanner__loader {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    z-index: 1;
}

.barcode-scanner__torch {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    z-index: 1;
}