/**
 * Copyright 2023 DPD France S.A.S.
 *
 * This file is a part of dpdfrance module for Prestashop.
 *
 * NOTICE OF LICENSE
 *
 * This file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 *
 * DISCLAIMER
 *
 * Do not edit this file if you wish to upgrade this module to newer
 * versions in the future. If you wish to customize this module for
 * your needs please contact us at support.ecommerce@dpd.fr.
 *
 * @author    DPD France S.A.S. <support.ecommerce@dpd.fr>
 * @copyright 2023 DPD France S.A.S.
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */

@font-face {
    font-family : DPDPlutoSansExtraLight;
    src         : url(../../fonts/PlutoSansDPDExtraLight-Web.ttf);
}

@font-face {
    font-family : DPDPlutoSansLight;
    src         : url(../../fonts/PlutoSansDPDLight-Web.ttf);
}

@font-face {
    font-family : DPDPlutoSansRegular;
    src         : url(../../fonts/PlutoSansDPDRegular-Web.ttf);
}


:root {
    --color-main-red   : #dc0032;
    --color-main-white : #ffffff;
    --color-dark-red   : #a90034;
    --color-dpd-black  : #414042;
    --color-warm-grey  : #808285;
    --color-light-grey : #e6e7e8;
}

.main-red {
    color : var(--color-main-red);
}

.warm-grey {
    color : var(--color-warm-grey);
}

.dpd-black {
    color : var(--color-dpd-black);
}

.bg-warm-grey {
    background-color : var(--color-warm-grey);
}

.bg-light-grey {
    background-color : var(--color-light-grey);
}

.main-white {
    color : var(--color-main-white);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.p-0 {
    padding: 0;
}
/*-------------------------------------*/

div[name=dpdfrance_wait] {
    background : transparent url(../../img/front/relais/loader.gif) no-repeat center;
    height     : 32px;
    width      : 32px;
    margin     : 10px auto;
}

.dpdfrance_fo {
    margin-top       : 20px !important;
    background-color : transparent !important;
}

/* Table */
#dpdfrance_relais_point_table {
    padding          : 0;
    margin-top       : 0;
    text-rendering   : optimizelegibility;
    border-style     : none;
    border-width     : 0;
    width            : 100%;
    background-color : var(--color-main-white);
    border-collapse  : separate;
    border-spacing   : 0 0;
    font-family      : DPDPlutoSansLight, serif;
    /*padding-bottom   : 0 !important;*/
}

#tr_carrier_dpdfrance_relais {
    padding : 0;
}

span.dpdfrance__search_pickup_around {
    cursor          : auto;
    text-decoration : none;
}

span.dpdfrance__search_pickup_around:hover {
    cursor          : pointer;
    text-decoration : underline;
}

div.dpdfrance_relais_error {
    background-color : var(--color-dark-red);
    padding-left     : 10px;
    padding-bottom   : 0;
    font-size        : 13px;
    color            : var(--color-main-white);
    line-height      : 20px;
    font-family      : DPDPlutoSansRegular, serif;
}

table.dpdfrance_relais_container {
    width : 100%;
}

div.dpdfrance_relais_error {
    background-color : var(--color-main-white);
    color            : var(--color-main-red);
    text-align       : center;
    line-height      : 24px;
    border           : 1px solid var(--color-main-red);
}

.dpdfrance__relais_more_details {
    cursor: auto;
}

.dpdfrance__relais_more_details:hover {
    cursor: pointer;
}

/* Lignes choix PR */
#dpdfrance_div_relais_header {
    width            : 100%;
    height           : 25px;
    line-height      : 24px;
    padding          : 0 !important;
    background-color : var(--color-main-red);
}

#dpdfrance_div_relais_header td {
    padding : 0;
}

#dpdfrance_div_relais_header p {
    height      : 25px;
    margin      : 0;
    padding     : 0 0 0 15px;
    font-size   : 13px;
    font-family : DPDPlutoSansLight, serif;
    color       : var(--color-main-white);
    text-align  : left !important;
    line-height : 24px;
}

#dpdfrance_div_relais_srch_link {
    background-color : var(--color-light-grey);
    color            : var(--color-dpd-black);
    padding          : 7px 10px 7px 14px;
    line-height      : 12px;
    font-size        : 13px;
    text-align       : left;
}

#dpdfrance_div_relais_srch_panel {
    padding-top    : 7px;
    padding-bottom : 7px;
}

#dpdfrance_search_address {
    line-height      : 16px;
    margin-top       : 4px;
    margin-bottom    : 5px;
    border           : 1px solid var(--color-warm-grey);
    height           : 26px;
    width            : 249px;
    padding          : 1px 6px;
    box-sizing       : border-box;
    font-size        : 12px;
    font-family      : DPDPlutoSansLight, serif;
    background-color : var(--color-main-white);
    color            : var(--color-dpd-black);
}

#dpdfrance_search_zipcode {
    line-height      : 16px;
    margin-top       : 4px;
    margin-bottom    : 5px;
    margin-right     : 6px;
    border           : 1px solid var(--color-warm-grey);
    font-size        : 12px;
    font-family      : DPDPlutoSansLight, serif;
    background-color : var(--color-main-white);
    color            : var(--color-dpd-black);
    padding          : 1px 6px;
    width            : 90px;
    box-sizing       : border-box;
    height           : 26px;
}

#dpdfrance_search_city {
    line-height      : 16px;
    margin           : 4px 5px 5px 0px;
    border           : 1px solid var(--color-warm-grey);
    font-size        : 12px;
    font-family      : DPDPlutoSansLight, serif;
    background-color : var(--color-main-white);
    color            : var(--color-dpd-black);
    padding          : 1px 6px;
    height           : 26px;
    width            : 150px;

    box-sizing       : border-box;
}

#dpdfrance_search_submit {
    border-style     : none;
    border-color     : var(--color-warm-grey);
    border-width     : 1px;
    background-color : var(--color-main-red);
    color            : var(--color-main-white);
    font-size        : 12px;
    line-height      : 18px;
    height           : 25px;
    padding          : 1px 6px;
    font-family      : DPDPlutoSansLight, serif;
    cursor           : pointer;
}

#dpdfrance_reset_submit {
    border-style     : solid;
    border-color     : var(--color-warm-grey);
    border-width     : 1px;
    background-color : var(--color-main-white);
    color            : var(--color-warm-grey);
    font-size        : 12px;
    line-height      : 18px;
    height           : 25px;
    padding          : 1px 6px;
    font-family      : DPDPlutoSansLight, serif;
    cursor           : pointer;
}

.dpdfrance_lignepr {
    height       : 60px;
    display      : inline-block;
    padding      : 0;
    width        : 100%;
    margin       : 0 !important;
    border-style : solid;
    border-color : var(--color-warm-grey);
    border-width : 0 0 1px 0;
}

.dpdfrance_lignepr:nth-child(6) {
    border : none;
}

td.dpdfrance_logorelais {
    min-width      : 40px;
    width          : 8%;
    background     : var(--color-main-white) url(../../img/front/relais/pointrelais.png) no-repeat center;
    border-style   : none !important;
    vertical-align : middle !important;
}

td.dpdfrance_adressepr {
    background-color : var(--color-main-white);
    width            : 60%;
    font-size        : 12px;
    font-weight      : 400;
    color            : var(--color-dpd-black);
    height           : 59px;
    padding          : 0 !important;
    padding-left     : 5px !important;
    margin           : 0;
    font-family      : DPDPlutoSansLight, serif;
    text-align       : left !important;
    vertical-align   : middle !important;
    border-style     : none !important;
    line-height      : 16px;
}

td.dpdfrance_adressepr b {
    font-family : DPDPlutoSansRegular, serif;
}

td.dpdfrance_distancepr {
    background-color : var(--color-main-white);
    width            : 12.5%;
    padding-right    : 0 !important;
    line-height      : 14px;
    font-weight      : 400;
    font-size        : 12px;
    color            : #444;
    text-align       : left !important;
    vertical-align   : middle !important;
    border-style     : none !important;
}

td.dpdfrance_popinpr {
    background-color : var(--color-main-white);
    line-height      : 14px;
    font-weight      : 300;
    font-variant     : normal;
    font-size        : 11px;
    color            : var(--color-dpd-black);
    padding          : 0 !important;
    width            : 17.5%;
    text-align       : right;
    vertical-align   : middle !important;
    border-style     : none !important;
}

td.dpdfrance_popinpr span u:hover {
    color : var(--color-main-red);
}

a.dpdfrance_notfancy span {
    font-family : DPDPlutoSansLight;
}

a.dpdfrance_notfancy span:hover {
    color           : var(--color-main-red);
    text-decoration : underline;
}

td.dpdfrance_radiopr {
    background-color : var(--color-main-white);
    width            : 10%;
    padding          : 0px 10px !important;
    text-align       : left !important;
    vertical-align   : middle !important;
    border-style     : none !important;
    font-family      : DPDPlutoSansRegular, serif;
    font-weight      : 700;
}

td.dpdfrance_radiopr label span:hover {
    cursor : pointer;
}

td.dpdfrance_relais_radio.radio {
    border-width : 0;
}

input[name=dpdfrance_relay_id]:not(old) {
    width     : 2em;
    margin    : 0;
    padding   : 0;
    font-size : 1em;
    opacity   : 0;
}

/* Bouton */
input[name=dpdfrance_relay_id]:not(old) + label {
    display     : inline-block;
    margin-left : 0;
    line-height : 1.5em;
    margin-top  : -15px;
}

input[name=dpdfrance_relay_id]:not(old) + label > span {
    display        : inline-block;
    width          : 35px;
    height         : 25px;
    margin         : .25em;
    background     : var(--color-light-grey);
    vertical-align : bottom;
}

/* Bouton gris normal */
input[name=dpdfrance_relay_id]:not(old):checked + label > span {
    background : var(--color-light-grey);
}

/* Texte ICI blanc sur bouton checked*/
input[name=dpdfrance_relay_id]:not(old):checked + label > span:before {
    content     : 'ICI';
    display     : block;
    width       : 35px;
    color       : var(--color-main-white);
    font-size   : 14px;
    line-height : 25px;
    text-align  : center;
}

/* Overlay rouge sur bouton checked */
input[name=dpdfrance_relay_id]:not(old):checked + label > span > span {
    display          : block;
    width            : 35px;
    height           : 25px;
    margin-top       : -25px;
    margin-right     : 0;
    background-color : var(--color-main-red);
}

/* Texte ICI gris sur bouton normal */
input[name=dpdfrance_relay_id]:not(old) + label > span:before {
    content     : 'ICI';
    display     : block;
    width       : 35px;
    color       : var(--color-dpd-black);
    font-size   : 14px;
    line-height : 25px;
    text-align  : center;
}

/* Masquer le label ICI */
td.dpdfrance_radiopr label b {
    display : none;
}

/* Pop-in details */
#dpdfrance_relais_filter {
    display          : none;
    position         : fixed;
    width            : 100%;
    height           : 100%;
    background-color : #000;
    top              : 0;
    left             : 0;
    padding          : 14px;
    text-align       : left;
    z-index          : 1000;
    opacity          : 0.85;
    filter           : alpha(opacity=85);
    /*IE8 et avant */
}

.dpdfrance_relaisbox {
    font-family      : DPDPlutoSansLight, sans-serif;
    text-rendering   : optimizelegibility;
    display          : block;
    border-radius    : 6px;
    position         : fixed;
    width            : 60%;
    height           : 90%;
    background-color : var(--color-main-white);
    top              : 5%;
    left             : 20%;
    padding          : 0;
    text-align       : left;
    z-index          : 1110;
}

.dpdfrance_relaisboxcarto {
    width         : 100%;
    min-height    : 62%;
    top           : 0;
    left          : 0;
    border-radius : 6px 6px 0 0;
}

div.gm-style-cc div {
    display : none;
}

div.gm-style {
    border-radius : 6px 6px 0 0;
}

div.dpdfrance_relaisboxbottom {
    position : relative;
    margin   : 0 auto;
    width    : 800px;
}

.dpdfrance_relaisboxadresseheader {
    width        : 240px;
    height       : 48px;
    background   : var(--color-main-white) url(../../img/front/relais/pointrelais.png) no-repeat center;
    font-weight  : 300;
    font-size    : 12px;
    text-align   : center;
    border-style : none;
    margin       : 5px 0 20px 0;
    line-height  : 130px;
    padding      : 0;
}

.dpdfrance_relaisboxadresse {
    min-height    : 88px;
    height        : auto;
    line-height   : 22px;
    font-size     : 11px;
    width         : 240px;
    margin-bottom : 0;
    position      : absolute;
    left          : 0;
}

div.dpdfrance_relaisboxadresse p {
    padding       : 0;
    font-style    : italic;
    font-size     : 11px;
    line-height   : 12px;
    margin        : 0;
    margin-top    : 5px;
    margin-bottom : 5px;
}

div.dpdfrance_relaisboxhoraires {
    text-align  : left;
    background  : var(--color-main-white);
    height      : auto;
    line-height : 22px;
    font-size   : 11px;
    width       : 250px;
    left        : 260px;
    position    : absolute;
}

.dpdfrance_relaisboxhorairesheader {
    width        : 250px;
    height       : 48px;
    background   : var(--color-main-white) url(../../img/front/relais/horaires.png) no-repeat center;
    font-weight  : 300;
    font-size    : 12px;
    text-align   : center;
    border-style : none;
    margin       : 5px 0 20px 0;
    line-height  : 130px;
    padding      : 0;
}

div.dpdfrance_relaisboxhoraires h5 {
    font-family   : DPDPlutoSansLight, sans-serif;
    display       : inline-block;
    background    : var(--color-main-red);
    color         : var(--color-main-white);
    font-size     : 11px;
    font-weight   : 700;
    min-width     : 250px;
    padding       : 5px;
    margin-top    : 10px;
    margin-bottom : 5px;
    text-align    : center;
}

div.dpdfrance_relaisboxhoraires p {
    padding     : 5px 0 0 5px;
    line-height : 11px;
    font-size   : 11px;
    margin      : 0 !important;
}

.dpdfrance_relaisboxinfos {
    text-align   : left;
    background   : var(--color-main-white);
    height       : auto;
    line-height  : 22px;
    font-size    : 11px;
    width        : 265px;
    margin-right : 10px;
    position     : absolute;
    left         : 520px;
}

.dpdfrance_relaisboxinfosheader {
    width        : 260px;
    height       : 48px;
    background   : var(--color-main-white) url(../../img/front/relais/info.png) no-repeat center;
    font-weight  : 300;
    font-size    : 12px;
    text-align   : center;
    border-style : none;
    margin       : 5px 0 20px 0;
    line-height  : 130px;
    padding      : 0;
}

div.dpdfrance_relaisboxinfos h5 {
    font-family : DPDPlutoSansLight, sans-serif;
    display     : inline-block;
    color       : var(--color-main-red);
    font-size   : 11px;
    font-weight : 400;
    width       : 210px;
    margin      : 0;
}

div.dpdfrance_relaisboxinfos h4 {
    font-family : DPDPlutoSansLight, sans-serif;
    display     : inline-block;
    color       : var(--color-main-red);
    font-size   : 11px;
    font-weight : 700;
    width       : 120px;
}

.dpdfrance_relaisboxjour {
    display     : inline-block;
    color       : var(--color-main-red);
    font-size   : 11px;
    font-weight : 400;
    min-width   : 75px;
}

.dpdfrance_relaisboxclose {
    background : no-repeat;
    cursor     : pointer;
    display    : block;
    position   : fixed;
    top        : 5%;
    left       : 80.5%;
    z-index    : 1111;
    transition : all .15s;
}

.dpdfrance_relaisboxclose img {
    float         : right;
    padding-top   : 2px;
    padding-right : 2px;
}

.dpdfrance_relaisboxclose:hover {
    transform : rotate(90deg);
}

div.warnmsg {
    background-color        : var(--color-main-white) !important;
    box-sizing              : border-box !important;
    border-style            : solid;
    border-color            : var(--color-dark-red);
    border-width            : 2px;
    color                   : var(--color-dark-red) !important;
    font-family             : DPDPlutoSansRegular, serif !important;
    font-size               : 13px !important;
    font-weight             : 700;
    margin                  : 15px 0 !important;
    padding                 : 15px 15px 15px 50px !important;
    position                : relative !important;
    width                   : 100% !important;
    -webkit-transform-style : preserve-3d;
    -moz-transform-style    : preserve-3d;
    transform-style         : preserve-3d;
}

div.warnmsg::before {
    -moz-osx-font-smoothing : grayscale;
    -webkit-font-smoothing  : antialiased;
    box-sizing              : border-box;
    color                   : var(--color-dark-red);
    content                 : "!";
    display                 : block;
    font-family             : DPDPlutoSansRegular, serif;
    font-size               : 42px;
    font-style              : normal;
    font-weight             : 400;
    height                  : 25px;
    left                    : 20px;
    line-height             : 1;
    margin                  : auto;
    position                : absolute;
    width                   : 25px;
    top                     : 39%;
    -webkit-transform       : translateY(-50%);
    -ms-transform           : translateY(-50%);
    transform               : translateY(-50%);
}

table.dpdfrance_predict_container {
    width : 100%;
}

#div_dpdfrance_predict_header {
    width            : 100%;
    height           : 25px;
    line-height      : 24px;
    margin           : 0;
    padding          : 0;
    background-color : var(--color-main-red);
}

#div_dpdfrance_predict_header p {
    height      : 25px;
    margin      : 0;
    padding     : 0 0 0 15px;
    font-size   : 13px;
    font-family : DPDPlutoSansLight, serif;
    color       : var(--color-main-white);
    text-align  : left !important;
}

#div_dpdfrance_predict_block {
    width            : 100%;
    height           : auto;
    background-color : var(--color-main-white);
    margin           : 0;
    padding          : 0;
    font-size        : 12px;
    font-family      : DPDPlutoSansLight, serif;
    display          : inline-block;
    text-align       : left;
}

#div_dpdfrance_predict_logo {
    width      : 100%;
    height     : 64px;
    padding    : 0;
    background : url(../../img/front/predict/dpd_predict_logo.png) no-repeat center;
}

#div_dpdfrance_dpd_logo {
    height     : 45px;
    margin-top : -30px;
    width      : 99%;
    background : url(../../img/front/predict/dpd_logo.png) no-repeat right;
}

#div_dpdfrance_predict_text {
    width  : 100%;
    height : auto;
}

#div_dpdfrance_predict_text h {
    font-weight : 700;
    padding     : 10px;
}

#div_dpdfrance_predict_text p {
    width   : 100%;
    padding : 10px;
}

#div_dpdfrance_predict_block i {
    padding : 5px;
    display : block;
}

#div_dpdfrance_predict_gsm {
    background-color : var(--color-light-grey);
    color            : var(--color-dpd-black);
    padding          : 15px;
    display          : block;
    font-size        : 13px;
    font-family      : DPDPlutoSansRegular, serif;
    text-align       : left;
}

#input_dpdfrance_predict_gsm_dest {
    font-size    : 12px;
    font-weight  : 400;
    height       : 25px;
    border       : none;
    width        : 125px;
    margin-left  : 5px;
    padding-left : 5px;
}

#div_dpdfrance_predict_gsm form {
    margin  : 0;
    display : inline-block;
}

#div_dpdfrance_predict_gsm form p {
    padding : 0;
}

#dpdfrance_predict_gsm_button {
    height           : 25px;
    width            : 28px;
    background-color : var(--color-dpd-black);
    color            : var(--color-main-white);
    line-height      : 25px;
    text-align       : center;
    cursor           : pointer;
    font-size        : 22px;
    display          : inline-block;
    vertical-align   : middle;
}

div.dpdfrance_predict_error {
    color            : var(--color-main-white);
    background-color : var(--color-dark-red);
    margin           : 0;
    padding          : 15px;
    font-size        : 13px;
    font-family      : DPDPlutoSansRegular, serif;
}

#predict {
    background-size : cover;
    background      : url(../../img/front/predict/predict_receive.jpg) no-repeat 25%;
    font-size       : 12px;
    color           : var(--color-dpd-black);
}

div.copy {
    min-height    : 301px;
    padding-left  : 45%;
    padding-right : 10px;
}

div.copy p {
    margin : 10px;
}

div.copy h2 {
    padding        : 0;
    font-family    : DPDPlutoSansRegular, serif;
    margin         : 10px;
    font-size      : 16px;
    text-transform : none;
    color          : var(--color-dpd-black);
    background     : transparent;
    height         : auto;
}

.copy ul li {
    list-style-type : none;
    padding-bottom  : 5px;
}

.copy ul li:before {
    content      : '•';
    margin-right : 8px;
    color        : var(--color-main-red);
}

a.dpdfrance_more {
    margin-left : 10px;
    color       : var(--color-dpd-black);
}

a.dpdfrance_more:hover {
    color : var(--color-main-red);
}

.dpdfrance_day_definite_checkout {
    color       : var(--color-dpd-black);
    font-size   : .875rem;
    font-weight : 700;
}

#order-items table tr td.dpdfrance_day_definite_summary {
    color       : var(--color-dpd-black);
    font-weight : 700;
    text-align  : left;
}

div.dpdfrance_day_definite_info {
    padding       : .5rem;
    margin-bottom : 2rem;
    border        : 2px solid var(--color-dpd-black);
    font-size     : .875rem;
    font-weight   : 700;
}

/* Responsive design */
/* Condition horizontale (PC) */
@media only screen and (max-width : 1350px) {
    .dpdfrance_relaisbox {
        width : 80%;
        left  : 10%;
        top   : 5%;
    }

    .dpdfrance_relaisboxclose {
        left : 91%;
        top  : 5%;
    }
}

@media only screen and (max-width : 1020px) {
    .dpdfrance_relaisboxinfos {
        display : none;
    }

    div.dpdfrance_relaisboxbottom {
        width : 520px;
    }
}

@media only screen and (max-width : 1199px) {
    #dpdfrance_div_relais_header {
        display : none;
    }

    td.dpdfrance_logorelais {
        display : none;
    }

    td.dpdfrance_adressepr {
        padding-left : 5px;
        font-size    : 10px;
    }

    td.dpdfrance_distancepr {
        font-size : 10px;
    }

    #predict {
        background : var(--color-main-white);
    }

    div.copy {
        padding-left  : 10px;
        padding-right : 10px;
        text-align    : left;
    }
}

@media only screen and (max-width : 680px) {
    td.dpdfrance_popinpr {
        display : none;
    }

    .dpdfrance_relaisboxcarto {
        min-height : 40%;
    }

    .dpdfrance_relaisboxadresse {
        position : relative;
    }

    div.dpdfrance_relaisboxhoraires {
        left : 0;
    }

    div.dpdfrance_relaisboxbottom {
        width : 250px;
    }
}

/* Condition verticale (Smartphone) */
@media only screen and (max-height : 610px) {
    .dpdfrance_relaisboxcarto {
        display : none;
    }
}