.ph-edost-trigger{border:0;background:transparent;color:#345ad8;padding:8px 0;font:inherit;cursor:pointer;text-align:left}.ph-edost-panel{border:1px solid #e4e8f1;background:#f8faff;border-radius:12px;padding:20px;margin:20px 0}.ph-edost-dialog{border:0;border-radius:16px;box-shadow:0 16px 60px #18274733;padding:0;width:min(760px,94vw);max-height:90vh;color:#27334b}.ph-edost-dialog::backdrop{background:#14244388}.ph-edost-header{display:flex;justify-content:space-between;align-items:center;padding:22px 26px;border-bottom:1px solid #e5eaf3}.ph-edost-header h2{font-size:22px;margin:0}.ph-edost-close{background:none;border:0;font-size:26px;cursor:pointer}.ph-edost-body{padding:24px;max-height:70vh;overflow:auto}.ph-edost-fields{display:grid;grid-template-columns:2fr 1fr;gap:14px}.ph-edost-body label{display:block;font-size:13px;color:#53617b}.ph-edost-body input,.ph-edost-body select{width:100%;box-sizing:border-box;padding:11px;border:1px solid #cbd4e5;border-radius:8px;margin:7px 0;background:white;color:#223}.ph-edost-btn{display:inline-block;background:#345ad8;border:0;border-radius:8px;padding:12px 18px;color:white;font:inherit;cursor:pointer}.ph-edost-btn:disabled{opacity:.55;cursor:wait}.ph-edost-note{font-size:13px;color:#596880;margin:12px 0}.ph-edost-error{color:#9b2633;background:#fff0f0;padding:12px;border-radius:8px}.ph-edost-status{min-height:20px;margin:12px 0}.ph-edost-cities{display:flex;flex-wrap:wrap;gap:6px}.ph-edost-city{border:1px solid #cad5eb;background:#f5f8ff;padding:7px;border-radius:6px;cursor:pointer;font:inherit}.ph-edost-tariff,.ph-edost-office{border:1px solid #dce3f1;border-radius:10px;padding:14px;margin:12px 0}.ph-edost-tariff strong{display:block;margin-bottom:6px}.ph-edost-office p{margin:6px 0}.ph-edost-offices{max-height:320px;overflow:auto}.ph-edost-parcel{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}@media(max-width:600px){.ph-edost-fields{grid-template-columns:1fr}.ph-edost-header,.ph-edost-body{padding:16px}.ph-edost-parcel{grid-template-columns:1fr 1fr}}

.ph-edost-dialog [hidden]{display:none!important}.ph-edost-dialog{width:min(880px,94vw);max-width:calc(100vw - 24px);font-family:inherit}.ph-edost-dialog *{box-sizing:border-box}.ph-edost-eyebrow{font-size:11px;letter-spacing:.12em;color:#738198;display:block;margin-bottom:9px}.ph-edost-header{gap:18px;align-items:flex-start}.ph-edost-header h2{font-size:25px;line-height:1.25;color:#20304a}.ph-edost-close{line-height:1;flex:none;color:#5b6576}.ph-edost-body{max-height:calc(90vh - 120px)}.ph-edost-steps{display:flex;list-style:none;gap:10px;padding:0;margin:0 0 23px;flex-wrap:wrap;font-size:12px;color:#5a6b85}.ph-edost-steps li{background:#f0f4fa;border-radius:20px;padding:6px 11px}.ph-edost-estimate{background:#fff7e7;border:1px solid #f1ddb0;border-radius:10px;padding:13px 16px;font-size:13px;line-height:1.5;color:#6a511e}.ph-edost-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}.ph-edost-mode{background:#f6f8fc;color:#354865;border:1px solid #dce4f0;border-radius:10px;padding:13px 9px;cursor:pointer;font:inherit;font-size:13px;line-height:1.4}.ph-edost-mode[aria-selected=true]{background:#edf3ff;border-color:#345ad8;color:#2345ac;box-shadow:inset 0 0 0 1px #345ad8}.ph-edost-tariff-head{display:flex;justify-content:space-between;gap:16px;align-items:start}.ph-edost-price{white-space:nowrap;font-size:22px!important;color:#203b76}.ph-edost-days{font-size:13px;color:#5d6d83}.ph-edost-tariff{background:#fff;padding:18px}.ph-edost-office{background:#f9fbfe;padding:15px}.ph-edost-office-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-top:12px}.ph-edost-link{border:0;background:none;padding:0;color:#345ad8;text-decoration:underline;font:inherit;cursor:pointer}.ph-edost-map{width:100%;height:260px;border:0;border-radius:10px;margin-top:14px}.ph-edost-success{background:#edf8f1;border:1px solid #bedfca;padding:17px;border-radius:12px;margin:10px 0;color:#245b3b}.ph-edost-panel h2{font-size:23px;margin:0 0 12px}.ph-edost-summary{margin-bottom:14px}.ph-edost-summary small{display:block;color:#765c2c;margin:8px 0}.ph-edost-dialog button:focus-visible,.ph-edost-dialog input:focus-visible{outline:3px solid #9bb7ff;outline-offset:2px}@media(max-width:600px){.ph-edost-header h2{font-size:21px}.ph-edost-modes{grid-template-columns:1fr}.ph-edost-mode{text-align:left}.ph-edost-tariff{padding:13px}.ph-edost-tariff-head{display:block}.ph-edost-price{font-size:22px!important}.ph-edost-office-actions{align-items:stretch}.ph-edost-office-actions .ph-edost-btn{width:100%}.ph-edost-steps{gap:5px;font-size:10px}.ph-edost-steps li{padding:5px 7px}.ph-edost-dialog{margin:auto}.ph-edost-map{height:220px}}

.ph-edost-extra{margin:14px 0}.ph-edost-extra summary{cursor:pointer;color:#536884;font-size:13px;padding:10px;border-radius:8px;background:#f3f6fb}

@media(max-width:600px){.ph-edost-offices{max-height:none;overflow:visible}}


/* Fix steps alignment (overriding Bitrix/Aspro ol>li top margin) */
.ph-edost-steps {
  display: flex !important;
  align-items: center !important;
  list-style: none !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 0 20px !important;
  flex-wrap: wrap !important;
  font-size: 13px !important;
  color: #5a6b85 !important;
}

.ph-edost-steps li {
  margin: 0 !important;
  padding: 6px 14px !important;
  background: #f0f4fa !important;
  border-radius: 20px !important;
  line-height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 500 !important;
  height: 32px !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

@media(max-width:600px) {
  .ph-edost-steps {
    gap: 6px !important;
    font-size: 11px !important;
    margin: 0 0 16px !important;
  }
  .ph-edost-steps li {
    padding: 4px 10px !important;
    height: 28px !important;
    font-size: 11px !important;
  }
}


/* Quick city selection pills */
.ph-edost-quick-cities {
  margin: 10px 0 16px;
}
.ph-edost-quick-title {
  display: block;
  font-size: 12px;
  color: #718096;
  margin-bottom: 7px;
  font-weight: 500;
}
.ph-edost-quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ph-edost-quick-city {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce4f0;
  background: #f7f9fd;
  color: #334764;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  line-height: 1.3;
}
.ph-edost-quick-city:hover {
  background: #edf3ff;
  border-color: #365edc;
  color: #365edc;
}
.ph-edost-quick-city.active {
  background: #365edc;
  border-color: #365edc;
  color: #fff;
  font-weight: 500;
}
@media (max-width: 600px) {
  .ph-edost-quick-city {
    font-size: 12px;
    padding: 5px 9px;
  }
}
