/* Shopee's Relâmpago column and its floating detail panel. */
.mk-shopee-table th.mk-item-cell { width: auto; }
.mk-shopee-table th:nth-child(7), .mk-shopee-table td.mk-shopee-flash-cell { width: 210px; }
.mk-shopee-table td.mk-shopee-flash-cell { padding: 16px 8px; text-align: center; vertical-align: middle; }
.mk-shopee-table .sh-flash-empty { color: #99a1af; font-size: 11px; }
.sh-flash-active { --sh-flash-bg: #fff4e5; --sh-flash-border: #f5c77e; --sh-flash-label: #8a4b00; }
.sh-flash-scheduled { --sh-flash-bg: #f7f3ff; --sh-flash-border: #a78bfa; --sh-flash-label: #5b2db8; }
.mk-shopee-table .sh-flash-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 3px;
  width: 100%; padding: 8px 12px; border: 1px solid var(--sh-flash-border); border-radius: 14px;
  background: var(--sh-flash-bg); color: #101828; text-align: left; cursor: default;
}
.mk-shopee-table .sh-flash-card.sh-flash-scheduled { border-style: dashed; }
.sh-flash-card .sh-flash-label { color: var(--sh-flash-label); font-size: 11px; font-weight: 800; line-height: 1.5; letter-spacing: .025em; }
.sh-flash-card .sh-flash-price { font-size: 15px; font-weight: 800; line-height: 1.25; }
.sh-flash-card .sh-flash-discount { margin-left: 6px; }
.sh-flash-discount {
  display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 6px;
  color: #166534; background: #e9f7ef; font-size: 11px; font-weight: 600; white-space: nowrap; line-height: 1.5;
}
.sh-flash-card .sh-flash-stock { color: #4a5565; font-size: 12px; line-height: 16px; }
.mk-shopee-table .sh-flash-card:focus-visible, .sh-flash-tip button:focus-visible { outline: 2px solid var(--sh-flash-label); outline-offset: 2px; }
.sh-flash-tip {
  position: fixed; z-index: 62; box-sizing: border-box; width: min(288px, calc(100vw - 12px));
  max-height: calc(100vh - 12px); overflow: visible; font-family: inherit; font-size: 12px; line-height: 16px;
  border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; color: #101828; text-align: left;
  box-shadow: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
}
.sh-flash-tip::after { content: ''; position: absolute; width: 8px; height: 8px; background: white; transform: rotate(45deg); pointer-events: none; }
.sh-flash-tip[data-side="left"]::after { top: calc(var(--sh-arrow-position) - 4px); right: -5px; border-top: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb; }
.sh-flash-tip[data-side="right"]::after { top: calc(var(--sh-arrow-position) - 4px); left: -5px; border-bottom: 1px solid #e5e7eb; border-left: 1px solid #e5e7eb; }
.sh-flash-tip[data-side="top"]::after { left: calc(var(--sh-arrow-position) - 4px); bottom: -5px; border-bottom: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb; }
.sh-flash-tip[data-side="bottom"]::after { left: calc(var(--sh-arrow-position) - 4px); top: -5px; background: var(--sh-flash-bg); border-top: 1px solid #e5e7eb; border-left: 1px solid #e5e7eb; }
.sh-flash-tip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid color-mix(in srgb,var(--sh-flash-border) 40%,transparent); border-radius: 13px 13px 0 0; background: var(--sh-flash-bg); }
.sh-flash-tip-head strong { display: inline-flex; align-items: center; gap: 6px; color: var(--sh-flash-label); font-size: 12px; font-weight: 800; letter-spacing: .025em; }
.sh-flash-tip-head > span { color: #6a7282; font-size: 10px; line-height: 1.5; font-weight: 500; }
.sh-flash-tip-price { padding: 12px 14px 8px; }
.sh-flash-tip-price > span { display: block; color: #6a7282; font-size: 10px; font-weight: 600; letter-spacing: .05em; line-height: 15px; text-transform: uppercase; }
.sh-flash-tip-price > div { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.sh-flash-tip-price strong { font-size: 18px; font-weight: 800; line-height: 28px; }
.sh-flash-tip-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; padding: 10px 14px; border-top: 1px solid #f3f4f6; font-size: 12px; line-height: 16px; }
.sh-flash-tip-facts dt { margin: 0; color: #6a7282; }
.sh-flash-tip-facts dd { margin: 0; text-align: right; font-weight: 500; }
.sh-flash-tip-facts .sh-flash-period-label, .sh-flash-tip-facts .sh-flash-period { grid-column: span 2; }
.sh-flash-tip-facts .sh-flash-period { margin: -4px 0 4px; font-variant-numeric: tabular-nums; text-align: left; }
.sh-flash-tip-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; border-top: 1px solid #f3f4f6; border-radius: 0 0 13px 13px; background: #f9fafb; }
.sh-flash-tip-footer > span { color: #6a7282; font: 10px/15px ui-monospace,monospace; overflow-wrap: anywhere; }
.sh-flash-tip-footer button { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; padding: 2px 6px; border: 1px solid #e5e7eb; border-radius: 6px; color: #4a5565; background: white; font: inherit; font-size: 10px; line-height: 15px; font-weight: 600; cursor: pointer; }
.sh-flash-tip-footer button:hover { border-color: #fdba74; color: #ea580c; }
@media(max-height: 300px) { .sh-flash-tip { overflow: auto; } }
