/* Central Heat share basket: the button and panel on the basket page, and the shared basket page. */
.ch-share { margin-top: 16px; color: #1c3431; }
.ch-share__open {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    border: 1px solid rgba(28, 52, 49, 0.3);
    border-radius: 999px;
    background: #fff;
    color: #1c3431;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.ch-share__open:hover { background: #edece4; }
/* The pop-up box */
.ch-share__dialog {
    box-sizing: border-box;
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    margin: auto;
    padding: 26px 26px 22px;
    border: 0;
    border-radius: 22px;
    background: #fff;
    color: #1c3431;
    box-shadow: 0 30px 80px rgba(28, 52, 49, 0.28);
    overflow-y: auto;
}
.ch-share__dialog { font-size: 14px; line-height: 1.45; text-align: left; }
.ch-share__dialog:not([open]) { display: none; }
/* Inside the mini basket the box must look the same as on the basket page, whatever the drawer's own styles say. */
.ch-share__dialog .ch-share__button { width: auto; min-width: 0; margin: 0; line-height: 1; text-transform: none; }
.ch-share__dialog .ch-share__url, .ch-share__dialog .ch-share__field input, .ch-share__dialog .ch-share__field textarea { margin: 0; text-align: left; }
.ch-share__dialog .ch-share__action { display: inline; }
.ch-share__dialog::backdrop { background: rgba(28, 52, 49, 0.55); }
.ch-share__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #4a5670;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.ch-share__close:hover, .ch-share__close:focus { border: 0; background: #e8f0ec; color: #1c3431; }
.ch-share__title { margin: 0 40px 16px 0; font-size: 22px; font-weight: 700; line-height: 1.25; color: #1c3431; }
.ch-share__panel { margin: 0; padding: 0; border: 0; background: transparent; }
.ch-share__field input, .ch-share__field textarea { box-sizing: border-box; }
.ch-share__link { display: flex; gap: 8px; }
.ch-share__url { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid #c4cfc7; border-radius: 10px; background: #edece4; font-size: 14px; color: #1c3431; }
.ch-share__button { flex: 0 0 auto; height: 44px; padding: 0 16px; border: 1px solid #1c3431; border-radius: 999px; background: #fff; color: #1c3431; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ch-share__button--solid { background: #087a70; color: #fff; }
.ch-share__button:disabled { opacity: 0.6; cursor: default; }
.ch-share__hint { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: #5a6966; }
.ch-share__actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; }
.ch-share__action { font-size: 14px; font-weight: 600; color: #1c3431; text-decoration: underline; }
.ch-share__email { margin-top: 16px; padding-top: 14px; border-top: 1px solid #dde3dd; }
.ch-share__subtitle { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.ch-share__field { display: block; margin-bottom: 10px; }
.ch-share__field span { display: block; margin-bottom: 4px; font-size: 12px; color: #42524f; }
.ch-share__field input, .ch-share__field textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid #c4cfc7; border-radius: 10px; background: #fff; font-size: 14px; color: #1c3431; }
.ch-share__status { margin: 10px 0 0; font-size: 13px; color: #087a70; }
.ch-share__error { margin: 10px 0 0; font-size: 13px; color: #b42318; }
.ch-share__qr { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #dde3dd; font-size: 13px; color: #42524f; }
.ch-share__qr img { flex: 0 0 auto; width: 120px; height: 120px; border: 1px solid #dde3dd; border-radius: 8px; background: #fff; }

/* Shared basket page */
.ch-shared { max-width: 980px; margin: 0 auto; padding: 32px 16px 64px; color: #1c3431; }
.ch-shared__title { margin: 0 0 6px; font-size: 34px; font-weight: 400; letter-spacing: -0.03em; }
.ch-shared__intro { margin: 0 0 24px; font-size: 15px; color: #42524f; }
.ch-shared__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #dde3dd; }
.ch-shared__item { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid #dde3dd; }
.ch-shared__image { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 10px; background: #edece4; object-fit: contain; }
.ch-shared__info { flex: 1 1 auto; min-width: 0; }
.ch-shared__name { display: block; font-size: 15px; font-weight: 600; color: #1c3431; text-decoration: none; }
a.ch-shared__name:hover { text-decoration: underline; }
.ch-shared__meta { margin-top: 4px; font-size: 13px; color: #5a6966; }
.ch-shared__gone { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: #fde8e8; color: #b42318; font-size: 12px; font-weight: 600; }
.ch-shared__price { flex: 0 0 auto; text-align: right; font-size: 15px; font-weight: 700; white-space: nowrap; }
.ch-shared__price small { display: block; font-size: 12px; font-weight: 400; color: #5a6966; }
.ch-shared__add { flex: 0 0 auto; height: 40px; padding: 0 16px; border: 1px solid #1c3431; border-radius: 999px; background: #fff; color: #1c3431; font-size: 13px; font-weight: 600; cursor: pointer; }
.ch-shared__add:hover { background: #edece4; }
.ch-shared__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.ch-shared__total { font-size: 15px; color: #42524f; }
.ch-shared__total strong { display: block; font-size: 28px; color: #1c3431; }
.ch-shared__all { height: 54px; padding: 0 30px; border: 0; border-radius: 999px; background: #087a70; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.ch-shared__all:hover { background: #065c55; }
.ch-shared__links { margin-top: 18px; font-size: 14px; }
.ch-shared__links a { color: #1c3431; text-decoration: underline; margin-right: 18px; }
.ch-shared__note { margin-top: 18px; font-size: 13px; color: #5a6966; }

/* Retrieve a basket */
.ch-retrieve { max-width: 640px; }
.ch-retrieve__label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ch-retrieve__row { display: flex; flex-wrap: wrap; gap: 10px; }
.ch-retrieve__input { flex: 1 1 220px; min-width: 0; height: 54px; padding: 0 16px; border: 1px solid #c4cfc7; border-radius: 12px; background: #fff; font-size: 18px; letter-spacing: 0.12em; text-transform: uppercase; color: #1c3431; }
.ch-retrieve__input::placeholder { color: #b9bcc6; }
.ch-retrieve__input:focus { border-color: #1c3431; outline: 2px solid rgba(28, 52, 49, 0.2); outline-offset: 1px; }

@media (max-width: 640px) {
    .ch-shared__item { flex-wrap: wrap; }
    .ch-shared__image { flex-basis: 64px; width: 64px; height: 64px; }
    .ch-shared__info { flex-basis: calc(100% - 80px); }
    .ch-shared__price { margin-left: 80px; text-align: left; }
    .ch-shared__add { margin-left: auto; }
    .ch-shared__all { width: 100%; }
}
