.wc-order-details-wrapper {
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Divider entre seções */
.wc-order-divider {
    height: 1px;
    background: var(--neutral-100);
    margin: var(--padding-2xl) 0;
    width: 100%;
}

/* ============================================
   HEADER
   ============================================ */

.wc-order-details-header {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2xl);
}

/* Linha superior: Botões */
.wc-order-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wc-order-back-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-xs);
    color: var(--neutral-500);
    text-decoration: none;
    font-size: var(--label-sm);
    font-family: "Inter", sans-serif;
    font-weight: 500;
    transition: color 0.3s;
}

.wc-order-back-btn:hover {
    color: var(--base-100);
}

.wc-order-header-buttons {
    display: flex;
    gap: var(--gap-sm);
}

.wc-order-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-xs);
    padding: var(--padding-xs) var(--padding-md);
    background: var(--base-00);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xxs);
    font-size: var(--label-sm);
    font-family: "Inter", sans-serif;
    font-weight: 500;
    line-height: 1.25rem;
    color: var(--base-100);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.wc-order-btn-secondary:hover {
    background: var(--neutral-100);
    border-color: var(--neutral-200);
}

/* Botão de Rastreio (estilo primário) */
.wc-order-btn-track {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-xs);
    padding: var(--padding-xs) var(--padding-md);
    background: var(--base-100);
    color: var(--base-00) !important;
    border: none;
    border-radius: var(--radius-xxs);
    font-size: var(--label-sm);
    line-height: 1.25rem;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.wc-order-btn-track:hover {
    background: var(--neutral-800);
    color: var(--base-00) !important;
}

/* Linha inferior: Título e Badge */
.wc-order-header-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wc-order-details-title {
    font-size: var(--heading-6);
    font-family: "Inter Tight", sans-serif;
    font-weight: 600;
    line-height: var(--l-h-13);
    color: var(--base-100);
}

.wc-order-status-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--padding-xxs) var(--padding-xs);
    border-radius: var(--radius-xxs);
    font-size: var(--label-xs);
    font-family: "Inter", sans-serif;
    line-height: var(--l-h-17);
    font-weight: 600;
}

.wc-order-status-badge.status-processing {
    background: hsl(221.2 83.2% 53.3% / 0.1);
    color: hsl(221.2 83.2% 33.3%);
}

.wc-order-status-badge.status-completed {
    background: hsl(142.1 76.2% 36.3% / 0.1);
    color: hsl(142.1 70.6% 25.3%);
}

.wc-order-status-badge.status-pending {
    background: hsl(47.9 95.8% 53.1% / 0.1);
    color: hsl(32.1 94.6% 33.1%);
}

.wc-order-status-badge.status-cancelled {
    background: hsl(0 84.2% 60.2% / 0.1);
    color: hsl(0 72.2% 40.2%);
}

/* Status Customizados */
.wc-order-status-badge.status-em-separacao,
.wc-order-status-badge.status-wc-em-separacao {
    background: hsl(217 91% 60% / 0.15);
    color: hsl(217 91% 35%);
}

.wc-order-status-badge.status-enviado-logistica,
.wc-order-status-badge.status-wc-enviado-logistica {
    background: hsl(262 83% 58% / 0.15);
    color: hsl(262 83% 35%);
}

.wc-order-status-badge.status-pedido-entregue,
.wc-order-status-badge.status-wc-pedido-entregue {
    background: hsl(142 71% 45% / 0.15);
    color: hsl(142 71% 30%);
}

/* ============================================
   CARDS BASE (sem bordas)
   ============================================ */

.wc-order-info-card,
.wc-order-items-card,
.wc-order-payment-card,
.wc-order-activities-card,
.wc-order-logistics-card {
    margin-bottom: 0;
    width: 100%;
}

.wc-order-card-header {
    padding: 0 0 var(--padding-2xl) 0;
}

.wc-order-card-title {
    font-size: var(--label-md);
    font-weight: 600;
    color: var(--base-100);
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
}

.wc-order-items-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 6px;
    background: var(--base-100);
    color: var(--base-00);
    border-radius: var(--radius-xxs);
    font-size: var(--label-xs);
    font-weight: 600;
}

/* ============================================
   INFORMAÇÕES PRINCIPAIS (sem bordas internas)
   ============================================ */

.wc-order-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--padding-sm) 0;
}

.wc-order-info-row:first-child {
    padding: 0 0 var(--padding-sm) 0;
}

.wc-order-info-row:last-child {
    padding: var(--padding-sm) 0 0 0;
}

.wc-order-info-label {
    font-size: var(--label-sm);
    font-family: "Inter", sans-serif;
    line-height: var(--l-h-12);
    color: var(--neutral-500);
    font-weight: 400;
}

.wc-order-info-value {
    font-size: var(--label-sm);
    font-family: "Inter", sans-serif;
    line-height: var(--l-h-12);
    color: var(--base-100);
    font-weight: 600;
    text-align: right;
}

/* Remover cor especial do símbolo de moeda */
.wc-order-info-value .woocommerce-Price-amount,
.wc-order-info-value .woocommerce-Price-currencySymbol,
.wc-order-payment-value .woocommerce-Price-currencySymbol {
    color: inherit !important;
}

.wc-order-total-highlight {
    font-size: var(--label-sm);
    color: var(--base-100);
}

/* Badge Pagamento - Pago (Verde) */
.wc-order-payment-badge {
    background: hsl(142.1 76.2% 36.3% / 0.1);
    color: hsl(142.1 70.6% 25.3%);
    padding: var(--padding-xxs) var(--padding-xs);
    border-radius: var(--radius-xxs);
    font-size: var(--label-xs);
    line-height: var(--l-h-17);
    font-weight: 600;
}

/* Badge Pagamento - Pendente/Na Entrega (Laranja) */
.wc-order-payment-badge-pending {
    background: hsl(32.1 94.6% 43.1% / 0.1);
    color: hsl(32.1 94.6% 33.1%);
    padding: var(--padding-xxs) var(--padding-xs);
    border-radius: var(--radius-xxs);
    font-size: var(--label-xs);
    line-height: var(--l-h-17);
    font-weight: 600;
}

/* Badge Status da Entrega */
.wc-order-shipping-badge {
    background: hsl(32.1 94.6% 43.1% / 0.1);
    color: hsl(32.1 94.6% 33.1%);
    padding: var(--padding-xxs) var(--padding-xs);
    border-radius: var(--radius-xxs);
    font-size: var(--label-xs);
    line-height: var(--l-h-17);
    font-weight: 600;
}

/* ============================================
   INFORMAÇÕES DE PAGAMENTO (PIX / BOLETO)
   ============================================ */

.wc-order-payment-info-card {
    padding: var(--padding-lg);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xs);
    background: var(--base-00);
}

.wc-order-payment-info-header {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    margin-bottom: var(--gap-md);
}

.wc-order-payment-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--neutral-100);
    border-radius: var(--radius-xs);
    color: var(--base-100);
}

.wc-order-payment-info-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.wc-order-payment-info-title h3 {
    font-family: "Inter", sans-serif;
    font-size: var(--label-md);
    font-weight: 600;
    line-height: var(--l-h-12);
    color: var(--base-100);
    margin: 0 0 var(--gap-xxs) 0;
}

.wc-order-payment-info-title p {
    font-family: "Inter", sans-serif;
    font-size: var(--label-sm);
    line-height: var(--l-h-12);
    color: var(--neutral-500);
    margin: 0;
}

.wc-order-payment-info-details {
    margin-bottom: var(--gap-md);
}

.wc-order-payment-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--padding-xs) 0;
}

.wc-order-payment-info-row:not(:last-child) {
    border-bottom: 1px solid var(--neutral-100);
}

.wc-order-payment-info-label {
    font-family: "Inter", sans-serif;
    font-size: var(--label-sm);
    line-height: var(--l-h-12);
    color: var(--neutral-500);
}

.wc-order-payment-info-value {
    font-family: "Inter", sans-serif;
    font-size: var(--label-sm);
    line-height: var(--l-h-12);
    font-weight: 600;
    color: var(--base-100);
}

.wc-order-payment-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-xs);
    width: 100%;
    padding: var(--padding-sm) var(--padding-md);
    background: var(--base-100);
    color: var(--base-00) !important;
    font-family: "Inter", sans-serif;
    font-size: var(--label-sm);
    line-height: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-xxs);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wc-order-payment-info-btn:hover {
    background: var(--neutral-800);
    color: var(--base-00) !important;
}

.wc-order-payment-info-btn svg {
    width: 1rem;
    height: 1rem;
}

/* QR Code PIX */
.wc-order-payment-info-qrcode {
    display: flex;
    justify-content: center;
    margin: var(--gap-md) 0;
}

.wc-order-payment-info-qrcode img {
    width: 10rem;
    height: 10rem;
    border-radius: var(--radius-xs);
}

/* PIX Copia e Cola */
.wc-order-payment-info-pix-code {
    margin-top: var(--gap-md);
}

.wc-order-payment-info-pix-code .wc-order-payment-info-label {
    display: block;
    margin-bottom: var(--gap-xs);
}

.wc-order-pix-code {
    font-family: monospace;
    font-size: var(--label-xs);
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xs);
    padding: var(--padding-sm);
    word-break: break-all;
    margin-bottom: var(--gap-sm);
    color: var(--neutral-600);
    line-height: var(--l-h-14);
}

/* ============================================
   ITENS DO PEDIDO
   ============================================ */

.wc-order-items-list {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.wc-order-item {
    display: grid;
    grid-template-columns: 4rem 1fr auto auto;
    gap: var(--gap-lg);
    align-items: center;
}

.wc-order-item-image {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-xs);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.wc-order-item-details {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xxs);
}

.wc-order-item-name {
    font-size: var(--label-sm);
    font-family: "Inter", sans-serif;
    line-height: var(--l-h-15);
    font-weight: 500;
    color: var(--base-100);
}

.wc-order-item-meta {
    font-size: var(--label-xs);
    font-family: "Inter", sans-serif;
    color: var(--base-100);
}

.wc-order-item-qty {
    font-size: var(--label-sm);
    font-family: "Inter", sans-serif;
    line-height: var(--l-h-15);
    font-weight: 500;
    color: var(--base-100);
    text-align: center;
}

.wc-order-item-price {
    font-size: var(--label-sm);
    font-family: "Inter", sans-serif;
    line-height: var(--l-h-15);
    font-weight: 600;
    color: var(--base-100);
    text-align: right;
}

/* ============================================
   PAGAMENTO (apenas borda no total)
   ============================================ */

.wc-order-payment-rows {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xl);
}

.wc-order-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wc-order-payment-row.wc-order-payment-total {
    border-top: 1px solid var(--neutral-100);
    padding-top: var(--padding-xl);
    margin-block-end: var(--padding-md);
}

.wc-order-payment-label {
    font-size: var(--label-sm);
    line-height: var(--l-h-12);
    font-family: "Inter", sans-serif;
    color: var(--neutral-500);
}

.wc-order-payment-value {
    font-size: var(--label-sm);
    line-height: var(--l-h-12);
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: var(--base-100);
}

.wc-order-payment-total .wc-order-payment-label,
.wc-order-payment-total .wc-order-payment-value {
    font-size: var(--label-md);
    line-height: var(--l-h-12);
    font-family: "Inter", sans-serif;
    font-weight: 700;
}

/* ============================================
   TIMELINE DE ATIVIDADES
   ============================================ */

.wc-order-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wc-order-timeline-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: var(--gap-sm);
    padding-bottom: var(--padding-lg);
    position: relative;
}

.wc-order-timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: var(--neutral-200);
}

.wc-order-timeline-item.completed::after {
    background: var(--neutral-800);
}

.wc-order-timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--neutral-100);
    border: 2px solid var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-600);
}

.wc-order-timeline-item.completed .wc-order-timeline-icon {
    background: var(--base-100);
    border-color: var(--neutral-800);
    color: var(--base-00);
}

.wc-order-timeline-item.pending .wc-order-timeline-icon {
    background: var(--base-00);
    border-color: var(--neutral-200);
    color: var(--neutral-600);
}

.wc-order-timeline-title {
    font-size: var(--label-sm);
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: var(--base-100);
}

.wc-order-timeline-date {
    font-size: var(--label-sm);
    font-family: "Inter", sans-serif;
    color: var(--neutral-500);
}

/* ============================================
   LOGÍSTICA (logo Braspress)
   ============================================ */

.wc-order-logistics-card {
    display: block;
    width: 100%;
}

.wc-order-logistics-content {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    width: 100%;
}

.wc-order-logistics-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-xs);
}

.wc-order-logistics-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wc-order-logistics-info {
    flex: 1;
}

.wc-order-logistics-company {
    font-size: var(--label-sm);
    line-height: var(--l-h-12);
    font-weight: 600;
    color: var(--base-100);
    margin-block-end: var(--padding-xxs);
}

.wc-order-logistics-method {
    font-size: var(--label-xs);
    line-height: var(--l-h-12);
    color: var(--neutral-500);
    margin-block-end: var(--padding-xs);
}

.wc-order-logistics-nfes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-xs);
}

.wc-order-nfe-link {
    display: inline-flex;
    align-items: center;
    padding: var(--padding-xxs) var(--padding-xs);
    background: var(--base-00);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xxs);
    font-size: var(--label-xs);
    font-weight: 500;
    color: var(--base-100);
    text-decoration: none;
    transition: all 0.3s;
}

.wc-order-nfe-link:hover {
    background: var(--neutral-100);
    border-color: var(--neutral-200);
    color: var(--base-100);
}

.wc-order-track-btn {
    padding: var(--padding-xs) var(--padding-md);
    background: var(--base-100);
    color: var(--base-00);
    border-radius: var(--radius-xxs);
    font-size: var(--label-sm);
    line-height: 1.25rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
}

.wc-order-track-btn:hover {
    background: var(--neutral-800);
    color: var(--base-00);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .wc-order-header-actions {
        flex-direction: row;
        align-items: stretch;
        gap: 12px;
    }
    
    .wc-order-header-buttons {
        justify-content: flex-end;
    }
    
    .wc-order-header-title-row {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--gap-md);
    }
    
    .wc-order-item {
        grid-template-columns: 3.5rem 1fr;
        grid-template-rows: auto auto;
        gap: var(--gap-sm);
    }
    
    .wc-order-item-image {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .wc-order-item-details {
        grid-column: 2;
    }
    
    .wc-order-item-qty,
    .wc-order-item-price {
        grid-column: 2;
        text-align: left;
        font-size: var(--label-sm);
    }
    
    .wc-order-logistics-content {
        flex-direction: column;
        text-align: center;
        gap: var(--gap-sm);
    }

    .wc-order-logistics-nfes {
        justify-content: center;
    }
    
    .wc-order-track-btn {
        width: 100%;
    }
    
    /* Payment Info Mobile */
    .wc-order-payment-info-qrcode img {
        width: 8rem;
        height: 8rem;
    }
    
    .wc-order-pix-code {
        font-size: 10px;
    }
}

/* Esconder elementos antigos do WooCommerce */
.woocommerce-order-details,
.woocommerce-customer-details {
    display: none !important;
}