.macentrale-delivery {
  --mds-accent: #E8752A;
  --mds-text: #111111;
  display: inline-flex;
  font-family: inherit;
  line-height: 1.25;
}

/* Wolmart applique parfois une majuscule à chaque mot dans ses modèles. */
.macentrale-delivery__dialog,
.macentrale-delivery__dialog * {
  text-transform: none !important;
}

.macentrale-delivery__trigger {
  align-items: center;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 4px;
  box-shadow: none !important;
  color: #111111;
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  min-height: 44px;
  padding: 4px 8px;
  text-align: left;
  width: 310px;
}

.macentrale-delivery__trigger:hover,
.macentrale-delivery__trigger:focus-visible {
  background: transparent !important;
  border-color: #111111 !important;
  color: #111111;
  outline: none;
}

.macentrale-delivery__pin {
  display: inline-flex;
  flex: 0 0 22px;
  height: 22px;
  width: 22px;
}

.macentrale-delivery__pin svg {
  fill: currentColor;
  height: 100%;
  width: 100%;
}

.macentrale-delivery__trigger-copy {
  align-items: baseline;
  display: flex;
  flex-direction: row;
  flex: 1;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.macentrale-delivery__eyebrow {
  font-size: 11px;
  opacity: .72;
}

.macentrale-delivery__country-option img {
  border: 1px solid rgba(17, 17, 17, .14);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(17, 17, 17, .12);
  flex: 0 0 20px !important;
  height: 14px !important;
  object-fit: cover;
  width: 20px !important;
}

.macentrale-delivery__current {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.macentrale-delivery__backdrop[hidden] {
  display: none !important;
}

.macentrale-delivery__backdrop {
  align-items: center;
  background: rgba(5, 12, 20, .62);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 999999;
}

.macentrale-delivery__dialog {
  animation: macentrale-delivery-enter .16s ease-out;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
  color: var(--mds-text);
  max-height: none;
  max-width: 560px;
  overflow: visible;
  width: 100%;
}

.macentrale-delivery__header {
  align-items: center;
  background: #f4f5f6;
  border-bottom: 1px solid #d8dde2;
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
}

.macentrale-delivery__header h2 {
  color: var(--mds-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.macentrale-delivery__close {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--mds-text);
  cursor: pointer;
  display: inline-flex;
  font-size: 34px;
  font-weight: 300;
  height: 36px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 36px;
}

.macentrale-delivery__body {
  padding: 26px 36px 30px;
}

.macentrale-delivery__body > p:first-child {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.macentrale-delivery__login,
.macentrale-delivery__country-submit {
  align-items: center;
  background: var(--mds-accent);
  border: 1px solid var(--mds-accent);
  border-radius: 999px;
  color: #fff !important;
  cursor: pointer;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none !important;
  width: 100%;
}

.macentrale-delivery__separator {
  align-items: center;
  color: #77736E;
  display: flex;
  font-size: 13px;
  gap: 12px;
  margin: 20px 0;
  text-align: center;
}

.macentrale-delivery__separator::before,
.macentrale-delivery__separator::after {
  background: #d9dde1;
  content: '';
  flex: 1;
  height: 1px;
}

.macentrale-delivery__postcode-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.macentrale-delivery__postcode,
.macentrale-delivery__country-toggle,
.macentrale-delivery__country-search {
  background: #fff;
  border: 1px solid #9ca5ad;
  border-radius: 8px;
  box-sizing: border-box;
  color: var(--mds-text);
  font: inherit;
  min-height: 46px;
  padding: 9px 14px;
  width: 100%;
}

.macentrale-delivery__postcode:focus,
.macentrale-delivery__country-toggle:focus,
.macentrale-delivery__country-search:focus {
  border-color: var(--mds-accent);
  box-shadow: 0 0 0 3px rgba(232, 117, 42, .16);
  outline: none;
}

.macentrale-delivery__country-picker {
  position: relative;
}

.macentrale-delivery__country-toggle {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  text-align: left;
}

.macentrale-delivery__selected-country {
  flex: 1;
  font-weight: 500;
}

.macentrale-delivery__country-chevron {
  font-size: 22px;
  line-height: 1;
  margin-left: auto;
}

.macentrale-delivery__country-panel[hidden],
.macentrale-delivery__country-option[hidden],
.macentrale-delivery__country-empty[hidden] {
  display: none !important;
}

.macentrale-delivery__country-panel {
  background: #fff;
  border: 1px solid #9ca5ad;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(17, 17, 17, .18);
  box-sizing: border-box;
  left: 0;
  bottom: calc(100% + 6px);
  margin: 0;
  padding: 8px;
  position: absolute;
  right: 0;
  top: auto;
  z-index: 20;
}

.macentrale-delivery__country-search {
  min-height: 42px;
  padding: 8px 12px;
}

.macentrale-delivery__country-options {
  margin-top: 7px;
  max-height: none;
  overflow: visible;
}

.macentrale-delivery__country-option {
  align-items: center;
  background: #fff !important;
  border: 0 !important;
  border-radius: 5px;
  color: #111111 !important;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.macentrale-delivery__country-option:hover,
.macentrale-delivery__country-option:focus {
  background: #F5F2EC !important;
  outline: none;
}

.macentrale-delivery__country-option[aria-selected="true"] {
  background: rgba(232, 117, 42, .13) !important;
  font-weight: 700;
}

.macentrale-delivery__country-empty {
  color: #77736E;
  margin: 10px;
  text-align: center;
}

.macentrale-delivery__postcode-submit {
  background: #fff;
  border: 1px solid #9ca5ad;
  border-radius: 999px;
  color: var(--mds-text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 46px;
  padding: 9px 22px;
}

.macentrale-delivery__country-submit {
  border-radius: 8px;
  margin-top: 12px;
}

.macentrale-delivery button:disabled {
  cursor: wait;
  opacity: .6;
}

.macentrale-delivery__status {
  font-size: 13px;
  margin: 12px 0 0;
  min-height: 18px;
}

.macentrale-delivery__status.is-error {
  color: #b42318;
}

.macentrale-delivery-is-open {
  overflow: hidden;
}

@keyframes macentrale-delivery-enter {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 767px) {
  .macentrale-delivery {
    flex: 0 0 auto;
  }

  .macentrale-delivery__backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .macentrale-delivery__dialog {
    border-radius: 14px 14px 0 0;
    max-height: none;
    max-width: none;
  }

  .macentrale-delivery__trigger {
    flex: 0 0 44px;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0;
    width: 44px;
  }

  .macentrale-delivery__trigger-copy {
    display: none;
  }

  .macentrale-delivery__pin {
    flex-basis: 24px;
    height: 24px;
    width: 24px;
  }

  .macentrale-delivery__header,
  .macentrale-delivery__body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .macentrale-delivery__postcode-row {
    grid-template-columns: 1fr;
  }

  .macentrale-delivery__postcode-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .macentrale-delivery__dialog {
    animation: none;
  }
}
/* Integration with the current WoodMart header. */
.macentrale-delivery__backdrop { --mds-accent:#e9752a; --mds-text:#111; }
#mc-delivery-mount { display:inline-flex; align-items:center; }
.macentrale-delivery__trigger { text-transform:none!important; }
.macentrale-delivery__dialog { max-height:calc(100dvh - 40px); overflow:auto; }
.macentrale-delivery__backdrop button:disabled { opacity:.6; cursor:wait; }
@media(max-width:1024px) {
 #mc-delivery-mount { display:flex; justify-content:center; background:#fff; border-bottom:1px solid #eee; }
 #mc-delivery-mount .macentrale-delivery__trigger { width:auto; padding:4px 8px; }
 #mc-delivery-mount .macentrale-delivery__trigger-copy { display:flex; }
}
#mc-delivery-mount .macentrale-delivery__trigger { width:auto; max-width:230px; font-weight:400; }
#mc-delivery-mount .macentrale-delivery__trigger-copy,
#mc-delivery-mount .macentrale-delivery__current { flex:0 1 auto; }
body .macentrale-delivery__dialog .macentrale-delivery__country-submit,
body .macentrale-delivery__dialog .macentrale-delivery__login { background:#e9752a!important; border:1px solid #e9752a!important; color:#fff!important; font-size:15px; }
body .macentrale-delivery__dialog .macentrale-delivery__country-toggle,
body .macentrale-delivery__dialog .macentrale-delivery__postcode-submit { background:#fff; border:1px solid #9ca5ad; color:#111; }
body .macentrale-delivery__dialog .macentrale-delivery__close { min-width:36px; min-height:36px; background:transparent; font-size:30px; padding:0; }
body .macentrale-delivery__flag,
body .macentrale-delivery__selected-flag { width:24px!important; height:18px!important; min-width:24px; object-fit:cover; display:inline-block; border:1px solid #ddd; border-radius:2px; flex:none; }
.macentrale-delivery__trigger-copy { align-items:center; }
.macentrale-delivery__selected-country { text-align:left; }
/* Spacious country selector and unclipped delivery destination. */
.whb-y4ro7npestv02kyrww49 { display:none!important; }
#menu-top-bar-left { flex-wrap:nowrap; }
#mc-delivery-mount .macentrale-delivery__trigger { max-width:none!important; width:auto!important; padding:4px 12px; }
#mc-delivery-mount .macentrale-delivery__trigger-copy,
#mc-delivery-mount .macentrale-delivery__current { max-width:none!important; overflow:visible!important; text-overflow:clip!important; flex:none!important; }
body .macentrale-delivery__dialog { max-width:620px; }
body .macentrale-delivery__dialog .macentrale-delivery__body { padding:30px 36px 34px; }
body .macentrale-delivery__dialog .macentrale-delivery__body > p:first-child { margin-bottom:26px; }
body .macentrale-delivery__dialog .macentrale-delivery__login { margin-bottom:26px; }
body .macentrale-delivery__dialog .macentrale-delivery__country-toggle { min-height:56px; padding:14px 18px; border-radius:8px; gap:12px; }
body .macentrale-delivery__dialog .macentrale-delivery__country-submit { margin-top:24px; min-height:50px; border-radius:8px; }
body .macentrale-delivery__dialog .macentrale-delivery__country-search { min-height:48px; padding:12px 14px; }
body .macentrale-delivery__dialog .macentrale-delivery__country-option { min-height:48px; padding:12px 16px; gap:12px; }
@media(max-width:767px) {
 body .macentrale-delivery__dialog .macentrale-delivery__body { padding:24px 20px 28px; }
 #mc-delivery-mount .macentrale-delivery__trigger-copy { flex-wrap:wrap; white-space:normal; }
 #mc-delivery-mount .macentrale-delivery__current { white-space:normal; }
}
/* Let the preview expand the dialog instead of covering its explanation. */
body .macentrale-delivery__dialog .macentrale-delivery__country-panel { position:relative; top:auto; bottom:auto; left:auto; right:auto; margin-top:10px; }
body .macentrale-delivery__dialog .macentrale-delivery__country-options { max-height:220px; overflow-y:auto; }
body .macentrale-delivery__dialog .macentrale-delivery__country-option { justify-content:flex-start; text-align:left; }

/* Four visible rows; every country remains reachable by scrolling. */
body .macentrale-delivery__dialog .macentrale-delivery__country-options { max-height:192px; overflow-y:scroll; scrollbar-gutter:stable; scrollbar-width:auto; scrollbar-color:#e9752a #f0f0f0; }
.macentrale-delivery__country-options::-webkit-scrollbar { width:12px; }
.macentrale-delivery__country-options::-webkit-scrollbar-track { background:#f0f0f0; border-radius:8px; }
.macentrale-delivery__country-options::-webkit-scrollbar-thumb { background:#e9752a; border:2px solid #f0f0f0; border-radius:8px; }

/* Match the 24px language and account icons in the header. */
#mc-delivery-mount .macentrale-delivery__pin { width:24px; height:24px; flex:0 0 24px; }
body #mc-delivery-mount .macentrale-delivery__flag { width:32px!important; height:24px!important; min-width:32px; }

/* Delivery location, compact prompt and postcode suggestions. */
body #mc-delivery-mount .macentrale-delivery__flag,
body .macentrale-delivery__selected-flag { width:20px!important; height:14px!important; min-width:20px!important; }
.macentrale-delivery__prompt[hidden], .macentrale-delivery__dialog [hidden] { display:none!important; }
.macentrale-delivery__prompt { position:fixed; z-index:999998; width:352px; max-width:calc(100vw - 24px); box-sizing:border-box; display:flex; gap:12px; padding:22px 24px 22px 18px; background:#fff; border-top:4px solid #ed7526; border-radius:12px; box-shadow:0 12px 40px #18263433; color:#273646; font-size:13px; line-height:1.5; text-transform:none; }
.macentrale-delivery__prompt::before { content:''; position:absolute; left:30px; top:-12px; border-left:8px solid transparent; border-right:8px solid transparent; border-bottom:8px solid #ed7526; }
.macentrale-delivery__prompt strong { display:block; font-size:15px; padding-right:10px; }
.macentrale-delivery__prompt p { margin:6px 0 14px; color:#66717e; }
.macentrale-delivery__prompt-icon { flex:none; width:38px; height:38px; border-radius:50%; background:#fff1e9; color:#ed7526; font-size:30px; text-align:center; }
body .macentrale-delivery__prompt-open { background:#e9752a; color:white; border:0; border-radius:6px; padding:10px 12px; min-height:42px; font-size:12px; font-weight:700; text-transform:none; }
body .macentrale-delivery__prompt-close { position:absolute; right:5px; top:5px; padding:0; min-width:28px; width:28px; height:28px; min-height:28px; background:transparent; color:#85919d; font-size:23px; }
.mc-location-attention .macentrale-delivery__pin { color:#e9752a; border-radius:50%; animation:mc-location-pulse 1.8s ease-in-out 4; }
@keyframes mc-location-pulse { 0%,100% { box-shadow:0 0 0 0 #e9752a00; opacity:1; } 50% { box-shadow:0 0 0 8px #e9752a25; opacity:.55; } }
body .macentrale-delivery__dialog { max-width:520px; border-radius:12px; overflow:auto; }
body .macentrale-delivery__dialog .macentrale-delivery__header { padding:18px 24px; background:#f6f7f8; }
body .macentrale-delivery__dialog .macentrale-delivery__header h2 { font-size:19px; }
body .macentrale-delivery__dialog .macentrale-delivery__body { padding:22px 24px 20px; }
body .macentrale-delivery__dialog .macentrale-delivery__body>p:first-child { font-size:14px; margin-bottom:18px; }
body .macentrale-delivery__dialog .macentrale-delivery__login { background:transparent!important; color:#b9541b!important; border:0!important; min-height:30px; margin-bottom:16px; padding:0; font-size:13px; }
body .macentrale-delivery__dialog .macentrale-delivery__country-toggle { min-height:48px; padding:10px 14px; }
.macentrale-delivery__location-fields { margin-top:18px; }
.macentrale-delivery__location-fields label { display:block; font-size:13px; font-weight:600; color:#273646; margin-bottom:7px; }
body .macentrale-delivery__dialog .macentrale-delivery__postcode,
body .macentrale-delivery__dialog .macentrale-delivery__city { background:white; color:#273646; border:1px solid #c9cfd5; border-radius:7px; min-height:46px; width:100%; font:inherit; font-size:14px; padding:10px 12px; }
.macentrale-delivery__postcode-hint { font-size:12px; color:#687583; line-height:1.5; margin:7px 0; }
.macentrale-delivery__results { max-height:180px; overflow-y:auto; border:1px solid #d7dce1; border-radius:6px; }
body .macentrale-delivery__results button { display:block; background:white; color:#273646; border:0; border-bottom:1px solid #f1f1f1; padding:11px 12px; font:inherit; font-size:13px; text-align:left; width:100%; text-transform:none; }
body .macentrale-delivery__results button:hover, body .macentrale-delivery__results button:focus { background:#fff1e7; outline:2px solid #e9752a; outline-offset:-2px; }
body .macentrale-delivery__manual-toggle { background:transparent; color:#9c471c; border:0; min-height:32px; padding:4px 0; font-size:12px; text-decoration:underline; text-transform:none; }
.macentrale-delivery__city-row { margin-top:12px; }
.macentrale-delivery__chosen { margin:10px 0; padding:10px 12px; background:#fff2e8; color:#773e1e; border-radius:6px; font-weight:600; font-size:14px; }
.macentrale-delivery__source { display:block; font-size:10px; color:#79838c; margin-top:8px; }
.macentrale-delivery__source a { color:inherit; text-decoration:underline; }
body .macentrale-delivery__dialog .macentrale-delivery__country-submit { margin-top:18px; min-height:46px; }
.macentrale-delivery__status:empty { display:none; }
@media(max-width:767px) { body .macentrale-delivery__dialog { max-height:92dvh; border-radius:14px 14px 0 0; } body .macentrale-delivery__dialog .macentrale-delivery__body { padding:20px; } }
@media(prefers-reduced-motion:reduce) { .mc-location-attention .macentrale-delivery__pin { animation:none; color:#e9752a; } }

body .macentrale-delivery__prompt-close { border:0; box-shadow:none; }
