.shub-widget-host { margin: 10px 0; }
.shub-widget { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 16px; margin: 8px 0; }
.shub-field { margin-bottom: 12px; position: relative; }
.shub-field:last-child { margin-bottom: 0; }
.shub-label { display: block; margin-bottom: 6px; font-weight: 500; color: #333; font-size: 14px; }
.shub-req { color: #d9534f; font-weight: 700; }
.shub-input { display: block; width: 100%; padding: 8px 10px; font-size: 14px; line-height: 1.42857143; color: #333; background-color: #fff; background-image: none; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.shub-input:focus { border-color: #66afe9; outline: 0; }
.shub-warehouse-search { margin-bottom: 0; }
.shub-type-options { display: flex; flex-wrap: wrap; gap: 16px; }
.shub-radio { display: inline-flex; align-items: center; cursor: pointer; margin: 0; padding: 4px 0; user-select: none; }
.shub-radio input { margin-right: 6px; }
.shub-autocomplete-list { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid #ccc; border-top: 0; border-radius: 0 0 4px 4px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.shub-autocomplete-item { padding: 8px 10px; cursor: pointer; font-size: 14px; color: #333; }
.shub-autocomplete-item:hover { background: #f5f5f5; }
.shub-autocomplete-empty { color: #999; cursor: default; }
.shub-autocomplete-empty:hover { background: transparent; }
.shub-error { color: #d9534f; font-size: 13px; margin-top: 8px; padding: 8px 10px; background: #fdf3f3; border: 1px solid #f5c6cb; border-radius: 4px; }
.shub-loading { padding: 10px; color: #999; font-size: 13px; text-align: center; }
.shub-widget.shub-inline-mode { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; overflow: hidden !important; visibility: hidden !important; }
.shub-widget-host:empty { display: none; }
.shub-widget-host.shub-hidden-host { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.shub-shop-hint { position: absolute; z-index: 99998; background: #fdf3f3; color: #d9534f; border: 1px solid #f5c6cb; border-radius: 4px; padding: 6px 10px; font-size: 13px; box-shadow: 0 4px 12px rgba(0,0,0,.08); max-width: 320px; }
.shub-shop-city-results .shub-autocomplete-item { padding: 8px 10px; cursor: pointer; font-size: 14px; color: #333; border-top: 1px solid #eee; }
.shub-shop-city-results .shub-autocomplete-item:first-child { border-top: 0; }
.shub-shop-city-results .shub-autocomplete-item:hover { background: #f5f5f5; }
.shub-shop-city-results .shub-autocomplete-empty { color: #999; cursor: default; }
.shub-shop-city-results .shub-autocomplete-empty:hover { background: transparent; }
.shub-shop-city-results { border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.1); }

.shub-address-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shub-address-col {
    flex: 0 0 100%;
}

.shub-address-col-street {
    flex: 1 1 100%;
}

.shub-address-col-house,
.shub-address-col-flat {
    flex: 1 1 calc(50% - 4px);
}

@media (min-width: 480px) {
    .shub-address-col-street {
        flex: 1 1 55%;
    }

    .shub-address-col-house,
    .shub-address-col-flat {
        flex: 1 1 calc(22.5% - 8px);
    }
}

.shub-warehouse-row { display: flex; gap: 6px; align-items: stretch; position: relative; }
.shub-warehouse-row .shub-warehouse-search { flex: 1 1 auto; }
.shub-map-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; background: #f5f5f5; color: #333; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; line-height: 1.2; cursor: pointer; white-space: nowrap; }
.shub-map-btn:hover { background: #e9ecef; }
.shub-map-btn:focus { outline: 2px solid #66afe9; outline-offset: 1px; }

.shub-map-modal { position: fixed; inset: 0; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.shub-map-dialog { background: #fff; border-radius: 10px; width: 100%; max-width: 1080px; height: 100%; max-height: 720px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.shub-map-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #e0e0e0; background: #fafafa; }
.shub-map-title { font-weight: 600; font-size: 16px; color: #212529; }
.shub-map-close { background: transparent; border: 0; font-size: 28px; line-height: 1; color: #6c757d; cursor: pointer; padding: 0 4px; }
.shub-map-close:hover { color: #212529; }
.shub-map-toolbar { display: flex; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #f0f0f0; background: #fff; align-items: stretch; }
.shub-map-search { flex: 1 1 auto; }
.shub-map-search-input { width: 100%; padding: 8px 10px; font-size: 14px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.shub-map-locate { flex: 0 0 auto; padding: 8px 12px; background: #fff; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; font-size: 13px; }
.shub-map-locate:hover { background: #f5f5f5; }
.shub-map-filters { display: flex; gap: 8px; padding: 8px 16px; border-bottom: 1px solid #f0f0f0; flex-wrap: wrap; }
.shub-map-chipgroup { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.shub-map-chip { padding: 4px 10px; font-size: 12px; background: #fff; border: 1px solid #ced4da; border-radius: 999px; cursor: pointer; color: #495057; line-height: 1.4; }
.shub-map-chip:hover { background: #f1f3f5; }
.shub-map-chip.is-active { background: #0d6efd; color: #fff; border-color: #0d6efd; }
.shub-map-layout { flex: 1 1 auto; display: flex; min-height: 0; }
.shub-map-leafbox { flex: 2 1 60%; min-height: 240px; height: 100%; background: #eef0f2; position: relative; }
.shub-map-leafbox:empty::before { content: ''; display: block; height: 100%; }
.shub-map-list { flex: 1 1 40%; min-width: 280px; max-width: 420px; overflow-y: auto; background: #fff; border-left: 1px solid #e0e0e0; padding: 8px; }
.shub-map-empty { padding: 16px; text-align: center; color: #868e96; font-size: 13px; }
.shub-map-toast { padding: 8px 12px; margin-bottom: 8px; background: #fff3cd; color: #664d03; border: 1px solid #ffe69c; border-radius: 4px; font-size: 13px; }
.shub-map-item { padding: 10px 10px 8px 10px; border: 1px solid #e9ecef; border-radius: 6px; margin-bottom: 8px; cursor: pointer; transition: box-shadow .12s ease, border-color .12s ease; }
.shub-map-item:hover { box-shadow: 0 2px 6px rgba(0,0,0,.06); border-color: #ced4da; }
.shub-map-item.is-selected { border-color: #0d6efd; background: #f0f7ff; }
.shub-map-item-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.shub-map-item-num { font-weight: 600; color: #212529; }
.shub-map-item-dist { font-size: 12px; color: #6c757d; }
.shub-map-item-badges { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.shub-map-badge { display: inline-block; padding: 1px 6px; border-radius: 999px; font-size: 11px; background: #e9ecef; color: #495057; }
.shub-map-badge-open { background: #d1e7dd; color: #0f5132; }
.shub-map-badge-closed { background: #f8d7da; color: #842029; }
.shub-map-item-name { font-size: 13px; color: #212529; font-weight: 500; line-height: 1.3; margin-bottom: 2px; }
.shub-map-item-addr { font-size: 12px; color: #6c757d; line-height: 1.35; margin-bottom: 6px; }
.shub-map-item-footer { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.shub-map-details-btn { background: transparent; border: 1px solid #dee2e6; color: #495057; border-radius: 4px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.shub-map-details-btn:hover { background: #f1f3f5; }
.shub-map-choose-btn { background: #0d6efd; color: #fff; border: 0; border-radius: 4px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.shub-map-choose-btn:hover { background: #0b5ed7; }
.shub-map-item-details { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e9ecef; display: none; }
.shub-map-item.is-expanded .shub-map-item-details { display: block; }
.shub-map-item-subtitle { font-size: 12px; font-weight: 600; color: #495057; margin: 4px 0; text-transform: uppercase; letter-spacing: .3px; }
.shub-map-sched-list, .shub-map-lim-list { list-style: none; padding: 0; margin: 0 0 6px 0; font-size: 12px; color: #495057; }
.shub-map-sched-list li { display: flex; justify-content: space-between; padding: 1px 0; }
.shub-map-sched-day { color: #6c757d; min-width: 28px; }
.shub-map-sched-time { color: #212529; font-variant-numeric: tabular-nums; }
.shub-map-lim-list li { padding: 1px 0; }
.shub-popup-choose { display: block; margin-top: 6px; background: #0d6efd; color: #fff; border: 0; border-radius: 4px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.shub-popup-choose:hover { background: #0b5ed7; }
body.shub-map-open { overflow: hidden; }

@media (max-width: 720px) {
    .shub-map-modal { padding: 0; }
    .shub-map-dialog { max-height: 100%; height: 100%; border-radius: 0; max-width: 100%; }
    .shub-map-layout { flex-direction: column; }
    .shub-map-leafbox { flex: 0 0 45%; min-height: 240px; border-right: 0; border-bottom: 1px solid #e0e0e0; }
    .shub-map-list { flex: 1 1 auto; max-width: none; border-left: 0; }
}

.shub-account-order-block { margin: 16px 0; padding: 14px 16px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; }
.shub-account-order-block[hidden] { display: none; }
.shub-account-order-heading { font-size: 16px; font-weight: 600; color: #212529; margin: 0 0 12px 0; }
.shub-account-order-ttn { padding: 10px 0; border-top: 1px solid #f0f0f0; }
.shub-account-order-ttn:first-of-type { border-top: 0; padding-top: 0; }
.shub-account-order-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.shub-account-order-field { display: flex; flex-direction: column; min-width: 0; }
.shub-account-order-field-label { font-size: 11px; text-transform: uppercase; letter-spacing: .3px; color: #6c757d; }
.shub-account-order-field-value { font-size: 14px; color: #212529; word-break: break-all; }
.shub-account-order-ttn-number { font-weight: 600; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.shub-account-order-copy { background: transparent; border: 1px solid #dee2e6; color: #495057; padding: 4px 10px; font-size: 12px; border-radius: 4px; cursor: pointer; }
.shub-account-order-copy:hover { background: #f1f3f5; }
.shub-account-order-copy.is-copied { background: #d1e7dd; border-color: #badbcc; color: #0f5132; }
.shub-account-order-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; color: #fff; font-size: 13px; }
.shub-account-order-track { display: inline-block; padding: 6px 14px; background: #0d6efd; color: #fff; border-radius: 4px; text-decoration: none; font-size: 13px; }
.shub-account-order-track:hover { background: #0b5ed7; color: #fff; text-decoration: none; }
.shub-account-order-carrier { font-size: 12px; color: #6c757d; margin-left: auto; }

@media (max-width: 480px) {
    .shub-account-order-row { flex-direction: column; align-items: flex-start; }
    .shub-account-order-carrier { margin-left: 0; }
}

