/*********************************************************************

    ORDER STATUS — "Η παραγγελία μου" (template-order-status.php)

    One idea: the order's progress is a trail on a map. The status panel
    is Polo green with faint contour lines; stages are waypoints on a
    route, the current one marked in Polo yellow. Everything else stays
    quiet: white cards, the site's font and pill buttons.

 *********************************************************************/

.order-status {
    --os-green      : #37514f;
    --os-green-2    : #476f6b;
    --os-green-deep : #2b403e;
    --os-yellow     : #ffae00;
    --os-stone      : #e7e7e1;
    --os-ink        : #1f1f1f;
    --os-muted      : #5f6664;
    --os-line       : #dcdcd5;
    color: var(--os-ink);
    font-size: 16px;
    line-height: 1.5;
}

.order-status .os-muted { color: var(--os-muted); }
.order-status a:not(.os-btn) { color: var(--os-green); text-decoration: underline; text-decoration-color: var(--os-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.order-status a:not(.os-btn):hover { color: var(--os-green-2); }
.order-status :focus-visible { outline: 3px solid var(--os-yellow); outline-offset: 2px; }


/* ---------- Buttons (site pill) ---------- */

.order-status .os-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 26px;
    border: 2px solid var(--os-green);
    border-radius: 30px;
    background: var(--os-green);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease-in, border-color .2s ease-in, color .2s ease-in;
}
.order-status .os-btn:hover { background: var(--os-green-2); border-color: var(--os-green-2); color: #fff; }
.order-status .os-btn-ghost { background: transparent; color: var(--os-green); }
.order-status .os-btn-ghost:hover { background: var(--os-green); border-color: var(--os-green); color: #fff; }
.order-status .os-btn-yellow { background: var(--os-yellow); border-color: var(--os-yellow); color: var(--os-green-deep); }
.order-status .os-btn-yellow:hover { background: #fff; border-color: #fff; color: var(--os-green-deep); }


/* ---------- The map panel ---------- */

.order-status .os-panel {
    position: relative;
    border-radius: 18px;
    background-color: var(--os-green);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

/* Contour lines: two offset "summits" of thin rings, like a topo map. */
.order-status .os-topo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        repeating-radial-gradient(ellipse 120% 90% at 88% 8%,   transparent 0 26px, rgba(255, 255, 255, .07) 26px 27px),
        repeating-radial-gradient(ellipse 80% 110% at 4% 120%, transparent 0 34px, rgba(255, 255, 255, .05) 34px 35px);
    pointer-events: none;
}


/* ---------- Lookup ---------- */

.os-lookup-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 56px;
    align-items: center;
    padding: 56px;
}
.os-lookup-intro h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(30px, 22px + 2vw, 46px);
    line-height: 1.08;
    letter-spacing: -.01em;
}
.os-lookup-intro p { max-width: 34em; margin: 0; color: rgba(255, 255, 255, .82); font-size: 17px; }

/* A preview of the route the customer will see. */
.os-lookup-route {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
}
.os-lookup-route li { display: flex; align-items: center; }
.os-lookup-route li::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 50%;
    border: 2px solid var(--os-yellow);
}
.os-lookup-route li + li::after { content: none; }
.os-lookup-route li:not(:last-child)::after {
    content: "";
    width: 28px;
    margin: 0 10px;
    border-top: 2px dashed rgba(255, 255, 255, .35);
}

.os-form {
    background: #fff;
    color: var(--os-ink);
    border-radius: 14px;
    padding: 32px;
}
.os-form p { margin: 0 0 18px; }
.os-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.os-form input[type="text"] {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1.5px solid #c9c9c1;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    transition: border-color .15s ease-in;
}
.os-form input[type="text"]:hover { border-color: var(--os-green-2); }
.os-form input[type="text"]:focus { border-color: var(--os-green); outline: 3px solid rgba(255, 174, 0, .55); outline-offset: 0; }
.os-form .os-btn { width: 100%; min-height: 52px; font-size: 16px; }
.os-form .os-form-foot { margin: 16px 0 0; font-size: 14px; color: var(--os-muted); }
.os-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.os-error {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fdf0d9;
    border-left: 4px solid var(--os-yellow);
    font-size: 15px;
    line-height: 1.45;
}


/* ---------- Order hero ---------- */

.os-hero { padding: 44px 48px 40px; }

.os-hero-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px 48px;
}
.os-hero-text { flex: 1 1 420px; min-width: 0; }
.os-hero-order { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--os-yellow); }
.os-hero-order span { font-weight: 400; color: rgba(255, 255, 255, .7); }
.os-hero-title {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 20px + 2.6vw, 52px);
    line-height: 1.05;
    letter-spacing: -.015em;
}
.os-hero-sub { max-width: 36em; margin: 12px 0 0; font-size: 17px; color: rgba(255, 255, 255, .84); }

.os-track {
    flex: 0 0 auto;
    display: grid;
    gap: 4px;
    padding: 20px 22px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .16);
    border: 1px solid rgba(255, 255, 255, .16);
}
.os-track-label { font-size: 14px; color: rgba(255, 255, 255, .75); }
.os-track-number { font-size: 22px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.os-track .os-btn { margin-top: 12px; }

/* The trail */
.os-trail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    margin: 44px 0 0;
    padding: 0;
    list-style: none;
}
.os-trail li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 8px;
}
/* Path segment leading into this waypoint. */
.os-trail li + li::before {
    content: "";
    position: absolute;
    top: 14px;
    right: calc(50% + 22px);
    left: calc(-50% + 22px);
    border-top: 3px dashed rgba(255, 255, 255, .3);
}
.os-trail li.is-done + li::before { border-top-style: solid; border-top-color: var(--os-yellow); }

.os-pin {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .45);
    background: var(--os-green);
    display: flex;
    align-items: center;
    justify-content: center;
}
.os-trail .is-done .os-pin { background: var(--os-yellow); border-color: var(--os-yellow); }
.os-trail .is-done .os-pin::after {
    content: "";
    width: 7px;
    height: 12px;
    border: solid var(--os-green-deep);
    border-width: 0 3px 3px 0;
    transform: translateY(-2px) rotate(45deg);
}
.os-trail .is-now .os-pin { background: #fff; border: 7px solid var(--os-yellow); box-shadow: 0 0 0 0 rgba(255, 174, 0, .5); animation: os-beacon 2.4s ease-out infinite; }

@keyframes os-beacon {
    0%   { box-shadow: 0 0 0 0 rgba(255, 174, 0, .55); }
    70%  { box-shadow: 0 0 0 14px rgba(255, 174, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 174, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .os-trail .is-now .os-pin { animation: none; }
}

.os-trail-label { margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.os-trail-when { margin-top: 3px; font-size: 13px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.os-trail .is-now .os-trail-label { color: var(--os-yellow); }
.os-trail .is-later .os-trail-label { color: rgba(255, 255, 255, .55); font-weight: 400; }

/* Closed orders: no trail, the panel turns neutral. */
.os-hero.is-closed { background-color: #4b4f4e; }
.os-hero.is-closed .os-hero-order { color: rgba(255, 255, 255, .8); }


/* ---------- Below the hero ---------- */

.order-status .os-columns {
    padding: 0; /* Responsiville pads any class containing "column". */
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
    align-items: start;
}
.os-side { display: grid; gap: 24px; }

.os-card {
    background: #fff;
    border: 1px solid var(--os-line);
    border-radius: 14px;
    padding: 28px 30px;
}
.os-card h3 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 16px;
    font-size: 19px;
    line-height: 1.25;
}
.os-card h3 span { font-size: 14px; font-weight: 400; color: var(--os-muted); }

.os-item-list { margin: 0; padding: 0; list-style: none; }
.os-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--os-line);
}
.os-item:first-child { border-top: 0; padding-top: 0; }
.os-item-image {
    display: block;
    width: 84px;
    height: 84px;
    border-radius: 10px;
    background: var(--os-stone);
    overflow: hidden;
}
.os-item-image img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.os-item-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.order-status .os-item-name { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--os-ink); text-decoration: none; }
.order-status a.os-item-name:hover { color: var(--os-green); text-decoration: underline; text-decoration-color: var(--os-yellow); }
.os-item-sku { font-size: 13px; color: var(--os-muted); overflow-wrap: anywhere; }
.os-item-qty { font-size: 16px; font-weight: 600; color: var(--os-muted); font-variant-numeric: tabular-nums; }

.os-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 6px 0 0;
    padding-top: 16px;
    border-top: 2px solid var(--os-ink);
    font-size: 16px;
}
.os-total b { font-size: 22px; }

.os-kv {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 10px 24px;
    margin: 0;
    font-size: 15px;
}
.os-kv dt { color: var(--os-muted); }
.os-kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.os-history { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.os-history li {
    position: relative;
    padding: 0 0 18px 22px;
    border-left: 2px solid var(--os-line);
    margin-left: 5px;
}
.os-history li:last-child { padding-bottom: 0; border-left-color: transparent; }
.os-history li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--os-green);
}
.os-history li:first-child::before { background: var(--os-yellow); border-color: var(--os-yellow); }
.os-history time { display: block; font-size: 13px; color: var(--os-muted); font-variant-numeric: tabular-nums; }
.os-history p { margin: 2px 0 0; }

.os-help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}
.os-help p { margin: 0 8px 0 0; font-weight: 600; }
.os-again { margin: 18px 0 0; font-size: 15px; }


/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
    .os-lookup-panel { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px; }
    .os-columns { grid-template-columns: minmax(0, 1fr); }
}


/* ---------- Mobile: the trail runs down the page ---------- */

@media (max-width: 640px) {
    .order-status .os-panel { border-radius: 14px; }
    .os-lookup-panel { padding: 28px 20px; }
    .os-form { padding: 22px 18px; }
    .os-lookup-route { margin-top: 22px; }
    .os-lookup-route li:not(:last-child)::after { width: 14px; margin: 0 6px; }

    .os-hero { padding: 28px 20px 26px; }
    .os-track { width: 100%; }
    .os-track .os-btn { width: 100%; }

    .os-trail { grid-auto-flow: row; margin-top: 30px; }
    .os-trail li {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr);
        column-gap: 14px;
        align-items: center;
        text-align: left;
        padding: 0 0 22px;
    }
    .os-trail li:last-child { padding-bottom: 0; }
    .os-trail .os-pin { grid-row: 1 / span 2; align-self: start; }
    .os-trail-label { margin-top: 4px; }
    .os-trail-when { grid-column: 2; }
    /* Vertical path: drawn below each waypoint, down to the next one. */
    .os-trail li + li::before { content: none; }
    .os-trail li:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 34px;
        bottom: 4px;
        left: 13.5px;
        border-left: 3px dashed rgba(255, 255, 255, .3);
    }
    .os-trail li:has(+ li.is-done, + li.is-now)::after { border-left-style: solid; border-left-color: var(--os-yellow); }

    .os-card { padding: 22px 18px; }
    .os-item { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; }
    .os-item-image { width: 64px; height: 64px; }
    .os-help .os-btn { flex: 1 1 100%; }
}
