/* idarom: SROK_POSTAVKI block styles */
.idarom-srok {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f6f8fa;
    border-left: 3px solid #cbd2d9;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}
.idarom-srok__title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}
.idarom-srok__line {
    color: #555;
}
.idarom-srok__line b {
    color: #1a1a1a;
    font-weight: 600;
}

/* in-stock (qty > 0) — green */
.idarom-srok--instock {
    background: #eef9ee;
    border-left-color: #2e8b2e;
}
.idarom-srok--instock .idarom-srok__line b {
    color: #1f6d1f;
}

/* preorder (qty=0, srok>0) — yellow */
.idarom-srok--preorder {
    background: #fff9eb;
    border-left-color: #d99500;
}
.idarom-srok--preorder .idarom-srok__title {
    color: #b87800;
}

/* unavailable (qty=0, srok=0) — red */
.idarom-srok--unavailable {
    background: #fbf0ee;
    border-left-color: #c14848;
    opacity: 0.92;
}
.idarom-srok--unavailable .idarom-srok__title {
    color: #a13030;
}
.idarom-srok--unavailable .idarom-srok__line {
    color: #888;
}

/* no-info (qty=0, no SROK property) — grey */
.idarom-srok--no-info {
    background: #f1f3f5;
    border-left-color: #6c757d;
    opacity: 0.95;
}
.idarom-srok--no-info .idarom-srok__title {
    color: #495057;
}
.idarom-srok--no-info .idarom-srok__line {
    color: #6c757d;
}

/* ===== Hide buy actions for unbuyable products (unavailable + no-info) =====
   Inline <script> inside the srok block sets html.idarom-unbuyable on render.
   Scoped to product detail area to avoid hiding header cart / mini-basket / quick-view. */
.idarom-unbuyable .catalog-detail .buy_block,
.idarom-unbuyable .catalog-detail .catalog-detail__buy-block,
.idarom-unbuyable .catalog-detail .catalog-detail__cart,
.idarom-unbuyable .catalog-detail .item-action--basket,
.idarom-unbuyable .catalog-detail .to_cart,
.idarom-unbuyable .catalog-detail .btn-ocb,
.idarom-unbuyable .catalog-detail .in_cart,
.idarom-unbuyable .catalog-detail .ocb-wrapper,
.idarom-unbuyable .catalog-detail .counter.js-ajax,
.idarom-unbuyable .catalog-detail .btn-actions__primary-button,
.idarom-unbuyable .catalog-detail__forms .buy_block,
.idarom-unbuyable .catalog-detail__forms .catalog-detail__cart,
.idarom-unbuyable .template-popup-price .buy_block,
.idarom-unbuyable .template-popup-price .catalog-detail__cart,
.idarom-unbuyable .template-popup-price .to_cart,
.idarom-unbuyable .template-popup-price .btn-ocb,
.idarom-unbuyable .template-popup-price .ocb-wrapper {
    display: none !important;
}

/* ===== FAQ блок на услугах (idarom) ===== */
.idarom-faq-title {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: #1a1a1a;
}
.idarom-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0 24px;
}
.idarom-faq__item {
    background: #f6f8fa;
    border: 1px solid #e5e9ed;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .15s ease, background .15s ease;
}
.idarom-faq__item[open] {
    background: #fff;
    border-color: #d99500;
}
.idarom-faq__q {
    cursor: pointer;
    padding: 14px 16px 14px 44px;
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
    list-style: none;
    position: relative;
    user-select: none;
    line-height: 1.4;
}
.idarom-faq__q::-webkit-details-marker { display: none; }
.idarom-faq__q::before {
    content: '+';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    font-size: 22px;
    font-weight: 400;
    color: #d99500;
    transition: transform .2s ease;
}
.idarom-faq__item[open] .idarom-faq__q::before {
    content: '−';
    color: #b87800;
}
.idarom-faq__a {
    padding: 0 16px 16px 44px;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .idarom-faq-title { font-size: 19px; }
    .idarom-faq__q { font-size: 15px; padding: 12px 12px 12px 38px; }
    .idarom-faq__a { padding: 0 12px 14px 38px; font-size: 14px; }
}

/* ===== Brand description block (idarom) ===== */
.idarom-brand-description {
    font-size: 15px;
    line-height: 1.65;
    color: #333;
    margin: 16px 0 28px;
}
.idarom-brand-description__lead {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin: 0 0 24px;
}
.idarom-brand-description__h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e9ed;
}
.idarom-brand-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 768px) {
    .idarom-brand-perks {
        grid-template-columns: 1fr 1fr;
        gap: 12px 24px;
    }
}
.idarom-brand-perks li {
    position: relative;
    padding: 10px 14px 10px 38px;
    background: #f6f8fa;
    border-left: 3px solid #d99500;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}
.idarom-brand-perks li::before {
    content: '✓';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    color: #d99500;
    font-weight: 700;
    font-size: 16px;
}
.idarom-brand-perks li strong {
    color: #1a1a1a;
    font-weight: 600;
}
.idarom-brand-description__cta {
    background: #fff9eb;
    border: 1px solid #f0d99a;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 24px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: #4a3a00;
}
.idarom-brand-description__cta a {
    color: #b87800;
    font-weight: 600;
    border-bottom: 1px dashed #d99500;
    text-decoration: none;
}
.idarom-brand-description__cta a:hover {
    color: #8a5800;
    border-bottom-style: solid;
}
