/* PupVibes 8.9.54 — finition carte transporteur / locker / actions */

/* Transporteur : 3 zones nettes = identité | délai | prix */
body#checkout .pv-step-panel--shipping .delivery-option__label{
  display:grid!important;
  grid-template-columns:minmax(170px,1.35fr) minmax(150px,1fr) auto!important;
  align-items:center!important;
  gap:16px!important;
  padding:16px 18px!important;
}

body#checkout .pv-step-panel--shipping .delivery-option__left{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-width:0!important;
}

body#checkout .pv-step-panel--shipping .delivery-option__check{
  flex:0 0 auto!important;
  padding:0!important;
  margin:0!important;
}

body#checkout .pv-step-panel--shipping .delivery-option__carrier{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
}

body#checkout .pv-step-panel--shipping .delivery-option__carrier-logo{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  object-fit:contain!important;
  border-radius:9px!important;
}

body#checkout .pv-step-panel--shipping .delivery-option__carrier-name{
  display:block!important;
  min-width:0!important;
  color:#241608!important;
  font:500 16px/1.2 'DM Sans',sans-serif!important;
  white-space:normal!important;
}

body#checkout .pv-step-panel--shipping .delivery-option__content{
  min-width:0!important;
  color:#716961!important;
  font:400 12px/1.35 'DM Sans',sans-serif!important;
  text-align:left!important;
}

body#checkout .pv-step-panel--shipping .delivery-option__price{
  color:#241608!important;
  font:600 15px/1.2 'DM Sans',sans-serif!important;
  white-space:nowrap!important;
  text-align:right!important;
}

/* Le bloc Mondial Relay injecté vient juste sous les transporteurs. */
body#checkout .pv-step-panel--shipping .pv-relay-ui{
  margin:0!important;
  padding:0!important;
  gap:10px!important;
}

/* Une fois un locker choisi, transformer le rendu brut du module en carte compacte. */
body#checkout .pv-step-panel--shipping .pv-relay-selected-box{
  width:100%!important;
  margin:0!important;
  padding:16px 18px!important;
  border:1px solid rgba(36,22,8,.12)!important;
  border-radius:14px!important;
  background:#fffaf0!important;
  text-align:left!important;
  box-shadow:none!important;
}

body#checkout .pv-step-panel--shipping .pv-relay-selected-box *{
  max-width:100%!important;
}

body#checkout .pv-step-panel--shipping .pv-relay-selected-box .pv-relay-selected-title{
  margin:0 0 8px!important;
  color:#cb6203!important;
  font:500 16px/1.2 'DM Sans',sans-serif!important;
}

body#checkout .pv-step-panel--shipping .pv-relay-selected-box .pv-relay-selected-address{
  margin:0!important;
  color:#241608!important;
  font:400 13px/1.45 'DM Sans',sans-serif!important;
  text-align:left!important;
}

body#checkout .pv-step-panel--shipping .pv-relay-selected-box button,
body#checkout .pv-step-panel--shipping .pv-relay-selected-box input[type="button"],
body#checkout .pv-step-panel--shipping .pv-relay-selected-box input[type="submit"],
body#checkout .pv-step-panel--shipping .pv-relay-selected-box a.pv-relay-change-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:42px!important;
  margin:12px 0 0!important;
  padding:0 16px!important;
  border:0!important;
  border-radius:9px!important;
  background:#fc8501!important;
  color:#241608!important;
  font:500 13px/1 'DM Sans',sans-serif!important;
  text-decoration:none!important;
  box-shadow:none!important;
}

/* Commentaire et actions plus compacts. */
body#checkout .pv-step-panel--shipping .order-options{
  margin-top:4px!important;
  padding-top:16px!important;
}

body#checkout .pv-step-panel--shipping #delivery{
  margin-bottom:0!important;
}

body#checkout .pv-step-panel--shipping .buttons-wrapper--split{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)!important;
  gap:12px!important;
  align-items:stretch!important;
  margin-top:16px!important;
  padding-top:16px!important;
}

body#checkout .pv-step-panel--shipping .buttons-wrapper--split .btn{
  width:100%!important;
  margin:0!important;
  min-height:48px!important;
}

/* Tablet : on garde les trois infos mais plus serrées. */
@media (max-width: 991.98px){
  body#checkout .pv-step-panel--shipping .delivery-option__label{
    grid-template-columns:minmax(150px,1.25fr) minmax(120px,.9fr) auto!important;
    gap:12px!important;
  }
  body#checkout .pv-step-panel--shipping .delivery-option__carrier-name{font-size:15px!important;}
  body#checkout .pv-step-panel--shipping .delivery-option__content{font-size:11px!important;}
  body#checkout .pv-step-panel--shipping .delivery-option__price{font-size:14px!important;}
}

/* Mobile : carte transporteur empilée, actions pleine largeur. */
@media (max-width: 700px){
  body#checkout .pv-step-panel--shipping .delivery-option__label{
    grid-template-columns:1fr!important;
    gap:8px!important;
    padding:14px!important;
  }

  body#checkout .pv-step-panel--shipping .delivery-option__content,
  body#checkout .pv-step-panel--shipping .delivery-option__price{
    padding-left:28px!important;
    text-align:left!important;
  }

  body#checkout .pv-step-panel--shipping .delivery-option__price{
    font-size:16px!important;
  }

  body#checkout .pv-step-panel--shipping .pv-relay-selected-box{
    padding:14px!important;
  }

  body#checkout .pv-step-panel--shipping .pv-relay-selected-box button,
  body#checkout .pv-step-panel--shipping .pv-relay-selected-box input[type="button"],
  body#checkout .pv-step-panel--shipping .pv-relay-selected-box input[type="submit"],
  body#checkout .pv-step-panel--shipping .pv-relay-selected-box a.pv-relay-change-btn{
    width:100%!important;
  }

  body#checkout .pv-step-panel--shipping .buttons-wrapper--split{
    grid-template-columns:1fr!important;
  }
}
