/* CE Rastreio de Pedidos */
.ce-rt{
	--rt-brand:#4160CE; --rt-brand-dk:#2f47a6; --rt-navy:#1d2a5b;
	--rt-green:#00a650; --rt-green-bg:#e6f7ee;
	--rt-amber:#e08a00; --rt-amber-bg:#fff4e0;
	--rt-red:#d63638; --rt-red-bg:#fdecec;
	--rt-blue-bg:#eaf0ff;
	--rt-text:#1f2430; --rt-muted:#6b7280; --rt-line:#e6e8ee; --rt-bg:#f5f6fa;
	--rt-radius:10px;
	font-family:inherit; color:var(--rt-text); line-height:1.45;
	max-width:1120px; margin:0 auto; padding:24px 0 48px; box-sizing:border-box;
	container-type:inline-size; container-name:cert;
}
.ce-rt *,.ce-rt *::before,.ce-rt *::after{box-sizing:border-box}
.ce-rt a{color:var(--rt-brand)}
.ce-rt-card{background:#fff;border-radius:var(--rt-radius);box-shadow:0 1px 2px rgba(16,24,40,.06),0 1px 3px rgba(16,24,40,.08);padding:22px 24px;margin-bottom:16px}
.ce-rt-h3{font-size:16px;font-weight:600;margin:0 0 14px;color:var(--rt-text)}
.ce-rt-text{margin:0 0 6px;font-size:14px}
.ce-rt-muted{margin:8px 0 0;font-size:13px;color:var(--rt-muted)}
.ce-rt-label{display:block;font-size:12px;color:var(--rt-muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
.ce-rt-row{display:flex;gap:8px;flex-wrap:wrap}

/* Botões */
.ce-rt-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;padding:12px 20px;font-size:15px;font-weight:600;cursor:pointer;text-decoration:none!important;transition:background .15s,box-shadow .15s;line-height:1.2;font-family:inherit}
.ce-rt-btn--primary{background:var(--rt-brand);color:#fff!important}
.ce-rt-btn--primary:hover{background:var(--rt-brand-dk)}
.ce-rt-btn--ghost{background:var(--rt-blue-bg);color:var(--rt-brand)!important;padding:9px 14px;font-size:14px}
.ce-rt-btn--ghost:hover{background:#dce5ff}
.ce-rt-btn--wa{background:#25d366;color:#fff!important}
.ce-rt-btn--wa:hover{background:#1ebe5a}
.ce-rt-btn--wa svg{width:18px;height:18px}
.ce-rt-btn--block{width:100%}

/* Busca */
.ce-rt--busca{max-width:520px;padding-top:40px}
.ce-rt-busca{text-align:center;padding:36px 32px}
.ce-rt-busca__icon{width:64px;height:64px;border-radius:50%;background:var(--rt-blue-bg);color:var(--rt-brand);display:flex;align-items:center;justify-content:center;margin:0 auto 14px}
.ce-rt-busca__icon svg{width:32px;height:32px}
.ce-rt-busca__title{font-size:24px;margin:0 0 6px;color:var(--rt-text)}
.ce-rt-busca__sub{color:var(--rt-muted);margin:0 0 22px;font-size:15px}
.ce-rt-form{text-align:left}
.ce-rt-field{display:block;margin-bottom:14px}
.ce-rt-field span{display:block;font-size:14px;font-weight:600;margin-bottom:6px}
.ce-rt-field input{width:100%;height:48px;border:1px solid #cfd4dc;border-radius:8px;padding:0 14px;font-size:16px;background:#fff;color:var(--rt-text)}
.ce-rt-field input:focus{outline:0;border-color:var(--rt-brand);box-shadow:0 0 0 3px rgba(65,96,206,.18)}
.ce-rt-alert{background:var(--rt-red-bg);color:#8a1f1f;border-radius:8px;padding:12px 14px;margin:0 0 16px;font-size:14px;text-align:left}
.ce-rt-busca__foot{margin-top:18px;font-size:14px;color:var(--rt-muted)}
.ce-rt-dot{margin:0 6px}

/* Topo */
.ce-rt-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px;font-size:14px}
.ce-rt-back{text-decoration:none;font-weight:600}
.ce-rt-top__meta{color:var(--rt-muted)}
.ce-rt-top__meta strong{color:var(--rt-text)}

/* Grid */
.ce-rt-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
@container cert (max-width:860px){
	.ce-rt-grid{grid-template-columns:1fr}
	.ce-rt-side{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:0 16px}
}

/* Status */
.ce-rt-status{border-top:4px solid var(--rt-brand)}
.ce-rt--green .ce-rt-status{border-top-color:var(--rt-green)}
.ce-rt--amber .ce-rt-status{border-top-color:var(--rt-amber)}
.ce-rt--red .ce-rt-status{border-top-color:var(--rt-red)}
.ce-rt-status__head{display:flex;gap:16px;align-items:flex-start}
.ce-rt-status__icon{flex:0 0 52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--rt-blue-bg);color:var(--rt-brand)}
.ce-rt-status__icon svg{width:28px;height:28px}
.ce-rt--green .ce-rt-status__icon{background:var(--rt-green-bg);color:var(--rt-green)}
.ce-rt--amber .ce-rt-status__icon{background:var(--rt-amber-bg);color:var(--rt-amber)}
.ce-rt--red .ce-rt-status__icon{background:var(--rt-red-bg);color:var(--rt-red)}
.ce-rt-status__title{font-size:24px;font-weight:700;margin:2px 0 4px;color:var(--rt-text)}
.ce-rt--green .ce-rt-status__title{color:var(--rt-green)}
.ce-rt-status__sub{margin:0;font-size:15px;color:#3d4452}

/* Stepper */
.ce-rt-steps{list-style:none;margin:28px 0 6px;padding:0;display:grid;grid-template-columns:repeat(5,1fr);position:relative}
.ce-rt-steps::before,.ce-rt-steps::after{content:"";position:absolute;top:11px;left:10%;height:4px;border-radius:2px}
.ce-rt-steps::before{right:10%;background:var(--rt-line)}
.ce-rt-steps::after{width:calc(80% * var(--ce-rt-progress) / 100);background:var(--rt-brand);transition:width .6s ease}
.ce-rt--green .ce-rt-steps::after{background:var(--rt-green)}
.ce-rt--amber .ce-rt-steps::after{background:var(--rt-amber)}
.ce-rt-step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 4px}
.ce-rt-step__dot{width:26px;height:26px;border-radius:50%;background:#fff;border:3px solid var(--rt-line);display:flex;align-items:center;justify-content:center;color:#fff}
.ce-rt-step__dot svg{width:14px;height:14px}
.ce-rt-step.is-done .ce-rt-step__dot{background:var(--rt-brand);border-color:var(--rt-brand)}
.ce-rt--green .ce-rt-step.is-done .ce-rt-step__dot{background:var(--rt-green);border-color:var(--rt-green)}
.ce-rt--amber .ce-rt-step.is-done .ce-rt-step__dot{background:var(--rt-amber);border-color:var(--rt-amber)}
.ce-rt-step.is-current:not(.is-done) .ce-rt-step__dot{border-color:var(--rt-brand);box-shadow:0 0 0 5px rgba(65,96,206,.15)}
.ce-rt--amber .ce-rt-step.is-current:not(.is-done) .ce-rt-step__dot{border-color:var(--rt-amber);box-shadow:0 0 0 5px rgba(224,138,0,.15)}
.ce-rt-step__label{margin-top:8px;font-size:13px;font-weight:600;color:var(--rt-muted)}
.ce-rt-step.is-done .ce-rt-step__label,.ce-rt-step.is-current .ce-rt-step__label{color:var(--rt-text)}
.ce-rt-step__date{font-size:12px;color:var(--rt-muted);margin-top:2px}

@container cert (max-width:600px){
	.ce-rt-card{padding:18px 16px}
	.ce-rt-status__title{font-size:20px}
	.ce-rt-steps{grid-template-columns:1fr;margin-top:22px;gap:0}
	.ce-rt-steps::before,.ce-rt-steps::after{left:11px;right:auto;top:13px;width:4px;height:calc(100% - 26px)}
	.ce-rt-steps::after{height:calc((100% - 26px) * var(--ce-rt-progress) / 100);width:4px}
	.ce-rt-step{flex-direction:row;align-items:center;text-align:left;padding:0 0 18px;gap:12px}
	.ce-rt-step:last-child{padding-bottom:0}
	.ce-rt-step__label{margin-top:0}
	.ce-rt-step__date{margin:0 0 0 auto}
}

/* Rastreio */
.ce-rt-track{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-top:22px;padding:16px;border-radius:8px;background:var(--rt-bg)}
.ce-rt-code{display:flex;align-items:center;gap:10px;font-size:18px;letter-spacing:.5px}
.ce-rt-copy{background:none;border:0;color:var(--rt-brand);font-weight:600;font-size:13px;cursor:pointer;padding:4px 6px;border-radius:6px;font-family:inherit}
.ce-rt-copy:hover{background:var(--rt-blue-bg)}
.ce-rt-copy.is-copied{color:var(--rt-green)}
.ce-rt-actions{margin-top:20px}
.ce-rt-note{margin-top:16px;padding:12px 14px;border-left:3px solid var(--rt-brand);background:var(--rt-blue-bg);border-radius:6px;font-size:14px}
.ce-rt-note p{margin:0 0 6px}.ce-rt-note p:last-child{margin:0}

/* Itens */
.ce-rt-items{list-style:none;margin:0;padding:0}
.ce-rt-item{display:flex;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--rt-line)}
.ce-rt-item:first-child{border-top:0;padding-top:0}
.ce-rt-item__thumb{flex:0 0 64px;height:64px;border:1px solid var(--rt-line);border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#fff;color:var(--rt-muted)}
.ce-rt-item__thumb img{width:100%;height:100%;object-fit:contain;margin:0!important}
.ce-rt-item__thumb svg{width:28px;height:28px}
.ce-rt-item__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.ce-rt-item__name{font-size:14px;font-weight:600;color:var(--rt-text)!important;text-decoration:none!important}
.ce-rt-back{text-decoration:none!important}
.ce-rt-busca__foot a{text-decoration:none}
.ce-rt-item__name:hover{color:var(--rt-brand)!important}
.ce-rt-item__meta{font-size:13px;color:var(--rt-muted)}
.ce-rt-item__cta{flex:0 0 auto}
@container cert (max-width:600px){.ce-rt-item{flex-wrap:wrap}.ce-rt-item__cta{width:100%}}

/* Histórico */
.ce-rt-timeline{list-style:none;margin:0;padding:0 0 0 18px;border-left:2px solid var(--rt-line)}
.ce-rt-timeline li{position:relative;padding:0 0 16px 4px}
.ce-rt-timeline li:last-child{padding-bottom:0}
.ce-rt-timeline li::before{content:"";position:absolute;left:-25px;top:4px;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid var(--rt-brand)}
.ce-rt-timeline li:first-child::before{background:var(--rt-brand)}
.ce-rt-timeline__date{display:block;font-size:12px;color:var(--rt-muted)}
.ce-rt-timeline__text{font-size:14px}
.ce-rt-timeline__text p{margin:2px 0 0}

/* Lateral */
.ce-rt-help p{margin:0 0 14px;font-size:14px;color:var(--rt-muted)}
.ce-rt-totals{margin:12px 0 0;padding:12px 0 0;border-top:1px solid var(--rt-line)}
.ce-rt-totals div{display:flex;justify-content:space-between;gap:12px;font-size:14px;margin-bottom:6px}
.ce-rt-totals dt{color:var(--rt-muted);font-weight:400;margin:0}
.ce-rt-totals dd{margin:0;text-align:right}
.ce-rt-totals .is-total{font-size:16px;font-weight:700;margin-top:8px}
.ce-rt-totals .is-total dt{color:var(--rt-text);font-weight:700}
.ce-rt-totals small{display:block;font-weight:400;font-size:12px;color:var(--rt-muted)}
.ce-rt-key{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;word-break:break-word;margin:0 0 12px;background:var(--rt-bg);padding:8px 10px;border-radius:6px}

/* Página de rastreio: esconde o título do tema (o card já tem título) */
body.ce-rt-page .page-header,body.ce-rt-page .entry-header,body.ce-rt-page h1.entry-title{display:none}

/* Minha Conta */
.woocommerce-MyAccount-content .ce-rt{padding:0;max-width:none}
.ce-rt-item__meta *,.ce-rt-totals dd *{display:inline}
.ce-rt-totals dd small{display:block}
