/* ==========================================================================
   The amazing-offer row on the product page - Product/_DesktopDeals.cshtml
   --------------------------------------------------------------------------
   One line: the store's "پیشنهاد شگفت‌انگیز" ribbon (the ProductRibbons artwork, moved here
   from the gallery) at the start - the right - and the countdown at the end - the left.
   No box around it: the ribbon is the colour, the digits are the sale red the cards' own
   countdown uses (home-showcase.css .tc-sc-card__timer).
   ========================================================================== */

.tc-pdp-deal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
    margin: 0 0 16px;
    direction: rtl;
}

.tc-pdp-deal__flag {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    min-width: 0;
}

/* the plugin lays its ribbon over a photo; here it is a plain item in the row */
html body .tc-pdp-deal__flag > .ribbon-position {
    position: static;
    padding: 0;
}

.tc-pdp-deal__flag .product-ribbon .ribbon-picture {
    width: auto;
    max-width: 100%;
    height: 18px;
}

/* until the ribbon lands, or where the store has none */
.tc-pdp-deal__text {
    font-size: 14px;
    font-weight: 800;
    line-height: 22px;
    color: #ED303D;
    white-space: nowrap;
}

.tc-pdp-deal__timer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    color: #ED303D;
}

.tc-pdp-deal__clock {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

/* the theme's timer writes <span class="t">90</span><span class="d">:</span>... */
html body .tc-pdp-deal .km-timer {
    display: flex;
    align-items: center;
    gap: 3px;
    float: none;
    margin: 0;
    padding: 0;
    background: none;
    direction: ltr;
    font-family: yekanbakh, tahoma, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 22px;
    color: #ED303D;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

html body .tc-pdp-deal .km-timer > .t {
    min-width: 2ch;
    text-align: center;
}

html body .tc-pdp-deal .km-timer > .d {
    color: #C2C3C7;
    font-weight: 400;
}

@media (max-width: 991.98px) {
    /* under the photos, inside the pinned block the page's sheet slides over: clear of its edge */
    .tc-pdp-deal {
        margin: 12px 0 20px;
    }

    html body .tc-pdp-deal .km-timer {
        font-size: 14px;
    }
}
