.wc-pst-section,
.wc-pst-public {
    margin-top: 24px;
}
.wc-pst-card,
.wc-pst-admin-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    margin: 0 0 20px;
    box-shadow: none;
}
.wc-pst-card h3,
.wc-pst-admin-card h3 {
    margin: 0 0 10px;
}
.wc-pst-muted {
    color: #6b7280;
}
.wc-pst-badge {
    display: inline-block;
    background: #16a34a;
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}
.wc-pst-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 14px 0;
}
.wc-pst-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 18px 0;
}
.wc-pst-step {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 10px 12px;
}
.wc-pst-step.is-done {
    background: #ecfdf5;
}
.wc-pst-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9ca3af;
    flex: 0 0 12px;
}
.wc-pst-step.is-done .wc-pst-step-dot {
    background: #16a34a;
}
.wc-pst-products ul {
    margin: 8px 0 0 18px;
}
.wc-pst-history {
    margin-top: 18px;
}
.wc-pst-history-list {
    max-height: 220px;
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    background: #fafafa;
}
.wc-pst-history-row + .wc-pst-history-row {
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
    padding-top: 8px;
}
.wc-pst-admin-wrap {
    display: grid;
    gap: 16px;
}
.wc-pst-public-form {
    display: grid;
    gap: 12px;
    max-width: 500px;
    margin-bottom: 20px;
}
.wc-pst-public-form input,
.wc-pst-public-form button,
.wc-pst-admin-card input,
.wc-pst-admin-card select,
.wc-pst-admin-card textarea {
    width: 100%;
}



.woocommerce-order-received .entry-title,
.woocommerce-order-received .woocommerce-notice--success.woocommerce-thankyou-order-received,
.woocommerce-order-received .woocommerce-thankyou-order-received,
.woocommerce-order-received .woocommerce-order > h2,
.woocommerce-order-received .woocommerce-order > p:first-of-type {
    display: none;
}

.woocommerce-order-received .woocommerce-order {
    display: grid;
    gap: 20px;
}

.wc-pst-thankyou-hero {
    background: linear-gradient(135deg, #07152f 0%, #0f1f43 100%);
    color: #fff;
    border-radius: 18px;
    padding: 28px 30px;
    margin: 0;
}

.wc-pst-thankyou-hero__eyebrow {
    font-size: 12px;
    letter-spacing: .08em;
    font-weight: 700;
    opacity: .82;
    margin-bottom: 10px;
}

.wc-pst-thankyou-hero__title {
    color: #fff;
    font-size: 28px;
    line-height: 1.15;
    margin: 0 0 10px;
    font-weight: 700;
}

.wc-pst-thankyou-hero__text,
.wc-pst-thankyou-hero__meta {
    margin: 0;
    color: rgba(255,255,255,.92);
    font-size: 14px;
    line-height: 1.6;
}

.wc-pst-thankyou-hero__meta {
    margin-top: 14px;
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    font-weight: 700;
}

.woocommerce-order-received ul.woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    overflow: hidden;
}

.woocommerce-order-received ul.woocommerce-order-overview li {
    margin: 0 !important;
    padding: 16px 18px !important;
    border-right: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
    background: #fff;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

.woocommerce-order-received ul.woocommerce-order-overview li:last-child {
    border-right: 0;
}

.woocommerce-order-received ul.woocommerce-order-overview li strong {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    color: #111827;
}

.woocommerce-order-received ul.woocommerce-order-overview li.woocommerce-order-overview__order.order {
    display: none;
}

.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details,
.woocommerce-order-received .wc-bacs-bank-details,
.woocommerce-order-received .woocommerce-order-downloads {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 0;
    margin-top: 0;
}

.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title,
.woocommerce-order-received .wc-bacs-bank-details-heading,
.woocommerce-order-received .woocommerce-order-downloads__title {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    padding: 18px 20px 12px;
    color: #111827;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.woocommerce-order-received table.shop_table,
.woocommerce-order-received table.shop_table td,
.woocommerce-order-received table.shop_table th {
    border-color: #d1d5db;
}

.woocommerce-order-received table.shop_table {
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}

.woocommerce-order-received table.shop_table th {
    background: #fff;
    color: #4b5563;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.woocommerce-order-received table.shop_table td,
.woocommerce-order-received table.shop_table th {
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.6;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot th,
.woocommerce-order-received .woocommerce-table--order-details tfoot td {
    background: #fff;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child td {
    background: #eceff3;
    font-weight: 800;
}

.woocommerce-order-received .woocommerce-customer-details address,
.woocommerce-order-received .wc-bacs-bank-details ul,
.woocommerce-order-received .wc-bacs-bank-details ol {
    margin: 0;
    background: #fff;
    border: 0;
    border-top: 1px solid #d1d5db;
    border-radius: 0 0 14px 14px;
    padding: 16px 20px 18px;
    line-height: 1.7;
    font-size: 14px;
    color: #111827;
}

.woocommerce-order-received .wc-bacs-bank-details li {
    margin: 0 0 8px;
    font-size: 14px;
}

.woocommerce-order-received .woocommerce-order > * + * {
    margin-top: 0 !important;
}

@media (max-width: 767px) {
    .wc-pst-thankyou-hero {
        padding: 22px 20px;
        border-radius: 16px;
    }

    .wc-pst-thankyou-hero__title {
        font-size: 24px;
    }

    .woocommerce-order-received ul.woocommerce-order-overview {
        grid-template-columns: 1fr;
    }

    .woocommerce-order-received ul.woocommerce-order-overview li {
        border-right: 0;
    }
}


.woocommerce-order-received .woocommerce-order {
    gap: 16px;
}

.woocommerce-order-received .wc-pst-thankyou-hero {
    background: #07152f !important;
    border-radius: 14px !important;
    padding: 24px 26px !important;
    box-shadow: none !important;
}

.woocommerce-order-received .wc-pst-thankyou-hero__eyebrow {
    font-size: 12px !important;
    letter-spacing: .06em !important;
    margin-bottom: 10px !important;
}

.woocommerce-order-received .wc-pst-thankyou-hero__title {
    font-size: 24px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
}

.woocommerce-order-received .wc-pst-thankyou-hero__text {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.woocommerce-order-received .wc-pst-thankyou-hero__meta {
    font-size: 12px !important;
    line-height: 1.4 !important;
    padding: 8px 12px !important;
    margin-top: 14px !important;
    background: rgba(255,255,255,.12) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

.woocommerce-order-received ul.woocommerce-order-overview {
    border: 1px solid #d1d5db !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    overflow: hidden !important;
    background: #fff !important;
}

.woocommerce-order-received ul.woocommerce-order-overview li {
    padding: 14px 16px !important;
    min-height: 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: .02em !important;
}

.woocommerce-order-received ul.woocommerce-order-overview li strong {
    display: block !important;
    margin-top: 6px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-weight: 700 !important;
    color: #111827 !important;
    word-break: break-word !important;
}

.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details,
.woocommerce-order-received .wc-bacs-bank-details,
.woocommerce-order-received .woocommerce-order-downloads {
    border: 1px solid #d1d5db !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    background: #fff !important;
    overflow: hidden !important;
    border-top: 1px solid #d1d5db !important;
}

.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title,
.woocommerce-order-received .wc-bacs-bank-details-heading,
.woocommerce-order-received .woocommerce-order-downloads__title {
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .02em !important;
    color: #111827 !important;
    padding: 18px 20px 12px !important;
    margin: 0 !important;
}

.woocommerce-order-received table.shop_table,
.woocommerce-order-received table.shop_table_responsive {
    margin: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-top: 1px solid #d1d5db !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.woocommerce-order-received table.shop_table th,
.woocommerce-order-received table.shop_table_responsive th {
    font-size: 12px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #4b5563 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    background: #fff !important;
    padding: 14px 16px !important;
}

.woocommerce-order-received table.shop_table td,
.woocommerce-order-received table.shop_table_responsive td {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #111827 !important;
    padding: 14px 16px !important;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot th,
.woocommerce-order-received .woocommerce-table--order-details tfoot td {
    background: #fff !important;
    font-size: 14px !important;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child td {
    background: #fff !important;
    font-weight: 800 !important;
}

.woocommerce-order-received .woocommerce-customer-details address {
    padding: 16px 20px 18px !important;
    border-top: 1px solid #d1d5db !important;
    background: #fff !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #111827 !important;
    font-style: normal !important;
}

.woocommerce-order-received .wc-bacs-bank-details > p {
    margin: 0 !important;
    padding: 0 20px 12px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #111827 !important;
}

.woocommerce-order-received .wc-bacs-bank-details ul,
.woocommerce-order-received .wc-bacs-bank-details ol {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-top: 1px solid #d1d5db !important;
    border-radius: 0 !important;
    background: #fff !important;
}

.woocommerce-order-received .wc-bacs-bank-details li {
    margin: 0 !important;
    padding: 12px 20px !important;
    border-top: 1px solid #d1d5db !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #111827 !important;
}

.woocommerce-order-received .wc-bacs-bank-details li:first-child {
    border-top: 0 !important;
}

.woocommerce-order-received .wc-bacs-bank-details li strong {
    color: #6b7280 !important;
    font-weight: 400 !important;
}

@media (max-width: 767px) {
    .woocommerce-order-received .wc-pst-thankyou-hero {
        padding: 22px 20px !important;
        border-radius: 14px !important;
    }
    .woocommerce-order-received .wc-pst-thankyou-hero__title {
        font-size: 22px !important;
    }
    .woocommerce-order-received ul.woocommerce-order-overview li strong {
        font-size: 14px !important;
    }
}

/* Thank you page - email-like layout */
.woocommerce-order-received ul.woocommerce-order-overview,
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details,
.woocommerce-order-received .wc-bacs-bank-details,
.woocommerce-order-received .woocommerce-order-downloads {
    display: none !important;
}

.woocommerce-order-received .woocommerce-order {
    display: block !important;
}

.woocommerce-order-received .woocommerce-order > * + * {
    margin-top: 0 !important;
}

.woocommerce-order-received .wc-pst-thankyou-hero {
    background: #07152f !important;
    border-radius: 8px !important;
    padding: 24px 28px !important;
    margin: 0 0 18px !important;
    box-shadow: none !important;
}

.woocommerce-order-received .wc-pst-thankyou-hero__eyebrow {
    font-size: 12px !important;
    line-height: 1.4 !important;
    letter-spacing: .06em !important;
    margin-bottom: 10px !important;
    color: #cbd5e1 !important;
}

.woocommerce-order-received .wc-pst-thankyou-hero__title {
    color: #fff !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
}

.woocommerce-order-received .wc-pst-thankyou-hero__text {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #e5e7eb !important;
    margin: 0 !important;
}

.woocommerce-order-received .wc-pst-thankyou-hero__meta {
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin-top: 14px !important;
    padding: 8px 12px !important;
    color: #ffffff !important;
    background: rgba(255,255,255,.12) !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    box-shadow: none !important;
}

.woocommerce-order-received .wc-pst-thankyou-page {
    display: grid;
    gap: 18px;
}

.woocommerce-order-received .wc-pst-thankyou-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.woocommerce-order-received .wc-pst-overview-item {
    padding: 16px;
    border-left: 1px solid #e5e7eb;
}

.woocommerce-order-received .wc-pst-overview-item:first-child {
    border-left: 0;
}

.woocommerce-order-received .wc-pst-overview-item__label {
    font-size: 12px;
    line-height: 1.4;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: 6px;
}

.woocommerce-order-received .wc-pst-overview-item__value {
    font-size: 15px;
    line-height: 1.5;
    color: #111827;
    font-weight: 700;
    word-break: break-word;
}

.woocommerce-order-received .wc-pst-thankyou-block {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.woocommerce-order-received .wc-pst-thankyou-block__title {
    padding: 14px 16px 10px;
    color: #111827;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    text-transform: uppercase;
}

.woocommerce-order-received .wc-pst-info-table,
.woocommerce-order-received .wc-pst-summary-table,
.woocommerce-order-received .wc-pst-totals-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin: 0;
}

.woocommerce-order-received .wc-pst-info-table__label,
.woocommerce-order-received .wc-pst-info-table__value,
.woocommerce-order-received .wc-pst-summary-table th,
.woocommerce-order-received .wc-pst-summary-table td,
.woocommerce-order-received .wc-pst-totals-table td {
    padding: 10px 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #111827;
    border-top: 1px solid #e5e7eb;
}

.woocommerce-order-received .wc-pst-info-table tbody tr:first-child td,
.woocommerce-order-received .wc-pst-summary-table thead th,
.woocommerce-order-received .wc-pst-totals-table tbody tr:first-child td {
    border-top: 1px solid #e5e7eb;
}

.woocommerce-order-received .wc-pst-info-table__label {
    width: 140px;
    color: #6b7280;
    vertical-align: top;
}

.woocommerce-order-received .wc-pst-summary-table thead th {
    background: #fff;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.woocommerce-order-received .wc-pst-summary-table thead th:nth-child(2),
.woocommerce-order-received .wc-pst-summary-table tbody td:nth-child(2) {
    text-align: center;
    width: 110px;
}

.woocommerce-order-received .wc-pst-summary-table thead th:nth-child(3),
.woocommerce-order-received .wc-pst-summary-table tbody td:nth-child(3) {
    text-align: right;
    width: 140px;
}

.woocommerce-order-received .wc-pst-summary-table__product-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce-order-received .wc-pst-summary-table__image,
.woocommerce-order-received .wc-pst-summary-table__placeholder {
    width: 54px;
    height: 54px;
    border-radius: 6px;
    background: #f3f4f6;
    object-fit: cover;
    flex: 0 0 54px;
}

.woocommerce-order-received .wc-pst-summary-table__name {
    color: #111827;
}

.woocommerce-order-received .wc-pst-thankyou-totals {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.woocommerce-order-received .wc-pst-totals-table td:first-child {
    color: #6b7280;
}

.woocommerce-order-received .wc-pst-totals-table td:last-child {
    text-align: right;
}

.woocommerce-order-received .wc-pst-totals-table tr.is-total td {
    color: #111827;
    font-weight: 800;
}

.woocommerce-order-received .wc-pst-thankyou-note {
    margin: -2px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

@media (max-width: 767px) {
    .woocommerce-order-received .wc-pst-thankyou-hero {
        padding: 22px 20px !important;
    }

    .woocommerce-order-received .wc-pst-thankyou-hero__title {
        font-size: 22px !important;
    }

    .woocommerce-order-received .wc-pst-thankyou-overview {
        grid-template-columns: 1fr;
    }

    .woocommerce-order-received .wc-pst-overview-item {
        border-left: 0;
        border-top: 1px solid #e5e7eb;
    }

    .woocommerce-order-received .wc-pst-overview-item:first-child {
        border-top: 0;
    }

    .woocommerce-order-received .wc-pst-info-table__label,
    .woocommerce-order-received .wc-pst-info-table__value {
        display: block;
        width: 100%;
    }

    .woocommerce-order-received .wc-pst-summary-table__product-wrap {
        gap: 10px;
    }

    .woocommerce-order-received .wc-pst-summary-table th,
    .woocommerce-order-received .wc-pst-summary-table td,
    .woocommerce-order-received .wc-pst-totals-table td,
    .woocommerce-order-received .wc-pst-info-table__label,
    .woocommerce-order-received .wc-pst-info-table__value {
        padding: 10px 12px;
    }
}


/* Thank you page refined to match email blocks */
.wc-pst-thankyou-page {
    display: grid;
    gap: 24px;
}

.wc-pst-thankyou-hero {
    background: #07152f;
    color: #fff;
    border-radius: 8px;
    padding: 24px 28px;
    margin: 0;
    box-shadow: none;
}

.wc-pst-thankyou-hero__eyebrow {
    font-size: 12px;
    letter-spacing: .04em;
    font-weight: 700;
    margin-bottom: 10px;
    opacity: .92;
}

.wc-pst-thankyou-hero__title {
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 8px;
    font-weight: 700;
}

.wc-pst-thankyou-hero__text {
    margin: 0;
    color: rgba(255,255,255,.92);
    font-size: 13px;
    line-height: 1.6;
}

.wc-pst-thankyou-hero__meta {
    margin-top: 14px;
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.wc-pst-thankyou-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.wc-pst-overview-item {
    padding: 16px 18px;
    border-right: 1px solid #d1d5db;
}

.wc-pst-overview-item:last-child {
    border-right: 0;
}

.wc-pst-overview-item__label {
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: 8px;
}

.wc-pst-overview-item__value {
    font-size: 13px;
    line-height: 1.5;
    color: #111827;
    font-weight: 700;
    word-break: break-word;
}

.wc-pst-thankyou-section {
    display: grid;
    gap: 10px;
}

.wc-pst-thankyou-section__title {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
}

.wc-pst-thankyou-block,
.wc-pst-thankyou-totals {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
}

.wc-pst-info-table,
.wc-pst-summary-table,
.wc-pst-totals-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.wc-pst-info-table td,
.wc-pst-summary-table td,
.wc-pst-summary-table th,
.wc-pst-totals-table td {
    border-top: 1px solid #d1d5db;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #111827;
    vertical-align: middle;
}

.wc-pst-info-table tbody tr:first-child td,
.wc-pst-summary-table thead + tbody tr:first-child td,
.wc-pst-totals-table tbody tr:first-child td {
    border-top: 0;
}

.wc-pst-info-table__label {
    width: 150px;
    color: #6b7280;
    white-space: nowrap;
}

.wc-pst-info-table__value {
    font-weight: 400;
}

.wc-pst-summary-table th {
    text-align: left;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.wc-pst-summary-table th:nth-child(2),
.wc-pst-summary-table td:nth-child(2),
.wc-pst-summary-table th:nth-child(3),
.wc-pst-summary-table td:nth-child(3) {
    text-align: center;
}

.wc-pst-summary-table td:nth-child(3),
.wc-pst-summary-table th:nth-child(3) {
    text-align: right;
}

.wc-pst-summary-table__product-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wc-pst-summary-table__image,
.wc-pst-summary-table__placeholder {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background: #f3f4f6;
    object-fit: cover;
    flex: 0 0 56px;
}

.wc-pst-summary-table__name {
    font-size: 13px;
    line-height: 1.5;
    color: #111827;
}

.wc-pst-summary-table__qty,
.wc-pst-summary-table__subtotal {
    white-space: nowrap;
}

.wc-pst-totals-table td:first-child {
    color: #4b5563;
}

.wc-pst-totals-table td:last-child {
    text-align: right;
    color: #111827;
}

.wc-pst-totals-table tr.is-total td {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

@media (max-width: 767px) {
    .wc-pst-thankyou-hero {
        padding: 20px;
    }

    .wc-pst-thankyou-hero__title {
        font-size: 18px;
    }

    .wc-pst-thankyou-overview {
        grid-template-columns: 1fr;
    }

    .wc-pst-overview-item {
        border-right: 0;
        border-top: 1px solid #d1d5db;
    }

    .wc-pst-overview-item:first-child {
        border-top: 0;
    }

    .wc-pst-info-table,
    .wc-pst-info-table tbody,
    .wc-pst-info-table tr,
    .wc-pst-info-table td {
        display: block;
        width: 100%;
    }

    .wc-pst-info-table td {
        padding: 10px 14px;
    }

    .wc-pst-info-table__label {
        border-top: 1px solid #d1d5db;
        padding-bottom: 0;
        width: 100%;
    }

    .wc-pst-info-table tbody tr:first-child .wc-pst-info-table__label {
        border-top: 0;
    }

    .wc-pst-info-table__value {
        border-top: 0;
        padding-top: 4px;
    }

    .wc-pst-summary-table__product-wrap {
        gap: 12px;
    }

    .wc-pst-summary-table__image,
    .wc-pst-summary-table__placeholder {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
}


/* Thank you page alignment with email layout */
.woocommerce-order-received .wc-pst-thankyou-page {
    gap: 16px;
}

.woocommerce-order-received .wc-pst-thankyou-section__title {
    padding: 0 !important;
    margin: 0 0 10px !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .02em !important;
    color: #111827 !important;
}

.woocommerce-order-received .wc-pst-thankyou-block,
.woocommerce-order-received .wc-pst-thankyou-totals {
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
}

.woocommerce-order-received .wc-pst-info-table,
.woocommerce-order-received .wc-pst-summary-table,
.woocommerce-order-received .wc-pst-totals-table {
    width: 100%;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    overflow: hidden;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.woocommerce-order-received .wc-pst-info-table td,
.woocommerce-order-received .wc-pst-info-table th,
.woocommerce-order-received .wc-pst-summary-table td,
.woocommerce-order-received .wc-pst-summary-table th,
.woocommerce-order-received .wc-pst-totals-table td,
.woocommerce-order-received .wc-pst-totals-table th {
    border: 0 !important;
    box-shadow: none !important;
}

.woocommerce-order-received .wc-pst-info-table tbody tr + tr td,
.woocommerce-order-received .wc-pst-summary-table tbody tr + tr td,
.woocommerce-order-received .wc-pst-totals-table tbody tr + tr td {
    border-top: 1px solid #e5e7eb !important;
}

.woocommerce-order-received .wc-pst-info-table__label,
.woocommerce-order-received .wc-pst-info-table__value,
.woocommerce-order-received .wc-pst-summary-table th,
.woocommerce-order-received .wc-pst-summary-table td,
.woocommerce-order-received .wc-pst-totals-table td {
    padding: 12px 16px !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.woocommerce-order-received .wc-pst-info-table__label {
    width: 150px !important;
    color: #6b7280 !important;
    border-right: 1px solid #e5e7eb !important;
    vertical-align: top !important;
}

.woocommerce-order-received .wc-pst-summary-table thead th {
    background: #fff !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.woocommerce-order-received .wc-pst-summary-table thead th:nth-child(2),
.woocommerce-order-received .wc-pst-summary-table tbody td:nth-child(2) {
    text-align: center !important;
    width: 110px !important;
}

.woocommerce-order-received .wc-pst-summary-table thead th:nth-child(3),
.woocommerce-order-received .wc-pst-summary-table tbody td:nth-child(3) {
    text-align: right !important;
    width: 140px !important;
}

.woocommerce-order-received .wc-pst-summary-table__product-wrap {
    gap: 14px !important;
}

.woocommerce-order-received .wc-pst-summary-table__image,
.woocommerce-order-received .wc-pst-summary-table__placeholder {
    width: 56px !important;
    height: 56px !important;
    border-radius: 6px !important;
    background: #f3f4f6 !important;
    flex: 0 0 56px !important;
}

.woocommerce-order-received .wc-pst-totals-table td:first-child {
    color: #6b7280 !important;
}

.woocommerce-order-received .wc-pst-totals-table td:last-child {
    text-align: right !important;
}

.woocommerce-order-received .wc-pst-totals-table tr.is-total td {
    color: #111827 !important;
    font-weight: 800 !important;
    font-size: 14px !important;
}

.woocommerce-order-received .wc-pst-thankyou-totals {
    margin-top: 12px !important;
}


/* Thank you page final cleanup */
.woocommerce-order-received .wc-pst-thankyou-page {
    gap: 24px !important;
}

.woocommerce-order-received .wc-pst-thankyou-section {
    margin: 0 !important;
}

.woocommerce-order-received .wc-pst-thankyou-section__title {
    margin: 0 0 14px !important;
}

.woocommerce-order-received .wc-pst-thankyou-block,
.woocommerce-order-received .wc-pst-thankyou-totals {
    margin: 0 !important;
}

.woocommerce-order-received .wc-pst-info-table,
.woocommerce-order-received .wc-pst-summary-table,
.woocommerce-order-received .wc-pst-totals-table,
.woocommerce-order-received .wc-pst-info-table tbody,
.woocommerce-order-received .wc-pst-summary-table tbody,
.woocommerce-order-received .wc-pst-totals-table tbody,
.woocommerce-order-received .wc-pst-info-table tr,
.woocommerce-order-received .wc-pst-summary-table tr,
.woocommerce-order-received .wc-pst-totals-table tr,
.woocommerce-order-received .wc-pst-info-table td,
.woocommerce-order-received .wc-pst-summary-table td,
.woocommerce-order-received .wc-pst-summary-table th,
.woocommerce-order-received .wc-pst-totals-table td {
    background: #fff !important;
}

.woocommerce-order-received .wc-pst-summary-table tbody tr:nth-child(even) td,
.woocommerce-order-received .wc-pst-summary-table tbody tr:nth-child(odd) td,
.woocommerce-order-received .wc-pst-info-table tbody tr:nth-child(even) td,
.woocommerce-order-received .wc-pst-info-table tbody tr:nth-child(odd) td,
.woocommerce-order-received .wc-pst-totals-table tbody tr:nth-child(even) td,
.woocommerce-order-received .wc-pst-totals-table tbody tr:nth-child(odd) td {
    background: #fff !important;
}

.woocommerce-order-received .wc-pst-info-table__label {
    background: #fff !important;
}

.woocommerce-order-received .wc-pst-summary-table tbody td,
.woocommerce-order-received .wc-pst-info-table tbody td,
.woocommerce-order-received .wc-pst-totals-table tbody td {
    vertical-align: middle !important;
}

.woocommerce-order-received .wc-bacs-bank-details,
.woocommerce-order-received .woocommerce-bacs-bank-details,
.woocommerce-order-received .wc-bacs-bank-details-heading,
.woocommerce-order-received .woocommerce-bacs-bank-details-heading,
.woocommerce-order-received .wc-bacs-bank-details-account-name,
.woocommerce-order-received .wc-bacs-bank-details-account-name ~ ul,
.woocommerce-order-received .wc-bacs-bank-details-account-name ~ ol {
    display: none !important;
}


/* Shipment tracking UI refinement */
.wc-pst-section {
    margin-top: 32px;
}

.wc-pst-section > h2 {
    margin: 0 0 6px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #111827 !important;
    text-transform: uppercase !important;
    letter-spacing: .02em !important;
}

.wc-pst-section > .wc-pst-muted {
    margin: 0 0 18px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #6b7280 !important;
}

.wc-pst-shipment-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 18px;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
}

.wc-pst-shipment-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 16px 20px 10px;
}

.wc-pst-shipment-card__eyebrow {
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #111827;
}

.wc-pst-shipment-card__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #111827;
}

.wc-pst-shipment-card__status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.wc-pst-shipment-card__status-label,
.wc-pst-meta-item__label,
.wc-pst-block-title {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.wc-pst-shipment-card__status-label {
    color: #6b7280;
}

.wc-pst-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
}

.wc-pst-shipment-card__meta {
    gap: 0;
    margin: 0;
    border-top: 1px solid #e5e7eb;
}

.wc-pst-meta-item {
    border: 0;
    border-left: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 14px 20px;
    background: #fff;
}

.wc-pst-meta-item:first-child {
    border-left: 0;
}

.wc-pst-meta-item__label {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
}

.wc-pst-meta-item__value {
    display: block;
    font-size: 13px;
    line-height: 1.6;
    color: #111827;
    font-weight: 600;
}

.wc-pst-shipment-card__actions {
    margin: 0;
    padding: 16px 20px 0;
}

.wc-pst-track-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    background: #07152f;
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.wc-pst-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin: 16px 20px 0;
}

.wc-pst-step {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.wc-pst-step.is-done {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.wc-pst-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    flex: 0 0 8px;
}

.wc-pst-step.is-done .wc-pst-step-dot {
    background: #16a34a;
}

.wc-pst-step-label {
    font-size: 13px;
    line-height: 1.45;
    color: #374151;
}

.wc-pst-products,
.wc-pst-history {
    margin-top: 16px;
    padding: 0 20px 0;
}

.wc-pst-products {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.wc-pst-products-list {
    margin: 8px 0 0;
    display: grid;
    gap: 0;
}

.wc-pst-products-list__item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
}

.wc-pst-products-list__item:first-child {
    padding-top: 0;
    border-top: 0;
}

.wc-pst-products-list__media {
    width: 56px;
}

.wc-pst-products-list__image,
.wc-pst-products-list__placeholder {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: #f3f4f6;
}

.wc-pst-products-list__placeholder {
    border: 1px solid #e5e7eb;
}

.wc-pst-products-list__image-link,
.wc-pst-products-list__name {
    text-decoration: none;
}

.wc-pst-products-list__content {
    min-width: 0;
}

.wc-pst-products-list__name {
    display: inline-block;
    font-size: 13px;
    line-height: 1.55;
    color: #111827;
    font-weight: 500;
}

.wc-pst-products-list__image-link:hover .wc-pst-products-list__image,
.wc-pst-products-list__name:hover {
    opacity: .9;
}

.wc-pst-history {
    padding-bottom: 20px;
}

.wc-pst-history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.wc-pst-history-table th,
.wc-pst-history-table td {
    padding: 12px 14px;
    border-top: 1px solid #e5e7eb;
    border-left: 0 !important;
    border-right: 0 !important;
    text-align: left;
    font-size: 13px;
    line-height: 1.55;
    vertical-align: top;
    background: #fff;
}

.wc-pst-history-table thead th {
    border-top: 0;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.wc-pst-history-table tbody td {
    border-top: 0;
}

.wc-pst-history-table tbody tr + tr td {
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 767px) {
    .wc-pst-shipment-card__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .wc-pst-shipment-card__status {
        align-items: flex-start;
    }

    .wc-pst-shipment-card__meta {
        grid-template-columns: 1fr;
    }

    .wc-pst-meta-item {
        border-left: 0;
        border-top: 1px solid #e5e7eb;
    }

    .wc-pst-meta-item:first-child {
        border-top: 0;
    }

    .wc-pst-timeline {
        grid-template-columns: 1fr;
    }

    .wc-pst-history-table,
    .wc-pst-history-table thead,
    .wc-pst-history-table tbody,
    .wc-pst-history-table tr,
    .wc-pst-history-table th,
    .wc-pst-history-table td {
        display: block;
        width: 100%;
    }

    .wc-pst-history-table thead {
        display: none;
    }

    .wc-pst-history-table tr {
        border-top: 1px solid #e5e7eb;
        padding: 8px 0;
    }

    .wc-pst-history-table td {
        border: 0;
        padding: 6px 0;
    }
}

/* View order compact summary */
.woocommerce-account .woocommerce-MyAccount-content p.order-info,
.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary {
    font-size: 13px;
    line-height: 1.6;
    color: #111827;
}

.woocommerce-account .woocommerce-MyAccount-content p.order-info {
    margin: 0 0 4px;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary {
    margin: 0 0 18px;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary p {
    margin: 0 0 4px;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary__breakdown {
    color: #111827;
    font-size: inherit;
    line-height: inherit;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details > h2,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details > table.shop_table.order_details,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details {
    display: none !important;
}



/* v3.1.21.8 compact view-order summary + softer history table */
.woocommerce-account .woocommerce-MyAccount-content p.order-info,
.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary,
.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary p,
.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary__breakdown {
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #111827;
}

.woocommerce-account .woocommerce-MyAccount-content p.order-info {
    margin: 0 0 6px !important;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary {
    margin: 0 0 18px !important;
    font-weight: 400 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary p {
    margin: 0 0 6px !important;
    font-weight: 400 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary p:last-child {
    margin-bottom: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content p.order-info strong,
.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary strong,
.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary__breakdown strong {
    font-size: inherit !important;
    line-height: inherit !important;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary__breakdown {
    display: inline !important;
    font-weight: 400 !important;
}

.wc-pst-history {
    padding-bottom: 18px;
}

.wc-pst-history-table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin-top: 8px;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    background: #fff;
}

.wc-pst-history-table thead th,
.wc-pst-history-table tbody td {
    background: #fff !important;
}

.wc-pst-history-table thead th {
    padding: 11px 14px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-left: 0 !important;
    border-right: 0 !important;
}

.wc-pst-history-table tbody td {
    padding: 11px 14px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-left: 0 !important;
    border-right: 0 !important;
}

.wc-pst-history-table tbody tr:last-child td {
    border-bottom: 1px solid #e5e7eb !important;
}

/* v2.0 shipment tracking UX refresh */
.wc-pst-badge--danger {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 1px solid #dc2626 !important;
}

.woocommerce-account .woocommerce-MyAccount-content p.order-info,
.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary,
.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary__line,
.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary__label,
.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary__value,
.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary__breakdown {
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #111827;
}

.woocommerce-account .woocommerce-MyAccount-content p.order-info,
.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary__line {
    margin: 0 0 4px !important;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary {
    margin: 0 0 18px !important;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary__line:last-child {
    margin-bottom: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary__label {
    font-weight: 700;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary__value,
.woocommerce-account .woocommerce-MyAccount-content .wc-pst-view-order-summary__breakdown {
    font-weight: 400;
}

.woocommerce-MyAccount-content p {
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #111827;
    margin-bottom: 8px;
}

.wc-pst-stepper {
    --pst-node-size: 14px;
    --pst-current-size: 22px;
    --pst-track-height: 4px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin: 20px 20px 0;
    align-items: start;
}

.wc-pst-stepper::after {
    content: "";
    position: absolute;
    top: -12px;
    left: -18px;
    width: min(100%, calc(var(--pst-highlight-desktop, 0%) + 36px));
    height: 56px;
    background: #eaf8ef;
    border-radius: 12px;
    z-index: 0;
    pointer-events: none;
}

.wc-pst-stepper.is-cancelled-flow::after {
    display: none;
}

.wc-pst-stepper__track,
.wc-pst-stepper__progress {
    position: absolute;
    top: 6px;
    left: calc(var(--pst-node-size) / 2);
    right: calc(var(--pst-node-size) / 2);
    height: var(--pst-track-height);
    border-radius: 999px;
}

.wc-pst-stepper__track {
    background: #dbe3ec;
}

.wc-pst-stepper__progress {
    width: var(--pst-progress-desktop, 0%);
    background: #58c27d;
}

.wc-pst-stepper__progress--mobile {
    display: none;
}

.wc-pst-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 0 8px;
    text-align: center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.wc-pst-step__node {
    width: var(--pst-node-size);
    height: var(--pst-node-size);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    color: #ffffff;
    position: relative;
    background: #cfd6df;
    border: 0;
    transition: all .2s ease;
}

.wc-pst-step__node::before {
    display: none;
}

.wc-pst-step__node svg {
    width: 12px;
    height: 12px;
    display: none;
}

.wc-pst-step__label {
    font-size: 12px;
    line-height: 1.35;
    color: #1f2937;
    font-weight: 500;
    max-width: 120px;
}

.wc-pst-step.is-complete .wc-pst-step__node {
    background: #17a34a;
}

.wc-pst-step.is-complete .wc-pst-step__node svg {
    display: none !important;
}

.wc-pst-step.is-complete .wc-pst-step__label {
    color: #111827;
    font-weight: 600;
}

.wc-pst-step.is-current .wc-pst-step__node {
    width: var(--pst-current-size);
    height: var(--pst-current-size);
    background: #17a34a;
    box-shadow: 0 0 0 4px #d9f3e1;
}

.wc-pst-step.is-current .wc-pst-step__node svg {
    display: block;
}

.wc-pst-step.is-current .wc-pst-step__label {
    color: #111827;
    font-weight: 700;
}

.wc-pst-step.is-pending .wc-pst-step__node {
    width: 12px;
    height: 12px;
    margin-top: 2px;
    background: #cfd6df;
}

.wc-pst-step.is-pending .wc-pst-step__label {
    color: #6b7280;
}

.wc-pst-step.is-cancelled .wc-pst-step__node {
    width: 22px;
    height: 22px;
    background: #dc2626;
    box-shadow: 0 0 0 4px #fde2e2;
}

.wc-pst-step.is-cancelled .wc-pst-step__label {
    color: #b42318;
    font-weight: 600;
}
.wc-pst-status-note {
    margin: 14px 20px 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.55;
}

.wc-pst-status-note--cancelled {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.wc-pst-products,
.wc-pst-history {
    margin-top: 18px;
    padding: 0 20px 0;
}

.wc-pst-products {
    border-top: 1px solid #e5e7eb;
    padding-top: 18px;
}

.wc-pst-products-list__item {
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
}

.wc-pst-products-list__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wc-pst-products-list__name {
    font-weight: 600;
}

.wc-pst-products-list__qty,
.wc-pst-products-list__note {
    font-size: 12px;
    line-height: 1.45;
    color: #4b5563;
}

.wc-pst-products-list__note {
    color: #991b1b;
}

.wc-pst-history-table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    width: 100%;
    margin-top: 8px;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    background: #fff;
}

.wc-pst-history-table thead th,
.wc-pst-history-table tbody td {
    padding: 12px 14px !important;
    background: #fff !important;
    border-left: 0 !important;
    border-right: 0 !important;
}

.wc-pst-history-table thead th {
    border-top: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.wc-pst-history-table tbody td {
    border-top: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    font-size: 13px;
    line-height: 1.55;
}
@media (max-width: 767px) {
    .wc-pst-stepper {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-top: 18px;
    }

    .wc-pst-stepper__track,
    .wc-pst-stepper__progress {
        display: none;
    }

    .wc-pst-stepper__track,
    .wc-pst-stepper__progress--mobile {
        display: block;
        top: 2px;
        bottom: 2px;
        left: 6px;
        right: auto;
        width: 4px;
        height: auto;
        border-radius: 999px;
    }

    .wc-pst-stepper__track {
        background: #dbe3ec;
    }

    .wc-pst-stepper__progress--mobile {
        background: #58c27d;
    }

    .wc-pst-step {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
        text-align: left;
        min-height: 0;
        padding: 0;
    }

    .wc-pst-step.is-current .wc-pst-step__node,
    .wc-pst-step.is-cancelled .wc-pst-step__node {
        margin-left: -3px;
    }

    .wc-pst-step__label {
        max-width: none;
        font-size: 13px;
        margin-top: 0;
    }
}



/* v2.0.6 stepper polish */
.wc-pst-stepper {
    --pst-node-size: 12px;
    --pst-current-size: 20px;
    --pst-track-height: 4px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 18px 20px 0;
    align-items: start;
    padding: 10px 12px 12px;
    border-radius: 0;
}

.wc-pst-stepper.is-normal-flow::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: min(100%, calc(var(--pst-highlight-desktop, 0%) + 40px));
    height: 58px;
    background: #eaf8ef;
    border-radius: 0;
    z-index: 0;
    pointer-events: none;
}

.wc-pst-stepper.is-cancelled-flow::after {
    display: none;
}

.wc-pst-stepper__track,
.wc-pst-stepper__progress {
    position: absolute;
    top: 19px;
    left: calc(0px + var(--pst-node-size) / 2);
    right: calc(0px + var(--pst-node-size) / 2);
    height: var(--pst-track-height);
    border-radius: 999px;
}

.wc-pst-stepper__track {
    background: #d7dee8;
}

.wc-pst-stepper__progress {
    background: #58c27d;
}

.wc-pst-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 0 8px;
    text-align: center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.wc-pst-step__node {
    width: var(--pst-node-size);
    height: var(--pst-node-size);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    color: #ffffff;
    position: relative;
    background: #cfd6df;
    border: 0;
    box-shadow: none;
    transition: all .18s ease;
}

.wc-pst-step__node svg {
    width: 11px;
    height: 11px;
    display: none;
}

.wc-pst-step__label {
    font-size: 13px;
    line-height: 1.25;
    color: #111827;
    font-weight: 600;
    max-width: 120px;
}

.wc-pst-step.is-complete .wc-pst-step__node {
    background: #17a34a;
}

.wc-pst-step.is-complete .wc-pst-step__label {
    color: #111827;
    font-weight: 600;
}

.wc-pst-step.is-current .wc-pst-step__node {
    width: var(--pst-current-size);
    height: var(--pst-current-size);
    background: #17a34a;
    box-shadow: none;
}

.wc-pst-step.is-current .wc-pst-step__node svg {
    display: block;
}

.wc-pst-step.is-current .wc-pst-step__label {
    color: #111827;
    font-weight: 700;
}

.wc-pst-step.is-pending .wc-pst-step__node {
    width: 12px;
    height: 12px;
    margin-top: 0;
    background: #cfd6df;
}

.wc-pst-step.is-pending .wc-pst-step__label {
    color: #111827;
    font-weight: 500;
}

.wc-pst-step.is-cancelled .wc-pst-step__node {
    width: 20px;
    height: 20px;
    background: #dc2626;
    box-shadow: none;
}

.wc-pst-step.is-cancelled .wc-pst-step__node svg {
    display: block;
}

.wc-pst-step.is-cancelled .wc-pst-step__label {
    color: #b42318;
    font-weight: 700;
}

@media (max-width: 768px) {
    .wc-pst-stepper {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0;
        margin: 18px 20px 0;
    }

    .wc-pst-stepper.is-normal-flow::after {
        display: none;
    }

    .wc-pst-stepper__track,
    .wc-pst-stepper__progress {
        left: 6px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 4px;
        height: auto;
    }

    .wc-pst-step {
        flex-direction: row;
        align-items: center;
        text-align: left;
        min-height: 0;
        gap: 12px;
        padding: 0 0 0 0;
    }

    .wc-pst-step__label {
        max-width: none;
        margin-top: 0;
    }
}

/* v2.0.7 stepper match example */
.wc-pst-badge--danger{
    background:#dc2626 !important;
    border-color:#dc2626 !important;
    color:#fff !important;
}

.wc-pst-stepper{
    --pst-node-size: 0px;
    --pst-current-size: 22px;
    --pst-track-height: 4px;
    position:relative;
    display:grid;
    grid-template-columns:repeat(var(--pst-step-count, 6), minmax(0, 1fr));
    gap:0;
    margin:18px 20px 0;
    padding:20px 12px 12px;
    align-items:start;
    overflow:hidden;
}

.wc-pst-stepper.is-normal-flow::after{
    content:"";
    position:absolute;
    left:0;
    top:10px;
    width:min(100%, max(140px, var(--pst-highlight-desktop, 0%)));
    height:58px;
    background:#e9f7ef;
    border-radius:0;
    z-index:0;
    pointer-events:none;
}

.wc-pst-stepper.is-cancelled-flow::after{display:none;}

.wc-pst-stepper__track,
.wc-pst-stepper__progress{
    position:absolute;
    top:25px;
    left:calc(0px + var(--pst-node-size) / 2);
    right:calc(0px + var(--pst-node-size) / 2);
    height:4px;
    border-radius:999px;
    z-index:1;
}
.wc-pst-stepper__track{background:#d7dee8;}
.wc-pst-stepper__progress{background:#59bf7a;width:var(--pst-progress-desktop, 0%);}
.wc-pst-stepper__progress--mobile{display:none;}

.wc-pst-step{
    position:relative;
    z-index:2;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    min-height:56px;
    padding:0 8px;
    text-align:center;
    background:none !important;
    border:0 !important;
    border-radius:0 !important;
}

.wc-pst-step__node{
    width:var(--pst-node-size);
    height:var(--pst-node-size);
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    background:#cfd6df;
    border:0;
    box-shadow:none;
}
.wc-pst-step__node svg{display:none;width:12px;height:12px;}

.wc-pst-step__label{
    max-width:88px;
    font-size:13px;
    line-height:1.25;
    color:#111827;
    font-weight:600;
}

.wc-pst-step.is-complete .wc-pst-step__node{
    width:12px;
    height:12px;
    background:#16a34a;
}
.wc-pst-step.is-complete .wc-pst-step__node svg{display:none !important;}
.wc-pst-step.is-complete .wc-pst-step__label{font-weight:600;color:#111827;}

.wc-pst-step.is-current .wc-pst-step__node{
    width:22px;
    height:22px;
    background:#16a34a;
    box-shadow:0 0 0 4px rgba(22,163,74,.14);
}
.wc-pst-step.is-current .wc-pst-step__node svg{display:block;}
.wc-pst-step.is-current .wc-pst-step__label{font-weight:700;color:#111827;}

.wc-pst-step.is-pending .wc-pst-step__node{
    width:12px;
    height:12px;
    background:#cfd6df;
}
.wc-pst-step.is-pending .wc-pst-step__label{font-weight:500;color:#6b7280;}

.wc-pst-step.is-cancelled .wc-pst-step__node{
    width:22px;
    height:22px;
    background:#dc2626;
    box-shadow:0 0 0 4px rgba(220,38,38,.12);
}
.wc-pst-step.is-cancelled .wc-pst-step__node svg{display:block;}
.wc-pst-step.is-cancelled .wc-pst-step__label{font-weight:700;color:#b42318;}

@media (max-width:768px){
    .wc-pst-stepper{
        display:flex;
        flex-direction:column;
        gap:14px;
        margin:18px 20px 0;
        padding:0;
    }
    .wc-pst-stepper.is-normal-flow::after{display:none;}
    .wc-pst-stepper__track,
    .wc-pst-stepper__progress{
        left:5px;
        right:auto;
        top:0;
        bottom:0;
        width:4px;
        height:auto;
    }
    .wc-pst-stepper__progress{display:none;}
    .wc-pst-stepper__progress--mobile{display:block;height:var(--pst-progress-mobile, 0%);width:4px;}
    .wc-pst-step{
        flex-direction:row;
        align-items:center;
        text-align:left;
        min-height:0;
        gap:12px;
        padding:0;
    }
    .wc-pst-step__label{max-width:none;margin-top:0;}
}


/* v2.0.7 mobile width + stepper refinements */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        display: block;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
    }

    .woocommerce-account .woocommerce-MyAccount-content,
    .woocommerce-account .woocommerce-MyAccount-content .wc-pst-section,
    .woocommerce-account .woocommerce-MyAccount-content .wc-pst-shipment-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .woocommerce-account .woocommerce-MyAccount-content .wc-pst-shipment-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .wc-pst-shipment-card__head,
    .wc-pst-products,
    .wc-pst-history {
        padding-left: 16px;
        padding-right: 16px;
    }

    .wc-pst-meta-item {
        padding-left: 16px;
        padding-right: 16px;
    }

    .wc-pst-stepper {
        margin: 16px 16px 0 !important;
        padding: 0 0 0 2px !important;
        gap: 12px !important;
    }

    .wc-pst-stepper__track,
    .wc-pst-stepper__progress,
    .wc-pst-stepper__progress--mobile {
        left: 17px !important;
    }

    .wc-pst-step {
        gap: 10px !important;
        padding: 0 0 0 6px !important;
        min-height: 26px !important;
        margin-left: 5px;
    }

    .wc-pst-step__node {
        flex: 0 0 auto;
    }
    
    .wc-pst-step.is-current {
    padding: 0 0 0 4px !important;
    }

    .wc-pst-step__label {
        max-width: none !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
        word-break: break-word;
    }

    .wc-pst-step.is-current .wc-pst-step__label,
    .wc-pst-step.is-cancelled .wc-pst-step__label {
        font-size: 14px !important;
    }

    .wc-pst-history {
        overflow: hidden;
    }

    .wc-pst-history-table {
        width: 100% !important;
        table-layout: fixed;
    }
}


/* Product incidences */
.wc-pst-products-list__flag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 8px;
    background: #fff7ed;
    color: #c2410c;
}

.wc-pst-products-list__flag--refunded {
    background: #fef2f2;
    color: #b91c1c;
}

.wc-pst-products-list__note--incidence {
    color: #92400e;
    font-weight: 500;
}

.wc-pst-products-list__flag--refunded ~ .wc-pst-products-list__note--incidence {
    color: #991b1b;
}

.wc-pst-admin-incidences th,
.wc-pst-admin-incidences td {
    vertical-align: middle;
}

.wc-pst-admin-products .description {
    margin-top: 8px;
}
