.rbob-offer,
.rbob-offer * {
    box-sizing: border-box;
}

.rbob-offer {
    --rbob-text: rgb(92, 79, 53);
    --rbob-accent: rgba(140, 120, 81, 0.94);
    --rbob-gold: #c7ad73;
    --rbob-gold-dark: #a78d58;
    --rbob-soft: #fbf9f4;
    --rbob-border: rgba(140, 120, 81, .23);
    width: 100%;
    margin: 12px 0 15px;
    padding: 15px 0 0;
    border: 0;
    border-top: 1px solid var(--rbob-border);
    background: transparent;
    color: var(--rbob-text);
    font-family: "Red Hat Display", sans-serif;
    text-align: left;
}

.rbob-offer__header {
    margin: 0 0 10px;
}

.rbob-offer__title {
    margin: 0 !important;
    color: var(--rbob-text) !important;
    font-family: "Red Hat Display", sans-serif !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.rbob-offer__support {
    margin: 3px 0 0 !important;
    color: rgba(92, 79, 53, .64) !important;
    font-family: "Red Hat Display", sans-serif !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
}

.rbob-offer__list {
    display: grid;
    gap: 8px;
}

.rbob-offer__item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    min-width: 0;
    min-height: 72px;
    padding: 10px 11px;
    border: 1px solid var(--rbob-border);
    border-radius: 11px;
    background: var(--rbob-soft);
    box-shadow: none;
    transition: border-color .18s ease, background .18s ease;
}

.rbob-offer__item:hover {
    border-color: rgba(140, 120, 81, .40);
    background: #fff;
}

.rbob-offer__image {
    display: block;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 1px solid rgba(140, 120, 81, .14);
    border-radius: 9px;
    background: #fff;
}

.rbob-offer__image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: contain;
    padding: 2px;
}

.rbob-offer__content {
    min-width: 0;
}

.rbob-offer__product-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--rbob-text) !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.28;
    text-decoration: none !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rbob-offer__price-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
    color: rgba(92, 79, 53, .66);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.rbob-offer__price-line strong,
.rbob-offer__price-line strong .amount {
    color: var(--rbob-accent) !important;
    font-size: 12.5px;
    font-weight: 850;
}

.rbob-offer__price-line del {
    display: inline;
    color: rgba(92, 79, 53, .48);
    font-size: 10.5px;
    font-weight: 600;
    text-decoration-thickness: 1px;
}

.rbob-offer__discount {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(199, 173, 115, .18);
    color: #8f733f;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1;
    white-space: nowrap;
}

.rbob-offer__price-line ins {
    text-decoration: none;
}

.rbob-offer__copy {
    display: -webkit-box;
    overflow: hidden;
    margin: 4px 0 0 !important;
    color: rgba(92, 79, 53, .62) !important;
    font-size: 10.75px !important;
    line-height: 1.3 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.rbob-offer__action {
    display: flex;
    align-items: center;
}

.rbob-offer__button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid var(--rbob-gold) !important;
    border-radius: 9px !important;
    background: var(--rbob-gold) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-family: "Red Hat Display", sans-serif !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, opacity .18s ease;
}

.rbob-offer__button:hover {
    border-color: var(--rbob-gold-dark) !important;
    background: var(--rbob-gold-dark) !important;
    color: #fff !important;
}

.rbob-offer__button:focus-visible {
    outline: 3px solid rgba(140, 120, 81, .22) !important;
    outline-offset: 2px;
}

.rbob-offer__button[disabled] {
    opacity: .58;
    cursor: wait;
}

.rbob-offer__status {
    min-height: 0;
    margin: 0;
    color: var(--rbob-text);
    font-size: 10.5px;
    font-weight: 700;
}

.rbob-offer__status:not(:empty) {
    margin-top: 8px;
}

.rbob-offer__item.is-added {
    opacity: .55;
}

.woocommerce .wc-proceed-to-checkout .rbob-offer {
    margin-bottom: 13px;
}

/* Checkout: visual de “cupom” para a oferta não ficar solta entre as etapas. */
.woocommerce-checkout .rbob-offer--checkout {
    position: relative;
    clear: both;
    margin: 16px 0 18px;
    padding: 15px;
    border: 1px dashed rgba(140, 120, 81, .48);
    border-radius: 8px;
    background: #fffdf9;
}

.woocommerce-checkout .rbob-offer--checkout .rbob-offer__header {
    margin-bottom: 11px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(140, 120, 81, .28);
}

.woocommerce-checkout .rbob-offer--checkout .rbob-offer__item {
    background: #fff;
}

/* Mobile: cards em coluna, sem carrossel horizontal. */
@media (max-width: 767px) {
    .rbob-offer {
        margin-top: 10px;
        padding-top: 13px;
    }

    .rbob-offer__header {
        margin-bottom: 9px;
    }

    .rbob-offer__title {
        font-size: 15px !important;
    }

    .rbob-offer__support {
        margin-top: 3px !important;
        font-size: 10.75px !important;
    }

    .rbob-offer__list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        overflow: visible;
        padding: 0;
    }

    .rbob-offer__item {
        width: 100%;
        grid-template-columns: 50px minmax(0, 1fr) auto;
        gap: 9px;
        min-height: 76px;
        padding: 10px;
    }

    .rbob-offer__image {
        width: 50px;
        height: 50px;
    }

    .rbob-offer__product-title {
        font-size: 12px;
        line-height: 1.3;
        -webkit-line-clamp: 2;
    }

    .rbob-offer__price-line {
        margin-top: 3px;
        font-size: 10.5px;
    }

    .rbob-offer__price-line strong,
    .rbob-offer__price-line strong .amount {
        font-size: 12px;
    }

    .rbob-offer__copy {
        display: none;
    }

    .rbob-offer__button {
        min-height: 36px;
        padding: 8px 11px !important;
        font-size: 11px !important;
    }

    .woocommerce-checkout .rbob-offer--checkout {
        margin: 14px 0 16px;
        padding: 13px;
        border-radius: 7px;
    }
}

@media (max-width: 390px) {
    .rbob-offer__item {
        grid-template-columns: 46px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 9px;
    }

    .rbob-offer__image {
        width: 46px;
        height: 46px;
    }

    .rbob-offer__button {
        padding-left: 9px !important;
        padding-right: 9px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rbob-offer__item,
    .rbob-offer__button {
        transition: none;
    }
}
