/* ==========================================================================
   infostock.bg - articles "for subscribers" (v2)
   Loaded on the article page (screens/news/news_detail.jsp, only for a marked
   article) and on the application's page (screens/app/app.jsp), in addition
   to css/v2/base.css. The small lock of the lists is in base.css (.pw_lock):
   the lists are on every page.
   The block: screens/v2/partials/paywall-block.jsp - approved design
   "variant A": dark card #1a2740, lighter panel #24365a with the QR code and
   the price, white buttons.
   Wide: two store buttons + the panel with the QR code.
   Phone (<= 640px): one full-width button to the application's page, the
   price in a row, no QR code.
   ========================================================================== */

/* ---------- the badge next to the title ---------- */
body.v2 .pw_badge_row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
body.v2 .pw_badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #1e4280; color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
    padding: 5px 10px; border-radius: 4px; line-height: 1.2;
}
body.v2 .pw_badge svg { width: 12px; height: 12px; flex: none; }

/* ---------- the divider above the block ---------- */
body.v2 .pw_divider { display: flex; align-items: center; gap: 14px; margin: 30px 0 22px; }
body.v2 .pw_divider i { flex: 1; height: 1px; background: #cdd6e2; }
body.v2 .pw_divider span {
    font-size: 14px; font-weight: 700; color: #5b6675; letter-spacing: .4px; text-transform: uppercase;
    text-align: center;
}

/* ---------- the card ---------- */
body.v2 .pw_card {
    background: #1a2740; color: #fff; border-radius: 12px; padding: 34px 36px;
    display: flex; flex-wrap: wrap; gap: 32px; align-items: center;
    font-family: "Sofia Sans", "Segoe UI", sans-serif; box-sizing: border-box;
}
body.v2 .pw_card .pw_main { flex: 999 1 340px; min-width: 0; }
body.v2 .pw_card .pw_title {
    margin: 0 0 10px; font-size: 26px; line-height: 1.25; font-weight: 800; color: #fff;
}
body.v2 .pw_card .pw_lead { margin: 0 0 18px; font-size: 16px; line-height: 1.55; color: #dfe7f0; }
body.v2 .pw_card ul.pw_ticks {
    margin: 0 0 22px; padding: 0; list-style: none;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px;
    font-size: 15px; line-height: 1.4; color: #fff;
}
body.v2 .pw_card ul.pw_ticks li { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 0; background: none; }
body.v2 .pw_card ul.pw_ticks li svg { flex: none; margin-top: 1px; }

body.v2 .pw_card .pw_stores { display: flex; flex-wrap: wrap; gap: 12px; }
body.v2 .pw_card a.pw_store {
    display: inline-flex; align-items: center; gap: 10px; min-height: 52px; box-sizing: border-box;
    padding: 8px 20px; background: #fff; color: #1a2740; border-radius: 8px; text-decoration: none;
}
body.v2 .pw_card a.pw_store:hover, body.v2 .pw_card a.pw_app_btn:hover { background: #e8edf4; color: #1a2740; text-decoration: none; }
body.v2 .pw_card .pw_store_txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
body.v2 .pw_card .pw_store_from { font-size: 11px; font-weight: 600; color: #5b6675; }
body.v2 .pw_card .pw_store_name { font-size: 17px; font-weight: 800; }

/* phone only */
body.v2 .pw_card .pw_price_row, body.v2 .pw_card a.pw_app_btn, body.v2 .pw_card .pw_phone_note { display: none; }

body.v2 .pw_card .pw_side {
    flex: 1 1 200px; min-width: 0; background: #24365a; border-radius: 10px; padding: 20px 22px;
    display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
    box-sizing: border-box;
}
body.v2 .pw_card .pw_qr {
    width: 148px; height: 148px; box-sizing: border-box; background: #fff; border-radius: 8px; padding: 12px;
}
body.v2 .pw_card .pw_qr svg { display: block; width: 100%; height: 100%; }
body.v2 .pw_card .pw_scan { font-size: 14px; color: #dfe7f0; line-height: 1.4; }
body.v2 .pw_card .pw_side_rule { width: 100%; height: 1px; background: #3a4d75; }
body.v2 .pw_card .pw_price, body.v2 .pw_card .pw_price_row_sum {
    font-family: "Sofia Sans Semi Condensed", "Sofia Sans", sans-serif; font-weight: 700; color: #fff;
}
body.v2 .pw_card .pw_price { font-size: 34px; line-height: 1.1; }
body.v2 .pw_card .pw_price_note { font-size: 14px; color: #dfe7f0; line-height: 1.45; }

/* ---------- the note under the block ---------- */
body.v2 p.pw_note { margin: 18px 0 0; font-size: 15px; line-height: 1.55; color: #5b6675; }
body.v2 p.pw_note a { font-weight: 700; }

/* ---------- the application's page (screens/app/app.jsp) ---------- */
body.v2 .pw_page { max-width: 860px; margin: 0 auto; padding-bottom: 36px; }
body.v2 .pw_page_article {
    background: #fff; border: 1px solid #dfe7f0; border-radius: 8px; padding: 18px 22px; margin-bottom: 20px;
    font-size: 16px; line-height: 1.5; color: #5b6675;
}
body.v2 .pw_page_article a { display: block; margin-top: 4px; font-size: 20px; font-weight: 700; line-height: 1.3; color: #1a2740; }

/* ---------- phone ---------- */
@media (max-width: 640px) {
    body.v2 .pw_divider { gap: 12px; margin: 26px 0 18px; }
    body.v2 .pw_divider span { font-size: 13px; }
    body.v2 .pw_card { padding: 24px 20px; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 18px; align-items: stretch; }
    body.v2 .pw_card .pw_main { flex: none; display: flex; flex-direction: column; gap: 18px; }
    body.v2 .pw_card .pw_title { margin: 0; font-size: 22px; }
    body.v2 .pw_card .pw_lead { margin: 0; line-height: 1.5; }
    body.v2 .pw_card ul.pw_ticks { margin: 0; display: flex; flex-direction: column; gap: 10px; }
    body.v2 .pw_card .pw_stores, body.v2 .pw_card .pw_side { display: none; }
    body.v2 .pw_card .pw_price_row {
        display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
        background: #24365a; border-radius: 10px; padding: 14px 16px;
    }
    body.v2 .pw_card .pw_price_row_note { font-size: 14px; color: #dfe7f0; line-height: 1.4; }
    body.v2 .pw_card .pw_price_row_sum { font-size: 30px; white-space: nowrap; }
    body.v2 .pw_card a.pw_app_btn {
        display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; box-sizing: border-box;
        padding: 10px 16px; background: #fff; color: #1a2740; border-radius: 8px; text-decoration: none;
        font-size: 17px; font-weight: 800;
    }
    body.v2 .pw_card .pw_phone_note { display: block; font-size: 13px; color: #dfe7f0; text-align: center; line-height: 1.45; }
    /* the application's own page has no button to itself: the store buttons stay, one under the other */
    body.v2 .pw_card.pw_card_page .pw_stores { display: flex; flex-direction: column; }
    body.v2 .pw_card.pw_card_page a.pw_store { justify-content: center; min-height: 54px; }
}
