@charset "utf-8";
html, body, #footer {background-color: #f3f3f3 !important}

#sitecontainer_track {
padding:50px 20px;
font-family: 'Roboto Slab',sans-serif;
font-weight: 300;
}

.sitewrap {
    background-color: #f8f8f8 !important
}

#sitecontainer_track h1 {
text-align: center;
margin:0 0 10px 0;
font-weight: 200;
font-size:28px
}

label.error {
position: relative;
background-color:#b56262;
color:#fff !important;
padding:5px 8px;
font-size:13px !important;
display:block;
box-sizing: border-box;
margin-top:8px;
border-radius: 6px;
width:fit-content;
font-family: 'Roboto Slab',sans-serif;
font-weight: 200;
box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px;
}
label.error:after
{
content: '';
position: absolute;
border-style: solid;
border-width: 0 8px 8px;
border-color: #b56262 transparent;
display: block;
width: 0;
z-index: 1;
top: -8px;
left: 8px;
}

#tracker_box {
    background-color: #d3cdcd;
    border: 1px solid #bababa;
    padding: 30px;
    border-radius: 18px;
    width: 95%;
    margin: 20px auto 0 auto;
    box-sizing: border-box;
    max-width: 600px;
}

.track_error {
width:95%;
max-width: 600px;
margin:20px auto 20px auto;
padding:14px;
background-color: #b97474;
color:#fff;
box-sizing: border-box;
border-radius:5px;
text-align: left;
font-size: 13px;
display: flex;
flex-direction: row;
align-items: center
}

.track_error img {width:24px; height:24px; margin-right: 8px}

/* ========================================
   TRACKING
   ======================================== */

.tracking-parcels {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    margin-top: 14px;

    background: #fff;
    border-radius: 8px;

    box-shadow:
        rgb(0 0 0 / 5%) 0 1px 3px,
        rgba(27, 31, 35, 0.10) 0 0 0 1px;

    overflow: hidden;
}


/*
 * DESKTOP / TABLET
 *
 * Important:
 * We DO NOT try to put everything into one long line.
 *
 * Layout:
 *
 * Parcel 1 + Royal Mail       [ Track → ]
 * TRACKING-NUMBER  [Copy]     [         ]
 */

.tracking-parcel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    display: grid;

    grid-template-columns: minmax(0, 1fr) 82px;

    grid-template-areas:
        "info   track"
        "number track";

    gap: 8px 10px;

    padding: 11px 12px;
}

.tracking-parcel + .tracking-parcel {
    border-top: 1px solid #eee8ec;
}


/* -------------------------
   Parcel / courier
   ------------------------- */

.tracking-parcel-info {
    grid-area: info;

    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 0;
}

.tracking-parcel-label {
    flex-shrink: 0;
    padding: 4px 8px;
    background: #e4ecf0;
    border-radius: 6px;
    color: #747474;
    font-size: 12px;
}

.tracking-carrier {
    display: flex;
    align-items: center;

    gap: 6px;

    min-width: 0;

    color: #b2b2b2;
    font-size: 13px;
}

.tracking-logo {
    display: block;

    width: auto;
    height: 22px;
    max-width: 58px;

    object-fit: contain;

    flex-shrink: 0;
}


/* -------------------------
   Tracking number
   ------------------------- */

.tracking-number-wrap {
    grid-area: number;

    display: flex;
    align-items:start;

    width: 100%;
    min-width: 0;

    box-sizing: border-box;

    background: #f8f6f7;

    border: 1px solid #e3dde1;
    border-radius: 6px;

    overflow: hidden;
}

.tracking-number {
    display: flex;
    align-items: center;

    flex: 1;
    min-width: 0;

    padding: 8px 9px;

    color: #403a3e;

    font-size: 12px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* -------------------------
   Copy
   ------------------------- */

.tracking-copy {
    display: flex;
    align-items: center;

    gap: 4px;

    flex-shrink: 0;

    padding: 8px 9px;

    border: 0;
    border-left: 1px solid #e3dde1;

    background: #fff;

    color: #777777;

    font-family: inherit;
    font-size: 11px;

    cursor: pointer;
}

.tracking-copy:hover {
    background: #faf7f9;
}


/* -------------------------
   Track button
   ------------------------- */

.tracking-button {
    grid-area: track;

    display: flex;
    align-items: center;
    justify-content: center;

    align-self: flex-end;

    width: 82px;
    min-width: 0;

    box-sizing: border-box;

    padding: 8px;

    border-radius: 6px;

    background: #ad9aa7;

    color: #fff;

    text-decoration: none;

    font-size: 12px;
    text-align: center;
}

.tracking-button:hover {
    background: #8b6b83;
    color: #fff;
}

.tracking-button.shipment1 {
    background-color: #678ca8;
}

.tracking-button.shipment1:hover {
    background-color: #557994;
}

.tracking-button.shipment2 {
    background-color: #67a88c;
}

.tracking-button.shipment2:hover {
    background-color: #548f76;
}

.tracking-parcel-label.shipment1 {
    background-color: #e5edf3;
    color: #4f718b;
}

.tracking-parcel-label.shipment2 {
    background-color: #e4f0eb;
    color: #4f846d;
}

/* -------------------------
   Help message
   ------------------------- */

.tracking-help,
.tracking-assistance {
    margin-top: 10px;

    color: #777;

    font-size: 11px;
    line-height: 1.4;
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 900px) {

    /*
     * Timeline stays exactly where it is.
     * Only the contents on the right stack.
     */

    .tracking-parcels {
        background: transparent;
        box-shadow: none;
        overflow: visible;

        display: grid;
        gap: 12px;
    }


    .tracking-parcel {
        display: block;

        width: 100%;
        max-width: 100%;

        padding: 11px;

        background: #fff;

        border-radius: 8px;

        box-shadow:
            rgb(0 0 0 / 5%) 0 1px 3px,
            rgba(27, 31, 35, 0.10) 0 0 0 1px;
    }

    .tracking-parcel + .tracking-parcel {
        border-top: 0;
    }


    /* Parcel + courier at top */

    .tracking-parcel-info {
        display: flex;
        justify-content: space-between;
        align-items: center;

        width: 100%;

        margin-bottom: 10px;
    }

    .tracking-parcel-label {
        font-size: 12px;
    }

    .tracking-carrier {
        justify-content: flex-end;

        font-size: 12px;
    }

    .tracking-logo {
        height: 20px;
        max-width: 54px;
    }


    /* Number + copy gets full width */

    .tracking-number-wrap {
        width: 100%;

        margin-bottom: 9px;
    }

    .tracking-number {
        padding: 9px 8px;

        font-size: 12px;
    }

    .tracking-copy {
        padding: 9px 8px;

        font-size: 11px;
    }


    /* Track becomes full width */

    .tracking-button {
        display: flex;

        width: 100%;
        min-height: 42px;

        box-sizing: border-box;

        font-size: 13px;
    }


    .tracking-help,
    .tracking-assistance {
        margin-top: 8px;

        font-size: 10px;
        line-height: 1.4;
    }
}

.tracker_st {
display:flex;
align-items: top;
flex-direction:row;
margin-bottom: 20px
}

.tracker_st .stnm {
  flex: 0 0 45px;
}

.tracker_st div {flex-basis: 100%; flex-grow: 1}

.tracker_st .stnum{
width:24px;
height:24px;
background-color: #fdfdfd82;
border-radius: 50%;
box-shadow: rgba(0, 0, 0, 0.10) 0px 0px 0px 1px;
font-size: 18px;
font-weight:400;
color:#5a4b55;
padding:5px;
text-align: center;
}

.tracker_st label{
font-size:18px;
	color:#000
}

.tracker_st p {
font-size: 14px;
color:#000;
	font-weight:100;
margin: 5px 0
}

.tracker_st input {
width:100%;
padding:0.5rem;
font-size:14px;
border:1px solid #b9b9b9;
font-family: 'Roboto Slab',sans-serif;
box-sizing: border-box;
font-weight:200;
color:#000;
border-radius:0.5rem
}

    .css-input-container {
                display: flex;
      align-items: center;
      background-color: #ffffff;
      border: 1px solid #b6b6b6;
      border-radius: 0.5rem;
      transition: all 0.15s ease-in-out;
          } 

        .css-input-container .prefix {
              padding-left: 0.75rem;
    padding-right: 0.75rem;
    color: #6c6c6c;
    font-weight: 300;
        }

        .css-input-container input {
            flex-grow: 1;
            padding: 0.5rem; /* equivalent to p-2 */
            background-color: transparent;
            border: none;
            outline: none; /* removes focus ring from input itself */
            color: #000000; /* equivalent to text-gray-800 */
        }
        
        .css-input-container input::placeholder {
            color: #a8abb1; /* equivalent to placeholder-gray-400 */
        }

#tracker_box form button {
background: #2b2629;
border:none;
padding:10px 18px;
font-size:15px;
color:#fff;
display: block;
font-family: 'Roboto Slab',sans-serif;
margin: 0 auto;
border-radius: 35px;
cursor:pointer;
font-weight: 200;
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}
#tracker_box form button:hover {
background: #463A42;
}

#order_progress #orderstages{
display:flex;
flex-direction:row;
justify-content: center
}

#order_progress {
width:100%;
max-width: 1000px;
margin: 70px auto 0 auto
}

#order_progress #orderstages .stage_container {
flex: 1 33%;
max-width:33%;
box-sizing: border-box;
}

#order_progress #orderstages .stage_container .mcli{
width:100%;
height:10px;
box-shadow: 0px 15px 10px -15px #111;
position: relative
}

.mcli_wrapper  {
width:100px;
position: absolute;
top:50%;
left:50%;
transform: translate(-50%, -40%);
}

.mcli_wrapper .mcli_lbl {
padding-top: 10px;
font-size:18px;
text-align: center;
font-weight: 300;
color:#000
}

.stg_incomplete .mcli_wrapper .mcli_lbl {
color:#d5d5d5;
font-weight:300
}

.stg_incomplete img{
opacity:0.1
}

.mcli .stg_type  {
width:70px;
height:70px;
border-radius: 50%;
padding:15px;
margin:0 auto;
box-shadow: 0px 15px 10px -15px #111;
box-sizing: border-box
}

.stg_type img{
width:100%
}

/*.stgtype_incomplete img {
opacity:0.2
}*/

.stg_complete{
background-color:#dedede
}

.stgtype_complete {
    background-color: #a18f94
}

.stg_incomplete, .stgtype_incomplete {
background-color: #ddd
}

.mcli_left {
border-radius:50px 0 0 50px
}
.mcli_right {
border-radius:0px 50px 50px 0
}

#orderdetails {
background-color:#e7e6e7;
margin-top: 80px;
padding: 20px;
text-align: center;
box-sizing: border-box
}

#orderdetails h2 {
margin:0;
font-weight: 400;
color:#2d2229;
font-size: 21px
}

#orderdetails #flx {
display:flex;
flex-direction: row;
margin-top: 20px;
justify-content: space-between
}

#flx .section {
background-color:#ffffff94;
flex: 1 48%;
max-width:48%;
margin:1%;
}

/*timeline*/
#timeline-wrapper {
text-align: left;
padding:10px;
box-sizing: border-box
}

.timeline{
  width: 100%;
  min-height: 500px;
  margin: 0 auto;
  position: relative;
}

/* Vertical line grows with the actual timeline height */
.timeline::before{
  content: '';
  width: 4px;
  background: #ccc;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5%;
  z-index: 2;
}

.tlsize_1 {
min-height: 300px !important;
}

.tlsize_2 {
min-height: 400px !important;
}


.timeline-inner{
  position: relative;
  padding: 20px 0;
}
.timeline-inner-img{
  width: 10px;
  height: 10px;
  background:#ad9aa7;
  border-radius: 50%;
  position: absolute;
  left: 5%;
  margin-left: -15px;
  z-index: 3;
  color: #fff;
  padding: 9px;
  border: 4px solid #fcfcfc; 
}

.timeline-inner-img img{
padding-bottom:5px;
width:12px;
height:12px
}

.timeline-inner-img1{
  position: absolute;
  width: 40px;
  background:#5b5b5b;
  top: 60px;
  left: 5%;
  font-size: 11px;
  border-radius: 5px;
  margin-left: -20px;
  padding:5px;
  z-index: 3;
  margin-top: 10px;
  text-align: center;
  color: #fff;
  font-weight: bold;
}
.timeline-inner-content{
  position: relative;
  width: 95%;
  min-height: 120px;
  left: 5%;
  padding: 5px 20px;
  box-sizing: border-box;
  color: #252525;
}
.timeline-inner:last-child .timeline-inner-content{
  border-bottom: 0;
}
.wrap-text{
  width: 90%;
  margin: 0 auto;
}
.timeline-inner-content h3{
  margin: 0;
  padding: 0;
  cursor: pointer;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 350;
  color:#272727
}
.timeline-inner-content h3 i{
  margin-right: 5px;
}
.timeline-inner-content p{
  margin-left: 25px;
  font-size: 14px;
	font-weight:200
}

.timeline-inner-content p.tltime{
  padding:0;
  color:#000;
  font-size: 12px;
}
/* end timeline */

#delivery_wrapper {
padding:10px;
box-sizing: border-box
}

#delivery_wrapper h4{
font-size:16px;
margin: 20px 0 20px 0;
font-weight:350
}

#delivery_wrapper address{
font-size:14px;
color:#000;
	font-weight: 200
}

#delivery_wrapper hr {
border: 0;
height: 1px;
width: 100%;
margin: 35px 0;
background: -webkit-gradient(linear, 0 0, 100% 0, from(transparent), to(transparent), color-stop(50%, #dfdfdf));
opacity: 0.7;
}

#paymethod {font-size: 14px; margin-bottom: 20px; color:#252525; font-weight: 300; display:flex; align-items: center; justify-content: center;}
#paymethod img{width: 30px; margin-left: 5px; margin-top: 3px; box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;}

#itemdetails {
background-color:#e7e6e7;
margin-top: 20px;
padding: 20px;
text-align: left;
box-sizing: border-box;
}

#itemdetails h3 {
margin:0 0 20px 0;
font-weight: normal;
color:#2d2229;
font-size: 20px
}

#itemdetails .section {
background-color:#ffffff94;
display:flex;
flex-direction: row;
flex-flow: row wrap;
justify-content: space-between;
padding: 20px;
font-size: 14px
}

#itemdetails .section::after {
  content: "";
  flex: auto;
}

#itemdetails .section .pitem{
display:flex;
flex: 1 31%;
max-width:31%;
align-items:center;
text-align: left;
margin:1%;
flex-direction: row
}

#itemdetails .section .pitem a{
text-decoration: none;
color:#000
}
#itemdetails .section .pitem a:hover{
text-decoration:underline
}

#itemdetails .section .pitem p{
margin:6px 0 0 0;
color:#333;
font-size: 11px;
font-weight:200
}

#itemdetails .section .pitem p span{
color:#e1e1e1
}

#itemdetails .section .pitem h4{
font-size: 13px;
font-weight: 350;
margin:0 0 5px 0
}

#itemdetails .section .pitem img{
box-shadow: rgb(195 195 195 / 20%) 0px 2px 8px 0px;
margin-right: 15px;
border-radius: 8px;
width:80px;
height:80px
}

.pimg_w {display: flex;flex-direction: row}

.package_group {
	background-color: #8f8f8f;
	height: 80px;
	padding:0 5px;
	box-sizing: border-box;
	margin-right: -4px;
	width:25px;
	border-radius: 5px 0 0 5px;
}

.package1 {background-color:#678ca8 !important}
.package2 {background-color:#67a88c !important}

.package_group div {
	writing-mode: tb-rl;
    transform: rotate(-180deg); 
	color:#fff; 
	font-size:10px;
	height:80px;
	margin-left:-2px;
	text-align: center;
	font-family: 'Roboto Slab',sans-serif;
	font-weight:200
}

#seperateorders_note {background-color: #f1f1f1; font-size:14px; padding:10px; box-sizing: border-box; margin:10px 0; font-family: 'Roboto Slab',sans-serif; font-weight:200; border-radius:10px; text-align: center}

@media (max-width: 850px) {
#sitecontainer_track {
padding:30px 20px;
}

#sitecontainer_track h1 {
font-size:21px
}

#order_progress {
margin: 60px auto 0 auto
}

#itemdetails .section .pitem h4 {
font-size:14px
}

}

@media (max-width: 800px) {
#itemdetails .section .pitem{
flex: 1 48%;
max-width:48%;
}
}

@media (max-width: 650px) {
#order_progress #orderstages .stage_container {
margin-bottom:15x
}


#orderdetails #flx {
flex-direction: column;
}

#flx .section {
flex: 1 100%;
max-width:100%;
margin:1%;
}

#delivery_wrapper hr {
margin: 25px 0;
}

.timeline-inner{
  padding: 15px 0;
}

.timeline{
  min-height:450px;
}

.tlsize_1 {
min-height: 200px !important;
}

.tlsize_2 {
min-height: 300px !important;
}

}

@media (max-width: 600px) {
#itemdetails .section {
flex-direction: column;
padding: 10px;
}

#itemdetails .section .pitem{
flex: 1 100%;
max-width:100%;
}
}

@media (max-width: 500px) {
#sitecontainer_track {
padding:20px 10px;
}

#tracker_box {
width:100%;
padding:20px
}

#order_progress {
margin: 40px auto 0 auto
}

.timeline-inner-content {
padding:5px 0px 5px 20px
}
.timeline-inner-content p{
font-size:13px
}

.tracker_st label{
font-size:16px
}

.tracker_st p {
font-size: 12px;
}

.timeline-inner-img1{
  width: 35px;
  top: 45px;
  left: 5%;
  font-size: 10px;
  padding:5px;
  z-index: 3;
  margin-top: 8px;
}

.mcli .stg_type {
width:50px;
height:50px;
padding:10px
}

.mcli_wrapper  {
transform: translate(-50%, -35%);
}

.mcli_wrapper .mcli_lbl {
font-size:16px;
}

}

@media (max-width: 430px) {
#orderdetails h2 {
font-size: 18px
}

.timeline-inner{
  padding: 10px 0;
}

.timeline-inner-content h3{
  font-size: 14px;
}

.mcli_wrapper .mcli_lbl {
font-size:14px;
}

}
/* =========================================================
   ORDER TRACKER — VISUAL REFRESH (v1.2)
   Keeps the existing tracker structure/logic and modernises
   hierarchy, spacing, cards and responsive behaviour.
   ========================================================= */

:root {
    --track-ink: #2d252a;
    --track-muted: #756d72;
    --track-brand: #95738a;
    --track-brand-dark: #79586f;
    --track-brand-soft: #f1eaf0;
    --track-line: #e6dfe4;
    --track-border: #e8e2e6;
    --track-panel: #ffffff;
    --track-panel-soft: #fbfafb;
    --track-bg: #f7f5f6;
    --track-shadow: 0 8px 30px rgba(45, 34, 41, 0.07);
}

#sitecontainer_track {
    padding-top: 46px;
    padding-bottom: 70px;
}

#sitecontainer_track h1 {
    margin-bottom: 0;
    color: var(--track-ink);
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

#order_progress {
    max-width: 1080px;
    margin-top: 74px;
}

/* ---------- top progress ---------- */

#order_progress #orderstages {
    margin: 0 42px;
    align-items: center;
}

#order_progress #orderstages .stage_container .mcli {
    height: 5px;
    box-shadow: none;
    background: var(--track-line);
}

#order_progress #orderstages .stage_container .stg_complete {
    background: #a39fa1
}

.mcli_wrapper {
    width: 130px;
    top: 50%;
    transform: translate(-50%, -50%);
}

.mcli .stg_type {
    width: 58px;
    height: 58px;
    padding: 13px;
    border: 5px solid #f8f8f8;
    box-shadow: 0 5px 16px rgba(45, 34, 41, 0.12);
    transition: transform .18s ease, box-shadow .18s ease;
}

.stgtype_complete {
    background: var(--track-brand);
}

.stg_incomplete,
.stgtype_incomplete {
    background: #e7e3e6;
}

.stg_incomplete img {
    opacity: .22;
}

.mcli_wrapper .mcli_lbl {
    padding-top: 9px;
    color: #5e555a;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .01em;
}

.stg_incomplete .mcli_wrapper .mcli_lbl {
    color: #aaa3a7;
}

.stage_container.is-current .stg_type {
    transform: scale(1.06);
    box-shadow:
        0 0 0 5px rgba(149, 115, 138, .13),
        0 8px 20px rgba(45, 34, 41, .16);
}

.stage_container.is-current .mcli_lbl {
    color: var(--track-ink);
    font-weight: 500;
}

/* ---------- order details shell ---------- */

#orderdetails {
    margin-top: 72px;
    padding: 0;
    background: transparent;
    text-align: left;
}

#orderdetails h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 0 2px;
    color: var(--track-ink);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.order-status-pill {
    display:none;
    /*display: inline-flex;*/
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid #dfd1db;
    border-radius: 999px;
    background: var(--track-brand-soft);
    color: var(--track-brand-dark);
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

#orderdetails #flx {
    gap: 16px;
    margin-top: 0;
    align-items: stretch;
}

#flx .section {
    max-width: none;
    margin: 0;
    border: 1px solid var(--track-border);
    border-radius: 16px;
    background: var(--track-panel);
    box-shadow: var(--track-shadow);
}

#timeline-wrapper {
    flex: 1.45 1 0;
    padding: 18px;
}

#delivery_wrapper {
    flex: .72 1 0;
    padding: 22px 24px;
}

/* ---------- event timeline ---------- */

.timeline,
.tlsize_1,
.tlsize_2 {
    min-height: 0 !important;
}

.timeline::before {
    width: 2px;
    top: 25px;
    bottom: 25px;
    left: 18px;
    background: var(--track-line);
}

.timeline-inner {
    padding: 7px 0;
}

.timeline-inner-img {
    width: 12px;
    height: 12px;
    left: 18px;
    top: 22px;
    margin-left: -12px;
    padding: 6px;
    border: 4px solid #fff;
    background: var(--track-brand);
    box-shadow: 0 0 0 1px #dfd4dc;
}

.timeline-inner-img img {
    display: block;
    width: 12px;
    height: 12px;
    padding: 0;
}

.timeline-inner-img1 {
    top: 18px;
    right: 14px;
    left: auto;
    width: auto;
    min-width: 42px;
    margin: 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1eef0;
    color: #736970;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
}

.timeline-inner-content {
    left: 0;
    width: auto;
    min-height: 0;
    margin-left: 48px;
    padding: 14px 76px 14px 16px;
    border: 1px solid #eee8ec;
    border-radius: 12px;
    box-shadow: rgb(0 0 0 / 11%) 0px 25px 20px -20px;
    background: var(--track-panel-soft);
}

.wrap-text {
    width: 100%;
    margin: 0;
}

.timeline-inner-content h3 {
    margin: 0 0 7px;
    color: var(--track-ink);
    font-size: 15px;
    font-weight: 400;
    cursor: default;
}

.timeline-inner-content p {
    margin: 0 0 8px;
    color: #5f585c;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.55;
}

.timeline-inner-content p:last-child {
    margin-bottom: 0;
}

.timeline-inner-content p.tltime {
    margin: 9px 0 0;
    color: #9a9297;
    font-size: 10px;
    line-height: 1.3;
}

/* ---------- delivery / payment ---------- */

#delivery_wrapper h4 {
    margin: 0 0 10px;
    color: var(--track-ink);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .02em;
}

#delivery_wrapper address {
    color: #5f585c;
    font-size: 13px;
    font-style: normal;
    font-weight: 300;
    line-height: 1.65;
}

#delivery_wrapper hr {
    margin: 22px 0;
    background: var(--track-border);
    opacity: 1;
}

#paymethod {
    justify-content: flex-start;
    margin-bottom: 0;
    color: #5f585c;
    font-size: 13px;
}

/* ---------- tracking parcel card refinement ---------- */

.tracking-parcels {
    margin-top: 12px;
    border: 1px solid var(--track-border);
    border-radius: 10px;
    box-shadow: none;
}

.tracking-parcel {
    padding: 12px;
}

.tracking-button {
    background: var(--track-brand);
    font-weight: 400;
}

.tracking-button:hover {
    background: var(--track-brand-dark);
}

.tracking-assistance {
    color: #9a9297;
}

/* ---------- products ---------- */

#itemdetails {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid var(--track-border);
    border-radius: 16px;
    background: var(--track-panel);
    box-shadow: var(--track-shadow);
}

#itemdetails h3 {
    margin-bottom: 16px;
    color: var(--track-ink);
    font-size: 18px;
    font-weight: 400;
}

#itemdetails .section {
    gap: 12px;
    padding: 0;
    background: transparent;
}

#itemdetails .section::after {
    display: none;
}

#itemdetails .section .pitem {
    flex: 0 0 calc((100% - 24px) / 3);
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid #eee8ec;
    border-radius: 12px;
    background: var(--track-panel-soft);
    box-sizing: border-box;
}

#itemdetails .section .pitem img {
    width: 72px;
    height: 72px;
    margin-right: 12px;
    border-radius: 10px;
    box-shadow: none;
}

#itemdetails .section .pitem h4 {
    color: var(--track-ink);
    font-size: 13px;
    font-weight: 350;
    line-height: 1.35;
}

#itemdetails .section .pitem p {
    color: #766e73;
    line-height: 1.45;
}

#seperateorders_note {
    margin: 0 0 14px;
    border: 1px solid #e4dde2;
    border-radius: 10px;
    background: #f6f2f5;
    color: #645b61;
}

/* ---------- responsive ---------- */

@media (max-width: 800px) {
    #order_progress #orderstages {
        margin-left: 24px;
        margin-right: 24px;
    }

    #itemdetails .section .pitem {
        flex-basis: calc(50% - 6px);
    }
}

@media (max-width: 650px) {
    #sitecontainer_track {
        padding-left: 14px;
        padding-right: 14px;
    }

    #order_progress {
        margin-top: 58px;
    }

    #order_progress #orderstages {
        margin-left: 16px;
        margin-right: 16px;
    }

    .mcli .stg_type {
        width: 50px;
        height: 50px;
        padding: 11px;
    }

    .mcli_wrapper {
        width: 100px;
    }

    .mcli_wrapper .mcli_lbl {
        font-size: 12px;
    }

    #orderdetails {
        margin-top: 58px;
    }

    #orderdetails h2 {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        font-size: 19px;
    }

    #orderdetails #flx {
        gap: 12px;
    }

    #flx .section {
        width: 100%;
        margin: 0;
    }

    #timeline-wrapper,
    #delivery_wrapper {
        padding: 14px;
    }

    .timeline-inner-content {
        margin-left: 43px;
        padding: 13px 12px;
    }

    .timeline-inner-img1 {
        position: static;
        display: inline-flex;
        width: fit-content;
        margin: 8px 0 0 59px;
    }

    .timeline-inner-content p.tltime {
        display: none;
    }

    #itemdetails {
        padding: 14px;
    }
}

@media (max-width: 500px) {
    #sitecontainer_track h1 {
        font-size: 24px;
    }

    #order_progress #orderstages {
        margin-left: 10px;
        margin-right: 10px;
    }

    .mcli_wrapper {
        width: 84px;
    }

    .mcli .stg_type {
        width: 44px;
        height: 44px;
        padding: 9px;
    }

    .mcli_wrapper .mcli_lbl {
        padding-top: 7px;
        font-size: 11px;
    }

    #itemdetails .section .pitem {
        flex-basis: 100%;
    }
}

/* =========================================================
   V1.3 - TRACKING AS A SEPARATE RESPONSIVE PANEL
   Desktop/tablet: timeline left, tracking + delivery right.
   Mobile: tracking first, then timeline, then delivery.
   ========================================================= */

#orderdetails #flx {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    grid-template-areas: "timeline delivery";
    gap: 16px;
    align-items: start;
}

#orderdetails #flx.has-tracking {
    grid-template-areas:
        "timeline tracking"
        "timeline delivery";
}

#timeline-wrapper {
    grid-area: timeline;
    width: 100%;
    min-width: 0;
}

#tracking-wrapper {
    grid-area: tracking;
    width: 100%;
    min-width: 0;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

#delivery_wrapper {
    grid-area: delivery;
    width: 100%;
    min-width: 0;
}

/* Tracking panel heading */

#tracking-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background:#dfe4e6ab
}

.tracking-panel-head {
    margin-bottom: 15px;
}

.tracking-panel-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--track-brand-dark);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .11em;
    text-transform: uppercase;
}

#tracking-wrapper .tracking-panel-head h3 {
    margin: 0 0 6px;
    color: var(--track-ink);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
}

#tracking-wrapper .tracking-panel-head p {
    margin: 0;
    color: #776e74;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.5;
}

/* Each parcel is now a compact action card rather than being
   squeezed into the status timeline. */

#tracking-wrapper .tracking-parcels {
    display: grid;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

#tracking-wrapper .tracking-parcel {
    display: block;
    width: 100%;
    padding: 13px;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    background: #f7f9fa;
    box-sizing: border-box;
    box-shadow: none;
}

#tracking-wrapper .tracking-parcel + .tracking-parcel {
    border-top: 1px solid #e9e2e7;
}

#tracking-wrapper .tracking-parcel-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}

#tracking-wrapper .tracking-parcel-label {
    flex-shrink: 0;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 400;
}

#tracking-wrapper .tracking-carrier {
    justify-content: flex-end;
    color: #81787e;
    font-size: 11px;
    text-align: right;
}

#tracking-wrapper .tracking-logo {
    height: 20px;
    max-width: 55px;
}

#tracking-wrapper .tracking-number-wrap {
    display: flex;
    width: 100%;
    margin: 0 0 10px;
    border-color: #e5dfe3;
    background: #fff;
}

#tracking-wrapper .tracking-number {
    padding: 9px 10px;
    color: #3f383d;
    font-size: 12px;
    letter-spacing: .015em;
}

#tracking-wrapper .tracking-copy {
    padding: 9px 10px;
    background: #fff;
    color: #766d73;
}

#tracking-wrapper .tracking-button {
    display: flex;
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 8px;
    background: var(--track-brand);
    font-size: 12px;
    font-weight: 400;
    box-sizing: border-box;
}

#tracking-wrapper .tracking-button:hover {
    background: var(--track-brand-dark);
}

/* Retain the existing visual distinction when an order has two parcels. */
#tracking-wrapper .tracking-button.shipment1 {
    background: #678ca8;
}

#tracking-wrapper .tracking-button.shipment1:hover {
    background: #557994;
}

#tracking-wrapper .tracking-button.shipment2 {
    background: #67a88c;
}

#tracking-wrapper .tracking-button.shipment2:hover {
    background: #548f76;
}

#tracking-wrapper .tracking-assistance {
    margin-top: 10px;
    color: #948b91;
    font-size: 10px;
    line-height: 1.45;
}

/* Once tracking has moved out, the despatched timeline event stays
   the same visual weight as Received and Preparing. */
#timeline-wrapper .tracking-parcels,
#timeline-wrapper .tracking-assistance {
    display: none;
}

/* Mobile: tracking is the useful action, so show it before history. */
@media (max-width: 650px) {
    #orderdetails #flx,
    #orderdetails #flx.has-tracking {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "timeline"
            "delivery";
        gap: 12px;
    }

    #orderdetails #flx.has-tracking {
        grid-template-areas:
            "tracking"
            "timeline"
            "delivery";
    }

    #tracking-wrapper {
        padding: 16px;
    }

    #tracking-wrapper .tracking-panel-head h3 {
        font-size: 16px;
    }

    #tracking-wrapper .tracking-panel-head p {
        font-size: 12px;
    }

    #tracking-wrapper .tracking-button {
        min-height: 44px;
        font-size: 13px;
    }
}

/* =========================================================
   V1.4 - NATURAL TWO-COLUMN FLOW + TIMELINE DATE CLEANUP
   - Right-side cards stack independently on desktop, so the
     timeline card no longer inherits the combined side height.
   - On mobile tracking still moves above the timeline.
   - Timeline date + time now live inside each event card.
   - Status badge is more compact and stays with the order heading.
   ========================================================= */

/* Desktop/tablet: two genuinely independent columns. */
#orderdetails #flx,
#orderdetails #flx.has-tracking {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    grid-template-areas: "timeline side";
    gap: 16px;
    /* Make the left timeline card match the total height of the
       tracking + delivery stack on the right. */
    align-items: stretch;
}

#timeline-wrapper {
    grid-area: timeline;
    align-self: stretch;
    height: auto;
    padding: 16px 16px 12px;
}

#order-side {
    grid-area: side;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    align-self: start;
}

#order-side #tracking-wrapper,
#order-side #delivery_wrapper {
    width: 100%;
    margin: 0;
}

/* Cleaner order heading / current-status badge. */
#orderdetails h2 {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 16px;
}

#orderdetails h2 > span:first-child {
    min-width: 0;
}

.order-status-pill {
    min-height: 26px;
    margin-left: auto;
    padding: 4px 10px 4px 8px;
    border: 0;
    border-radius: 999px;
    background: var(--track-brand-dark);
    color: #fff;
    box-shadow: 0 3px 10px rgba(45, 34, 41, .10);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .01em;
}

.order-status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    box-shadow: 0 0 0 3px rgba(255,255,255,.14);
}

/* Date is now part of the card header rather than floating outside it. */
.timeline-inner-content {
    padding: 14px 16px;
}

.timeline-event-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.timeline-event-head h3,
.timeline-inner-content .timeline-event-head h3 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 3px 7px;
    border: 1px solid #ece5e9;
    border-radius: 999px;
    background: #f4f0f2;
    color: #7d7178;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.timeline-inner-content p.tltime {
    display: block;
    margin: 8px 0 0;
    color: #aaa1a7;
    font-size: 10px;
    font-weight: 300;
    line-height: 1.25;
}

.timeline-inner-content p.tltime::before {
    content: 'at ';
}

/* Old floating date element is no longer output by indexv2.php. */
.timeline-inner-img1 {
    display: none !important;
}

/* Mobile: break the side wrapper open so tracking can be promoted
   above the history while delivery remains below it. */
@media (max-width: 650px) {
#orderdetails h2 > span:first-child{
margin-top: 15px;
text-align: center;
}

    #orderdetails #flx,
    #orderdetails #flx.has-tracking {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "timeline"
            "delivery";
        gap: 12px;
    }

    #orderdetails #flx.has-tracking {
        grid-template-areas:
            "tracking"
            "timeline"
            "delivery";
    }

    #order-side {
        display: contents;
    }

    #tracking-wrapper {
        grid-area: tracking;
    }

    #delivery_wrapper {
        grid-area: delivery;
    }

    #timeline-wrapper {
        grid-area: timeline;
        padding: 12px 12px 9px;
    }

    #orderdetails h2 {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
        font-size: 18px;
    }

    #orderdetails h2 > span:first-child {
        flex: 1 1 auto;
        font-size: 17px;
        line-height: 1.25;
    }

    .order-status-pill {
        flex: 0 0 auto;
        margin-left: 0;
        min-height: 24px;
        padding: 3px 8px 3px 7px;
        font-size: 10px;
    }

    .order-status-pill::before {
        width: 5px;
        height: 5px;
        margin-right: 6px;
    }

    .timeline-inner-content {
        margin-left: 43px;
        padding: 12px;
    }

    .timeline-event-head {
        gap: 8px;
        margin-bottom: 6px;
    }

    .timeline-date {
        padding: 3px 6px;
        font-size: 9px;
    }

    .timeline-inner-content p.tltime {
        display: block;
        margin-top: 6px;
        font-size: 9px;
    }
}

@media (max-width: 380px) {
    #orderdetails h2 {
        flex-wrap: wrap;
    }

    .order-status-pill {
        margin-left: 0;
    }
}

@media (min-width: 651px) {
    #timeline-wrapper {
        display: flex;
        flex-direction: column;
    }

    #timeline-wrapper .timeline {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0 !important;
    }

    #timeline-wrapper .timeline::before {
        bottom: 10px;
    }
}

#order_progress #orderstages .mcli_wrapper {
    top: 50%;
    transform: translate(-50%, -29px); /* 58px circle / 2 */
}

@media (max-width: 650px) {
    #order_progress #orderstages .mcli_wrapper {
        transform: translate(-50%, -25px); /* 50px circle / 2 */
    }
}

@media (max-width: 500px) {
    #order_progress #orderstages .mcli_wrapper {
        transform: translate(-50%, -22px); /* 44px circle / 2 */
    }
}

/* =========================================================
   MOBILE TOP PROGRESS CIRCLES — SLIGHTLY LARGER / THINNER RING
   Keeps the stage line centred through each circle.
   ========================================================= */

@media (max-width: 650px) {
    #order_progress #orderstages .mcli .stg_type {
        width: 54px;
        height: 54px;
        padding: 11px;
        border-width: 4px;
    }

    #order_progress #orderstages .mcli_wrapper {
        transform: translate(-50%, -27px); /* 54px circle / 2 */
    }
}

@media (max-width: 500px) {
    #order_progress #orderstages .mcli .stg_type {
        width: 50px;
        height: 50px;
        padding: 10px;
        border-width: 3px;
    }

    #order_progress #orderstages .mcli_wrapper {
        transform: translate(-50%, -25px); /* 50px circle / 2 */
    }
}

