/* -------------------------------------------------------------------------
   AFTERSHIP TRACKING UI (mobile-first)
   ------------------------------------------------------------------------- */

.ds-aftership-tracking {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px;
}

.ds-aftership-search {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.ds-aftership-search input[type="text"] {
    width: 100%;
    padding: 10px 12px;
}

.ds-aftership-search .button,
.ds-aftership-search button {
    width: 100%;
    padding: 10px 14px;
}

.ds-aftership-msg {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.ds-aftership-msg-error {
    background: #fadbd8;
    color: #c0392b;
}

.ds-aftership-msg-warning {
    background: #fef9e7;
    color: #b7950b;
}

.ds-aftership-card {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    background: #fff;
}

.ds-aftership-header {
    padding: 16px 18px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.ds-aftership-header-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ds-aftership-status {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ds-aftership-courier {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7f8c8d;
}

.ds-aftership-body {
    padding: 18px 18px 20px;
}

.ds-aftership-edd-box {
    background: #e8f6f3;
    color: #0e6251;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.ds-aftership-edd-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ds-aftership-edd-date {
    margin-top: 4px;
    font-size: 1.05rem;
    font-weight: 600;
}

.ds-aftership-progress-track {
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 22px;
}

.ds-aftership-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.ds-aftership-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ds-aftership-timeline-empty {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.ds-aftership-event {
    display: flex;
    gap: 12px;
    position: relative;
    padding-bottom: 18px;
}

.ds-aftership-event:last-child {
    padding-bottom: 0;
}

.ds-aftership-event::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 18px;
    bottom: -2px;
    width: 2px;
    background: #eee;
}

.ds-aftership-event:last-child::before {
    display: none;
}

.ds-aftership-event-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bdc3c7;
    margin-top: 4px;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #bdc3c7;
}

.ds-aftership-event-latest .ds-aftership-event-icon {
    background: black;
    box-shadow: 0 0 0 2px black;
}

.ds-aftership-event-content {
    flex: 1;
}

.ds-aftership-event-msg {
    font-weight: 600;
    color: #34495e;
    font-size: 0.95rem;
}

.ds-aftership-event-loc {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.ds-aftership-event-time {
    margin-top: 2px;
    font-size: 0.8rem;
    color: #95a5a6;
}

.ds-tracking-whatsapp-cta {
	margin: 10px 0 0 0;
	padding: 0;
}

.ds-tracking-whatsapp-cta a {
	text-decoration: underline;
    text-transform: uppercase;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	display: inline;
	color: inherit;
}



/* Wider screens: align search form horizontally */
@media only screen and ( min-width: 768px ) {
    .ds-aftership-tracking {
        padding: 32px 0;
    }

    .ds-aftership-search {
        flex-direction: row;
        align-items: center;
    }

    .ds-aftership-search input[type="text"] {
        max-width: 320px;
    }

    .ds-aftership-search .button,
    .ds-aftership-search button {
        width: auto;
        margin-left: 10px;
    }
}