/* ============================================================
   RajaOngkir Komerce - Public Styles (Frontend / Checkout)
   ============================================================ */

/* ── Destination Search (WooCommerce Checkout) ─────── */
#komerce-destination-wrapper {
    background: #fff8f0;
    border: 1px solid #ffe0b2;
    border-radius: 10px;
    padding: 16px;
    margin: 12px 0;
    position: relative;
}

#komerce-destination-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #e65c00;
}

#komerce-dest-search {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color .2s;
    box-sizing: border-box;
}

#komerce-dest-search:focus {
    border-color: #e65c00;
    outline: none;
    box-shadow: 0 0 0 2px rgba(230, 92, 0, .15);
}

#komerce-dest-results {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    position: absolute;
    left: 16px;
    right: 16px;
    z-index: 9999;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

#komerce-dest-results li {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
    transition: background .15s;
    line-height: 1.4;
}

#komerce-dest-results li:hover {
    background: #fff3e0;
}

#komerce-dest-results li strong {
    color: #333;
}

#komerce-dest-results li span {
    color: #888;
    font-size: 11px;
    display: block;
}

#komerce-dest-selected {
    margin: 8px 0 0;
    font-size: 13px;
    color: #2e7d32;
    font-weight: 600;
}

/* ── Tracking Shortcode (Public Page) ──────────────── */
.komerce-tracking-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    max-width: 640px;
    margin: 0 auto 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.komerce-tracking-form h3 {
    margin: 0 0 16px;
    color: #e65c00;
}

.komerce-tracking-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.komerce-tracking-form input,
.komerce-tracking-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.komerce-tracking-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #e65c00, #f89820);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s;
}

.komerce-tracking-form button:hover {
    opacity: .88;
}

.komerce-public-timeline {
    max-width: 640px;
    margin: 0 auto;
}

.komerce-public-timeline .timeline-item {
    position: relative;
    padding: 0 0 20px 32px;
    border-left: 2px solid #ffe0b2;
}

.komerce-public-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e65c00;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e65c00;
}

.komerce-public-timeline .timeline-item.is-latest::before {
    background: #4caf50;
    box-shadow: 0 0 0 2px #4caf50;
}

.komerce-public-timeline .timeline-item-desc {
    font-weight: 700;
    color: #333;
}

.komerce-public-timeline .timeline-item-date {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}

.komerce-public-timeline .timeline-item-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    background: #fff3e0;
    color: #e65c00;
    margin-top: 4px;
}

.komerce-error-msg {
    color: #c62828;
    background: #fce4e4;
    padding: 12px;
    border-radius: 8px;
}