.easyship-pickup {
    --es-accent: #2563eb;
    --es-accent-dark: #1d4ed8;
    --es-accent-soft: #eff6ff;
    --es-accent-highlight: #dbeafe;
    --es-text: #172033;
    --es-muted: #607089;
    --es-line: #d8e0eb;
    --es-surface: #fff;
    --es-list: #f5f7fb;
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgb(17 24 39 / 60%);
    color: var(--es-text);
    font-family: inherit;
}

.easyship-pickup, .easyship-pickup * { box-sizing: border-box; }
.easyship-loading-status { flex: 0 0 auto; padding: 8px 20px; margin: 0; color: var(--es-muted); font-size: 13px; max-height: 100px; overflow: auto; }
.easyship-checkout { display: block; margin: 10px 0 16px; font: inherit; }
.easyship-checkout .easyship-open { display: inline-block; padding: 10px 16px; border: 1px solid #245bd1; border-radius: 7px; background: #245bd1; color: #fff; cursor: pointer; font: inherit; }
.easyship-checkout [data-easyship-message] { display: block; margin: 8px 0; }
.ocheckout-page .easyship-checkout { display: block; margin: 8px 0; }
.ocheckout-page .easyship-checkout .easyship-open { height: 40px; padding: 0 18px; border: 0; border-radius: calc(var(--ock-radius) - 2px); background: var(--ock-text); color: #fff; font-size: 14px; }
.easyship-error { color: #a72626; }
.easyship-pickup button, .easyship-pickup input, .easyship-pickup select { font: inherit; }
.easyship-pickup button { cursor: pointer; }
.easyship-pickup button:focus-visible, .easyship-pickup input:focus-visible,
.easyship-pickup select:focus-visible { outline: 3px solid var(--es-accent); outline-offset: 2px; }
.easyship-pickup .easyship-dialog {
    display: flex;
    flex-direction: column;
    width: min(1280px, 100%);
    height: min(820px, 100%);
    min-height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: var(--es-surface);
    box-shadow: 0 24px 80px rgb(17 24 39 / 25%);
}

.easyship-header, .easyship-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 0 0 auto;
    padding: 16px 22px;
    background: var(--es-surface);
}
.easyship-header { border-bottom: 1px solid var(--es-line); }
.easyship-header h2 { margin: 0; color: var(--es-text); font-size: 20px; line-height: 1.3; }
.easyship-close { border: 0; background: transparent; color: var(--es-muted); font-size: 32px !important; line-height: 1; }
.easyship-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--es-line); }
.easyship-search { flex: 1 1 240px; min-width: 160px; height: 42px; padding: 9px 12px; border: 1px solid var(--es-line); border-radius: 9px; background: var(--es-surface); color: var(--es-text); }
.easyship-carriers { display: flex; flex: 2 1 280px; gap: 6px; min-width: 0; overflow-x: auto; }
.easyship-carrier, .easyship-views button { flex: 0 0 auto; min-height: 40px; padding: 8px 12px; border: 1px solid var(--es-line); border-radius: 8px; background: var(--es-surface); color: var(--es-text); white-space: nowrap; }
.easyship-carrier[aria-pressed="true"], .easyship-views button[aria-pressed="true"] { border-color: var(--es-accent); background: var(--es-accent-soft); color: var(--es-accent-dark); font-weight: 600; }
.easyship-views { display: none; gap: 4px; }
.easyship-body { display: grid; grid-template-columns: minmax(300px, 36%) minmax(0, 1fr); flex: 1 1 0; min-height: 0; }
.easyship-list { overflow-y: auto; padding: 12px; background: var(--es-list); }
.easyship-point { margin-bottom: 9px; overflow: hidden; border: 1px solid var(--es-line); border-radius: 11px; background: var(--es-surface); }
.easyship-point.is-selected { border-color: var(--es-accent); box-shadow: 0 0 0 1px var(--es-accent); }
.easyship-point-main { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 14px; border: 0; background: transparent; color: var(--es-text); text-align: left; }
.easyship-point-main:hover { background: var(--es-accent-soft); }
.easyship-point-carrier, .easyship-point-name, .easyship-point-hours { color: var(--es-muted); font-size: 13px; }
.easyship-point-address { font-size: 15px; line-height: 1.35; }
.easyship-point-price { color: var(--es-accent-dark); font-size: 17px; font-weight: 700; }
.easyship-point-time { color: var(--es-muted); font-size: 13px; }
.easyship-point-error { color: #a72626; font-size: 13px; font-weight: 400; }
.easyship-point-hours { margin: 0; padding: 0 14px 12px; }
.easyship-tariff-label { display: block; padding: 0 14px 14px; color: var(--es-muted); font-size: 13px; }
.easyship-tariff { display: block; width: 100%; min-height: 42px; margin-top: 5px; padding: 8px; border: 1px solid var(--es-line); border-radius: 8px; background: var(--es-surface); color: var(--es-text); }
.easyship-empty { margin: 0; padding: 18px; color: var(--es-muted); }
.easyship-map-panel { position: relative; min-width: 0; min-height: 0; }
.easyship-map { width: 100%; height: 100%; }
.easyship-marker { position: absolute; left: -44px; top: -44px; display: flex; align-items: center; justify-content: center; width: 88px; height: 38px; padding: 6px; border: 2px solid #cbd5e1; border-radius: 8px; background: #fff; color: #172033; font: 600 13px sans-serif; box-shadow: 0 2px 8px rgb(17 24 39 / 25%); cursor: pointer; }
.easyship-marker::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -5px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #cbd5e1; }
.easyship-marker img { display: block; width: 100%; height: 100%; object-fit: contain; }
.easyship-marker.is-selected { border-color: var(--es-accent); box-shadow: 0 3px 10px rgb(17 24 39 / 35%); }
.easyship-marker.is-selected::after { border-top-color: var(--es-accent); }
.easyship-map-status { position: absolute; top: 12px; left: 12px; right: 12px; padding: 12px; border-radius: 8px; background: var(--es-surface); box-shadow: 0 2px 12px rgb(17 24 39 / 12%); }
.easyship-map-status[hidden] { display: none; }
.easyship-footer { border-top: 1px solid var(--es-line); }
.easyship-summary { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.easyship-pickup .easyship-summary { color: var(--es-text); }
.easyship-confirm { flex: 0 0 auto; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 9px; background: var(--es-accent-dark); color: #fff; font-weight: 600 !important; }
.easyship-confirm:disabled { background: var(--es-line); color: var(--es-muted); cursor: default; }
.easyship-pickup[data-view="map"] .easyship-body { grid-template-columns: minmax(0, 1fr); }
.easyship-pickup[data-view="map"] .easyship-list { display: none; }
.easyship-pickup[data-view="list"] .easyship-body { grid-template-columns: minmax(0, 1fr); }
.easyship-pickup[data-view="list"] .easyship-map-panel { display: none; }

/* Color schemes share the same layout and controls. */
.easyship-theme-green { --es-accent: #18864b; --es-accent-dark: #137a42; --es-accent-soft: #f0f9f3; --es-accent-highlight: #d9f2e2; }
.easyship-theme-violet { --es-accent: #7c3aed; --es-accent-dark: #6430c3; --es-accent-soft: #f5f2ff; --es-accent-highlight: #e9ddff; }
.easyship-theme-orange { --es-accent: #d97706; --es-accent-dark: #b45309; --es-accent-soft: #fff7ed; --es-accent-highlight: #ffebcc; }
.easyship-theme-graphite { --es-accent: #475569; --es-accent-dark: #334155; --es-accent-soft: #f5f7f8; --es-accent-highlight: #e2e8f0; }
.easyship-carrier:hover, .easyship-views button:hover { background: var(--es-accent-highlight); color: var(--es-accent-dark); }
.easyship-point.is-selected { background: var(--es-accent-soft); }
.easyship-point.is-selected .easyship-point-main:hover { background: var(--es-accent-highlight); }
.easyship-close:hover { color: var(--es-accent-dark); }
.easyship-confirm:not(:disabled):hover { background: var(--es-accent-dark); color: #fff; box-shadow: inset 0 0 0 2px var(--es-accent-highlight); }

@media (max-width: 700px) {
    .easyship-pickup { padding: 0; }
    .easyship-pickup .easyship-dialog { width: 100%; height: 100%; border-radius: 0; }
    .easyship-header, .easyship-footer { padding: 11px 14px; }
    .easyship-toolbar { padding: 10px 14px; }
    .easyship-search, .easyship-carriers, .easyship-views { flex-basis: 100%; }
    .easyship-body { display: flex; }
    .easyship-list, .easyship-map-panel { flex: 1; width: 100%; }
    .easyship-pickup[data-view="split"] .easyship-map-panel { display: none; }
    .easyship-pickup[data-view="map"] .easyship-list { display: none; }
    .easyship-pickup[data-view="list"] .easyship-map-panel { display: none; }
    .easyship-footer { flex-direction: column; align-items: stretch; padding-bottom: max(11px, env(safe-area-inset-bottom)); }
    .easyship-confirm { width: 100%; }
}

.easyship-checkout[hidden], .easyship-views[hidden] { display: none; }
@media (max-width: 700px) {
    .easyship-views { display: flex; }
    .easyship-views[hidden] { display: none; }
}

.easyship-carrier[aria-disabled="true"] { color: var(--es-muted); border-style: dashed; }
.easyship-carrier:disabled { cursor: default; background: var(--es-surface); }
.easyship-carrier-notice { margin: 0 0 12px; padding: 12px; border: 1px solid var(--es-line); border-radius: 8px; background: var(--es-surface); color: var(--es-text); font-size: 14px; line-height: 1.5; }

/* Оформление карты и сообщений ограничено окном EasyShip. */
.easyship-pickup .easyship-map-notice { margin: 0; padding: 8px 20px; color: var(--es-muted); font-size: 13px; }
.easyship-pickup .easyship-map-notice[hidden] { display: none; }
.easyship-pickup .easyship-map-status { z-index: 1000; }

/* SDK сохраняет собственные контролы и атрибуцию. Логотипы — на белом фоне. */
.easyship-pickup .eva-cluster-point.eva-cluster-icon { box-sizing: border-box; padding: 7px; border: 2px solid #cbd5e1; border-radius: 8px; background: #fff; box-shadow: 0 2px 6px #0003; overflow: visible; }
.easyship-pickup .eva-cluster-point.eva-cluster-icon::after,
.easyship-pickup .easyship-eva-selected::after { content: ''; position: absolute; left: 50%; bottom: -8px; margin-left: -6px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid #cbd5e1; }
.easyship-pickup .eva-cluster-icon img { width: 100%; height: 100%; object-fit: contain; }
.easyship-pickup .easyship-eva-cluster { border: 3px solid var(--es-accent); background: #fff; color: var(--es-text); }
.easyship-pickup .easyship-eva-selected { position: relative; left: 0; top: 0; box-sizing: border-box; width: 88px; height: 44px; padding: 7px; transform: translateY(calc(-50% - 6px)); }
.easyship-pickup .easyship-eva-selected::after { border-top-color: var(--es-accent); }
