/* Custom Order Tracking Styles */
.custom-order-tracking-wrapper {
    max-width: 544px;
    margin: 0 auto;
    /* padding: 36px; */
}

/* Form Container */
.cot-form-container {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
}

.cot-title {
    /* color: #0A0A0A; */
    font-size: 32px;
    font-weight: bold;
    line-height: 40px;
    margin: 0 0 28px 0;
}

/* Tabs */
.cot-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 64px;
    /* border-bottom: 1.5px solid #E8ECEE; */
    align-items: center;
    gap: 20px;
}



.cot-form-container .cot-tab:before {
    content: "";
    position: absolute;
    bottom: -16px;
    width: 0;
    height: 2px;
    background: #0A0A0A;
    transition: all 0.2s;
}

.cot-form-container .cot-tab.active:before {

    width: 58px;

}




.cot-form-container .cot-tab {
    flex: 1;
    padding-bottom: 16px;
    background: transparent;
    border: none;
    /* border-bottom: 2px solid transparent; */
    color: #55595B;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    bottom: 0;
    text-align: left;
    padding: 0;
    line-height: 24px;
    letter-spacing: 0;
    max-width: 138px;
}

.cot-tab.active {
    color: #0A0A0A;
    /* border-bottom-color: #0A0A0A; */
}

.cot-tab:hover {
    color: #0A0A0A;
}

/* Tab Content */
.cot-tab-content {
    display: none;
}

.cot-tab-content.active {
    display: block;
}

/* Form */
.cot-form-group {
    margin-bottom: 24px;
}

.cot-form-group label {
    display: block;
    color: #55595B;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #55595B;
    /* font-family: "Creato Display"; */
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    /* 137.5% */
    letter-spacing: -0.32px;
}

form .cot-form-group input {
    width: 100%;
    /* padding: 16px 20px; */
    /* border: 1.5px solid #E8ECEE; */
    /* border-radius: 60px; */
    font-size: 16px;
    color: #0A0A0A;
    transition: all 0.2s ease;
    display: flex;
    height: 48px;
    padding: 16px 24px !important;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    border-radius: 60px !important;
    border: 1px solid #EBEDED;
    background: transparent;
}

.cot-form-group input:focus {
    outline: none;
    border-color: #0A0A0A;
}

.cot-form-group input::placeholder {
    color: #A1A7A9;
}

form .cot-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--brand-500);
    color: #0A0A0A;
    border: none;
    border-radius: 60px;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1 !important;
    margin-top: 32px;
}

.cot-submit-btn:hover {
    background: #d4a84d;
}

/* Error Message */
.cot-error-message {
    padding: 12px 16px;
    background: #FEE;
    border: 1px solid #F65255;
    border-radius: 8px;
    color: #F65255;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Order Details */
.cot-order-details {
    /* background: #fff; */
    border-radius: 16px;
    /* padding: 32px; */
    gap: 12px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    max-width: 544px;
}



.cot-order-header {
    margin-bottom: 24px;
}

.cot-order-title {
    color: #0A0A0A;
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: #0A0A0A;
    /* font-family: "Creato Display"; */
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
    /* 133.333% */
}

.cot-order-date {
    /* color: #A1A7A9; */
    /* font-size: 14px; */
    margin-bottom: 26px;
    color: #63686A;
    /* font-family: "Creato Display"; */
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    /* 133.333% */
}

/* Order Items */
.cot-order-items {
    margin-bottom: 32px;
}

.cot-order-item {
    display: flex;
    gap: 20px;
    /* padding: 16px 0; */
    /* border-bottom: 1px solid #E8ECEE; */
    margin-bottom: 12px;
}

.cot-order-item:last-child {
    border-bottom: none;
}

.cot-item-image {
    width: 98px;
    height: 98px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #F8F8F8;
    padding: 10px 9px;
}

.cot-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cot-item-details {
    flex: 1;
}

.cot-item-name {
    /* color: #0A0A0A; */
    /* font-size: 16px; */
    /* font-weight: 500; */
    margin: 0 0 8px 0;
    color: #0A0A0A;
    /* font-family: "Creato Display"; */
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 26px;
    /* 144.444% */
}

.cot-item-quantity {
    /* color: #A1A7A9; */
    /* font-size: 14px; */
    /* margin: 0; */
    color: #717680;
    /* font-family: "Creato Display"; */
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    /* 157.143% */
}

/* Timeline */
.cot-status-timeline {
    margin-bottom: 24px;
    /* width: calc(100% + 28px); */
    /* margin-left: -12px; */
}

.cot-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0;
    position: relative;
}

.cot-timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    position: relative;
    z-index: 2;
}

/* Dots */
.cot-timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FAFAFA;
    /* Inactive line color */
    border: 2px solid #FAFAFA;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Inner dot for active/completed */
.cot-timeline-dot::after {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

/* Completed Icon/Style */
.cot-timeline-item.active .cot-timeline-dot {
    background: #F0E4B3;
    /* Lighter gold for background */
    border-color: #F0E4B3;
}

.cot-timeline-item.active .cot-timeline-dot::after {
    background: #fff;
    /* White inner dot */
}

/* Current Step Specifics (if needed) */
.cot-timeline-item.current .cot-timeline-dot {
    background: #fff;
    border: 2px solid #F0E4B3;
    width: 18px;
    height: 18px;
}

.cot-timeline-item.current .cot-timeline-dot::after {
    background: #EEDC9A;
    width: 8px;
    height: 8px;
}

/* Labels */
.cot-timeline-label {
    color: #A4A7AE;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: title;
    max-width: 80px;
}

.cot-timeline-item.current.active .cot-timeline-label {
    color: #0A0A0A;
}

/* Connecting Lines */
/* Connecting Lines - implemented via track */
.cot-timeline-track {
    position: absolute;
    top: 10px;
    /* Center of 24px dot minus half height (12 - 3 = 9... lets adjust slightly) */
    /* Dot is 24px. Center is 12px. Line is 6px. Top should be 12 - 3 = 9px. */
    top: 7px;
    left: 12px;
    /* Center of first dot */
    right: 12px;
    /* Center of last dot */
    height: 4px;
    background: #FAFAFA;
    z-index: 1;
    border-radius: 10px;
}

.cot-timeline::before {
    display: none;
    /* Remove old pseudo-element */
}

/* Progress Bar */
.cot-timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #EEDC9A;
    z-index: 2;
    /* Still below dots (z-index 2 on dots needs to be higher? Dots are z-index 2. Track z-index 1. Bar z-index 1? */
    /* Dots need to be above line. 
       .cot-timeline-item has z-index 2. 
       So track at z-index 1 is fine.
       Progress bar inside track... inherits z-index? 
       Actually track is z-index 1.
    */
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* Ensure dots are above lines */
.cot-timeline-item {
    z-index: 5;
}

/* Remove old line styles if present */
.cot-timeline-line {
    display: none;
}


/* Track Package Button */
.cot-track-package {
    margin-bottom: 0;
}

.custom-order-tracking-wrapper .cot-track-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: transparent;
    border: 1.5px solid #0A0A0A;
    border-radius: 60px;
    color: #0A0A0A;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1;
}

.cot-track-btn:hover {
    background: #0A0A0A;
    color: #fff;
}

.cot-track-btn svg path {
    stroke: #0A0A0A;
    ;
}

.cot-track-btn svg {
    width: 13px;
    height: 13px;
    stroke: #0A0A0A;
}

/* Contact Info */
.cot-contact-info {
    /* margin-bottom: 24px; */
    /* padding-bottom: 24px; */
    /* border-bottom: 1px solid #E8ECEE; */
}

.cot-section-title {
    color: #0A0A0A;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #0A0A0A;
    /* font-family: "Creato Display"; */
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
    /* 140% */
}

.cot-contatct-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 12px;
}

.cot-contact-name,
.cot-contact-email,
.cot-contact-phone {
    /* color: #55595B; */
    /* font-size: 14px; */
    margin: 0 0 8px 0;
    color: var(--Colors-Gray-500, #717680);
    /* font-family: "Creato Display"; */
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    /* 150% */
    margin-bottom: 0;
}

p.cot-contact-phone {
    margin-bottom: 0 !important;
}

/* Shipping Details */
.cot-shipping-details {
    margin-bottom: 24px;
    /* padding-bottom: 24px; */
    border-bottom: none;
}

.cot-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    color: var(--Colors-Gray-500, #717680);
    /* font-family: "Creato Display"; */
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    /* 150% */
    padding-bottom: 16px;
    border=b: \; border=b: \; border-bottom: saddlebrown;
    border-bottom: solid 1px #E8ECEE;
}

.cot-detail-row:last-child {
    margin-bottom: 0;
    border: none;
}

.cot-detail-label {
    color: inherit;
    font-size: inherit;
    flex-shrink: 0;
}

.cot-detail-value {
    color: #0A0A0A;
    font-size: inherit;
    /* font-weight: 500; */
    text-align: right;
}

/* Order Totals */
.cot-order-totals {
    padding: 20px;
    color: var(--Colors-Gray-500, #717680);
    /* font-family: "Creato Display"; */
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    /* 157.143% */
}

.cot-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cot-total-label {
    /* color: #55595B; */
    /* font-size: 14px; */
}

.cot-total-value {
    color: #0A0A0A;
    /* font-size: 14px; */
    /* font-weight: 500; */
}

.cot-total-final {
    padding-top: 12px;
    border-top: 1px solid #F8F8F8;
    margin-top: 4px;
    color: var(--Colors-Gray-500, #717680);
    /* font-family: "Creato Display"; */
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    /* 157.143% */
}

span.cot-detail-value.text-decoration {
    text-decoration: underline;
}



.cot-order-details .cot-row {

    gap: 12px;
    background: #fff;
    padding: 32px;
    border-radius: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .cot-title {
        font-size: 28px;
        line-height: 36px;
    }

    .cot-timeline {
        flex-wrap: wrap;
    }

    .cot-timeline-label {
        font-size: 10px;
    }
}