/* ==========================================================================
   PRODUCT PAGE - OUT OF STOCK
   --------------------------------------------------------------------------
   Views/Product/_PdpOutOfStock.cshtml: a product that is out of stock as a whole. On a desktop it
   takes the buy box's place (the box's own surface, so no frame of its own) and the sticky card
   beside the sections is not drawn; on a phone it is a card in the page and the buy bar is gone.

   «مشاهده کالاهای مشابه» is outlined (a secondary button: it must not pass for the buy button,
   owner 2026-10-29). The bell is tinted beside it - it waits for this product, it does not take
   the shopper anywhere. Then the brand within the category, the category and the brand.
   ========================================================================== */

.tc-oos {
    --tc-oos-ink: #0C0C0C;
    --tc-oos-text: #3F4064;
    --tc-oos-muted: #81858B;
    --tc-oos-rule: #EDEDED;
    --tc-oos-accent: var(--ryan-primary, #007AD0);
    --tc-oos-tint: rgba(var(--ryan-primary-rgb, 0, 122, 208), 0.08);
    --tc-oos-tint-strong: rgba(var(--ryan-primary-rgb, 0, 122, 208), 0.14);
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    font-family: IRANYekanX, tahoma, sans-serif;
    direction: rtl;
    text-align: right;
}

.tc-oos--phone {
    width: auto;
    margin: 16px 16px 8px;
    padding: 16px;
    border: 1px solid #E9EAEB;
    border-radius: 16px;
    background: #FFFFFF;
}

/* --------------------------------------------------------------------------
   «ناموجود» and the line under it
   -------------------------------------------------------------------------- */

.tc-oos__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tc-oos__icon {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #F1F2F4;
    color: var(--tc-oos-muted);
}

.tc-oos__icon svg {
    width: 22px;
    height: 22px;
}

.tc-oos__text {
    min-width: 0;
}

.tc-oos__title {
    color: var(--tc-oos-ink);
    font-size: var(--tc-fs-h2, 17px);
    font-weight: var(--tc-fw-title, 700);
    line-height: 1.5;
}

.tc-oos__note {
    margin: 2px 0 0;
    color: var(--tc-oos-muted);
    font-size: var(--tc-fs-small, 14px);
    font-weight: var(--tc-fw-text, 400);
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   The two buttons
   -------------------------------------------------------------------------- */

.tc-oos__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tc-oos__similar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--tc-oos-accent);
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--tc-oos-accent) !important;
    font-size: var(--tc-fs-h4, 15px);
    font-weight: var(--tc-fw-label, 600);
    text-decoration: none !important;
    transition: background-color .15s ease, transform .1s ease;
}

.tc-oos__similar[hidden] {
    display: none;
}

.tc-oos__similar svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.tc-oos__similar:hover {
    background: var(--tc-oos-tint);
}

.tc-oos__similar:active {
    transform: scale(.98);
}

.tc-oos__similar:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--tc-oos-tint-strong);
}

/* the bell and the line above it */
.tc-oos__bis {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.tc-oos__bis-hint {
    margin: 0;
    color: var(--tc-oos-text);
    font-size: var(--tc-fs-small, 14px);
    font-weight: var(--tc-fw-text, 400);
    line-height: 1.8;
}

/* the bell, tinted here (product.less draws it solid for the phone bar's variant panel) */
body.page-product .tc-oos .tc-bis-btn {
    border-color: transparent;
    background: var(--tc-oos-tint);
    color: var(--tc-oos-accent);
    font-size: var(--tc-fs-h4, 15px);
    font-weight: var(--tc-fw-label, 600);
}

body.page-product .tc-oos .tc-bis-btn:hover {
    background: var(--tc-oos-tint-strong);
}

/* waiting: the press now cancels */
body.page-product .tc-oos .tc-bis-btn.is-on {
    border-color: var(--tc-oos-rule);
    background: #FFFFFF;
    color: var(--tc-oos-text);
}

/* --------------------------------------------------------------------------
   The category and the brand
   -------------------------------------------------------------------------- */

.tc-oos__more {
    margin: 0;
    padding: 4px 0 0;
    border-top: 1px solid var(--tc-oos-rule);
    list-style: none;
}

.tc-oos__more li + li {
    border-top: 1px solid var(--tc-oos-rule);
}

.tc-oos__more a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding: 10px 0;
    color: var(--tc-oos-text) !important;
    line-height: 1.7;
    font-size: var(--tc-fs-small, 14px);
    font-weight: var(--tc-fw-text, 400);
    text-decoration: none !important;
}

.tc-oos__more a b {
    color: var(--tc-oos-ink);
    font-weight: var(--tc-fw-label, 600);
}

.tc-oos__more a svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: var(--tc-oos-muted);
}

.tc-oos__more a:hover b,
.tc-oos__more a:hover svg {
    color: var(--tc-oos-accent);
}

/* --------------------------------------------------------------------------
   The page around it
   -------------------------------------------------------------------------- */

/* the similar row, reached from the button, clear of the sticky header and the phone's tab bar */
#tc-similar {
    scroll-margin-top: 150px;
}

body.tc-pdpm #tc-similar {
    scroll-margin-top: 110px;
}

/* no sticky card beside the sections: the sections take the whole width (over product.less's
   300px column, "body.page-product .km-product-page-content .gridPdp") */
body.page-product .km-product-page-content .gridPdp.tc-grid--oos,
.gridPdp.tc-grid--oos {
    grid-template-columns: minmax(0, 1fr);
}

/* in the desktop buy box: the box's rule above already parts it from the seller */
body.page-product .km-product-left-left .pdp-sidebuy:has(> .pdp-sidebuy__cta > .tc-oos) {
    margin-top: 0;
}
