/* MJS Traders – the kit drawer (header cart hover). Brand: safety yellow #f3cc2e on near-black #161616. */

/* ---------- header button ---------- */
@media (min-width: 1201px) {
  #topcartlink { background: #f3cc2e; transition: background .2s; }
  #flyout-cart.active #topcartlink, #topcartlink:hover { background: #ffd83a; }
  #topcartlink a.ico-cart { display: flex !important; align-items: center; justify-content: center; gap: 11px; height: 75px; padding: 0 22px !important; text-align: left; }
  #topcartlink a.ico-cart::before { display: none !important; }
  #topcartlink .kd-bag { position: relative; display: block !important; flex: none; width: 30px; height: 30px; color: #161616; overflow: visible !important; }
  #topcartlink .kd-bag svg { display: block; width: 30px; height: 30px; }
  #topcartlink .kd-bag .cart-qty { position: absolute; top: -7px; right: -9px; display: block !important; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #161616; box-shadow: 0 0 0 2px #f3cc2e; text-align: center; overflow: visible !important; }
  #topcartlink .kd-bag .cart-qty-number { display: block !important; color: #f3cc2e !important; font: 800 11px/20px 'Fjalla One', Oswald, Arial, sans-serif !important; letter-spacing: 0; }
  #topcartlink .kd-bag .cart-qty-number::before, #topcartlink .kd-bag .cart-qty-number::after { content: none !important; }
  #topcartlink .kd-bag.kd-bump { animation: kdBump .6s cubic-bezier(.3, 1.6, .5, 1); }
  #topcartlink .kd-txt { display: block !important; min-width: 0; }
  #topcartlink .cart-label { display: block !important; color: #161616 !important; font: 700 13px/16px 'Fjalla One', Oswald, Arial, sans-serif; letter-spacing: 1.5px !important; text-transform: uppercase; }
  #topcartlink .cart-total { display: block !important; margin-top: 2px; color: #161616 !important; font: 500 13px/16px 'Fjalla One', Oswald, Arial, sans-serif; opacity: .78 !important; }
}
@keyframes kdBump { 0% { transform: scale(1); } 35% { transform: scale(1.22) rotate(-8deg); } 100% { transform: scale(1); } }

/* ---------- the drawer ---------- */
@media (min-width: 1201px) {
  #flyout-cart .flyout-cart.kd-shell {
    display: block !important; visibility: hidden; opacity: 0; pointer-events: none;
    top: 75px; right: 0; width: 430px; padding: 0; background: transparent; box-shadow: none;
    transform: translateY(-10px) scale(.985); transform-origin: top right;
    transition: opacity .22s ease, transform .3s cubic-bezier(.2, .9, .3, 1.15), visibility 0s linear .3s;
  }
  #flyout-cart.active .flyout-cart.kd-shell, #flyout-cart:focus-within .flyout-cart.kd-shell {
    visibility: visible; opacity: 1; pointer-events: auto; transform: none;
    transition: opacity .2s ease, transform .35s cubic-bezier(.2, .9, .3, 1.15), visibility 0s;
  }
}

.kd { position: relative; display: flex; flex-direction: column; max-height: calc(100vh - 140px); background: #fff; border-radius: 0 0 18px 18px; overflow: hidden; color: #161616; font-family: Lato, Arial, sans-serif; text-align: left;
  box-shadow: 0 28px 60px -18px rgba(10, 10, 10, .45), 0 4px 14px rgba(10, 10, 10, .12); }
.kd a { text-decoration: none; }
.kd button { font-family: inherit; cursor: pointer; }

/* head: black band with the hazard stripe used across the site */
.kd-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 19px; background: #161616; color: #fff; }
.kd-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: repeating-linear-gradient(-45deg, #f3cc2e 0 9px, #161616 9px 18px); }
.kd-head b { display: block; font: 600 19px/1.1 'Fjalla One', Oswald, Arial, sans-serif; letter-spacing: .3px; }
.kd-head small { display: block; margin-top: 3px; color: #b9b9b9; font-size: 12.5px; }
.kd-all { flex: none; padding: 7px 13px; border: 1px solid rgba(243, 204, 46, .55); border-radius: 999px; color: #f3cc2e !important; font: 600 12px/1 Lato, Arial, sans-serif; letter-spacing: .4px; transition: background .2s, color .2s; }
.kd-all:hover { background: #f3cc2e; color: #161616 !important; }
.kd-flash .kd-head b { color: #f3cc2e; }
.kd-flash .kd-head b::before { content: ""; display: inline-block; width: 9px; height: 9px; margin: 0 8px 2px 0; border-radius: 50%; background: #3ccf6b; box-shadow: 0 0 0 4px rgba(60, 207, 107, .25); animation: kdPulse 1.4s ease-out infinite; }
@keyframes kdPulse { 50% { box-shadow: 0 0 0 7px rgba(60, 207, 107, 0); } }

/* free delivery progress */
.kd-free { padding: 13px 20px 15px; background: #fffbe8; border-bottom: 1px solid #f4ebc2; }
.kd-free p { margin: 0 0 9px; font-size: 13px; line-height: 1.35; color: #3a3a3a; }
.kd-free p b { color: #161616; }
.kd-bar { position: relative; height: 8px; border-radius: 6px; background: #efe6bd; }
.kd-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, #e9b800, #f3cc2e); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.kd-bar span { position: absolute; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: #161616; color: #f3cc2e; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: left .6s cubic-bezier(.2, .8, .2, 1); }
.kd-free.done { background: #ecf9f0; border-color: #cdebd7; }
.kd-free.done .kd-bar { background: #cdebd7; }
.kd-free.done .kd-bar i { background: linear-gradient(90deg, #22a352, #3ccf6b); }
.kd-free.done .kd-bar span { background: #22a352; color: #fff; }

/* items */
.kd-lines { flex: 1 1 auto; min-height: 0; margin: 0; padding: 4px 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.kd-line { position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 14px; margin: 0 !important; padding: 14px 44px 14px 20px; border-bottom: 1px solid #f0f0f0; animation: kdIn .45s cubic-bezier(.2, .8, .2, 1) both; transition: opacity .25s, background .2s; }
.kd-line:last-child { border-bottom: 0; }
.kd-line:hover { background: #fcfcfa; }
.kd-line:nth-child(2) { animation-delay: .04s; } .kd-line:nth-child(3) { animation-delay: .08s; } .kd-line:nth-child(4) { animation-delay: .12s; } .kd-line:nth-child(n+5) { animation-delay: .16s; }
@keyframes kdIn { from { opacity: 0; transform: translateY(8px); } }
.kd-img { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 12px; background: radial-gradient(circle at 50% 35%, #fff 0, #f2f2ef 75%); overflow: hidden; }
.kd-img img { display: block; max-width: 86%; max-height: 86%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.kd-line:hover .kd-img img { transform: scale(1.06); }
.kd-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kd-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #161616 !important; font: 600 14px/1.3 Lato, Arial, sans-serif; }
.kd-name:hover { text-decoration: underline; text-decoration-color: #f3cc2e; text-decoration-thickness: 2px; }
.kd-meta { color: #6d6d6d; font-size: 12px; line-height: 1.35; }
.kd-std { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; max-width: 100%; padding: 2px 8px 2px 6px; border-radius: 6px; background: #eef5fa; color: #0f5f8a; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.kd-step { display: inline-flex; align-items: center; height: 30px; border: 1px solid #e2e2e2; border-radius: 999px; background: #fff; }
.kd-step button { width: 30px; height: 28px; border: 0; background: none; color: #161616; font-size: 17px; line-height: 1; border-radius: 999px; transition: background .15s; }
.kd-step button:hover { background: #f3cc2e; }
.kd-step output { min-width: 22px; text-align: center; font: 700 13px/1 Lato, Arial, sans-serif; }
.kd-price { text-align: right; font: 700 15px/1.1 'Fjalla One', Oswald, Arial, sans-serif; white-space: nowrap; }
.kd-price small { display: block; margin-top: 2px; color: #8a8a8a; font: 400 11px/1 Lato, Arial, sans-serif; }
.kd-x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #9a9a9a; opacity: .7; transition: background .15s, color .15s, opacity .15s; }
.kd-line:hover .kd-x { opacity: 1; }
.kd-x:hover { background: #fdecec; color: #c62828; }
.kd-busy { opacity: .45; pointer-events: none; }
.kd-leave { animation: kdOut .35s ease forwards; }
@keyframes kdOut { to { opacity: 0; transform: translateX(24px); } }
.kd-wait .kd { cursor: progress; }

/* complete the protection */
.kd-add { margin: 2px 16px 12px; padding: 11px 12px 12px; border: 1.5px dashed #e6c22c; border-radius: 14px; background: linear-gradient(180deg, #fffdf3, #fff); }
.kd-add-why { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #8a6d00; font: 700 11px/1 Lato, Arial, sans-serif; letter-spacing: .8px; text-transform: uppercase; }
.kd-add-why::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: #f3cc2e; transform: rotate(45deg); }
.kd-add-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 11px; align-items: center; }
.kd-add .kd-img { width: 52px; height: 52px; border-radius: 10px; }
.kd-add .kd-name { font-size: 13px; }
.kd-plus { display: flex; flex-direction: column; align-items: center; padding: 8px 12px; border: 0; border-radius: 10px; background: #161616; color: #f3cc2e; font: 700 13px/1 Lato, Arial, sans-serif; white-space: nowrap; transition: transform .15s, background .2s; }
.kd-plus small { margin-top: 4px; color: #d8d8d8; font-size: 10.5px; font-weight: 400; }
.kd-plus:hover { transform: translateY(-1px); background: #000; }

/* footer */
.kd-foot { flex: none; padding: 14px 20px 18px; border-top: 1px solid #ececec; background: #fafaf8; }
.kd-sum { display: flex; align-items: baseline; justify-content: space-between; }
.kd-sum span { color: #555; font-size: 14px; }
.kd-sum b { font: 700 21px/1.1 'Fjalla One', Oswald, Arial, sans-serif; }
.kd-disc { margin-bottom: 4px; } .kd-disc b { color: #22a352; font-size: 15px; }
.kd-note { margin: 4px 0 13px; color: #8a8a8a; font-size: 11.5px; line-height: 1.4; }
.kd-go { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; height: 50px; border-radius: 12px; background: #161616; color: #f3cc2e !important; font: 600 16px/1 'Fjalla One', Oswald, Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; overflow: hidden; transition: transform .15s, box-shadow .2s; }
.kd-go::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(243, 204, 46, .28), transparent); transform: skewX(-18deg); animation: kdShine 3.6s ease-in-out infinite 1s; }
@keyframes kdShine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.kd-go:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .55); }
.kd-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 12px; }
.kd-trust span { display: inline-flex; align-items: center; gap: 5px; color: #5a5a5a; font-size: 11.5px; }
.kd-trust svg { color: #22a352; }

/* empty kit */
.kd-empty { padding: 26px 28px 28px; text-align: center; }
.kd-empty svg { display: block; margin: 0 auto 8px; animation: kdFloat 3.2s ease-in-out infinite; }
@keyframes kdFloat { 50% { transform: translateY(-5px); } }
.kd-empty b { display: block; font: 600 18px/1.2 'Fjalla One', Oswald, Arial, sans-serif; }
.kd-empty p { margin: 6px 0 16px; color: #6d6d6d; font-size: 13.5px; line-height: 1.45; }
.kd-wa { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; background: #e8f8ee; color: #128c4a !important; font-size: 13px; font-weight: 700; transition: background .2s; }
.kd-wa:hover { background: #d3f2df; }

.kd a:focus-visible, .kd button:focus-visible { outline: 2px solid #f3cc2e; outline-offset: 2px; box-shadow: 0 0 0 4px #161616; }

@media (prefers-reduced-motion: reduce) {
  .kd *, .kd *::before, .kd *::after, #flyout-cart .flyout-cart.kd-shell, #topcartlink .kd-bag { animation: none !important; transition: none !important; }
}

/* the theme writes everything in the old flyout in capitals; the drawer sets its own case */
.kd, .kd * { text-transform: none; }
.kd-go, .kd-add-why { text-transform: uppercase; }
@media (min-width: 1201px) {
  #flyout-cart .flyout-cart.kd-shell { width: 430px !important; z-index: 10050 !important; }
}
/* the floating WhatsApp button steps aside while the drawer is open */
.mjs-wa { transition: opacity .2s; }
body:has(#flyout-cart.active) .mjs-wa { opacity: 0; pointer-events: none; }
