/* Ensure the tracker appears as a separate full-width section */
.cosm-status-tracker.admin {
    display: block !important;
    width: 100%;
    margin: 1rem 0;
    padding: 0;
    border: 1px solid #0073aa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
    visibility: visible !important;
}

/* Make order_data_column_container full-width and stack its children */
.order_data_column_container {
    display: block;
    width: 100%;
}

/* Make each order_data_column full-width */
.order_data_column {
    width: 100%;
    margin-bottom: 1rem;
}

.order_data_column:last-child {
    margin-bottom: 0;
}

/* Default styles for the tracker */
.cosm-status-tracker {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    width: 100%;
    display: block !important;
    visibility: visible !important;
}

.cosm-status-tracker h3 {
    margin: 0 0 1rem;
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0073aa;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cosm-status-tracker h4 {
    margin: 1rem 0 0.5rem;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 500;
}

/* Collapsible styles for admin tracker */
.cosm-status-tracker.admin details {
    width: 100%;
}

.cosm-status-tracker.admin summary {
    padding: 0.8rem 1.5rem;
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    border-bottom: 2px solid #0073aa;
    background: #f5f5f5;
    border-radius: 8px 8px 0 0;
    transition: background 0.3s ease;
}

.cosm-status-tracker.admin summary:hover {
    background: #e0e0e0;
}

.cosm-status-tracker.admin details[open] summary {
    background: #e0e0e0;
    border-bottom: none;
}

.cosm-status-tracker.admin details > *:not(summary) {
    padding: 1rem;
}

.tracker-steps {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    position: relative;
    gap: 1rem;
    align-items: flex-start;
}

.tracker-step {
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 0;
    padding: 0 0.5rem;
}

/* Common styles for both templates */
.tracker-step::before {
    content: '';
    position: absolute;
    left: -50%;
    right: 50%;
    height: 3px;
    z-index: 1;
}

.tracker-step:first-child::before {
    display: none;
}

/* Point & Line Template */
.tracker-steps.point_line .step-marker {
    margin: 0 auto 0.5rem;
    position: relative;
    z-index: 2;
    border: 2px solid #ffffff;
    border-radius: 50%;
    transition: background 0.3s ease;
}

/* Icon & Line Template */
.tracker-steps.icon_line .step-icon,
.tracker-steps.icon_line .step-fa-icon {
    margin: 0 auto 0.5rem;
    position: relative;
    z-index: 2;
    object-fit: contain;
}

.tracker-steps.icon_line .step-fa-icon {
    display: block;
    text-align: center;
}

.tracker-steps.icon_line .tracker-step.completed .step-icon,
.tracker-steps.icon_line .tracker-step.completed .step-fa-icon {
    opacity: 1;
}

.tracker-steps.icon_line .tracker-step.current .step-icon,
.tracker-steps.icon_line .tracker-step.current .step-fa-icon {
    animation: pulse 1.5s infinite;
}

.tracker-steps.icon_line .tracker-step:not(.completed):not(.current) .step-icon,
.tracker-steps.icon_line .tracker-step:not(.completed):not(.current) .step-fa-icon {
    opacity: 0.3;
}

.step-label {
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    line-height: 1.3;
    color: #333;
}

.step-date {
    font-size: 0.8rem;
    color: #666;
    min-height: 1.2rem;
    line-height: 1.3;
}

.tracker-history {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #e0e0e0;
}

.tracker-history ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tracker-history li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 0.3rem;
    padding: 0.8rem;
}

.tracker-history li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.history-status {
    font-weight: 500;
    flex: 1;
    min-width: 80px;
    font-size: 0.9rem;
    color: #333;
}

.history-date {
    color: #666;
    font-size: 0.8rem;
    min-width: 120px;
    text-align: right;
}

.history-admin {
    font-size: 0.75rem;
    color: #888;
    flex-basis: 100%;
    text-align: right;
    font-style: italic;
}

.cosm-payment-info {
    background: #ffffff;
    border: 1px solid #0073aa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cosm-payment-info h3 {
    margin: 0 0 1rem;
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0073aa;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cosm-payment-info .payment-details p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    color: #333;
}

.cosm-payment-info .payment-details p strong {
    display: inline-block;
    width: 120px;
    font-weight: 600;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

@media (max-width: 480px) {
    .cosm-status-tracker,
    .cosm-payment-info {
        padding: 0.8rem;
        margin: 0.8rem 0;
        border-radius: 6px;
    }

    .cosm-status-tracker.admin,
    .cosm-payment-info {
        padding: 0;
        margin: 0.8rem 0;
        border: 1px solid #0073aa;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .cosm-status-tracker.admin summary,
    .cosm-payment-info h3 {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .cosm-status-tracker.admin details > *:not(summary) {
        padding: 0.8rem;
    }

    .cosm-status-tracker h4 {
        font-size: 0.9rem;
    }

    .tracker-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin: 0.8rem 0;
    }

    .tracker-step {
        display: flex;
        align-items: center;
        width: 100%;
        margin-bottom: 0;
        padding: 0;
    }

    .step-label {
        font-size: 0.85rem;
        flex: 1;
    }

    .step-date {
        margin-left: 0.8rem;
        text-align: left;
        font-size: 0.75rem;
    }

    .tracker-history {
        margin-top: 0.8rem;
    }

    .tracker-history li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        padding: 0.5rem;
    }

    .history-status {
        font-size: 0.85rem;
    }

    .history-date {
        text-align: left;
        flex-basis: 100%;
        font-size: 0.75rem;
    }

    .history-admin {
        text-align: left;
        font-size: 0.7rem;
    }

    .cosm-payment-info .payment-details p {
        font-size: 0.85rem;
    }

    .cosm-payment-info .payment-details p strong {
        width: 100px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .cosm-status-tracker,
    .cosm-payment-info {
        padding: 1rem;
    }

    .cosm-status-tracker.admin,
    .cosm-payment-info {
        padding: 0;
        margin: 1rem 0;
    }

    .cosm-status-tracker.admin summary {
        padding: 0.8rem 1.2rem;
    }

    .cosm-status-tracker.admin details > *:not(summary) {
        padding: 1rem;
    }

    .tracker-steps {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tracker-step {
        flex: 1 1 45%;
        margin-bottom: 0.8rem;
    }

    .tracker-step::before {
        top: 0.6rem;
    }

    .history-date {
        text-align: right;
        flex-basis: auto;
    }

    .cosm-payment-info .payment-details p {
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cosm-status-tracker,
    .cosm-payment-info {
        padding: 1rem;
    }

    .cosm-status-tracker.admin,
    .cosm-payment-info {
        padding: 0;
        margin: 1rem 0;
    }

    .cosm-status-tracker.admin summary {
        padding: 0.8rem 1.5rem;
    }

    .cosm-status-tracker.admin details > *:not(summary) {
        padding: 1rem;
    }

    .tracker-steps {
        gap: 0.8rem;
    }

    .tracker-step {
        padding: 0 0.3rem;
    }
}

@media (min-width: 1025px) {
    .cosm-status-tracker,
    .cosm-payment-info {
        padding: 1rem;
    }

    .cosm-status-tracker.admin,
    .cosm-payment-info {
        padding: 0;
        margin: 1rem 0;
    }

    .cosm-status-tracker.admin summary {
        padding: 0.8rem 1.5rem;
    }

    .cosm-status-tracker.admin details > *:not(summary) {
        padding: 1rem;
    }

    .tracker-steps {
        gap: 1rem;
    }

    .tracker-step {
        padding: 0 0.5rem;
    }
}


















/* *******************************************new css add for new tracker********************* */


.cosm-status-tracker {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.cosm-status-tracker h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.tracker-steps {
    position: relative;
    padding: 20px 0;
}

.tracker-step {
    position: relative;
    z-index: 1;
}

.step-label {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.step-date {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    text-align: center;
}

.step-marker {
    border: 2px solid #28a745;
}

.tracker-step.current .step-marker {
    border-color: #007bff;
    background: #007bff;
}

.tracker-step.completed .step-marker {
    border-color: #28a745;
    background: #28a745;
}

.tracker-history h4 {
    font-size: 18px;
    color: #333;
    margin-top: 20px;
}

.tracker-history ul {
    list-style: none;
    padding: 0;
}

.tracker-history li {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.tracker-history .history-status {
    font-weight: bold;
}

.tracker-history .history-date {
    margin-left: 10px;
}

.tracker-history .history-admin {
    font-style: italic;
    color: #999;
}

@media (max-width: 480px) {
    .cosm-status-tracker .tracker-steps {
        flex-direction: column;
    }
    .tracker-step::before {
        display: none;
    }
    .step-label, .step-date {
        text-align: center;
    }
}