/* ==========================================================================
   weVideo Ofertas — Stories
   ========================================================================== */

/* ---- Upsell: card na gaveta do produto ---- */

.wevideo-stories-popup .wvo-upsell {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 12px !important;
    padding: 12px !important;
    border: 1.5px solid #111 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #111 !important;
    text-align: left !important;
    cursor: pointer;
    box-sizing: border-box;
}

.wvo-upsell__tag {
    position: absolute;
    top: -9px;
    left: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wvo-upsell__thumb {
    flex: 0 0 48px;
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px;
    object-fit: cover;
}

.wvo-upsell__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wvo-upsell__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wvo-upsell__price {
    font-size: 13px;
    font-weight: 700;
}

.wvo-upsell__price del {
    opacity: 0.55;
    font-weight: 400;
    margin-right: 4px;
}

.wvo-upsell__price ins {
    text-decoration: none;
}

.wvo-upsell__cta {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
}

/* ---- Desconto por quantidade ---- */

.wvo-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #fff7e6;
    border: 1px solid #ffe0a3;
}

.wvo-qty.is-applied {
    background: #eaf7ef;
    border-color: #b7e4c7;
}

.wvo-qty__icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wvo-qty__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.wvo-qty__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a5a00;
}

.wvo-qty.is-applied .wvo-qty__label {
    color: #1e7a3c;
}

.wvo-qty__text {
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

.wevideo-stories-popup .wvo-qty__cta {
    flex: 0 0 auto;
    padding: 8px 12px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
    cursor: pointer;
}

/* ---- Cross-sell: gaveta "Combina com" ---- */

.wvo-cross__added {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eaf7ef;
    color: #1e7a3c;
    font-size: 13px;
    font-weight: 700;
}

.wvo-cross__check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1e7a3c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.wvo-cross__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.wvo-cross__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #ececec;
    border-radius: 12px;
    cursor: pointer;
}

.wvo-cross__thumb {
    flex: 0 0 56px;
    width: 56px !important;
    height: 56px !important;
    border-radius: 8px;
    object-fit: cover;
}

.wvo-cross__info {
    flex: 1;
    min-width: 0;
}

.wvo-cross__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wvo-cross__price {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
}

.wvo-cross__price del {
    opacity: 0.55;
    font-weight: 400;
    margin-right: 4px;
}

.wvo-cross__price ins {
    text-decoration: none;
}

.wvo-cross__price .screen-reader-text,
.wvo-upsell__price .screen-reader-text,
.wvo-bump__price .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

.wevideo-stories-popup .wvo-cross__add {
    position: relative;
    flex: 0 0 36px;
    width: 36px !important;
    height: 36px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.wvo-cross__add.is-loading {
    color: transparent !important;
}

.wvo-cross__add.is-loading::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wevideo-spin 0.7s linear infinite;
}

.wvo-cross__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* ---- Order bump: card na sacola ---- */

.wvo-bump {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 12px;
    border: 1.5px dashed #f0b849;
    border-radius: 12px;
    background: #fffbeb;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wvo-bump.is-checked {
    border-style: solid;
    border-color: #1e7a3c;
    background: #eaf7ef;
}

.wvo-bump.is-busy {
    opacity: 0.6;
    pointer-events: none;
}

.wvo-bump__check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wvo-bump__box {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 2px solid #8c8f94;
    border-radius: 5px;
    background: #fff;
}

.wvo-bump.is-checked .wvo-bump__box {
    border-color: #1e7a3c;
    background: #1e7a3c;
}

.wvo-bump.is-checked .wvo-bump__box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.wvo-bump__check:focus-visible + .wvo-bump__box {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.wvo-bump__thumb {
    flex: 0 0 44px;
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px;
    object-fit: cover;
}

.wvo-bump__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.wvo-bump__headline {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

.wvo-bump__title {
    font-size: 12px;
    color: #6b6b6b;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wvo-bump__price {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 13px;
    line-height: 1.3;
}

.wvo-bump__price del {
    font-size: 11px;
    color: #8c8f94;
}

.wvo-bump__price strong {
    color: #111;
}

.wvo-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 8px;
    background: #fff1c2;
    color: #8a5a00;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}
