/*
 * UX refinements layered over the Vite bundle (resources/js is older than the deployed build,
 * so these live here instead of being rebuilt). Uses the theme's own tokens:
 * Montserrat, graphite #2c343a, light #f4f4f5, green #2ca82c.
 */

/* ---------- Home (Ukrainian landing) ---------- */
.bbp-home {
    max-width: 640px;
    margin: 6vh 0 40px;
}

.bbp-home .blabla-comment .text {
    font-size: 15px;
    line-height: 1.5;
}

.bbp-hero h1 {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    color: #2c343a;
    letter-spacing: -0.01em;
}

.bbp-hero p {
    margin: 0;
    color: #4a5258;
    font-weight: 500;
}

.bbp-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: bbp-step;
    display: grid;
    gap: 12px;
}

.bbp-steps li {
    counter-increment: bbp-step;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: start;
    gap: 10px;
    font-weight: 500;
    color: #2c343a;
}

.bbp-steps li::before {
    content: counter(bbp-step);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2c343a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbp-steps b {
    font-weight: 700;
}

.bbp-note {
    margin: 14px 0 0;
    font-size: 13px;
    color: #5b6368;
}

.bbp-actions {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}

.bbp-actions .menu-button.green {
    margin: 0;
    padding: 13px 16px;
    font-size: 15px;
    gap: 8px;
}

.bbp-actions .menu-button.green svg {
    fill: #fff;
}

.bbp-secondary {
    color: #2c343a;
    font-weight: 600;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.bbp-secondary:hover {
    color: #2ca82c;
}

.bbp-country-wrap .text {
    padding-top: 0;
    padding-bottom: 0;
}

.bbp-country {
    margin: 0;
    font-size: 13px;
    color: #5b6368;
}

.bbp-country summary {
    cursor: pointer;
    width: fit-content;
    font-weight: 500;
}

.bbp-country .sub-filter {
    justify-content: flex-start;
}

/* ---------- Aside: the "get offers" link reuses .menu-button only for its JS ---------- */
.aside-menu a.bbp-aside-link {
    display: flex;
    width: 100%;
    margin: 0;
    gap: 0 5px;
    background: transparent;
    padding: 10px;
    border-radius: 7px;
    color: #1f3541;
    font-size: 14px;
    font-weight: 500;
    animation: none;
}

/* ---------- Pricing: brand-coloured buttons instead of default bootstrap blue ---------- */
.pricing-plan .cta-button {
    background-color: #2c343a;
    border-radius: 19px;
    font-weight: 600;
}

.pricing-plan .cta-button:hover {
    background-color: #2ca82c;
}

/* ---------- Readability: small grey footer links in the right aside ---------- */
.aside-right .links a,
#aside-right .links a,
.wrap-aside .links a {
    font-size: 12px;
    color: #5b6368;
}

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
    html,
    body {
        overflow-x: hidden;
    }

    .sub-filter {
        flex-wrap: wrap;
    }

    .blabla-comment {
        max-width: 100%;
    }

    .blabla-comment .text {
        max-width: 100%;
    }

    .bbp-home {
        margin-top: 24px;
        padding: 0 16px 0 0;
    }

    .bbp-hero h1 {
        font-size: 21px;
    }

}

/* ---------- Light button with the look of .menu-button but without its category-menu JS ---------- */
.bbp-btn-light {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    padding: 13px 16px;
    border-radius: 9px;
    background: #f4f4f5;
    color: #2c343a;
    transition: background .2s;
}

.bbp-btn-light:hover {
    background: #e4e4e4;
    color: #2c343a;
}

/* ---------- Pricing lists: the theme reset removed bullets/numbers ---------- */
.bbp-list {
    margin: 10px 0 24px;
    padding-left: 22px;
    display: grid;
    gap: 6px;
}

ul.bbp-list {
    list-style: disc;
}

ol.bbp-list {
    list-style: decimal;
}

.bbp-list li {
    padding-left: 4px;
    line-height: 1.5;
}

.pricing-plan table {
    border-radius: 12px;
    overflow: hidden;
}

/* ---------- Pricing table on phones: it had min-width 400px and the "Максимум" column was cut off ---------- */
@media (max-width: 767px) {
    .pricing-plan table {
        min-width: 0 !important;
        width: 100%;
        font-size: 13px;
    }

    .pricing-plan th,
    .pricing-plan td {
        padding: 10px 4px !important;
    }

    .pricing-plan .cta-button {
        padding: .55rem .7rem;
        font-size: 13px;
    }
}

/* ---------- Buyer cabinet: heading with a "new request" action ---------- */
.bbp-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bbp-page-head .heading {
    margin: 0;
}

.bbp-new-request {
    padding: 11px 16px !important;
    font-size: 14px;
    animation: none !important;
}

/* ---------- Seller filter: intro + bottom save button ---------- */
.seller-filter .request-main {
    min-height: 0;
}

.bbp-filter-intro {
    max-width: 580px;
    margin: 20px auto 18px;
}

.bbp-filter-intro h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #2c343a;
}

.bbp-filter-intro p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4a5258;
}

.bbp-filter-save {
    max-width: 580px;
    margin: 20px auto 0;
    display: flex;
    justify-content: flex-end;
}

.bbp-filter-save .popup-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
}

.bbp-filter-save svg {
    fill: #fff;
}

/* =====================================================================
 * Global polish: cards, headings, sidebar FAQ, buttons, focus states
 * ===================================================================== */
body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* request / offer cards: soft elevation instead of a flat grey outline
   (only clickable cards: the header wrapper also carries .request) */
.request.open-popup {
    background: #fff;
    border: 1px solid #e7e9ec !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .04);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.request.open-popup:hover {
    border-color: #d5d9de !important;
    box-shadow: 0 4px 16px rgba(16, 24, 40, .08);
    transform: translateY(-1px);
}

.request.open-popup + .request.open-popup {
    margin-top: 18px;
}

/* seller filter accordions share the card look (not the sidebar FAQ) */
.seller-filter .accordeon .item-accordeon {
    border: 1px solid #e7e9ec !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

/* text pages: consistent heading hierarchy */
.page-works h2,
.page-works h3,
.page-contact h2,
.page-contact h3,
.request-main > h2 {
    color: #2c343a;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.page-works h3,
.page-contact h3 {
    margin-top: 36px;
    margin-bottom: 14px;
    font-size: 24px;
}

.page-contact h2 {
    font-size: 26px;
}

.page-works strong {
    display: inline-block;
    margin-top: 6px;
    color: #2c343a;
}

/* right-hand FAQ: readable size */
#aside-right {
    font-size: 13px;
    line-height: 1.5;
}

/* buttons */
.popup-button.blue:hover,
.menu-button.green:hover {
    background: #1f262b;
}

a:focus-visible,
button:focus-visible,
.menu-button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #2ca82c;
    outline-offset: 2px;
}

/* pricing table: tidy header row */
.pricing-plan th {
    background: #f4f4f5;
    color: #2c343a;
    font-weight: 700;
}

.bbp-page-head {
    margin-bottom: 16px;
}

/* ---------- New request: budget + deadline ---------- */
.bbp-request-extra {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.bbp-request-extra label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.bbp-request-extra .input {
    width: 100%;
}

@media (max-width: 575px) {
    .bbp-request-extra {
        grid-template-columns: 1fr;
    }
}

/* ---------- Home: value for both sides + illustrative example ---------- */
.bbp-value {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 34px 0 0 38px;
}

.bbp-value-card {
    background: #fff;
    border: 1px solid #e7e9ec;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.bbp-value-card h2 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: #2c343a;
}

.bbp-value-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.bbp-value-card li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.45;
    color: #3a4248;
}

.bbp-value-card li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 5px;
    width: 10px;
    height: 6px;
    border-left: 2px solid #2ca82c;
    border-bottom: 2px solid #2ca82c;
    transform: rotate(-45deg);
}

.bbp-example {
    margin: 14px 0 0 38px;
    background: #f7f8f9;
    border: 1px dashed #d5d9de;
    border-radius: 16px;
    padding: 16px 20px;
}

.bbp-example-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #7a8288;
    margin-bottom: 8px;
}

.bbp-example-request {
    font-size: 14px;
    color: #2c343a;
    line-height: 1.5;
}

.bbp-example-offers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.bbp-example-offers > div {
    background: #fff;
    border: 1px solid #e7e9ec;
    border-radius: 12px;
    padding: 10px 12px;
    display: grid;
    gap: 2px;
}

.bbp-example-offers span {
    font-size: 12px;
    color: #7a8288;
}

.bbp-example-offers b {
    font-size: 16px;
    color: #2c343a;
}

.bbp-example-offers small {
    font-size: 12px;
    color: #5b6368;
}

.bbp-example-offers .is-best {
    border-color: #2ca82c;
    box-shadow: 0 0 0 1px #2ca82c inset;
}

.bbp-example-offers .is-best small {
    color: #2ca82c;
    font-weight: 600;
}

.bbp-example-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: #5b6368;
}

@media (max-width: 767px) {
    .bbp-value,
    .bbp-example {
        margin-left: 0;
    }

    .bbp-value,
    .bbp-example-offers {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
 * Refreshed UI kit (inspired by calm, editorial dashboards):
 * serif page titles, icon tiles, soft hover rows, dotted dividers.
 * ===================================================================== */
:root {
    --bbp-ink: #1f2326;
    --bbp-muted: #6b7176;
    --bbp-line: #ebe8e3;
    --bbp-tile: #f3f1ed;
    --bbp-hover: #f6f5f2;
    --bbp-accent: #2ca82c;
    --bbp-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

.bbp-title {
    font-family: var(--bbp-serif);
    font-weight: 600;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--bbp-ink);
    margin: 6px 0 6px;
}

.bbp-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--bbp-muted);
}

.bbp-crumbs {
    font-size: 13px;
    color: #8a8f93;
}

.bbp-crumbs a {
    color: inherit;
}

.bbp-crumbs a:hover {
    color: var(--bbp-ink);
}

.bbp-crumbs span {
    margin: 0 6px;
}

.bbp-crumbs b {
    color: var(--bbp-ink);
    font-weight: 600;
}

.bbp-card {
    background: #fff;
    border: 1px solid var(--bbp-line);
    border-radius: 16px;
    padding: 8px;
}

.bbp-tile {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bbp-tile);
    border: 1px solid var(--bbp-line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3d4247;
    transition: background .15s;
}

.bbp-divider {
    border-top: 2px dotted #dedad3;
    margin: 6px 14px;
}

.bbp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bbp-ink);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}

.bbp-btn-primary:hover {
    background: #000;
    color: #fff;
}

/* ---------- New request page ---------- */
.bbp-form-page.request-main {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.bbp-form-page .request-body {
    display: none;
}

.bbp-req {
    max-width: 720px;
    margin: 28px auto 60px;
}

.bbp-req-head {
    margin-bottom: 22px;
}

.bbp-field {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 14px;
    margin: 0;
    border-radius: 12px;
    transition: background .15s;
    cursor: text;
}

.bbp-field:hover {
    background: var(--bbp-hover);
}

.bbp-field:hover .bbp-tile {
    background: #fff;
}

.bbp-field-body {
    display: block;
    min-width: 0;
}

.bbp-field-title {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: var(--bbp-ink);
}

.bbp-field-hint {
    display: block;
    font-size: 13px;
    color: var(--bbp-muted);
    margin-top: 2px;
}

.bbp-field .input {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 8px;
    padding: 10px 12px;
    font-size: 15px;
    color: var(--bbp-ink);
    background: #fff;
    border: 1px solid #e3e0da;
    border-radius: 10px;
    box-shadow: none;
}

.bbp-field .input:focus {
    border-color: #b9b4ab;
    outline: none;
}

.bbp-textarea {
    min-height: 110px !important;
    resize: vertical;
}

.bbp-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.bbp-field-grid > .bbp-field:first-child {
    grid-column: 1 / -1;
}

.bbp-req-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
}

.bbp-note-inline {
    flex: 1 1 280px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: var(--bbp-muted);
}

.bbp-note-inline .bbp-icon {
    color: var(--bbp-accent);
}

.bbp-req .bbp-btn-primary.popup-send {
    position: static !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
}

.bbp-req .bbp-btn-primary .bbp-icon {
    stroke: #fff;
}

@media (max-width: 991px) {
    .bbp-field-grid {
        grid-template-columns: 1fr;
    }

    .bbp-title {
        font-size: 26px;
    }

    .bbp-req {
        margin-top: 16px;
    }

    .bbp-req-actions .bbp-btn-primary {
        width: 100% !important;
        justify-content: center;
    }
}

/* ---------- Telegram-style avatars: two initials on a soft gradient ---------- */
.message .avatar.bbp-av {
    width: 36px;
    min-width: 36px;
    height: 36px;
    border: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    background: linear-gradient(135deg, #8e9aaf, #5d6b82);
}

.bbp-av-0 { background: linear-gradient(135deg, #ff885e, #ff516a) !important; }
.bbp-av-1 { background: linear-gradient(135deg, #ffcd6a, #ffa85c) !important; }
.bbp-av-2 { background: linear-gradient(135deg, #82b1ff, #665fff) !important; }
.bbp-av-3 { background: linear-gradient(135deg, #a0de7e, #54cb68) !important; }
.bbp-av-4 { background: linear-gradient(135deg, #53edd6, #28c9b7) !important; }
.bbp-av-5 { background: linear-gradient(135deg, #72d5fd, #2a9ef1) !important; }
.bbp-av-6 { background: linear-gradient(135deg, #e0a2f3, #d669ed) !important; }

/* ---------- Cabinet page titles (buyer) ---------- */
.bbp-page-head {
    align-items: flex-end;
    margin-top: 12px;
}

.bbp-page-title .bbp-title {
    font-size: 30px;
    margin: 0 0 4px;
}

/* ---------- Preloader: thin spinning ring instead of the black gear ---------- */
.preloader:before {
    background: rgba(255, 255, 255, .72) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><circle cx="25" cy="25" r="20" fill="none" stroke="%23e6e3de" stroke-width="4"/><circle cx="25" cy="25" r="20" fill="none" stroke="%232c343a" stroke-width="4" stroke-linecap="round" stroke-dasharray="32 94"><animateTransform attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.8s" repeatCount="indefinite"/></circle><circle cx="25" cy="25" r="20" fill="none" stroke="%232ca82c" stroke-width="4" stroke-linecap="round" stroke-dasharray="10 116" stroke-dashoffset="-34"><animateTransform attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.8s" repeatCount="indefinite"/></circle></svg>') no-repeat center !important;
    background-size: 40px 40px !important;
    backdrop-filter: blur(2px);
    border-radius: inherit;
}

.list-files-uploaded.preloader:before {
    background-size: 26px 26px !important;
}

/* ---------- Icon-tile list (home): title + text + meta, hover shows "+" ---------- */
.bbp-list-section {
    margin: 30px 0 0 38px;
}

.bbp-divider-wide {
    margin: 0 0 22px;
}

.bbp-section-title {
    font-family: var(--bbp-serif);
    font-weight: 600;
    font-size: 22px;
    color: var(--bbp-ink);
    margin: 0 0 10px;
}

.bbp-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
}

.bbp-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
    /* the class list may include .menu-button for its JS; neutralise its look */
    background: transparent;
    font-weight: normal;
    animation: none;
}

.bbp-item:hover {
    background: #f1efeb;
    color: inherit;
}

.bbp-item .bbp-plus {
    display: none;
}

.bbp-item:hover .bbp-tile {
    background: #fff;
}

.bbp-item:hover .bbp-tile .bbp-icon {
    display: none;
}

.bbp-item:hover .bbp-plus {
    display: block;
}

.bbp-item-body {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.bbp-item-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--bbp-ink);
}

.bbp-item-text {
    font-size: 14px;
    line-height: 1.45;
    color: #50575c;
}

.bbp-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font-size: 12.5px;
    color: #80868b;
}

.bbp-item-meta .bbp-icon {
    flex: 0 0 auto;
}

@media (max-width: 767px) {
    .bbp-list-section {
        margin-left: 0;
    }

    .bbp-items {
        grid-template-columns: 1fr;
    }
}

/* .bbp-item may carry .menu-button (for its JS): undo the theme's filled svgs and centred flex */
.bbp-item.menu-button {
    display: grid;
    align-items: start;
    padding: 12px;
    border-radius: 12px;
    color: inherit;
}

.bbp-item svg,
.bbp-item.menu-button svg {
    fill: none !important;
}

/* ---------- How it works: FAQ as an icon-tile list ---------- */
.bbp-works-head {
    margin: 18px 0 18px;
}

.page-works > p {
    font-size: 15px;
    line-height: 1.55;
    color: #50575c;
}

.page-works h3 {
    font-family: var(--bbp-serif);
    font-weight: 600;
    font-size: 24px;
    margin: 34px 0 10px;
    padding-top: 22px;
    border-top: 2px dotted #dedad3;
}

.page-works .accordeon {
    display: grid;
    gap: 2px;
}

.page-works .accordeon-entry {
    position: relative;
    margin: 0 !important;
    padding: 12px 12px 12px 66px;
    border-radius: 12px;
    background: transparent;
    border: 0;
    transition: background .15s;
}

.page-works .accordeon-entry:hover {
    background: #f1efeb;
}

.page-works .accordeon-entry::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 12px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--bbp-line);
    background: var(--bbp-tile) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%233d4247" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3"/><path d="M12 17h.01"/></svg>') no-repeat center / 20px 20px;
}

.page-works .accordeon-entry:hover::before {
    background-color: #fff;
}

.page-works .accordeon-title {
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    cursor: default;
}

.page-works .accordeon-title::after,
.page-works .accordeon-title svg {
    display: none !important;
}

.page-works .accordeon-title strong {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--bbp-ink);
}

.page-works .accordeon-toggle {
    display: block !important;
    padding: 4px 0 0 !important;
    font-size: 14px;
    line-height: 1.5;
    color: #50575c;
}

.page-works .accordeon-title strong {
    font-weight: 600 !important;
}

.page-works .bbp-btn-light {
    display: inline-flex !important;
    width: auto !important;
}

/* ---------- Pricing cards ---------- */
.bbp-pricing {
    max-width: 760px;
    margin: 10px auto 40px;
}

.bbp-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 22px 0 30px;
}

.bbp-plan {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--bbp-line);
    border-radius: 16px;
    padding: 18px;
    transition: box-shadow .2s, transform .2s;
}

.bbp-plan:hover {
    box-shadow: 0 6px 20px rgba(16, 24, 40, .08);
    transform: translateY(-2px);
}

.bbp-plan.is-featured {
    border-color: #2c343a;
    box-shadow: 0 0 0 1px #2c343a inset;
}

.bbp-plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.bbp-badge {
    font-size: 12px;
    font-weight: 600;
    color: #1e7a1e;
    background: #e9f6e9;
    border-radius: 999px;
    padding: 4px 10px;
}

.bbp-plan-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--bbp-ink);
}

.bbp-plan-price {
    font-family: var(--bbp-serif);
    font-weight: 600;
    font-size: 34px;
    line-height: 1.1;
    color: var(--bbp-ink);
}

.bbp-plan-points {
    font-size: 14px;
    color: #50575c;
}

.bbp-plan-btn {
    margin-top: 14px;
    justify-content: center;
}

.bbp-items-one {
    grid-template-columns: 1fr;
}

.bbp-item-static {
    cursor: default;
}

.bbp-pricing-help {
    margin-top: 18px;
}

.bbp-pricing-help a {
    color: var(--bbp-ink);
    font-weight: 600;
}

@media (max-width: 767px) {
    .bbp-plans {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
 * Telegram-style side menus + warm panel background
 * ===================================================================== */
#aside-left,
#aside-left .wrap {
    background-color: #f6f4f0;
}

#aside-right {
    background-color: #fff;
}

.aside-menu a {
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 10px;
    gap: 0 5px;
    color: var(--bbp-ink);
    transition: background .15s;
}

.aside-menu a:hover {
    background: #ece9e3;
}

.aside-menu a.active,
.aside-menu a.active:hover {
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 6px rgba(16, 24, 40, .04);
}

.aside-menu a svg {
    fill: #3d4247;
}

/* unread counters as pills */
.aside-menu a .count {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #2ca82c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.aside-menu a .count::before {
    display: none;
}

/* account menu (settings / filters / balance / logout) */
#aside-left .foot ul {
    background: #fff;
    border: 1px solid var(--bbp-line);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 4px 18px rgba(16, 24, 40, .06);
}

#aside-left .foot ul li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--bbp-ink);
    font-size: 14px;
    transition: background .15s;
}

#aside-left .foot ul li a:hover,
#aside-left .foot ul li a.active {
    background: #f1efeb;
}

#aside-left .foot ul li a svg {
    fill: #3d4247;
}

#aside-left .link-btn {
    background: #fff;
    border-color: var(--bbp-line);
    border-radius: 12px;
}

.aside-menu a .icon {
    margin-right: 7px;
}

/* logout is a form button: make it look like the other menu rows */
#aside-left .foot ul li button[type="submit"] {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--bbp-ink);
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background .15s;
}

#aside-left .foot ul li button[type="submit"]:hover {
    background: #f1efeb;
}

#aside-left .foot ul li button[type="submit"] svg {
    fill: #3d4247;
}

/* ---------- Illustrated empty states ---------- */
.bbp-empty {
    max-width: 460px;
    margin: 40px auto 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bbp-empty-art {
    margin-bottom: 14px;
}

.bbp-empty-title {
    font-family: var(--bbp-serif);
    font-weight: 600;
    font-size: 22px;
    color: var(--bbp-ink);
}

.bbp-empty-text {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--bbp-muted);
}

.bbp-empty-action {
    margin-top: 18px;
}

.bbp-empty-action .menu-button {
    animation: none;
}

/* ---------- Chat bubbles in Telegram colours ---------- */
.message .inner {
    background: #f4f2ee;
    color: var(--bbp-ink);
    border-radius: 14px;
}

.text-right .message .inner,
.request-body .text-right .message .inner {
    background: #e3f7d3;
    color: #1f2a1c;
    border-radius: 14px 14px 4px 14px;
}

.text-right .message .inner a {
    color: #2e7d32;
}

.text-right .message .date,
.text-right .message .inner .date,
.request-body .text-right .message .date {
    color: #5f9b5a;
}

.message .inner .date {
    color: #8a8f93;
}

/* service labels ("Шукаємо продавців", "Новий запит") as Telegram service pills */
.request-info {
    background: rgba(31, 35, 38, .06) !important;
    color: #50575c !important;
    box-shadow: none !important;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12.5px;
}

/* ---------- Hover only on real links/buttons: plain text blocks stay still ---------- */
.page-works .accordeon-entry:hover {
    background: transparent;
}

.page-works .accordeon-entry:hover::before {
    background-color: var(--bbp-tile);
}

.bbp-item-static:hover {
    background: transparent;
}

.bbp-item-static:hover .bbp-tile {
    background: var(--bbp-tile);
}

.bbp-plan:hover {
    box-shadow: none;
    transform: none;
}

.bbp-plan.is-featured:hover {
    box-shadow: 0 0 0 1px #2c343a inset;
}

.bbp-field:hover {
    background: transparent;
}

.bbp-field:hover .bbp-tile {
    background: var(--bbp-tile);
}

/* =====================================================================
 * Popups (login / registration): Telegram-like modal
 * ===================================================================== */
.popup-content .popup-container {
    border-radius: 18px !important;
    border: 0 !important;
    box-shadow: 0 20px 60px rgba(16, 24, 40, .18);
}

.popup-content .popup-title {
    font-family: var(--bbp-serif);
    font-weight: 600;
    font-size: 22px;
    color: var(--bbp-ink);
}

.popup-content .form-group .input,
.popup-content input.input[type="text"],
.popup-content input.input[type="email"],
.popup-content input.input[type="password"],
.popup-content input.input[type="tel"],
.popup-content .input:not(textarea):not(select) {
    height: 46px;
    padding: 0 14px;
    border: 1px solid #e3e0da !important;
    border-radius: 10px !important;
    background: #fff;
    box-shadow: none;
    margin-bottom: 10px;
}

.popup-content .input:focus {
    border-color: #b9b4ab !important;
    outline: none;
}

.popup-content .popup-button {
    height: 46px;
    border-radius: 10px;
}

/* Google sign-in: calm outline button instead of a red block */
.popup-content a[href*="auth-google"],
.popup-content .btn-google,
.popup-content .google {
    background: #fff !important;
    color: var(--bbp-ink) !important;
    border: 1px solid #e3e0da !important;
    border-radius: 10px !important;
    font-weight: 600;
    text-transform: none;
}

.popup-content a[href*="auth-google"]:hover {
    background: #f6f5f2 !important;
}

/* role choice as selectable cards */
.switch-role {
    display: grid;
    gap: 8px;
    margin: 18px 0 6px;
}

.switch-role .input-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e3e0da;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.switch-role .input-checkbox:hover {
    background: #f6f5f2;
}

.switch-role .input-checkbox:has(input:checked) {
    border-color: var(--bbp-ink);
    box-shadow: 0 0 0 1px var(--bbp-ink) inset;
}

.popup-content .blabla-comment .text h4 {
    text-transform: none;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
}

/* =====================================================================
 * Settings: white cards with icon tiles
 * ===================================================================== */
.accordeon-settings .item-accordeon {
    background: #fff !important;
    border: 1px solid var(--bbp-line) !important;
    border-radius: 16px !important;
    box-shadow: none;
}

.accordeon-settings .btn-accordeon {
    display: flex;
    align-items: center;
    gap: 14px;
}

.accordeon-settings .btn-accordeon::before {
    content: "";
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--bbp-line);
    background: var(--bbp-tile) no-repeat center / 20px 20px;
}

.accordeon-settings .btn-accordeon > span {
    flex: 1 1 auto;
    font-weight: 600;
    color: var(--bbp-ink);
}

/* 1: contacts, 2: personal data, 3: password */
.accordeon-settings .item-accordeon:nth-child(1) .btn-accordeon::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%233d4247" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="m22 7-10 6L2 7"/></svg>');
}

.accordeon-settings .item-accordeon:nth-child(2) .btn-accordeon::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%233d4247" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="8" r="4"/><path d="M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6"/></svg>');
}

.accordeon-settings .item-accordeon:nth-child(3) .btn-accordeon::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%233d4247" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="11" width="16" height="10" rx="2"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg>');
}

.accordeon-settings .input {
    border: 1px solid #e3e0da !important;
    border-radius: 10px !important;
}

/* =====================================================================
 * Right FAQ column: Telegram-like rows with hairline dividers
 * ===================================================================== */
#aside-right .item-accordeon {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #efece7 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 12px 2px !important;
}

#aside-right .btn-accordeon {
    color: var(--bbp-ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

#aside-right .content-accordeon,
#aside-right .inner-accordeon {
    color: var(--bbp-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* =====================================================================
 * claude.com look: cream canvas, white cards, big serif headline
 * ===================================================================== */
body {
    background-color: #faf9f5;
}

.request-head #header,
#header {
    background-color: #faf9f5;
}

#aside-right {
    background-color: #faf9f5;
}

#aside-left,
#aside-left .wrap {
    background-color: #f3f1ea;
}

.bbp-hero h1 {
    font-family: var(--bbp-serif);
    font-weight: 600;
    font-size: 40px;
    line-height: 1.12;
    letter-spacing: -0.015em;
}

.bbp-hero p {
    font-size: 16px;
}

/* white surfaces keep contrast on the cream canvas */
.blabla-comment .text,
.bbp-plan,
.bbp-card,
.accordeon-settings .item-accordeon {
    background-color: #fff;
}

.bbp-item:hover {
    background: #f0eee6;
}

@media (max-width: 991px) {
    .bbp-hero h1 {
        font-size: 30px;
    }
}

main#main,
#main {
    background-color: #faf9f5;
}

#aside-right section.faq,
section.faq {
    background-color: transparent;
}

/* home: text sits directly on the cream canvas, like a landing page */
.bbp-home .blabla-comment .text {
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.bbp-home .blabla-comment .text::before,
.bbp-home .blabla-comment .text::after {
    display: none;
}

/* empty white circle next to "share": wrapper of a desktop-hidden close button */
.head-social {
    background: transparent !important;
    box-shadow: none !important;
}

/* =====================================================================
 * Legal pages (offer, privacy, refund): comfortable reading
 * ===================================================================== */
.page-contact .contract {
    max-width: 720px;
    font-size: 15px;
    line-height: 1.65;
    color: #3a4146;
}

.page-contact .contract h1,
.page-contact h1 {
    font-family: var(--bbp-serif);
    font-weight: 600;
    font-size: 32px;
    line-height: 1.2;
    color: var(--bbp-ink);
    margin: 6px 0 14px;
}

.page-contact .contract h2,
.page-contact .contract h3 {
    font-family: var(--bbp-serif);
    font-weight: 600;
    font-size: 22px;
    color: var(--bbp-ink);
    margin: 30px 0 10px;
    padding-top: 20px;
    border-top: 2px dotted #dedad3;
}

.page-contact .contract ul,
.page-contact .contract ol {
    padding-left: 20px;
    margin: 8px 0 12px;
}

.page-contact .contract li {
    margin: 4px 0;
    padding-left: 0;
}

.page-contact .contract p {
    margin: 0 0 10px;
}

/* =====================================================================
 * Contact form
 * ===================================================================== */
.form-contact-ajax .input {
    width: 100%;
    height: auto;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #e3e0da !important;
    border-radius: 10px !important;
    background: #fff;
    box-shadow: none;
}

.form-contact-ajax .input:focus {
    border-color: #b9b4ab !important;
    outline: none;
}

.form-contact-ajax textarea.input {
    min-height: 140px;
}

.page-contact .popup-title,
.page-contact h2 {
    font-family: var(--bbp-serif);
    font-weight: 600;
    font-size: 26px;
    color: var(--bbp-ink);
}

.form-contact-ajax .popup-button {
    height: 46px;
    padding: 0 22px;
    border-radius: 10px;
}

/* ---------- Auth pages (password reset): centred card like claude.com sign-in ---------- */
.bbp-auth {
    display: flex;
    justify-content: center;
    padding: 8vh 0 60px;
}

.bbp-auth-card {
    width: 100%;
    max-width: 440px;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
}

.bbp-auth-icon {
    margin: 0 auto 14px;
}

.bbp-auth-card .bbp-title {
    font-size: 30px;
}

.bbp-auth-card .bbp-subtitle {
    margin-bottom: 20px;
}

.bbp-auth-field {
    margin-bottom: 12px;
    text-align: left;
}

.bbp-auth-field .input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 15px;
    border: 1px solid #e3e0da;
    border-radius: 10px;
    background: #fff;
}

.bbp-auth-field .input:focus {
    border-color: #b9b4ab;
    outline: none;
}

.bbp-auth-field .help-block {
    margin-top: 6px;
    font-size: 13px;
    color: #c0392b;
}

.bbp-auth-btn {
    width: 100%;
    justify-content: center;
    height: 46px;
}

.bbp-auth-note {
    margin: 16px 0 0;
    font-size: 12.5px;
    color: #80868b;
}

.page-contact > h5 {
    font-family: var(--bbp-serif);
    font-weight: 600;
    font-size: 26px;
    color: var(--bbp-ink);
    margin: 4px 0 14px;
}

/* =====================================================================
 * Category mega-menu: claude.com panel + Telegram rows
 * ===================================================================== */
.nav:after {
    background: rgba(31, 35, 38, .32) !important;   /* no cartoon, softer dim */
    backdrop-filter: blur(2px);
}

.nav > .menu {
    border-radius: 18px 0 0 18px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, .18);
    border-right: 1px solid #efece7;
}

.nav .sub-menu {
    border-left: 1px solid #efece7;
    box-shadow: 12px 24px 40px rgba(16, 24, 40, .10);
}

.nav .inner {
    padding: 12px 0;
}

.nav a {
    margin: 2px 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14.5px;
    color: var(--bbp-ink);
    gap: 12px;
    transition: background .15s;
}

.nav a:hover {
    background: #f3f1ec;
    color: var(--bbp-ink);
}

.nav a:focus,
.nav a:focus-visible {
    outline: none;
}

.nav .active > a,
.nav .active > a:hover {
    background: #efece6;
    color: var(--bbp-ink);
    font-weight: 600;
}

/* thin chevron instead of a filled triangle */
.nav .icon > a:after,
.nav .active > a:after,
.nav .icon > a:hover:after,
.nav .active > a:hover:after {
    border: 0;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-right: 1.75px solid #8a8f93;
    border-bottom: 1.75px solid #8a8f93;
    transform: rotate(-45deg);
    flex: 0 0 auto;
}

.nav .active > a:after {
    border-color: var(--bbp-ink);
}

.bbp-cat-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--bbp-tile);
    border: 1px solid var(--bbp-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3d4247;
}

.nav .active > a .bbp-cat-icon {
    background: #fff;
}

.bbp-cat-name {
    flex: 1 1 auto;
    min-width: 0;
}

.sub-menu .back-menu {
    color: var(--bbp-ink);
    text-transform: none;
    font-weight: 600;
}

.sub-menu .back-menu:before {
    border: 0;
    width: 7px;
    height: 7px;
    border-left: 1.75px solid var(--bbp-ink);
    border-bottom: 1.75px solid var(--bbp-ink);
    transform: rotate(45deg);
}

.nav .bbp-cat-icon svg,
.nav a .bbp-icon {
    fill: none !important;
}

.nav > .menu {
    border-radius: 18px;
}

.nav .sub-menu {
    border-radius: 0 18px 18px 0;
}

/* menu JS reads event.target.dataset.id / parentNode: clicks must land on the <a>, not on the inner spans */
.nav a > span,
.nav a > span *,
.nav a .bbp-icon {
    pointer-events: none;
}

/* =====================================================================
 * Search: white suggestion panel instead of the dark graphite list
 * ===================================================================== */
.header-search input:focus,
.header-search input:focus-visible {
    outline: none;
}

.header-search:focus-within {
    border-color: #cfcac1 !important;
    box-shadow: 0 0 0 3px rgba(31, 35, 38, .06);
    background: #fff;
}

.autocomplete {
    background: #fff !important;
    color: var(--bbp-ink) !important;
    border: 1px solid var(--bbp-line);
    border-radius: 14px !important;
    margin-top: 6px !important;
    padding: 6px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .14);
}

.autocomplete li + li {
    border-top: 0 !important;
}

.autocomplete li a {
    position: relative;
    color: var(--bbp-ink) !important;
    padding: 11px 14px 11px 44px !important;
    border-radius: 10px;
}

.autocomplete li a::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%238a8f93" stroke-width="1.75" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>') no-repeat center / contain;
}

.autocomplete li a:hover {
    background: #f3f1ec !important;
}

.autocomplete li a strong {
    color: var(--bbp-ink);
    background: #fdf1c7;
    border-radius: 3px;
    padding: 0 1px;
}

/* ---------- Sub-category picker ---------- */
.bbp-subcats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
    padding: 8px;
}

.bbp-subcat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--bbp-ink);
    text-decoration: none;
    transition: background .15s;
}

.bbp-subcat:hover {
    background: #f3f1ec;
    color: var(--bbp-ink);
}

.bbp-subcat:hover .bbp-tile {
    background: #fff;
}

.bbp-subcat .bbp-tile {
    width: 36px;
    height: 36px;
}

.bbp-subcat-name {
    flex: 1 1 auto;
    font-size: 15px;
    font-weight: 500;
}

.bbp-chevron {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-right: 1.75px solid #8a8f93;
    border-bottom: 1.75px solid #8a8f93;
    transform: rotate(-45deg);
    margin-right: 4px;
}

@media (max-width: 767px) {
    .bbp-subcats {
        grid-template-columns: 1fr;
    }
}

/* ---------- Offers popup (buyer): price, badge, no-reviews ---------- */
.bbp-offer-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 6px 0 4px;
}

.bbp-price {
    font-family: var(--bbp-serif);
    font-weight: 600;
    font-size: 24px;
    color: var(--bbp-ink);
}

.bbp-old-price {
    color: #8a8f93;
    font-size: 14px;
}

.bbp-no-reviews {
    font-size: 12.5px;
    color: #8a8f93;
    margin-left: 6px;
}

/* ---------- Share block: calm outline pills instead of grey slabs ---------- */
.share-chat {
    text-transform: none;
    font-weight: 600;
    color: var(--bbp-ink);
}

.share-chat p {
    font-size: 14px;
    margin-bottom: 10px;
}

.share-chat .share-button {
    width: auto !important;
    margin: 4px !important;
    padding: 9px 16px;
    border-radius: 999px;
    background: #fff !important;
    border: 1px solid #e3e0da !important;
    color: var(--bbp-ink) !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    justify-content: center;
}

.share-chat .share-button:hover {
    background: #f3f1ec !important;
}

.share-chat .share-button {
    text-transform: capitalize;
}

.time-entry .days {
    margin: 0 4px;
    font-weight: 600;
}

/* ---------- Request popup chrome: header, actions menu, offer composer ---------- */
.popup-container.wide .request-head {
    background: #faf9f5;
    border-bottom: 1px solid var(--bbp-line);
}
.popup-container.wide .request-head .title {
    font-family: var(--bbp-serif);
    font-weight: 500;
    color: var(--bbp-ink);
    letter-spacing: -0.01em;
}
.popup-container.wide .request-head .close-popup-all {
    background: transparent;
    border: 1px solid var(--bbp-line);
    border-radius: 50%;
    transition: background .2s;
}
.popup-container.wide .request-head .close-popup-all:hover { background: #f0eee8; }

/* "Твої дії" toggle: neutral outline pill instead of the blue one */
.drop-menu > a {
    background: #fff;
    color: var(--bbp-ink);
    border: 1px solid var(--bbp-line);
    padding: 4px 12px;
    height: auto;
    transition: background .2s, border-color .2s;
}
.drop-menu > a:hover { background: #f3f1ec; }
.drop-menu.active > a { background: var(--bbp-ink); border-color: var(--bbp-ink); color: #fff; }
.drop-menu > a svg { fill: currentColor; }

/* dropdown: white card with quiet line icons */
.drop-menu.active .drop,
.drop-menu .drop {
    background: #fff;
    border: 1px solid var(--bbp-line);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(31, 35, 38, .08);
    padding: 4px;
}
.drop-menu .drop a {
    color: var(--bbp-ink);
    font-size: 14px;
    border-radius: 10px;
    margin: 0;
    padding: 9px 12px;
}
.drop-menu .drop a:hover { background: #f3f1ec; }
.drop-menu .drop a svg,
.drop-menu .drop a img { filter: grayscale(1) brightness(.45); opacity: .85; }
.drop-menu .drop a.js-spam { color: #c4432b; }
.drop-menu .drop a.js-spam svg,
.drop-menu .drop a.js-spam img { filter: none; opacity: 1; }
.drop-menu .drop a.js-spam:hover { background: #fbeee9; }

/* seller offer composer: bordered fields, ink send button */
.seller-order .input-group .input,
.seller-order .input-group textarea.input {
    background: #fff;
    border: 1px solid var(--bbp-line);
    border-radius: 12px;
    color: var(--bbp-ink);
}
.seller-order .input-group .input:focus {
    border-color: #c9c4ba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 35, 38, .05);
}
.seller-order .input-group label.button.input-file {
    background: #fff;
    border: 1px solid var(--bbp-line);
    border-radius: 12px;
}
.seller-order .input-group label.button.input-file:hover { background: #f3f1ec; }
.popup-send.blue,
.input-group .popup-send.blue { background: var(--bbp-ink); }
.popup-send.blue:hover { background: #3a4045; }
.popup-send.blue.no-active { background: #c9c6bf; }

/* ---------- Offer composer, Telegram-like: one bar, clip + price chip + message + round send ---------- */
.popup-container.wide .tab-answer .input-group.align-center {
    display: flex;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 14px;
    background: #faf9f5;
    border-top: 1px solid var(--bbp-line);
}
.popup-container.wide .tab-answer .input-group .list-files-uploaded { flex: 0 0 auto; margin: 0; }
.popup-container.wide .tab-answer .input-group label.button.input-file {
    width: 44px; height: 44px; min-width: 44px;
    border: 0; border-radius: 50%;
    background: transparent;
    display: inline-flex; align-items: center; justify-content: center;
}
.popup-container.wide .tab-answer .input-group label.button.input-file:hover { background: #efece5; }
.popup-container.wide .tab-answer .input-group label.button.input-file svg { fill: #8a8f94; }
.popup-container.wide .tab-answer .input-group .input {
    height: 44px; min-height: 44px;
    margin: 0;
    padding: 11px 16px;
    font-size: 15px; line-height: 22px;
    background: #fff;
    border: 1px solid var(--bbp-line);
    border-radius: 22px;
    box-shadow: none;
}
.popup-container.wide .tab-answer .input-group input.input {
    flex: 0 0 170px; width: 170px;
    font-weight: 600;
    -moz-appearance: textfield;
}
.popup-container.wide .tab-answer .input-group input.input::-webkit-outer-spin-button,
.popup-container.wide .tab-answer .input-group input.input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.popup-container.wide .tab-answer .input-group textarea.input {
    flex: 1 1 auto; width: auto;
    resize: none; overflow-y: auto;
    max-height: 140px;
    field-sizing: content;
}
.popup-container.wide .tab-answer .input-group .input::placeholder { color: #9a9ea3; font-weight: 400; }
.popup-container.wide .tab-answer .input-group .input:focus { border-color: #cfcac0; box-shadow: none; }
.popup-container.wide .tab-answer .input-group .popup-send {
    position: static;
    flex: 0 0 44px;
    width: 44px; height: 44px; min-width: 44px;
    margin: 0;
    border-radius: 50%;
    background: var(--bbp-ink);
    transition: background .2s, transform .15s;
}
.popup-container.wide .tab-answer .input-group .popup-send svg { fill: #fff; margin-left: 2px; }
.popup-container.wide .tab-answer .input-group .popup-send.no-active { background: #d6d3cc; }
.popup-container.wide .tab-answer .input-group .popup-send:not(.no-active):hover { background: #3a4045; transform: scale(1.04); }
@media (max-width: 640px) {
    .popup-container.wide .tab-answer .input-group.align-center { flex-wrap: wrap; padding: 8px 10px; }
    .popup-container.wide .tab-answer .input-group input.input { flex: 1 1 calc(100% - 52px); width: auto; }
    .popup-container.wide .tab-answer .input-group textarea.input { flex: 1 1 calc(100% - 52px); }
}
.popup-container.wide .tab-answer .input-group .input { border-radius: 22px !important; }
.popup-container.wide .tab-answer .input-group .popup-send,
.popup-container.wide .tab-answer .input-group label.button.input-file { border-radius: 50% !important; }
.name-reviews .bbp-no-reviews { margin-left: 8px; font-size: 12px; color: #8a8f94; font-weight: 400; }

/* ---------- Chat popups, Telegram-like ---------- */
/* price inside a message bubble */
.message .bbp-msg-price {
    font-family: var(--bbp-serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin: 4px 0 2px;
    color: inherit;
}

/* own messages sit on the right, text inside stays left-aligned */
.request-body .text-right .message {
    display: flex;
    justify-content: flex-end;
    padding-left: 18%;
}
.request-body .text-right .message .box { justify-content: flex-end; }
.request-body .text-right .message .inner { text-align: left; border-radius: 16px 16px 4px 16px; }

/* service (bot) messages: grey incoming bubbles, grouped like consecutive Telegram messages */
.popup-container.wide .blabla-comment .text {
    display: inline-block;
    max-width: 520px;
    background-color: #f4f2ee;
    color: var(--bbp-ink);
    padding: 9px 14px;
    border-radius: 16px 16px 16px 4px;
    font-size: 14.5px;
    line-height: 1.45;
    box-shadow: none;
}
.popup-container.wide .blabla-comment .text p { margin: 0; }
.popup-container.wide .blabla-comment .text::before,
.popup-container.wide .blabla-comment .text::after { display: none; }
.popup-container.wide .blabla-comment.first .text { border-radius: 16px 16px 16px 4px; }
.popup-container.wide .blabla-comment.middle .text { border-radius: 4px 16px 16px 4px; }
.popup-container.wide .blabla-comment.last .text { border-radius: 4px 16px 16px 16px; }
.popup-container.wide .blabla-comment.not-first { margin-top: 0; }
.popup-container.wide .blabla-comment.first:not(.last) { margin-bottom: 3px; }
.popup-container.wide .blabla-comment.middle { margin-bottom: 3px; }
.popup-container.wide .blabla-comment .text strong { font-weight: 600; }

/* ---------- Review composer (after contacts exchange): rating chips + message + send ---------- */
.popup-container.wide .request-foot .form-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 14px;
    background: #faf9f5;
    border-top: 1px solid var(--bbp-line);
}
.popup-container.wide .request-foot .button-reviews { flex: 1 0 100%; gap: 6px; }
.popup-container.wide .request-foot .button-reviews button {
    display: inline-flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 12px 0 8px;
    line-height: 1;
    font-size: 13px; color: var(--bbp-ink);
    background: #fff;
    border: 1px solid var(--bbp-line);
    border-radius: 16px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.popup-container.wide .request-foot .button-reviews button svg { width: 18px; height: 18px; }
.popup-container.wide .request-foot .button-reviews button:hover { background: #f3f1ec; }
.popup-container.wide .request-foot .button-reviews button:hover svg { transform: none; }
/* selected chip; "positive" is the preselected default (hidden input starts at RATING_GOOD) */
.popup-container.wide .request-foot form:not(.neutral):not(.negative) .button-reviews button[value="2"],
.popup-container.wide .request-foot form.position .button-reviews button[value="2"] { background: #e6f4dc; border-color: #bfe0a8; }
.popup-container.wide .request-foot form.neutral .button-reviews button[value="1"] { background: #fbf1d6; border-color: #ecd9a0; }
.popup-container.wide .request-foot form.negative .button-reviews button[value="0"] { background: #fbe6e1; border-color: #efbfb4; }
.popup-container.wide .request-foot .input-reviews { flex: 1 1 auto; position: relative; margin: 0; }
.popup-container.wide .request-foot .input-reviews .text { display: none; }
.popup-container.wide .request-foot .input-reviews .input {
    width: 100%;
    min-height: 44px; max-height: 140px;
    margin: 0;
    padding: 11px 16px;
    font-size: 15px; line-height: 22px;
    background: #fff;
    border: 1px solid var(--bbp-line);
    border-radius: 22px !important;
    resize: none;
    field-sizing: content;
}
.popup-container.wide .request-foot .input-reviews .input:focus { border-color: #cfcac0; outline: none; }
.popup-container.wide .request-foot .form-wrap .popup-send {
    position: static;
    flex: 0 0 44px;
    width: 44px; height: 44px; min-width: 44px;
    margin: 0;
    border-radius: 50% !important;
    background: var(--bbp-ink);
}
.popup-container.wide .request-foot .form-wrap .popup-send svg { fill: #fff; margin-left: 2px; }

/* contacts in a bubble are tappable */
.message .phone a,
.message .email a { color: inherit; text-decoration: underline; text-decoration-color: rgba(31, 35, 38, .3); text-underline-offset: 3px; }
.message .phone a:hover,
.message .email a:hover { text-decoration-color: currentColor; }
.popup-container.wide .request-foot .input-reviews { flex: 1 1 0; min-width: 0; }
.request-body .message .phone a,
.request-body .message .email a { color: var(--bbp-ink); }
.popup-container.wide .request-foot { background: #faf9f5; }

/* ---------- Refuse / delete-chat form: reason chip + "other" field + send ---------- */
.popup-container.wide .tab-spam .input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 14px;
    background: #faf9f5;
    border-top: 1px solid var(--bbp-line);
}
.popup-container.wide .tab-spam label.input-radio {
    flex: 1 0 100%;
    display: flex; align-items: center; gap: 8px;
    margin: 0;
}
.popup-container.wide .tab-spam label.input-radio span {
    display: inline-flex; align-items: center; gap: 8px;
    height: 32px; padding: 0 14px 0 10px;
    font-size: 13px; color: var(--bbp-ink);
    background: #fff;
    border: 1px solid var(--bbp-line);
    border-radius: 16px;
    cursor: pointer;
}
.popup-container.wide .tab-spam label.input-radio span::before {
    content: ""; width: 12px; height: 12px; border-radius: 50%;
    border: 1.5px solid #b9b5ad; box-sizing: border-box;
}
.popup-container.wide .tab-spam label.input-radio .radio { display: none; }
.popup-container.wide .tab-spam label.input-radio input:checked ~ span { background: #fbeee9; border-color: #efc4b8; color: #b23a22; }
.popup-container.wide .tab-spam label.input-radio input:checked ~ span::before { border: 4px solid #c4432b; }
.popup-container.wide .tab-spam label.label-comment { flex: 1 1 0; min-width: 0; margin: 0; }
.popup-container.wide .tab-spam label.label-comment .input {
    width: 100%;
    min-height: 44px; max-height: 140px;
    margin: 0;
    padding: 11px 16px;
    font-size: 15px; line-height: 22px;
    background: #fff;
    border: 1px solid var(--bbp-line);
    border-radius: 22px !important;
    resize: none;
    field-sizing: content;
}
.popup-container.wide .tab-spam label.label-comment .input:focus { border-color: #cfcac0; outline: none; }
.popup-container.wide .tab-spam .popup-send {
    position: static;
    flex: 0 0 44px;
    width: 44px; height: 44px; min-width: 44px;
    margin: 0;
    border-radius: 50% !important;
    background: var(--bbp-ink);
}
.popup-container.wide .tab-spam .popup-send svg { fill: #fff; margin-left: 2px; }

/* ---------- BlaBlaPrice as an AI assistant: people talk in bubbles, the assistant answers in plain prose ---------- */
.popup-container.wide .blabla-comment .text,
.popup-container.wide .blabla-comment.first .text,
.popup-container.wide .blabla-comment.middle .text,
.popup-container.wide .blabla-comment.last .text {
    display: block;
    max-width: 560px;
    background: transparent;
    border-radius: 0;
    padding: 0 0 0 2px;
    font-family: var(--bbp-serif);
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--bbp-ink);
}
.popup-container.wide .blabla-comment .text strong { font-weight: 600; }
.popup-container.wide .blabla-comment:not(.not-first) .text::before {
    content: "BlaBlaPrice";
    display: block !important;
    position: static;
    margin: 0 0 2px;
    border: 0;
    width: auto; height: auto;
    background: none;
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.4;
    color: #8a8f94;
}
.popup-container.wide .blabla-comment.not-first { margin-top: 0; }
.popup-container.wide .blabla-comment.first:not(.last),
.popup-container.wide .blabla-comment.middle { margin-bottom: 8px; }
/* the logo mark sits on the first line of the assistant's reply only */
.popup-container.wide .blabla-comment.not-first > :not(.text) { visibility: hidden; }
/* a whole message wrapped in <strong> reads as normal prose; bold stays for inline emphasis */
.popup-container.wide .blabla-comment .text > strong { font-weight: 400; }
.popup-container.wide .blabla-comment .text h4 { font: inherit; font-weight: 400; margin: 0; color: inherit; }
.popup-container.wide .blabla-comment .text,
.popup-container.wide .blabla-comment.dark .text { font-weight: 400; }

/* assistant prose in cabinet request cards too (same voice as in the chat popup) */
#main > .center > .blabla-comment .text,
.request.open-popup .blabla-comment .text {
    display: block;
    background: transparent;
    border-radius: 0;
    padding: 0 0 0 2px;
    box-shadow: none;
    font-family: var(--bbp-serif);
    font-size: 16.5px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--bbp-ink);
}
.request.open-popup .blabla-comment .text strong { font-weight: 600; }
#main > .center > .blabla-comment .text::after,
.request.open-popup .blabla-comment .text::after { display: none; }
#main > .center > .blabla-comment .text::before,
.request.open-popup .blabla-comment .text::before {
    content: "BlaBlaPrice";
    display: block !important;
    position: static;
    margin: 0 0 2px;
    border: 0;
    width: auto; height: auto;
    background: none;
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.4;
    color: #8a8f94;
}

/* ---------- Chat rhythm: one spacing scale for pills, bubbles and text inside them ---------- */
/* date/section pills */
.request-body .request-info {
    margin: 26px auto 10px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: #6b7075;
    background: rgba(31, 35, 38, .055);
    border-radius: 12px;
}
.request-body .request-info:first-child { margin-top: 8px; }

/* bubbles */
.request-body .message .inner {
    max-width: 500px;
    margin: 4px 0;
    padding: 9px 14px 7px;
    font-size: 14.5px;
    line-height: 1.45;
    border-radius: 4px 18px 18px 18px; /* avatar sits at the top-left, so that corner is the "tail" */
}
.request-body .text-right .message .inner { border-radius: 18px 18px 4px 18px; }
.request-body .message .avatar { margin-top: 4px; margin-right: 8px; }
.request-body .message .inner > * { margin-top: 0; margin-bottom: 0; }
.request-body .message .inner > * + * { margin-top: 3px; }
.request-body .message .name-reviews { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; font-size: 13.5px; }
.request-body .message .name-reviews strong { font-weight: 600; }
.request-body .message .name-reviews .bbp-no-reviews { margin-left: 0; font-size: 11.5px; }
.request-body .message .bbp-msg-price { margin-top: 2px; margin-bottom: 0; }
.request-body .message .deadline { margin-top: 6px; }
.request-body .message .contacts:empty { display: none; }
.request-body .message .inner .date {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.2;
    text-align: right;
    color: rgba(31, 35, 38, .45);
}
.request-body .text-right .message .inner .date { color: rgba(46, 110, 40, .6); }

/* assistant prose between bubbles */
.popup-container.wide .blabla-comment { margin-top: 22px; margin-bottom: 6px; }
.popup-container.wide .blabla-comment.not-first { margin-top: 0; }
.popup-container.wide .blabla-comment .text br + br { content: ""; display: block; margin-top: 8px; }
.popup-container.wide .blabla-comment .text p + p { margin-top: 8px; }

/* =====================================================================
 * Composers in the Claude.ai style: one white card, text on top,
 * a quiet row of controls underneath (attach / price or chips / send)
 * ===================================================================== */
.popup-container.wide .tab-answer .input-group.align-center,
.popup-container.wide .request-foot .form-wrap,
.popup-container.wide .tab-spam .input-group {
    display: grid;
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
    width: calc(100% - 32px);
    max-width: 760px;
    margin: 8px auto 16px;
    padding: 12px 12px 10px 16px;
    background: #fff;
    border: 1px solid #e3e0d8;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(31, 35, 38, .05);
    transition: border-color .2s, box-shadow .2s;
}
.popup-container.wide .tab-answer .input-group.align-center:focus-within,
.popup-container.wide .request-foot .form-wrap:focus-within,
.popup-container.wide .tab-spam .input-group:focus-within {
    border-color: #cfcbc1;
    box-shadow: 0 6px 24px rgba(31, 35, 38, .08);
}
/* the bars around the cards become plain */
.popup-container.wide .request-foot,
.popup-container.wide .tab-answer,
.popup-container.wide .tab-spam { background: #fff; border-top: 0; }

/* offer: text on top; attach, price, send underneath */
.popup-container.wide .tab-answer .input-group.align-center {
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas: "text text text text" "attach price . send";
}
.popup-container.wide .tab-answer .input-group .list-files-uploaded { grid-area: attach; }
.popup-container.wide .tab-answer .input-group input.input { grid-area: price; }
.popup-container.wide .tab-answer .input-group textarea.input { grid-area: text; }
.popup-container.wide .tab-answer .input-group .popup-send { grid-area: send; }

/* review: text on top; rating chips, send underneath */
.popup-container.wide .request-foot .form-wrap {
    grid-template-columns: 1fr auto;
    grid-template-areas: "text text" "chips send";
}
.popup-container.wide .request-foot .form-wrap .button-reviews { grid-area: chips; flex: none; }
.popup-container.wide .request-foot .form-wrap .input-reviews { grid-area: text; }
.popup-container.wide .request-foot .form-wrap .popup-send { grid-area: send; }

/* refuse: text on top; reason chip, send underneath */
.popup-container.wide .tab-spam .input-group {
    grid-template-columns: 1fr auto;
    grid-template-areas: "text text" "chip send";
}
.popup-container.wide .tab-spam label.input-radio { grid-area: chip; flex: none; }
.popup-container.wide .tab-spam label.label-comment { grid-area: text; }
.popup-container.wide .tab-spam .popup-send { grid-area: send; }

/* the message field itself: borderless, grows with the text */
.popup-container.wide .tab-answer .input-group textarea.input,
.popup-container.wide .request-foot .input-reviews .input,
.popup-container.wide .tab-spam label.label-comment .input {
    width: 100%;
    min-height: 48px;
    max-height: 220px;
    height: auto;
    margin: 0;
    padding: 2px 2px 4px;
    font-size: 15.5px;
    line-height: 1.5;
    background: transparent;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none;
    resize: none;
    field-sizing: content;
}

/* price as a small pill in the control row */
.popup-container.wide .tab-answer .input-group input.input {
    width: 170px;
    height: 34px;
    min-height: 34px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 17px !important;
}

/* round quiet attach, compact send */
.popup-container.wide .tab-answer .input-group label.button.input-file { width: 34px; height: 34px; min-width: 34px; }
.popup-container.wide .tab-answer .input-group .popup-send,
.popup-container.wide .request-foot .form-wrap .popup-send,
.popup-container.wide .tab-spam .popup-send {
    width: 36px; height: 36px; min-width: 36px;
    border-radius: 12px !important;
}
.popup-container.wide .tab-answer .input-group .popup-send svg,
.popup-container.wide .request-foot .form-wrap .popup-send svg,
.popup-container.wide .tab-spam .popup-send svg { width: 16px; height: 13px; }

@media (max-width: 640px) {
    .popup-container.wide .tab-answer .input-group.align-center,
    .popup-container.wide .request-foot .form-wrap,
    .popup-container.wide .tab-spam .input-group { width: calc(100% - 16px); margin: 6px auto 8px; padding: 10px 10px 8px 12px; }
    .popup-container.wide .tab-answer .input-group input.input { width: 130px; }
    .popup-container.wide .request-foot .button-reviews button span { display: none; }
    .popup-container.wide .request-foot .button-reviews button { padding: 0 8px; }
}
.popup-container.wide .request-body { border-bottom: 0; }
/* a whole assistant message wrapped in <strong> reads as normal prose */
.popup-container.wide .blabla-comment .text > strong:only-child,
.popup-container.wide .blabla-comment .text p > strong:only-child { font-weight: 400; }
.popup-container.wide .blabla-comment .text > strong:only-child,
.popup-container.wide .blabla-comment .text p > strong:only-child { font-weight: 400 !important; }
@media (max-width: 640px) {
    .popup-container.wide .tab-answer .input-group input.input { width: 158px; padding: 0 12px; font-size: 13px; background: #fff; }
}

/* composer card is centred: the tabs wrapper had a 20px left padding */
.popup-container.wide .tabs-block { padding-left: 0; }

/* ---------- Two-step offer composer (see js/bbp-composer.js) ---------- */
/* step 1: the field asks only for the price */
.popup-container.wide .tab-answer .input-group.bbp-steps {
    grid-template-columns: auto auto auto 1fr auto;
    grid-template-areas: "price price price price price" "attach . . . send";
}
.popup-container.wide .tab-answer .input-group.bbp-steps textarea.input,
.popup-container.wide .tab-answer .input-group.bbp-steps .bbp-price-cur { display: none; }
.popup-container.wide .tab-answer .input-group.bbp-steps:not(.bbp-step-comment) input.input {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 2px 2px 4px;
    font-size: 18px;
    font-weight: 600;
    background: transparent;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none;
}
.popup-container.wide .tab-answer .input-group.bbp-steps:not(.bbp-step-comment) input.input::placeholder { font-size: 15.5px; font-weight: 400; }
/* the send button works as "next" on step 1: grey until a price is typed */
.popup-container.wide .tab-answer .input-group.bbp-steps:not(.bbp-step-comment) .popup-send {
    pointer-events: auto;
    opacity: 1;
    background: #d6d3cc;
}
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-ready:not(.bbp-step-comment) .popup-send { background: var(--bbp-ink); }

/* step 2: comment in the field, price as a pill with its currency in the control row */
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment {
    grid-template-areas: "text text text text text" "attach price cur . send" "hint hint hint hint hint";
}
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment textarea.input { display: block; grid-area: text; }
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment input.input {
    width: 130px;
    font-weight: 600;
}
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment .bbp-price-cur {
    display: inline;
    grid-area: cur;
    font-size: 13px;
    color: #8a8f94;
}
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment.bbp-ready .popup-send { background: var(--bbp-ink); opacity: 1; pointer-events: auto; }
.popup-container.wide .tab-answer .input-group.bbp-steps .bbp-composer-hint {
    grid-area: hint;
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #8a8f94;
}
.popup-container.wide .tab-answer .input-group.bbp-steps .bbp-composer-hint a { color: var(--bbp-ink); text-decoration: underline; text-underline-offset: 2px; }
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment textarea.input { height: auto; min-height: 48px !important; }
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment .bbp-price-cur { margin-left: -2px; }
/* step 1 owns the whole field on every screen size (old mobile rules gave it a grey box) */
.popup-container.wide .tab-answer .input-group.bbp-steps:not(.bbp-step-comment) input.input { width: 100% !important; background: transparent !important; }
/* comment starts at one line; bbp-composer.js grows it with the text */
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment textarea.input { height: 48px; overflow-y: hidden; }

/* two-step composer, revised: price -> "+ коментар" appears -> typing a comment -> send appears */
.popup-container.wide .tab-answer .input-group.bbp-steps .bbp-add-comment { display: none; }
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-ready:not(.bbp-step-comment) .bbp-add-comment {
    display: inline-flex;
    align-items: center;
    grid-area: send;
    height: 36px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--bbp-ink);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    animation: bbpPop .18s ease-out;
}
.popup-container.wide .tab-answer .input-group.bbp-steps .bbp-add-comment:hover { background: #3a4045; }
.popup-container.wide .tab-answer .input-group.bbp-steps:not(.bbp-step-comment) .popup-send,
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment:not(.bbp-has-comment) .popup-send { display: none; }
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment.bbp-has-comment .popup-send {
    display: inline-flex;
    background: var(--bbp-ink);
    opacity: 1;
    pointer-events: auto;
    animation: bbpPop .18s ease-out;
}
@keyframes bbpPop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

/* step 2, revised: the price leaves the control row and sits as a chip above the comment */
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment {
    grid-template-areas: "chip chip chip chip chip" "text text text text text" "attach . . . send" "hint hint hint hint hint";
}
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment input.input,
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment .bbp-price-cur { display: none; }
.popup-container.wide .tab-answer .input-group.bbp-steps .bbp-price-chip { display: none; }
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment .bbp-price-chip {
    grid-area: chip;
    justify-self: start;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    max-width: 100%;
    padding: 5px 12px;
    font-size: 13px;
    line-height: 1.3;
    color: #6b7075;
    background: #f3f1ec;
    border: 1px solid var(--bbp-line);
    border-radius: 12px;
    cursor: pointer;
    animation: bbpPop .18s ease-out;
}
.popup-container.wide .tab-answer .input-group.bbp-steps .bbp-price-chip b { font-size: 14px; font-weight: 600; color: var(--bbp-ink); white-space: nowrap; }
.popup-container.wide .tab-answer .input-group.bbp-steps .bbp-price-chip .bbp-chip-edit { text-decoration: underline; text-underline-offset: 2px; }
.popup-container.wide .tab-answer .input-group.bbp-steps .bbp-price-chip:hover { background: #ebe8e1; }

/* attached photos sit on top of the composer (like attachments in Claude), next to the price chip.
   display: contents keeps the site's upload JS working: it still finds .list-files-uploaded .wrap */
.popup-container.wide .tab-answer .input-group.bbp-steps .list-files-uploaded { display: contents; }
.popup-container.wide .tab-answer .input-group.bbp-steps .list-files-uploaded label.input-file { grid-area: attach; justify-self: start; }
.popup-container.wide .tab-answer .input-group.bbp-steps .list-files-uploaded .wrap {
    grid-area: files;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.popup-container.wide .tab-answer .input-group.bbp-steps .list-files-uploaded .wrap:empty { display: none; }
.popup-container.wide .tab-answer .input-group.bbp-steps:not(.bbp-step-comment) {
    grid-template-areas: "files files files files files" "price price price price price" "attach . . . send";
}
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment {
    grid-template-areas: "chip files files files files" "text text text text text" "attach . . . send" "hint hint hint hint hint";
}

/* thumbnail with a small remove button in the corner */
.popup-container.wide .tab-answer .item-file { position: relative; width: 52px; height: 52px; margin: 4px 4px 0 0; }
.popup-container.wide .tab-answer .item-file .img,
.popup-container.wide .tab-answer .item-file .img a { display: block; width: 100%; height: 100%; }
.popup-container.wide .tab-answer .item-file img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--bbp-line);
}
.popup-container.wide .tab-answer .item-file .delete {
    position: absolute;
    top: -6px;
    right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0;
    background: #fff;
    border: 1px solid var(--bbp-line);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(31, 35, 38, .12);
    cursor: pointer;
}
.popup-container.wide .tab-answer .item-file .delete svg { width: 10px; height: 10px; fill: #6b7075; }
.popup-container.wide .tab-answer .input-group.bbp-steps .list-files-uploaded label.input-file { margin: 0 !important; }
/* the remove button was hover-only, which phones never get */
.popup-container.wide .tab-answer .item-file .delete { opacity: 1 !important; visibility: visible; }
.popup-container.wide .tab-answer .item-file .delete { z-index: 2; transform: none !important; }

/* a quiet, inactive send icon holds the spot until there is something to send (like Claude's grey arrow) */
.popup-container.wide .tab-answer .input-group.bbp-steps:not(.bbp-step-comment):not(.bbp-ready) .popup-send,
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment:not(.bbp-has-comment) .popup-send {
    display: inline-flex;
    background: #efece5;
    opacity: 1;
    pointer-events: none;
    animation: none;
}
.popup-container.wide .tab-answer .input-group.bbp-steps:not(.bbp-step-comment):not(.bbp-ready) .popup-send svg,
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment:not(.bbp-has-comment) .popup-send svg { fill: #b3afa6; }

/* step 1: "грн" follows the digits while typing (positioned by bbp-composer.js) */
.popup-container.wide .tab-answer .input-group.bbp-steps { position: relative; }
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-has-price:not(.bbp-step-comment) .bbp-price-cur {
    display: flex;
    align-items: center;
    position: absolute;
    padding-bottom: 2px;
    font-size: 18px;
    font-weight: 600;
    color: #8a8f94;
    pointer-events: none;
}

/* =====================================================================
 * Offer composer, Claude layout: the card holds only the text and one icon;
 * "Додати фото" and the phone tip sit on a quiet row under the card.
 * The card itself is the container's ::before, placed over the first two grid rows.
 * ===================================================================== */
.popup-container.wide .tab-answer .input-group.bbp-steps,
.popup-container.wide .tab-answer .input-group.bbp-steps:focus-within {
    grid-template-columns: auto 1fr auto;
    row-gap: 0;
    column-gap: 8px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.popup-container.wide .tab-answer .input-group.bbp-steps:not(.bbp-step-comment) {
    grid-template-areas: "files files files" "price price icon" "attach hint hint";
}
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment {
    grid-template-areas: "chip files files" "text text icon" "attach hint hint";
}
.popup-container.wide .tab-answer .input-group.bbp-steps::before {
    content: "";
    grid-row: 1 / 3;
    grid-column: 1 / -1;
    z-index: 0;
    background: #fff;
    border: 1px solid #e3e0d8;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(31, 35, 38, .05);
    transition: border-color .2s, box-shadow .2s;
}
.popup-container.wide .tab-answer .input-group.bbp-steps:focus-within::before { border-color: #cfcbc1; box-shadow: 0 6px 24px rgba(31, 35, 38, .08); }
.popup-container.wide .tab-answer .input-group.bbp-steps > * { position: relative; z-index: 1; }

/* inside the card */
.popup-container.wide .tab-answer .input-group.bbp-steps .list-files-uploaded .wrap { margin: 12px 14px 0; }
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment .bbp-price-chip { margin: 12px 0 0 14px; }
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment .list-files-uploaded .wrap { margin-left: 0; }
.popup-container.wide .tab-answer .input-group.bbp-steps:not(.bbp-step-comment) input.input { grid-area: price; margin: 8px 0 8px 16px !important; }
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment textarea.input { margin: 8px 0 8px 16px; }
.popup-container.wide .tab-answer .input-group.bbp-steps .bbp-add-comment,
.popup-container.wide .tab-answer .input-group.bbp-steps .popup-send { grid-area: icon; align-self: end; margin: 0 10px 12px 0; }

/* one icon on the right: return arrow = add a comment, paper plane = send; grey when there is nothing to do */
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-ready:not(.bbp-step-comment) .bbp-add-comment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #fff;
    background: var(--bbp-ink);
    border-radius: 10px;
}
.popup-container.wide .tab-answer .input-group.bbp-steps .popup-send,
.popup-container.wide .tab-answer .input-group.bbp-steps .popup-send.blue { width: 34px; height: 34px; min-width: 34px; border-radius: 10px !important; }
.popup-container.wide .tab-answer .input-group.bbp-steps:not(.bbp-step-comment):not(.bbp-ready) .popup-send,
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment:not(.bbp-has-comment) .popup-send { background: transparent; }

/* under the card: add photo + phone tip, small and grey like the footer row in Claude */
.popup-container.wide .tab-answer .input-group.bbp-steps .list-files-uploaded label.input-file {
    grid-area: attach;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    height: 30px;
    min-width: 0;
    margin: 8px 0 0 6px !important;
    padding: 0 10px 0 6px;
    font-size: 13px;
    color: #6b7075;
    background: transparent;
    border: 0;
    border-radius: 15px !important;
    cursor: pointer;
}
.popup-container.wide .tab-answer .input-group.bbp-steps .list-files-uploaded label.input-file::after { content: "Додати фото"; }
.popup-container.wide .tab-answer .input-group.bbp-steps .list-files-uploaded label.input-file svg { width: 18px; height: 18px; }
.popup-container.wide .tab-answer .input-group.bbp-steps .list-files-uploaded label.input-file:hover { background: #efece5; }
.popup-container.wide .tab-answer .input-group.bbp-steps .bbp-composer-hint {
    grid-area: hint;
    align-self: center;
    justify-self: end;
    margin: 8px 8px 0 0;
    font-size: 12.5px;
    color: #8a8f94;
    text-align: right;
}
@media (max-width: 640px) {
    .popup-container.wide .tab-answer .input-group.bbp-steps .bbp-composer-hint { font-size: 12px; }
}
/* the theme already uses .input-group::before as a 1px line: reset it into the card */
.popup-container.wide .tab-answer .input-group.bbp-steps::before {
    position: relative;
    display: block;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    height: auto;
    min-height: 56px;
    margin: 0;
    opacity: 1;
    transform: none;
}
/* the older "send" area no longer exists in this layout */
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-ready:not(.bbp-step-comment) .bbp-add-comment { grid-area: icon; margin: 0 10px 12px 0; }
/* the container centres items vertically; the card must fill its two rows */
.popup-container.wide .tab-answer .input-group.bbp-steps::before { align-self: stretch; justify-self: stretch; }
.popup-container.wide .tab-answer .input-group.bbp-steps .bbp-composer-hint a { font-size: inherit; line-height: inherit; }
/* phones: the tip gets its own line under "Додати фото" */
@media (max-width: 640px) {
    .popup-container.wide .tab-answer .input-group.bbp-steps:not(.bbp-step-comment) {
        grid-template-areas: "files files files" "price price icon" "attach attach attach" "hint hint hint";
    }
    .popup-container.wide .tab-answer .input-group.bbp-steps.bbp-step-comment {
        grid-template-areas: "chip files files" "text text icon" "attach attach attach" "hint hint hint";
    }
    .popup-container.wide .tab-answer .input-group.bbp-steps .list-files-uploaded label.input-file { justify-self: start; }
    .popup-container.wide .tab-answer .input-group.bbp-steps .bbp-composer-hint { justify-self: start; margin: 2px 0 0 12px; text-align: left; }
}
@media (max-width: 640px) { .popup-container.wide .tab-answer .input-group.bbp-steps .bbp-composer-hint { padding-left: 12px; } }
/* "+ коментар" is a compact text button in the icon slot */
.popup-container.wide .tab-answer .input-group.bbp-steps.bbp-ready:not(.bbp-step-comment) .bbp-add-comment {
    width: auto;
    padding: 0 12px;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* =====================================================================
 * Chat in the Claude palette:
 * cream canvas, own messages in a beige bubble, the other side as plain text,
 * BlaBlaPrice as serif prose, a white composer card.
 * ===================================================================== */
.popup-container.wide,
.popup-container.wide .request-body,
.popup-container.wide .tabs-block,
.popup-container.wide .tab-answer,
.popup-container.wide .tab-spam,
.popup-container.wide .tab-share,
.popup-container.wide .request-foot { background-color: #faf9f5; }
/* no wallpaper pattern behind the chat */
.popup-container.wide .request-body:before { display: none; }

/* own messages: beige bubble on the right */
.request-body .text-right .message .inner,
.request-body .text-right .message .inner.bbp-mine {
    background: #f0eee6;
    color: var(--bbp-ink);
    box-shadow: none;
}
.request-body .text-right .message .inner .date { color: rgba(31, 35, 38, .45); }

/* the other person: plain text next to the avatar, no bubble */
.request-body :not(.text-right) > .message .inner {
    background: transparent;
    box-shadow: none;
    padding: 2px 0 4px;
    border-radius: 0;
}
.request-body :not(.text-right) > .message .inner::before,
.request-body :not(.text-right) > .message .inner::after { display: none; }
.request-body :not(.text-right) > .message .inner .date { text-align: left; }

/* BlaBlaPrice logo: no white disc behind it */
.blabla-comment::before,
.blabla-comment:before { background-color: transparent !important; box-shadow: none !important; }

/* edit-offer popup: the existing photo sits on top with new uploads */
.popup-container.wide .tab-answer .input-group.bbp-steps .list-files-uploaded .gallery-offer {
    grid-area: files;
    display: flex;
    gap: 8px;
    margin: 12px 14px 0 0;
}
.popup-container.wide .tab-answer .input-group.bbp-steps .list-files-uploaded label.input-file img.postImg { display: none; }
.popup-container.wide .tab-answer .input-group.bbp-steps textarea.input { min-width: 0; }

/* own bubble exactly like Claude: beige, evenly rounded, no tail, no own name inside, time below it */
.request-body .text-right .message .inner {
    position: relative;
    padding: 10px 16px;
    margin-bottom: 28px;
    border-radius: 16px !important;
}
.request-body .text-right .message .inner::before,
.request-body .text-right .message .inner::after { display: none; }
.request-body .text-right .message .inner .name-reviews { display: none; }
.request-body .text-right .message .inner > .bbp-msg-price:first-of-type { margin-top: 0; }
.request-body .text-right .message .inner .date {
    position: absolute;
    top: 100%;
    right: 4px;
    margin-top: 6px;
    font-size: 12px;
    color: #8a8f94;
    white-space: nowrap;
}
/* photos inside messages: a proper thumbnail instead of a tiny strip */
.request-body .message .inner img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(31, 35, 38, .06);
}
/* the wrappers around a message photo had a fixed narrow size */
.request-body .message .inner *:has(> img),
.request-body .message .inner *:has(> a > img) { width: auto !important; height: auto !important; overflow: visible; margin: 6px 0 0; padding: 0; }

/* own messages nested one level deeper (cabinet cards wrap message.php in .text-right):
   the doubled class outranks the "other person, no bubble" rule */
.request-body .text-right .message .inner.inner {
    background: #f0eee6;
    padding: 10px 16px;
    border-radius: 16px !important;
    box-shadow: none;
}
.request-body .text-right .message .inner.inner .date { text-align: right; }

/* call to action inside a request card (the whole card opens the chat) */
.bbp-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    padding: 4px 12px;
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.6;
    color: #fff;
    background: var(--bbp-ink);
    border-radius: 14px;
    vertical-align: 1px;
    transition: background .2s;
}
.request.open-popup:hover .bbp-card-cta { background: #3a4045; }

/* request status pills: "searching" is quiet with a pulsing dot, "has offers" is green with a check */
.request-body .request-info.bbp-status {
    display: flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    padding: 4px 12px 4px 10px;
    font-weight: 600;
}
.bbp-status .bbp-status-icon { position: relative; width: 8px; height: 8px; border-radius: 50%; flex: none; }

.request-body .request-info.bbp-status-wait { color: #6b7075; background: rgba(31, 35, 38, .055); }
.bbp-status-wait .bbp-status-icon { background: #c9a227; }
.bbp-status-wait .bbp-status-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #c9a227;
    animation: bbpPulse 1.8s ease-out infinite;
}
@keyframes bbpPulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }

.request-body .request-info.bbp-status-offers { color: #2f6b2a; background: #e3f2dc; }
.bbp-status-offers .bbp-status-icon {
    width: 14px;
    height: 14px;
    background: #3f8a37 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

@media (prefers-reduced-motion: reduce) { .bbp-status-wait .bbp-status-icon::after { animation: none; } }
/* card styles outrank the status pill: pin its casing and colours */
.request .request-body .request-info.bbp-status { text-transform: none !important; font-size: 12.5px; }
.request .request-body .request-info.bbp-status-wait { color: #6b7075 !important; background: rgba(31, 35, 38, .055) !important; }
.request .request-body .request-info.bbp-status-offers { color: #2f6b2a !important; background: #e3f2dc !important; }

/* own bubble colour (user's choice) */
.request-body .text-right .message .inner,
.request-body .text-right .message .inner.inner { background: #edece9; }

/* UA chat popups: no section pills between messages; the status lives in the header subtitle */
html[lang="ua"] .popup-container.wide .request-body .request-info { display: none; }
html[lang="ua"] .popup-container.wide .request-body .request-body_inner > .message:first-child,
html[lang="ua"] .popup-container.wide .request-body .request-body_inner > div:first-child { margin-top: 8px; }
.popup-container.wide .request-head .from {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
    font-size: 12.5px;
    color: #8a8f94;
}
.bbp-head-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.bbp-head-status.bbp-status-wait { color: #8a6d12; }
.bbp-head-status.bbp-status-offers { color: #2f6b2a; }
/* status icon in the popup header: give it a box so the pulse stays around the dot */
.bbp-head-status .bbp-status-icon { position: relative; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.bbp-head-status.bbp-status-offers .bbp-status-icon { width: 14px; height: 14px; }
/* UA chat popups show "залишилось N днів" in the header, so the bubble does not repeat it */
html[lang="ua"] .popup-container.wide .request-body .message .deadline { display: none; }

/* =====================================================================
 * Chat typography and rhythm: one left edge, two text sizes, one spacing scale.
 *   - avatar / logo column 36px + 12px gap, so every speaker's text starts on the same line
 *   - people: Montserrat 15px/1.5; BlaBlaPrice: Source Serif 16px/1.55
 *   - 22px between speakers, 6px between consecutive BlaBlaPrice lines
 * ===================================================================== */

/* one left edge */
.popup-container.wide .request-body .message .avatar { flex: 0 0 36px; width: 36px; height: 36px; margin: 0 12px 0 0; }
.popup-container.wide .request-body :not(.text-right) > .message .inner { padding-left: 0; margin-left: 0; }
.popup-container.wide .blabla-comment { display: flex; align-items: flex-start; }
.popup-container.wide .blabla-comment::before {
    flex: 0 0 36px;
    width: 36px;
    height: 24px;
    margin: 0 12px 0 0;
    background-position: 50% 2px;
}
.popup-container.wide .blabla-comment .text { flex: 1 1 auto; min-width: 0; padding-left: 0; }

/* two text sizes */
.popup-container.wide .request-body .message .inner { font-size: 15px; line-height: 1.5; }
.popup-container.wide .request-body .message .inner .comment,
.popup-container.wide .request-body .message .inner .title,
.popup-container.wide .request-body .message .inner .region,
.popup-container.wide .request-body .message .inner .contacts { font-size: 15px; line-height: 1.5; }
.popup-container.wide .blabla-comment .text,
.popup-container.wide .blabla-comment .text p,
.popup-container.wide .blabla-comment .text h4 { font-size: 16px; line-height: 1.55; }
.popup-container.wide .request-body .message .inner .date { font-size: 11.5px; }

/* spacing between speakers and inside a message */
.popup-container.wide .request-body_inner > * { margin-top: 0; margin-bottom: 0; }
.popup-container.wide .request-body_inner > * + * { margin-top: 22px; }
.popup-container.wide .request-body_inner > .blabla-comment + .blabla-comment { margin-top: 6px; }
.popup-container.wide .request-body_inner > .drop-menu { margin-top: 18px; }
.popup-container.wide .request-body .message .inner { margin-top: 0; margin-bottom: 0; }
.popup-container.wide .request-body .text-right .message .inner { margin-bottom: 22px; }
.popup-container.wide .request-body .message .inner > * + * { margin-top: 4px; }
.popup-container.wide .request-body .message .inner .bbp-msg-price { margin-top: 2px; }
.popup-container.wide .request-body .message .inner *:has(> img),
.popup-container.wide .request-body .message .inner *:has(> a > img) { margin-top: 10px !important; }
.popup-container.wide .request-body .message .inner .popup-button { margin-top: 12px; }
.popup-container.wide .request-body :not(.text-right) > .message .inner .date { margin-top: 8px; }

/* BlaBlaPrice speaks again after someone else: show its logo and name again */
.popup-container.wide .blabla-comment .text::before { display: none !important; }
.popup-container.wide .request-body_inner > .blabla-comment:first-child .text::before,
.popup-container.wide .request-body_inner > :not(.blabla-comment) + .blabla-comment .text::before { display: block !important; }
.popup-container.wide .request-body_inner > :not(.blabla-comment) + .blabla-comment::before {
    background-image: url("/blabla/img/icon-logo.png");
    background-repeat: no-repeat;
    background-size: 14px auto;
}

/* "Твої дії" menu: one set of thin line icons (the theme mixed filled shapes and colours) */
.drop-menu .drop a svg { display: none; }
.drop-menu .drop a::before {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background-color: #5f6368;
    -webkit-mask: var(--bbp-ico) center / 18px no-repeat;
            mask: var(--bbp-ico) center / 18px no-repeat;
}
.drop-menu .drop a.js-spam::before { background-color: #c4432b; }
.drop-menu .drop a.js-share { --bbp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='M7 8l5-5 5 5'/%3E%3Cpath d='M5 13v6a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6'/%3E%3C/svg%3E"); }
.drop-menu .drop a.js-spam { --bbp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M9 7V4h6v3'/%3E%3Cpath d='M6 7l1 13h10l1-13'/%3E%3Cpath d='M10 11v5M14 11v5'/%3E%3C/svg%3E"); }
.drop-menu .drop a.js-close-popup { --bbp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.drop-menu .drop a.js-answer { --bbp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E"); }
/* any other item keeps a neutral dot-free spacing */
.drop-menu .drop a:not(.js-share):not(.js-spam):not(.js-close-popup):not(.js-answer)::before { background: none; }

/* BlaBlaPrice text size: beat the older, more specific rules */
.popup-container.wide .request-body_inner .blabla-comment .text,
.popup-container.wide .request-body_inner .blabla-comment .text p,
.popup-container.wide .request-body_inner .blabla-comment .text strong,
.popup-container.wide .request-body_inner .blabla-comment .text h4 { font-size: 16px !important; line-height: 1.55 !important; }
/* step 1 price field fills the card (a legacy rule capped it at 190px, leaving a small click target) */
.popup-container.wide .tab-answer .input-group.bbp-steps:not(.bbp-step-comment) input.input { max-width: none !important; justify-self: stretch; }
.popup-container.wide .tab-answer .input-group.bbp-steps { cursor: text; }
.popup-container.wide .tab-answer .input-group.bbp-steps :is(button, label, a, .bbp-price-chip) { cursor: pointer; }

/* chat popup column: only the chat shrinks, the composer below is always fully visible */
.popup-container.wide .request-body { flex: 1 1 auto; min-height: 0; }
.popup-container.wide .tabs-block { flex: 0 0 auto; }
/* a long comment scrolls inside the field instead of pushing the send button off screen */
.popup-container.wide .tab-answer .input-group.bbp-steps textarea.input { max-height: min(220px, 30vh) !important; }
/* the chat had a fixed height, so it never gave room to a taller composer */
.popup-container.wide .request-body { flex: 1 1 0; height: auto !important; max-height: none !important; }
/* legacy cap on the composer block (max-height: 200px) cut off the send button under a long comment */
.popup-container.wide .request-foot { max-height: none !important; height: auto !important; }
