/**
 * AgenWebsite Multi Warehouse - checkout widget.
 *
 * "Dikirim dari" indicator, warehouse selector cards (customer mode) and the
 * split-shipment summary. Colours are the AgenWebsite brand (primary #f60,
 * secondary #015C80) but kept low-key so they sit inside any theme's order
 * review table. Text inherits the theme font; only sizes and weights are set.
 */

.awmw-origin-row td {
    padding: 10px 0 !important;
}

/* Shared bits */
.awmw-origin-pin {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: #b34700;
    flex-shrink: 0;
}

.awmw-origin-pin svg {
    width: 100%;
    height: 100%;
}

.awmw-origin-text {
    font-size: 13px;
    line-height: 1.5;
    color: #1e293b;
}

.awmw-origin-text strong {
    color: #1e293b;
    font-weight: 700;
}

.awmw-origin-loc {
    color: #64748b;
}

.awmw-origin-loc::before {
    content: ",";
    margin-right: 4px;
}

/* Indicator (auto mode) */
.awmw-origin-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff8f3;
    border: 1px solid #ffc9a6;
    border-radius: 8px;
    padding: 10px 14px;
}

/* Split summary */
.awmw-split {
    background: #fff8f3;
    border: 1px solid #ffc9a6;
    border-radius: 8px;
    padding: 12px 14px;
}

.awmw-split-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.awmw-split-head .awmw-origin-pin {
    margin-top: 2px;
}

.awmw-split-list {
    margin: 10px 0 0 26px;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #1e293b;
}

.awmw-split-list li {
    margin: 0 0 4px;
}

.awmw-split-list strong {
    font-weight: 700;
}

.awmw-split-items {
    color: #64748b;
}

.awmw-split-items::before {
    content: ": ";
}

/* Selector (customer mode) */
.awmw-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.awmw-selector-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.awmw-selector-cards {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.awmw-wh-card {
    position: relative;
    flex: 0 0 auto;
    min-width: 150px;
    max-width: 220px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
}

.awmw-wh-card:hover {
    border-color: #1e293b;
}

.awmw-wh-card:focus-within {
    box-shadow: 0 0 0 3px #ffc9a6;
}

.awmw-wh-card.is-selected {
    border-color: #f60;
    background: #fff8f3;
    box-shadow: inset 0 0 0 1px #f60;
}

.awmw-wh-card.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f8fafc;
}

.awmw-wh-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.awmw-wh-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.awmw-wh-card-loc {
    font-size: 12px;
    color: #64748b;
}

.awmw-wh-card-note {
    font-size: 11px;
    font-weight: 700;
    color: #dc2626;
}

@media (max-width: 480px) {
    .awmw-wh-card {
        min-width: 130px;
    }
}
