/* Central Heat price on request: product page panel, form dialog and the label used in place of a price. */

.ch-price-request-label {
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    color: #1c3431;
}
.product-info-main .product-info-price .ch-price-request-label {
    font-size: 26px;
    line-height: 1.2;
}

.ch-pr {
    margin: 14px 0 22px;
}
.ch-pr__note {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #42524f;
}
.ch-pr__open,
.ch-pr__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    min-height: 54px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: #087a70;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s ease;
}
.ch-pr__open:hover,
.ch-pr__open:focus,
.ch-pr__submit:hover,
.ch-pr__submit:focus {
    border: 0;
    background: #065c55;
    color: #fff;
}
.ch-pr__submit[disabled] {
    opacity: .6;
    cursor: default;
}
.ch-pr__call {
    margin: 12px 0 0;
    text-align: center;
    font-size: 14px;
    color: #42524f;
}
.ch-pr__call a {
    font-weight: 700;
    color: #1c3431;
    white-space: nowrap;
}

.ch-pr__dialog {
    box-sizing: border-box;
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    margin: auto;
    padding: 28px 28px 24px;
    border: 0;
    border-radius: 22px;
    background: #fff;
    color: #1c3431;
    box-shadow: 0 30px 80px rgba(28, 52, 49, .28);
    overflow-y: auto;
}
.ch-pr__dialog:not([open]) {
    display: none;
}
.ch-pr__dialog::backdrop {
    background: rgba(28, 52, 49, .55);
}
.ch-pr__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #42524f;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.ch-pr__close:hover,
.ch-pr__close:focus {
    border: 0;
    background: #e8f0ec;
    color: #1c3431;
}
.ch-pr__title {
    margin: 0 40px 4px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #1c3431;
}
.ch-pr__product {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.45;
    color: #42524f;
}
.ch-pr__field {
    display: block;
    margin: 0 0 14px;
}
.ch-pr__field > span {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1c3431;
}
.ch-pr__field em {
    font-style: normal;
    color: #c0392b;
}
.ch-pr__field input,
.ch-pr__field textarea {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #dde3dd;
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
    color: #1c3431;
}
.ch-pr__field textarea {
    min-height: 84px;
    resize: vertical;
}
.ch-pr__field input:focus,
.ch-pr__field textarea:focus {
    border-color: #1c3431;
    box-shadow: 0 0 0 3px rgba(28, 52, 49, .12);
    outline: 0;
}
.ch-pr__row {
    display: flex;
    gap: 12px;
}
.ch-pr__row .ch-pr__field {
    flex: 1 1 auto;
    min-width: 0;
}
.ch-pr__row .ch-pr__field--qty {
    flex: 0 0 96px;
}
.ch-pr__trap {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.ch-pr__message {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fdecea;
    color: #a1281b;
    font-size: 14px;
}
.ch-pr__small {
    margin: 12px 0 0;
    text-align: center;
    font-size: 12px;
    color: #5a6966;
}
.ch-pr__done {
    text-align: center;
}
.ch-pr__done svg {
    margin: 4px auto 12px;
    color: #1a8f4c;
}
.ch-pr__done p {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.5;
}
.ch-pr [hidden] {
    display: none !important;
}

/* Product cards (listings, search, related products) */
.ch-card__request {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    margin-top: 12px;
    text-decoration: none;
}

/* ---------- attachments on the request form ---------- */
.ch-pr__field input[type="file"] { padding: 10px; border: 1px dashed #c4cfc7; border-radius: 12px; background: #f7f7f3; font-size: 14px; width: 100%; }
.ch-pr__hint { display: block; margin-top: 4px; color: #5a6966; font-size: 12px; }

/* ---------- the customer's page for one request (conversation) ---------- */
.ch-prt { max-width: 720px; margin: 0 auto 48px; }
.ch-prt__ref { margin: 0 0 6px; color: #5a6966; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.ch-prt__product { margin: 0 0 24px; padding: 16px 20px; border: 1px solid #dde3dd; border-radius: 16px; background: #fff; }
.ch-prt__product strong { display: block; color: #1c3431; font-size: 18px; }
.ch-prt__product span { color: #5a6966; font-size: 14px; }
.ch-prt__list { margin: 0 0 28px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ch-prt__item { align-self: flex-start; max-width: 86%; padding: 14px 18px; border-radius: 18px 18px 18px 4px; background: #edece4; }
.ch-prt__item--shop { align-self: flex-end; border-radius: 18px 18px 4px 18px; background: #1c3431; color: #fff; }
.ch-prt__who { display: flex; gap: 10px; align-items: baseline; margin: 0 0 6px; font-size: 13px; }
.ch-prt__who span { opacity: .7; }
.ch-prt__price { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.ch-prt__body { margin: 0; overflow-wrap: anywhere; }
.ch-prt__body--empty { opacity: .7; font-style: italic; }
.ch-prt__files { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; }
.ch-prt__files a { color: inherit; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ch-prt__form { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid #dde3dd; border-radius: 16px; background: #fff; }
.ch-prt__form .ch-pr__submit { align-self: flex-start; }
.ch-prt__closed { padding: 16px 20px; border-radius: 16px; background: #edece4; color: #1c3431; }

/* Product cards: the basket button of a price-on-request product is hidden at once and replaced by
   "Request a price" (js/cards.js), so the wrong button never flashes up. */
.product-item:has(.ch-price-request-label):not([data-ch-pr-card]) .actions-primary > * { visibility: hidden; }
.ch-price-request-label { color: #1c3431; font-weight: 600; }
/* Same size and shape as the card's normal "Add to basket" button (the theme styles links with .action.primary differently). */
.product-item .actions-primary a.ch-pr-card,
.product-item .actions-primary a.ch-pr-card:visited { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; height: 44px; padding: 10px 18px; border: 0; border-radius: 99px; background: #087a70; color: #fff; font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.product-item .actions-primary a.ch-pr-card:hover,
.product-item .actions-primary a.ch-pr-card:focus { background: #065c55; color: #fff; text-decoration: none; }
