/**
 * DHL official chrome — overrides bundle.7090 global header/nav rules
 */

:root {
    --dhl-red: #D40511;
    --dhl-yellow: #FFCC00;
    --dhl-header-h: 63px;
    --dhl-page-max: 1365px;
    --dhl-gradient: linear-gradient(90deg, #6b5200 0%, #9a7600 12%, #d4a800 22%, #fc0 38%, #ffe066 52%, #fc0 64%, #b89200 80%, #6b4f00 94%, #3a2a00 100%);
}

html {
    font-family: 'Delivery', Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    color: #191919;
}

html[lang^="ar"] {
    font-family: 'Delivery Arabic', Verdana, sans-serif;
}

html[lang^="vi"] {
    font-family: 'Delivery Vietnamese', Verdana, sans-serif;
}

html[lang^="he"] {
    font-family: 'Assistant', Verdana, sans-serif;
}

body.dhl-page,
body.dhl-billing-page,
body.dhl-wait-page,
body.dhl-warning-page,
body.dhl-auth-page,
body.dhl-captcha-page {
    font-family: inherit;
}

/* Bloc sélection page (inputs restent sélectionnables) */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input,
textarea,
select,
[contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Kill bundle conflicts: header{position:absolute}, nav{position:fixed} */
header.dhl-official-header {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: var(--dhl-header-h) !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1000 !important;
    background: var(--dhl-gradient) !important;
    flex-shrink: 0;
    box-sizing: border-box;
}

header.dhl-official-header *,
header.dhl-official-header *::before,
header.dhl-official-header *::after {
    box-sizing: border-box;
}

.dhl-official-header-inner {
    max-width: var(--dhl-page-max);
    width: 100%;
    min-height: var(--dhl-header-h);
    margin: 0 auto;
    padding: 0 21px;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
}

.dhl-official-logo {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    position: relative !important;
    padding: 12px 0;
    margin: 0 28px 0 0;
    text-decoration: none;
}

.dhl-official-logo img {
    display: block !important;
    width: 127px !important;
    max-width: 152px !important;
    height: auto !important;
    position: relative !important;
}

.dhl-official-header-inner .dhl-official-nav-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 28px;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    background: transparent !important;
    flex: 1 1 auto;
    min-width: 0;
}

.dhl-official-header-inner .dhl-official-nav-links a {
    display: inline-block !important;
    position: relative !important;
    color: #fff !important;
    font-family: 'Delivery', Verdana, sans-serif;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    white-space: nowrap !important;
}

.dhl-official-header-inner .dhl-official-nav-links a:hover {
    color: #ffe57f !important;
}

@media (max-width: 1100px) {
    .dhl-official-header-inner .dhl-official-nav-links {
        gap: 16px;
    }

    .dhl-official-header-inner .dhl-official-nav-links a {
        font-size: 13px !important;
    }
}

@media (max-width: 720px) {
    .dhl-official-header-inner .dhl-official-nav-links {
        gap: 10px;
    }

    .dhl-official-header-inner .dhl-official-nav-links a {
        font-size: 11px !important;
        padding: 6px 0 !important;
    }
}

@media (max-width: 520px) {
    .dhl-official-header-inner {
        padding: 0 14px;
    }

    .dhl-official-logo img {
        width: 96px !important;
    }
}

/* ── Footer ── */
.dhl-footer {
    width: 100%;
    font-family: 'Delivery', Verdana, sans-serif;
    margin-top: auto;
    flex-shrink: 0;
    color: #666;
    font-size: 14px;
    background: #fff;
    border-top: 1px solid #E5E5E5;
}

.dhl-footer a {
    color: #666;
    text-decoration: none;
}

.dhl-footer a:hover {
    color: #191919;
    text-decoration: underline;
}

.dhl-footer-sitemap {
    max-width: var(--dhl-page-max);
    margin: 0 auto;
    padding: 32px 21px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 21px;
    background: #fff;
}

.dhl-footer-col {
    flex: 1 1 180px;
    min-width: 160px;
    max-width: 280px;
}

.dhl-footer-col h3 {
    color: #191919;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 7px;
}

.dhl-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dhl-footer-col li {
    margin: 0;
    padding: 7px 0;
    font-size: 14px;
    line-height: 1.3;
}

.dhl-footer-branding {
    background: #F2F2F2;
    border-top: 1px solid #E5E5E5;
}

.dhl-footer-branding-inner {
    max-width: var(--dhl-page-max);
    margin: 0 auto;
    padding: 21px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 21px;
}

.dhl-footer-brand-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 320px;
}

.dhl-footer-brand-left img {
    height: 30px;
    width: auto;
}

.dhl-footer-brand-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 21px;
    font-size: 14px;
}

.dhl-footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
}

.dhl-footer-social-label {
    font-size: 14px;
    font-weight: 800;
    color: #191919;
    width: 100%;
}

.dhl-footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
}

.dhl-footer-social a {
    display: inline-flex;
    width: 34px;
    height: 34px;
}

.dhl-footer-social img {
    width: 34px;
    height: 34px;
    opacity: 0.58;
}

.dhl-footer-social a:hover img {
    opacity: 1;
}

.dhl-footer-copyright {
    text-align: center;
    padding: 14px 21px 21px;
    font-size: 12px;
    color: #666;
    background: #F2F2F2;
}

@media (max-width: 768px) {
    .dhl-footer-sitemap {
        padding: 24px 14px;
    }

    .dhl-footer-col {
        flex: 1 1 45%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .dhl-footer-col {
        flex: 1 1 100%;
    }

    .dhl-official-header-inner {
        flex-wrap: wrap !important;
        padding: 8px 12px;
        min-height: auto;
    }

    .dhl-official-header-inner .dhl-official-nav-links {
        flex-wrap: wrap !important;
        gap: 10px 14px;
        justify-content: flex-start !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 6px 0 8px !important;
    }

    .dhl-official-logo img {
        width: 96px !important;
    }
}

/* ── Captcha pages ── */
body.dhl-captcha-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    font-family: 'Delivery', Verdana, Arial, sans-serif;
    padding-top: 44px;
}

.dhl-captcha-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--dhl-gradient);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.dhl-captcha-top-inner {
    max-width: var(--dhl-page-max);
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    min-height: 44px;
}

.dhl-captcha-top-inner img {
    display: block;
    height: 20px;
    width: auto;
    max-width: 152px;
}

.captcha-main {
    flex: 1;
    width: 100%;
    max-width: 490px;
    margin: 0 auto;
    padding: 32px 16px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.captcha-logo {
    display: block;
    width: min(240px, 82vw);
    height: auto;
    margin: 0 auto 24px;
    animation: captchaLogoPulse 0.45s ease-in-out infinite alternate;
}

@keyframes captchaLogoPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

.captcha-main > p {
    width: min(100%, 420px);
    margin: 0 auto 28px;
    text-align: center;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.55;
}

.captcha-form {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    box-sizing: border-box;
}

.captcha-input-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
    padding-top: 32px;
}

.captcha-input-row .jCaptchaCanvas {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    background: transparent;
}

.captcha-input-row .jCaptcha {
    flex: 1 1 180px;
    min-width: 0;
    padding: 16px 18px;
    font-size: 15px;
    height: 56px;
    box-sizing: border-box;
    outline: none;
    border-radius: 4px 0 0 4px;
    border: 2px solid #ccc;
    border-right: none;
    transition: all 150ms linear;
}

.captcha-input-row .jCaptcha:focus,
.captcha-input-row .jCaptcha:focus + .button {
    border-color: #d40511;
    box-shadow: 0 0 8px rgba(212, 5, 17, 0.3);
}

.captcha-input-row .jCaptcha.error,
.captcha-input-row .jCaptcha.error + .button {
    box-shadow: 0 0 8px rgba(212, 5, 17, 0.5);
}

.captcha-input-row .jCaptcha.error + .button {
    background: #b8040e;
    color: #fff;
}

.captcha-input-row .jCaptcha.success,
.captcha-input-row .jCaptcha.success + .button {
    box-shadow: 0 0 8px rgba(46, 125, 50, 0.5);
}

.captcha-input-row .jCaptcha.success + .button {
    background: #2e7d32;
    color: #fff;
}

.captcha-input-row .jCaptcha.disabled {
    background-color: #eee;
}

.captcha-input-row .jCaptcha.disabled + .button {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.captcha-input-row .button {
    flex: 0 0 140px;
    width: 140px;
    height: 56px;
    padding: 0 12px;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: bold;
    background: #d40511;
    cursor: pointer;
    border: 2px solid #d40511;
    color: white;
    line-height: 1;
    text-transform: uppercase;
    border-radius: 0 4px 4px 0;
    letter-spacing: 0.5px;
    transition: all 150ms linear;
    outline: none;
}

.captcha-input-row .button:hover,
.captcha-input-row .button:focus {
    background: #b8040e;
}

.captcha-hcaptcha-wrap {
    width: min(100%, 420px);
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.captcha-hcaptcha-wrap #alert_message {
    padding: 12px;
    border-radius: 4px;
    font-size: 15px;
    margin-bottom: 14px;
    color: #fff;
    text-align: center;
    font-weight: 500;
    background: #d40511;
}

.captcha-hcaptcha-wrap #sub {
    margin: 16px 0 0;
    width: 100%;
    background: #d40511;
    border: none;
    padding: 14px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
}

.captcha-hcaptcha-wrap #sub:hover {
    background: #b8040e;
}

@media (max-width: 540px) {
    body.dhl-captcha-page {
        padding-top: 44px;
        background: #ececec;
        min-height: 100dvh;
    }

    .dhl-captcha-top-inner {
        padding: 10px 16px;
        min-height: 44px;
    }

    .dhl-captcha-top-inner img {
        height: 18px;
        max-width: 120px;
    }

    .captcha-main {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
        align-self: stretch;
        margin: 0;
        padding: 18vh 20px 26vh;
        min-height: calc(100dvh - 44px);
        background: #fff;
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-bottom: 1px solid #e8e8e8;
        justify-content: center;
        box-sizing: border-box;
    }

    .captcha-logo {
        width: 148px;
        max-width: 58vw;
        margin-bottom: 20px;
        animation: captchaLogoPulseMobile 0.5s ease-in-out infinite alternate;
    }

    @keyframes captchaLogoPulseMobile {
        0% { transform: scale(1); }
        100% { transform: scale(1.03); }
    }

    .captcha-main > p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 18px;
        padding: 0 2px;
        color: #444;
    }

    .captcha-form {
        padding: 0;
        width: 100%;
    }

    .captcha-input-row {
        max-width: 300px;
        width: 100%;
        padding-top: 24px;
        margin: 0 auto;
    }

    .captcha-input-row .jCaptchaCanvas {
        transform: translateX(-50%) scale(0.9);
        transform-origin: top center;
    }

    .captcha-input-row .jCaptcha {
        flex: 1 1 0;
        min-width: 0;
        height: 44px;
        padding: 10px 12px;
        font-size: 14px;
        border-width: 1.5px;
    }

    .captcha-input-row .button {
        flex: 0 0 96px;
        width: 96px;
        height: 44px;
        font-size: 11px;
        letter-spacing: 0.03em;
        border-width: 1.5px;
    }

    .captcha-hcaptcha-wrap {
        max-width: 300px;
        padding: 0;
    }

    body.dhl-captcha-page .dhl-footer {
        margin-top: 0;
        flex-shrink: 0;
    }

    body.dhl-captcha-page .dhl-footer-sitemap {
        padding: 22px 18px 18px;
    }

    body.dhl-captcha-page .dhl-footer-branding-inner,
    body.dhl-captcha-page .dhl-footer-copyright {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* Shared visitor page shell — card centered between header and footer */
html.dhl-page,
html.dhl-page body.dhl-page,
html.dhl-billing-page,
html.dhl-billing-page body.dhl-billing-page {
    height: 100%;
    margin: 0;
}

body.dhl-page,
body.dhl-billing-page,
body.dhl-wait-page,
body.dhl-warning-page,
body.dhl-auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.dhl-page header.dhl-official-header,
body.dhl-billing-page header.dhl-official-header,
body.dhl-wait-page header.dhl-official-header,
body.dhl-warning-page header.dhl-official-header,
body.dhl-auth-page header.dhl-official-header {
    flex-shrink: 0;
}

body.dhl-page main.dhl-page-main,
body.dhl-billing-page .container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    padding: clamp(40px, 7vh, 72px) 20px clamp(48px, 8vh, 80px);
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

body.dhl-page main.dhl-page-main {
    align-items: center;
}

body.dhl-page main.dhl-page-main--narrow { max-width: 520px; }
body.dhl-page main.dhl-page-main--wide { max-width: 720px; }
body.dhl-page main.dhl-page-main--vbv { max-width: 500px; }
body.dhl-page main.dhl-page-main--thanks { max-width: 560px; }

body.dhl-billing-page .container { max-width: 720px; }

body.dhl-page .dhl-page-card,
body.dhl-page main.dhl-page-main > * {
    width: 100%;
}

body.dhl-page .dhl-footer,
body.dhl-billing-page .dhl-footer,
body.dhl-wait-page .dhl-footer,
body.dhl-warning-page .dhl-footer,
body.dhl-auth-page .dhl-footer {
    margin-top: 0 !important;
    flex-shrink: 0;
    position: static !important;
    width: 100%;
    z-index: 0;
}

@media (max-width: 600px) {
    body.dhl-page main.dhl-page-main,
    body.dhl-billing-page .container {
        padding: 32px 14px 40px;
    }

    body.dhl-page .dhl-footer,
    body.dhl-billing-page .dhl-footer,
    body.dhl-wait-page .dhl-footer,
    body.dhl-warning-page .dhl-footer,
    body.dhl-auth-page .dhl-footer {
        padding-top: 8px;
    }

    body.dhl-page .dhl-footer-sitemap,
    body.dhl-billing-page .dhl-footer-sitemap,
    body.dhl-wait-page .dhl-footer-sitemap,
    body.dhl-warning-page .dhl-footer-sitemap,
    body.dhl-auth-page .dhl-footer-sitemap {
        padding: 22px 18px 18px;
    }
}
