.cp-flag {
    --cp-flag-forma: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 64' preserveAspectRatio='none'%3E%3Cpath d='M5 0H150V64Q147.5 56 134 55.1L27 44Q20 43 17.6 37.8L1.4 4.6Q0 0 5 0Z'/%3E%3C/svg%3E");
    position: absolute;
    top: 0;
    right: 0;
    z-index: 14;
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .5em .72em 1.1em 1.2em;
    color: #fff;
    font-size: 16.5px;
    font-weight: 900;
    letter-spacing: .2px;
    line-height: 1;
    isolation: isolate;
    filter: drop-shadow(0 4px 9px rgba(200, 12, 12, .5));
    pointer-events: none;
}
.cp-flag::before,
.cp-flag::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-top-right-radius: var(--cp-flag-raio, 0px);
    -webkit-mask: var(--cp-flag-forma) center / 100% 100% no-repeat;
    mask: var(--cp-flag-forma) center / 100% 100% no-repeat;
}
.cp-flag::before {
    inset: 0;
    background: linear-gradient(180deg, #ffb8b8 0%, #ff6a6a 50%, #ff3a3a 100%);
}
.cp-flag::after {
    inset: 2px 0 2px 2px;
    background: linear-gradient(180deg, #ff3030 0%, #e41414 50%, #a80707 100%);
}

.cp-flag-txt { text-shadow: 0 1px 2px rgba(0, 0, 0, .22); }

.cp-flag.is-grande { font-size: 21px; }

.cp-estoque {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 7px 10px;
    border-radius: 9px;
    overflow: hidden;
    background: rgba(224, 31, 31, .1);
    border: 1px solid rgba(224, 31, 31, .3);
    color: #c41a1a;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    pointer-events: none;
}

.cp-estoque-txt b { font-weight: 800; }

.cp-estoque.is-grande {
    padding: 10px 13px;
    font-size: 14px;
    border-radius: 11px;
}
.cp-estoque.is-grande .cp-estoque-chama { width: 13px; height: 13px; }

[data-theme="dark"] .cp-estoque {
    background: rgba(255, 94, 94, .16);
    border-color: rgba(255, 120, 120, .42);
    color: #ffc9c9;
}

.cp-estoque::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
    animation: cp-brilho 3.4s cubic-bezier(.16, 1, .3, 1) infinite;
}

.cp-estoque-chama {
    position: relative;
    display: inline-flex;
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    color: #e01f1f;
    animation: cp-tremer 1.9s ease-in-out infinite;
}
[data-theme="dark"] .cp-estoque-chama { color: #ff6b6b; }
.cp-estoque-chama svg { width: 100%; height: 100%; }

@keyframes cp-brilho {
    0%   { left: -60%; }
    55%  { left: 140%; }
    100% { left: 140%; }
}

@keyframes cp-tremer {
    0%, 100% { transform: scale(1) rotate(0deg); }
    45%      { transform: scale(1.14) rotate(-6deg); }
    70%      { transform: scale(1.04) rotate(4deg); }
}

@media (prefers-reduced-motion: reduce) {
    .cp-estoque::after, .cp-estoque-chama { animation: none; }
}

.cp-tempo {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 7px 10px;
    border-radius: 9px;
    background: rgba(124, 58, 237, .12);
    border: 1px solid rgba(124, 58, 237, .32);
    color: #6d28d9;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    box-sizing: border-box;
}

.cp-tempo-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: rgba(124, 58, 237, .18);
    flex-shrink: 0;
}
.cp-tempo-ico svg { width: 11px; height: 11px; }

.cp-tempo time {
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    letter-spacing: .3px;
}

.cp-tempo.is-grande {
    padding: 10px 13px;
    font-size: 14px;
    border-radius: 11px;
}
.cp-tempo.is-grande .cp-tempo-ico { width: 22px; height: 22px; }
.cp-tempo.is-grande .cp-tempo-ico svg { width: 13px; height: 13px; }

[data-theme="dark"] .cp-tempo {
    background: rgba(139, 92, 246, .16);
    border-color: rgba(167, 139, 250, .38);
    color: #ddd6fe;
}
[data-theme="dark"] .cp-tempo-ico { background: rgba(167, 139, 250, .22); }

@media (max-width: 520px) {
    .cp-flag { font-size: 15px; }
    .cp-tempo { font-size: 11px; padding: 6px 9px; }
    .cp-estoque { font-size: 11px; padding: 6px 9px; }
}
