/* ToolsEngg Rewards and Tracking 1.0.0: product badge, cart box, success page note, and the reward and shipment pieces of the customer account. Presentation only. */
.te-rw-badge, .te-rw-box, .te-rw-mini, .te-ac .rw-hero, .te-ac .rw-card, .te-ac .tk-card {
  --rw-ink: #1b2b3c; --rw-muted: #5d6e80; --rw-line: #e2e8ef; --rw-navy: #10263f; --rw-graphite: #1b2027;
  --rw-gold: #f2b01e; --rw-gold-deep: #c9820a; --rw-gold-ink: #7a4b00; --rw-gold-bg: #fff8e5; --rw-gold-line: #f3dc9b;
  --rw-green: #1fa971; --rw-green-btn: #0d7f53; --rw-green-ink: #0b6b3d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; box-sizing: border-box; line-height: 1.45; text-align: left;
}
.te-rw-badge *, .te-rw-box *, .te-rw-mini *, .te-ac .rw-hero *, .te-ac .rw-card *, .te-ac .tk-card * { box-sizing: border-box; }
.te-rw-star { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #f7c548, #d98e07); box-shadow: 0 2px 6px rgba(201, 130, 10, .35), inset 0 1px 0 rgba(255, 255, 255, .45); }
.te-rw-star svg { width: 19px; height: 19px; display: block; }

/* ---- Product page badge -------------------------------------------------------------------------------------------------- */
.te-rw-badge { position: relative; display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 10px 14px 10px 10px; border: 1px solid var(--rw-gold-line); border-radius: 14px; background: linear-gradient(135deg, #fffaf0 0%, #fff3d1 100%); color: var(--rw-ink); }
.te-rw-badge .rw-txt { min-width: 0; flex: 1 1 auto; }
.te-rw-badge .rw-txt b { display: block; color: var(--rw-navy); font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.te-rw-badge .rw-txt b em { font-style: normal; color: var(--rw-gold-ink); }
.te-rw-badge .rw-txt small { display: block; margin-top: 1px; color: #6b5a2e; font-size: 12.5px; line-height: 1.4; }
.te-rw-badge .rw-i { flex: 0 0 auto; align-self: flex-start; width: 22px; height: 22px; margin-top: 1px; border: 1px solid var(--rw-gold-line); border-radius: 50%; background: #fff; color: var(--rw-gold-ink); font: 700 13px/20px Georgia, serif; text-align: center; cursor: pointer; padding: 0; }
.te-rw-badge .rw-i:hover, .te-rw-badge .rw-i[aria-expanded="true"] { background: var(--rw-gold-ink); color: #fff; border-color: var(--rw-gold-ink); }
.te-rw-badge .rw-pop { display: none; position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); padding: 16px 18px; border: 1px solid var(--rw-line); border-radius: 14px; background: #fff; box-shadow: 0 18px 40px rgba(16, 38, 63, .18); }
.te-rw-badge .rw-pop.is-open { display: block; }
.te-rw-badge .rw-pop h4 { margin: 0 0 8px; color: var(--rw-navy); font-size: 15px; font-weight: 700; }
.te-rw-badge .rw-pop ol { margin: 0; padding: 0; list-style: none; counter-reset: rw; }
.te-rw-badge .rw-pop li { position: relative; margin: 0 0 7px; padding-left: 30px; color: var(--rw-ink); font-size: 13.5px; counter-increment: rw; }
.te-rw-badge .rw-pop li::before { content: counter(rw); position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--rw-graphite); color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 21px; }
.te-rw-badge .rw-pop p { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--rw-line); color: var(--rw-muted); font-size: 12.5px; }
.te-rw-badge .rw-signin { display: inline-block; margin-top: 3px; color: var(--rw-green-ink); font-size: 12.5px; font-weight: 700; text-decoration: underline; }
.te-rw-mini { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 2px 9px 2px 6px; border-radius: 999px; background: var(--rw-gold-bg); border: 1px solid var(--rw-gold-line); color: var(--rw-gold-ink); font-size: 12px; font-weight: 700; line-height: 1.5; }
.te-rw-mini svg { width: 13px; height: 13px; color: var(--rw-gold-deep); }

/* Inside the product page's ordered buy box (ToolsEngg Product Page): right under the price card */
html.route-product-product:not(.popup) #product-product #product > .te-rw-badge { order: 6; flex: 0 0 100%; max-width: 100%; margin: 14px 0 18px; }

/* ---- Cart / checkout ----------------------------------------------------------------------------------------------------- */
.te-rw-box { margin: 14px 0; padding: 16px 18px; border: 1px solid var(--rw-line); border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgba(16, 38, 63, .05); color: var(--rw-ink); }
.te-rw-box h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--rw-navy); font-size: 16px; font-weight: 700; }
.te-rw-box h4 .te-rw-star { width: 30px; height: 30px; } .te-rw-box h4 .te-rw-star svg { width: 16px; height: 16px; }
.te-rw-box .rw-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14.5px; }
.te-rw-box .rw-form { display: flex; gap: 8px; margin-top: 10px; }
.te-rw-box .rw-form input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1.5px solid #c9d4e0; border-radius: 10px; font: inherit; color: var(--rw-ink); }
.te-rw-box .rw-form input:focus { border-color: var(--rw-green); box-shadow: 0 0 0 4px rgba(31, 169, 113, .16); outline: none; }
.te-rw-box .rw-btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--rw-green-btn); color: #fff; font-family: inherit; font-weight: 700; font-size: 14.5px; line-height: 1; cursor: pointer; }
.te-rw-box .rw-btn.alt { background: #fff; color: var(--rw-navy); border: 1.5px solid #c9d4e0; }
.te-rw-box .rw-hint { margin: 8px 0 0; color: var(--rw-muted); font-size: 12.5px; }
.te-rw-box.earn { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #fffaf0, #fff3d1); border-color: var(--rw-gold-line); }
.te-rw-box.earn b { color: var(--rw-navy); } .te-rw-box.earn small { display: block; color: #6b5a2e; font-size: 12.5px; }
.te-rw-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.te-rw-pill.wait { background: #fff1d6; color: #7a4b00; } .te-rw-pill.ok { background: #e6f6ee; color: #0b6b3d; } .te-rw-pill.used { background: #e8eef5; color: #3d5166; } .te-rw-pill.gone { background: #fdeaea; color: #8e2a2a; } .te-rw-pill.soon { background: #ffe9d6; color: #8a3a00; }

/* ---- Customer account: rewards page -------------------------------------------------------------------------------------- */
.te-ac .rw-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; overflow: hidden; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #171b22 0%, #2a313c 100%); box-shadow: 0 10px 28px rgba(16, 38, 63, .18); }
.te-ac .rw-hero .rw-main { padding: 26px 28px; }
.te-ac .rw-hero .rw-lab { display: flex; align-items: center; gap: 10px; color: #cfd8e3; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.te-ac .rw-hero .rw-big { margin-top: 8px; color: #fff; font-size: 46px; font-weight: 800; line-height: 1.05; letter-spacing: -1px; }
.te-ac .rw-hero .rw-big small { margin-left: 6px; color: #f7c548; font-size: 18px; font-weight: 700; letter-spacing: 0; }
.te-ac .rw-hero .rw-worth { margin-top: 6px; color: #e4ebf3; font-size: 15px; } .te-ac .rw-hero .rw-worth b { color: #fff; }
.te-ac .rw-hero .rw-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; min-height: 46px; padding: 0 22px; border-radius: 12px; background: #fff; color: #10263f; font-weight: 700; font-size: 15px; }
.te-ac .rw-hero .rw-side { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 22px 26px; background: rgba(255, 255, 255, .06); border-left: 1px solid rgba(255, 255, 255, .1); }
.te-ac .rw-hero .rw-mini { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #dbe4ee; font-size: 14px; }
.te-ac .rw-hero .rw-mini b { color: #fff; font-size: 17px; }
.te-ac .rw-hero .rw-mini i { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; }
.te-ac .rw-soon { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid #f5c9a0; border-radius: 14px; background: #fff4e8; color: #5a3000; font-size: 14.5px; }
.te-ac .rw-soon .ac-ico { color: #c2570a; margin-top: 2px; } .te-ac .rw-soon b { color: #5a3000; }
.te-ac .rw-how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.te-ac .rw-how div { padding: 16px; border: 1px solid var(--ac-line); border-radius: 16px; background: #fff; }
.te-ac .rw-how i { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 10px; border-radius: 50%; background: var(--ac-graphite); color: #fff; font-style: normal; font-weight: 700; }
.te-ac .rw-how b { display: block; font-size: 14.5px; } .te-ac .rw-how span { display: block; margin-top: 2px; color: var(--ac-muted); font-size: 13px; }
.te-ac .rw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.te-ac .rw-chips button { min-height: 38px; padding: 0 16px; border: 1.5px solid #c9d4e0; border-radius: 999px; background: #fff; color: var(--ac-ink); font-family: inherit; font-weight: 600; font-size: 13.5px; line-height: 1; cursor: pointer; }
.te-ac .rw-chips button.on { border-color: var(--ac-graphite); background: var(--ac-graphite); color: #fff; }
.te-ac .rw-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto 150px; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--ac-line); }
.te-ac .rw-row:first-of-type { border-top: 0; }
.te-ac .rw-row .d { color: var(--ac-muted); font-size: 13.5px; } .te-ac .rw-row .t b { display: block; font-size: 14.5px; } .te-ac .rw-row .t small { display: block; color: var(--ac-muted); font-size: 12.5px; }
.te-ac .rw-row .p { font-size: 17px; font-weight: 800; text-align: right; } .te-ac .rw-row .p.plus { color: #0b6b3d; } .te-ac .rw-row .p.minus { color: #8e2a2a; } .te-ac .rw-row .p.mute { color: #5d6e80; }
.te-ac .rw-row .s { text-align: right; }

/* ---- Customer account: shipment card -------------------------------------------------------------------------------------- */
.te-ac .tk-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 22px; border: 1px solid #cfe7da; border-radius: 18px; background: linear-gradient(135deg, #f1fbf6 0%, #e6f6ee 100%); }
.te-ac .tk-logo { display: flex; align-items: center; justify-content: center; width: 78px; height: 54px; border-radius: 12px; background: #fff; border: 1px solid #d6eee2; font-weight: 900; font-size: 22px; letter-spacing: -.5px; }
.te-ac .tk-logo.dhl { background: #ffcc00; color: #d40511; border-color: #e6b800; font-style: italic; }
.te-ac .tk-logo.fedex { color: #4d148c; } .te-ac .tk-logo.fedex em { font-style: normal; color: #ff6200; }
.te-ac .tk-logo.ups { background: #351c15; color: #ffb500; border-color: #351c15; font-size: 20px; }
.te-ac .tk-info small { display: block; color: var(--ac-muted); font-size: 12.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.te-ac .tk-info b { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; color: var(--ac-navy); font-size: 20px; letter-spacing: .3px; }
.te-ac .tk-info b button { min-height: 30px; padding: 0 10px; border: 1px solid #b9dccb; border-radius: 8px; background: #fff; color: var(--ac-green-ink); font-family: inherit; font-weight: 700; font-size: 12.5px; line-height: 1; cursor: pointer; }
.te-ac .tk-info span { display: block; margin-top: 2px; color: var(--ac-muted); font-size: 13.5px; }
.te-ac .tk-go { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; background: var(--ac-green-btn); color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; }
.te-ac .tk-go:hover { background: #0a6b45; color: #fff; }
.te-ac .tk-go .ac-ico { width: 18px; height: 18px; }

/* shipments listed one under the other (dashboard) */
.te-ac .tk-card + .tk-card, .te-ac .ac-ship-title + .tk-card { margin-top: 8px; }
.te-ac .ac-ship-title { margin: 14px 0 0; color: var(--ac-muted); font-size: 13.5px; }
.te-ac .ac-ship-title:first-of-type { margin-top: 0; }
.te-ac .ac-ship-title + link + .tk-card { margin-top: 8px; }
@media (max-width: 900px) { .te-ac .rw-hero { grid-template-columns: 1fr; } .te-ac .rw-hero .rw-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); } .te-ac .rw-how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .te-ac .tk-card { grid-template-columns: auto minmax(0, 1fr); } .te-ac .tk-go { grid-column: 1 / -1; justify-content: center; width: 100%; }
  .te-ac .rw-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; } .te-ac .rw-row .d { grid-column: 1; grid-row: 2; } .te-ac .rw-row .t { grid-column: 1; grid-row: 1; } .te-ac .rw-row .p { grid-column: 2; grid-row: 1; } .te-ac .rw-row .s { grid-column: 2; grid-row: 2; }
  .te-ac .rw-hero .rw-big { font-size: 38px; } .te-ac .rw-how { grid-template-columns: 1fr; }
}
