/* Barcode types hero with the inline demo - QR Code / PDF417 only.
   Figma: "Barcode Types - QR Code" 607:1110 (1440) and qr-mobile-default 623:1462 (440). */

#dbrDemoHero {
    width: 100%;
    background: #292d2f;
    color: #ffffff;
    font-family: "OpenSans-Regular", Arial, sans-serif;
    font-size: 16px;
    line-height: 20px;
}

#dbrDemoHero *,
#dbrDemoHero *::before,
#dbrDemoHero *::after {
    box-sizing: border-box;
}

.dbrDemoHeroInner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 40px;
    display: flex;
    align-items: flex-start;
}

@media (min-width: 1440px) {
    .dbrDemoHeroInner {
        padding: 60px 80px;
    }
}

#dbrDemoHero .icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-color: #fe8e14;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* ---------- left column ---------- */

.dbrDemoHeroInfo {
    width: 50%;
    padding-right: 48px;
    display: flex;
    flex-direction: column;
}

.dbrDemoHeroHeadline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dbrDemoHeroTitleBlock {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dbrDemoHeroEyebrow {
    margin: 0;
    font-family: "Oswald-Regular", Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #ffffff;
}

.dbrDemoHeroTitle {
    margin: 0;
    font-family: "Oswald-Regular", Arial, sans-serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 59px;
    color: #ffffff;
}

.dbrDemoHeroSub {
    margin: 0;
    font-size: 18px;
    line-height: 24.5px;
    color: #ffffff;
}

.dbrDemoHeroPoints {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dbrDemoHeroPoints li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    line-height: 20px;
    color: #ffffff;
}

.dbrDemoHeroActions {
    margin-top: 40px;
    display: flex;
    gap: 24px;
}

.dbrDemoHeroBtn {
    height: 48px;
    padding: 8px 24px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "OpenSans-Semibold", Arial, sans-serif;
    font-size: 16px;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
}

/* the site ships `a:visited { color: ... }` (0,1,1), so the button colours need the id */
#dbrDemoHero .dbrDemoHeroBtn--primary {
    background: #fe8e14;
    color: #ffffff;
}

#dbrDemoHero .dbrDemoHeroBtn--primary:hover {
    background: #e57f0f;
    color: #ffffff;
}

#dbrDemoHero .dbrDemoHeroBtn--ghost {
    border: 2px solid #fe8e14;
    color: #fe8e14;
}

#dbrDemoHero .dbrDemoHeroBtn--ghost:hover {
    background: rgba(254, 142, 20, 0.1);
    color: #fe8e14;
}

/* ---------- demo panel ---------- */

.dbrDemoHeroDivider {
    display: none;
}

.dbrDemoHeroDemo {
    width: 50%;
    padding-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dbrDemoHeroPanelHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dbrDemoHeroPanelHead p {
    margin: 0;
    font-size: 20px;
    line-height: 20px;
    color: #ffffff;
}

.dbrDemoUploadBtn {
    height: 36px;
    padding: 0 24px;
    border-radius: 4px;
    background: #fe8e14;
    color: #ffffff;
    font-family: "OpenSans-Semibold", Arial, sans-serif;
    font-size: 16px;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
}

.dbrDemoUploadBtn:hover {
    background: #e57f0f;
}

.dbrDemoHero .uploadSector {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dbrDemoHero .imageContainer {
    position: relative;
    height: 220px;
    border: 1px dashed #fe8e14;
    border-radius: 4px;
    background: rgba(254, 142, 20, 0.05);
}

.dbrDemoHero .imageContainer.hasResult {
    border: 0;
    background: #262829;
    overflow: hidden;
}

.dbrDemoHero .beforeUpload {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dbrDemoHero .tip {
    display: flex;
    align-items: center;
    gap: 24px;
}

.dbrDemoHero .iconTile {
    width: 80px;
    height: 80px;
    border: 2px solid #fe8e14;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dbrDemoHero .iconTile .icon--light {
    width: 41px;
    height: 41px;
}

#dbrDemoHero .iconTile .icon--regular {
    display: none;
}

.dbrDemoHero .tip .text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.dbrDemoHero .tDrag {
    font-size: 20px;
    line-height: 27px;
    color: #fe8e14;
}

.dbrDemoHero .tBrowse {
    font-family: "OpenSans-Semibold", Arial, sans-serif;
    font-size: 16px;
    line-height: 22px;
    color: #fe8e14;
}

.dbrDemoHero .tBrowse em {
    font-style: normal;
    font-family: "OpenSans-Regular", Arial, sans-serif;
    color: #aaaaaa;
}

.dbrDemoHero .tMobile {
    display: none;
}

.dbrDemoHero .tFormat {
    font-size: 14px;
    line-height: 19px;
    color: rgba(255, 255, 255, 0.5);
}

.dbrDemoHero .imageContainer .loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(41, 45, 47, 0.55);
}

.dbrDemoHero .imageContainer .loading::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 45%;
    border-bottom: 2px solid #fe8e14;
    background: linear-gradient(to bottom, rgba(254, 142, 20, 0) 0%, rgba(254, 142, 20, 0.14) 55%, rgba(254, 142, 20, 0.42) 100%);
    box-shadow: 0 6px 18px rgba(254, 142, 20, 0.35);
    animation: dbrHeroScan 1.7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes dbrHeroScan {
    0% { transform: translateY(-120%); }
    100% { transform: translateY(260%); }
}

.dbrDemoHero .loadingText {
    position: relative;
    font-family: "Oswald-Regular", Arial, sans-serif;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 2px;
    color: #fe8e14;
}

.dbrDemoHero .loadingText::after {
    content: "...";
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    width: 0;
    animation: dbrHeroDots 1.2s steps(3, end) infinite;
}

@keyframes dbrHeroDots {
    from { width: 0; }
    to { width: 1.2em; }
}

.dbrDemoHero .decoded {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.dbrDemoHero .decoded img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ---------- article below: same width and gutters as the hero ---------- */

/* only these two pages link this file, so the container override stays local
   to the QR Code / PDF417 pages */
#dbrResources.container {
    width: 100%;
    max-width: 1440px;
    padding-left: 40px;
    padding-right: 40px;
}

@media (min-width: 1440px) {
    #dbrResources.container {
        padding-left: 80px;
        padding-right: 80px;
    }
}

@media (max-width: 991px) {
    #dbrResources.container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ---------- result card ---------- */

.dbrDemoHero .decodeResult {
    display: none;
}

.dbrDemoResultCard {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 24px 12px 12px;
    border-radius: 4px;
    background: #f5f5f5;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

.dbrDemoResultCard.is-empty {
    padding: 12px;
}

.dbrDemoResultList {
    flex: 1 1 auto;
    min-width: 0;
    /* the design keeps the result text in a 444px column (20px of it is the marker gutter) */
    max-width: 464px;
    /* four rows stay visible, a multi-barcode image scrolls instead of
       stretching the hero */
    max-height: 116px;
    overflow-y: auto;
    margin: 0;
    padding-left: 20px;
    list-style: decimal outside;
    scrollbar-width: thin;
    scrollbar-color: #d9d9d9 transparent;
}

.dbrDemoResultList::-webkit-scrollbar {
    width: 3px;
}

.dbrDemoResultList::-webkit-scrollbar-thumb {
    background: #d9d9d9;
    border-radius: 2px;
}

.dbrDemoResultList li {
    list-style: decimal outside;
    font-size: 14px;
    line-height: 20px;
    color: #000000;
    /* dbr.js inserts a zero-width space after every "/", so the URL wraps at
       the design's break points; break-word is the fallback for a segment
       that is still wider than the column */
    word-break: normal;
    overflow-wrap: break-word;
}

.dbrDemoResultList li + li {
    margin-top: 12px;
}

.dbrDemoCopy {
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: "OpenSans-Semibold", Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #306877;
}

.dbrDemoResultError {
    margin: 0;
    font-family: "OpenSans-Semibold", Arial, sans-serif;
    font-size: 16px;
    line-height: 20px;
    color: #d33b42;
}

/* ---------- privacy bar ---------- */

.dbrDemoPrivacy {
    padding: 16px 12px;
    border: 0;
    border-left: 2px solid #666666;
    background: #37393a;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dbrDemoPrivacy p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 20px;
    color: #cccccc;
}

#dbrDemoHero .dbrDemoPrivacy .icon {
    background-color: #cccccc;
}

/* ---------- phone (design: qr-mobile-default 623:1462) ---------- */

/* The phone frame lays the longest bullet flush to the frame's right edge:
   368px of text in a 366px slot, i.e. the design's own 2px overflow. Forcing
   it onto one line is only safe from 440px up, where the overflow lands in
   the 24px padding instead of outside the page. */
@media (min-width: 440px) and (max-width: 991px) {
    .dbrDemoHeroPoints li {
        white-space: nowrap;
    }
}

@media (max-width: 991px) {
    .dbrDemoHeroInner {
        flex-direction: column;
        gap: 30px;
        padding: 36px 24px;
    }

    .dbrDemoHeroInfo {
        width: 100%;
        padding-right: 0;
    }

    .dbrDemoHeroPoints {
        margin-top: 20px;
    }

    .dbrDemoHeroActions {
        margin-top: 30px;
        flex-direction: column;
        gap: 16px;
    }

    .dbrDemoHeroDivider {
        display: block;
        width: 100%;
        height: 0;
        border-top: 1px solid #323234;
    }

    .dbrDemoHeroDemo {
        width: 100%;
        padding-top: 0;
        gap: 20px;
    }

    .dbrDemoHeroHeadline {
        gap: 12px;
    }

    .dbrDemoHeroTitleBlock {
        gap: 6px;
    }

    .dbrDemoHeroEyebrow {
        font-size: 14px;
        line-height: 21px;
    }

    .dbrDemoHeroTitle {
        font-size: 32px;
        line-height: 47px;
    }

    .dbrDemoHeroSub {
        font-size: 16px;
        line-height: 22px;
    }

    .dbrDemoHeroPoints {
        margin-top: 20px;
        gap: 12px;
    }

    .dbrDemoHeroPoints li {
        font-size: 14px;
        /* below 440 the bullets wrap; keep the tick beside the first line */
        align-items: flex-start;
    }

    .dbrDemoHeroBtn {
        width: 100%;
        height: 44px;
    }

    .dbrDemoOfImages {
        display: none;
    }

    .dbrDemoHeroPanelHead p {
        font-size: 18px;
    }

    .dbrDemoUploadBtn {
        height: 32px;
        font-size: 14px;
    }

    .dbrDemoHero .imageContainer {
        height: 186px;
    }

    .dbrDemoHero .tip {
        flex-direction: column;
        gap: 10px;
    }

    .dbrDemoHero .iconTile {
        width: auto;
        height: auto;
        border: 0;
    }

    #dbrDemoHero .iconTile .icon--light {
        display: none;
    }

    #dbrDemoHero .iconTile .icon--regular {
        display: block;
        width: 40px;
        height: 40px;
    }

    .dbrDemoHero .tip .text {
        align-items: center;
        gap: 1px;
        text-align: center;
    }

    .dbrDemoHero .tDrag,
    .dbrDemoHero .tBrowse {
        display: none;
    }

    .dbrDemoHero .tMobile {
        display: block;
        font-family: "OpenSans-Semibold", Arial, sans-serif;
        font-size: 14px;
        line-height: 24px;
        color: #fe8e14;
    }

    .dbrDemoHero .tFormat {
        line-height: 20px;
    }

    .dbrDemoPrivacy {
        border-left-width: 1px;
    }

    .dbrDemoResultList {
        max-width: 311px;
    }

    .dbrDemoPrivacy p {
        align-items: flex-start;
        color: rgba(255, 255, 255, 0.8);
    }
}
