.clear{
	clear:both;
}
.nobr{
	white-space:nowrap;
}

.shipping .carrier_logo img{
	width:100px;
	padding-left:10px;
	padding-right:10px;
}
.shipping .description, .shipping .delivery_date{
	font-size:0.9em;
}
.shipping .envoidunet-select-parcel{
	cursor:pointer;
	text-decoration:underline;
}
.shipping .envoidunet-select-parcel:hover{
	color:grey;
	text-decoration:none;
}
/* map */
#envoidunetMap {
    width:80%;
    max-width:1200px;
    height:auto;
    display:none;
    position: absolute;
    top:100px;
    padding:10px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    z-index:11111;
    background: #f9f9f9;
    box-shadow:3px 3px 30px rgba(0, 0, 0, 0.4), 3px 3px 30px rgba(0, 0, 0, 0.4);
}
#envoidunetMapInner {
    background: #ffffff;
}
#envoidunetMap .envoidunetClose {
    background-image: url("../../img/icon-close.png");
    height:40px;
    width:40px;
    cursor:pointer;
    top:-20px;
    right:-20px;
    position:absolute;
    z-index: 11222;
}
#envoidunetMap #envoidunetMapContainer {
    float:left;
    width:100%;
    padding-right:268px;
    box-sizing:border-box;
}
#envoidunetMap #envoidunetPrContainer {
    overflow-y:scroll;
    height:500px;
    padding:0px 10px;
    width: 268px;
    margin-left:-268px;
    float:right;
    box-sizing:border-box;
    font-family:Roboto, Arial, sans-serif;
}
#envoidunetMap #envoidunetPrContainer table{
    border:0;
}
#envoidunetMap #envoidunetPrContainer td {
    border-top: 1px solid #dddddd;
    padding: 9px 10px;
    text-align:left;
    color: #777;
    font-size:13px;
    line-height:20px;
    border-right-width:0;
    border-bottom-width:0;
}
#envoidunetMap #envoidunetPrContainer td a {
    color: #337ab7;
}
#envoidunetMap #envoidunetPrContainer td a:hover {
    text-decoration:none;
}
#envoidunetMap #envoidunetMapCanvas {
    overflow:hidden;
    height:500px;
}
#envoidunetMap .envoidunetMarker {
    max-height:30px;
    margin-right:5px;
    vertical-align:middle;
}
#envoidunetMap .envoidunetPointTitle {
    text-overflow:ellipsis;
    overflow:hidden;
    white-space:nowrap;
    width:180px;
    display:inline-block;
    vertical-align:middle;
}
#envoidunetMap .envoidunetMakerPopup {
    width:250px;
    color:#777777;
    line-height:20px;
}
#envoidunetMap a:hover {
    text-decoration:none;
}
#envoidunetMap .envoidunetSchedule {
    font-size:11px;
}
.envoidunetPointer {
    cursor: pointer;
}
#envoidunetMap .parcelButton {
    width: 190px;
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
    color: #ffffff !important;
    background-color: #5bc0de;
    border: 1px solid #46b8da;
    display:inline-block;
    margin-bottom: 0;
    font-weight: 400;
    text-align:center;
    vertical-align:middle;
}

#envoidunetMap .envoidunetDay {
    width:60px;
    font-weight: bold;
    display: inline-block;
}

/* override for mobile */
@media (max-width: 767px) {
    #envoidunetMap {
        width:90%;
        height:90%;
    }
    #envoidunetMapInner {
        height:100%;
    }
    #envoidunetMap #envoidunetPrContainer {
        display:none;
    }
    #envoidunetMap #envoidunetMapContainer {
        padding-right:0px;
        height:100%;
    }
    #envoidunetMap #envoidunetMapCanvas {
        height:100%;
    }
    .envoidunetListPoints {
        min-width:110px;
    }
    .envoidunetListPoints .envoidunetMobile{
      display:inline;
    }
    .envoidunetListPoints .envoidunetDesktop{
      display:none;
    }
    .envoidunetListPointsContainer {
        display:none;
    }
    .envoidunetListPoints .envoidunetPointTitle {
        text-overflow:ellipsis;
        overflow:hidden;
        white-space:nowrap;
        width:100px;
        display:inline-block;
        vertical-align:middle;
    }
    #order .delivery_option > div > table.resume td.delivery_option_logo, #order-opc .delivery_option > div > table.resume td.delivery_option_logo {
        width: auto;
        padding-left:5px;
        padding-right:5px;
    }
}
@media (max-width: 470px) {
    .envoidunetListPoints {
        min-width:95px;
    }
    #order .delivery_option > div > table.resume td, #order-opc .delivery_option > div > table.resume td {
        font-size:0.9em;
    }
    .envoidunetListPoints .envoidunetPointTitle {
        width:85px;
    }
    td.delivery_option_logo img {
        max-width: 45px;
        max-height: 50px;
    }
}
@media (max-width: 360px) {
    .envoidunetListPoints {
        min-width:80px;
    }
    #order .delivery_option > div > table.resume td, #order-opc .delivery_option > div > table.resume td {
        font-size:0.8em;
    }
    .envoidunetListPoints .envoidunetPointTitle {
        width:70px;
    }
    td.delivery_option_logo img {
        max-width: 40px;
        max-height: 50px;
    }
}


/* ===== Blocks Checkout — inline relay-picker panel =================
 * The panel is mounted right after the shipping-methods block in the
 * checkout. Its typographic baseline is pinned (theme block themes
 * inflate font-size to 20px+, which would cascade through every em-
 * based child). All inner sizes derive from the 14px baseline.
 */
.edn-relay-panel {
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    margin: 1em 0 1.5em;
    border: 1px solid #eaecef;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
}
.edn-relay-panel *,
.edn-relay-panel *::before,
.edn-relay-panel *::after {
    box-sizing: border-box;
}
.edn-relay-panel[hidden] { display: none; }

.edn-relay-panel__head {
    padding: 0.85em 1.1em 0.4em;
}
.edn-relay-panel__title {
    margin: 0;
    font-size: 1.05em;
    font-weight: 600;
    line-height: 1.3;
}
.edn-relay-panel__subtitle {
    margin: 0.15em 0 0;
    font-size: 0.85em;
    color: #6a737d;
    line-height: 1.3;
}
.edn-relay-panel__subtitle[hidden] { display: none; }

/* Tabs ------------------------------------------------------------- */
.edn-relay-panel__tabs {
    display: flex;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid #eaecef;
}
.edn-relay-panel__tab {
    appearance: none;
    background: transparent;
    border: 0;
    flex: 1 1 0;
    padding: 0.65em 0.9em;
    margin: 0 0 -1px;
    font-size: 0.9em;
    line-height: 1.2;
    font-family: inherit;
    color: #6a737d;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    text-align: center;
    outline: none;
    transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease;
}
.edn-relay-panel__tab:hover { color: #1a1a1a; background: #f7f8fa; }
.edn-relay-panel__tab.is-active {
    color: #1a1a1a;
    font-weight: 600;
    border-bottom-color: currentColor;
}
/* Keyboard-only focus indicator — mouse clicks don't trigger it. */
.edn-relay-panel__tab:focus-visible {
    box-shadow: inset 0 0 0 2px #5e9bff;
    border-radius: 2px;
}

/* Body / panes ----------------------------------------------------- */
.edn-relay-panel__body {
    position: relative;
}
.edn-relay-panel__pane[hidden] { display: none; }
.edn-relay-panel__pane--map {
    height: 320px;
    background: #f0f0f0;
}
.edn-relay-panel__map {
    width: 100%;
    height: 100%;
}
.edn-relay-panel__pane--list {
    max-height: 320px;
    overflow-y: auto;
}
.edn-relay-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.edn-relay-panel__item {
    display: grid;
    grid-template-columns: 1.85em minmax(0, 1fr) auto;
    column-gap: 0.75em;
    align-items: center;
    padding: 0.85em 1.1em;
    border-bottom: 1px solid #f1f3f5;
    border-left: 3px solid transparent;
    transition: background-color 120ms ease, border-left-color 120ms ease;
    cursor: pointer;
    outline: none;
}
.edn-relay-panel__item:last-child { border-bottom: 0; }
.edn-relay-panel__item:hover { background: #f7f8fa; }
.edn-relay-panel__item:focus-visible {
    background: #f1f5fb;
    border-left-color: #5e9bff;
}
.edn-relay-panel__item.is-selected {
    background: #fff8e1;
    border-left-color: #f39c12;
}
.edn-relay-panel__item.is-selected .edn-relay-panel__num {
    background: #f39c12;
}
.edn-relay-panel__num {
    width: 1.85em;
    height: 1.85em;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.edn-relay-panel__addr {
    display: flex;
    flex-direction: column;
    gap: 0.15em;
    min-width: 0;
}
.edn-relay-panel__addr strong {
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.edn-relay-panel__addr span {
    font-size: 0.82em;
    color: #6a737d;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.edn-relay-panel__check {
    color: #b27800;
    font-weight: 600;
    font-size: 0.82em;
    line-height: 1.2;
    white-space: nowrap;
}

/* Selected-point footer (mirrors the chosen point under the panel)
 * so the customer sees their pick even if they switch tabs. */
.edn-relay-panel__selected {
    padding: 0.7em 1.1em;
    background: #fff8e1;
    border-top: 1px solid #f1d68a;
    color: #5e3f00;
    font-size: 0.9em;
    line-height: 1.4;
}
.edn-relay-panel__selected[hidden] { display: none; }
.edn-relay-panel__selected-label { color: #6a737d; font-weight: 500; }
.edn-relay-panel__selected-addr { color: #6a737d; }

/* Opening hours of the selected relay. Each day is one <li> with two
 * inline spans, laid out by flex — more robust against theme overrides
 * than a <dl>/<dt>/<dd>, and naturally collapses multi-range days into
 * a single row. Tabular-nums keeps colons and digits on a tidy grid
 * across "09:00-18:00", "10:00-18:30", etc. */
.edn-relay-panel__hours {
    list-style: none !important;
    margin: 0.7em 0 0 !important;
    padding: 0.65em 0 0.1em !important;
    border-top: 1px solid rgba(94, 63, 0, 0.18);
    font-size: 0.85em;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    color: #5e3f00;
}
.edn-relay-panel__hours[hidden] { display: none; }
.edn-relay-panel__hours-row {
    display: flex !important;
    align-items: baseline;
    gap: 1em;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.edn-relay-panel__hours-row::before { content: none !important; }
.edn-relay-panel__hours-day {
    flex: 0 0 auto;
    min-width: 5.5em;
    text-align: right;
    font-weight: 600;
    text-transform: capitalize;
}
.edn-relay-panel__hours-time {
    flex: 1 1 auto;
    word-break: keep-all;
}

/* Empty + error + loader ------------------------------------------ */
.edn-relay-panel__empty,
.edn-relay-panel__error {
    padding: 1.5em;
    text-align: center;
    color: #6a737d;
    font-size: 0.95em;
    list-style: none;
    cursor: default;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4em;
}
.edn-relay-panel__empty:hover { background: transparent; }
.edn-relay-panel__empty strong { color: #1a1a1a; font-weight: 600; }
.edn-relay-panel__error { color: #b00020; }

.edn-relay-panel__loader {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.edn-relay-panel__loader[hidden] { display: none; }
.edn-relay-panel__spinner {
    width: 1.6em;
    height: 1.6em;
    border: 2px solid #d0d7de;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: edn-spin 0.7s linear infinite;
}
@keyframes edn-spin { to { transform: rotate(360deg); } }
