/*
 * Delivery options panel and product-card delivery line.
 * Plain CSS in px: Magento/blank sets html { font-size: 62.5% }, so rem units are avoided here.
 * Colours match the Water Softener Direct theme (navy #1c3431, line #dde3dd, muted #5a6966, success #087a70).
 */
.ch-delivery {
    margin: 16px 0 0;
    border: 1px solid #dde3dd;
    border-radius: 12px;
    background: #fff;
    color: #15243b;
    font-size: 14px;
    line-height: 1.4;
}

.ch-delivery__countdown {
    margin: 0;
    padding: 10px 16px;
    border-bottom: 1px solid #dde3dd;
    border-radius: 12px 12px 0 0;
    background: #eaf6ef;
    color: #087a70;
    font-size: 13px;
    font-weight: 600;
}

.ch-delivery__countdown[hidden] {
    display: none;
}

.ch-delivery__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #dde3dd;
}

.ch-delivery .ch-delivery__title {
    margin: 0;
    color: #1c3431;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.ch-delivery .ch-delivery__link {
    color: #5a6966;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ch-delivery .ch-delivery__link:hover {
    color: #1c3431;
}

.ch-delivery .ch-delivery__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ch-delivery .ch-delivery__item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 16px;
    border-top: 1px solid #dde3dd;
}

.ch-delivery .ch-delivery__item:first-child {
    border-top: 0;
}

.ch-delivery__icon {
    flex: none;
    width: 16px;
    height: 16px;
    color: #80602d;
}

.ch-delivery__text {
    flex: 1 1 auto;
    min-width: 0;
}

.ch-delivery__label,
.ch-delivery__eta {
    display: block;
}

.ch-delivery__label {
    color: #1c3431;
    font-weight: 500;
}

.ch-delivery__eta {
    color: #5a6966;
    font-size: 12px;
}

.ch-delivery__price {
    flex: none;
    color: #1c3431;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ch-delivery__price.is-free {
    color: #087a70;
}

.ch-delivery .ch-delivery__foot {
    margin: 0;
    padding: 8px 16px;
    border-top: 1px solid #dde3dd;
    color: #5a6966;
    font-size: 12px;
}

.ch-delivery--basket {
    margin: 0 0 16px;
}

/* Product card: "Free delivery · Tue 24 – Thu 26 Nov" and the ex-VAT price */
.ch-card-delivery {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.4;
}

.ch-card-delivery__icon {
    flex: none;
    width: 14px;
    height: 14px;
    margin-top: 1px;
    color: #087a70;
}

.ch-card-delivery__cost {
    color: #087a70;
    font-weight: 500;
}

.ch-card-delivery__eta {
    color: #5a6966;
}

.ch-card-delivery__eta[hidden] {
    display: none;
}

.ch-card-exvat {
    margin: 2px 0 0;
    color: #5a6966;
    font-size: 12px;
    line-height: 1.4;
}

/* Order-by line shown on its own (product page buying column; the options list sits lower down). */
.ch-delivery--countdown {
    border: 0;
    background: none;
}

.ch-delivery--countdown .ch-delivery__countdown {
    border: 1px solid #cfe6d9;
    border-radius: 12px;
}

/* Flip-digit order-by timer (product page buying column). */
.ch-delivery__timer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 10px 14px;
    border: 1px solid #dde3dd;
    border-radius: 12px;
    background: #fff;
    color: #1c3431;
    font-size: 14px;
    line-height: 1.3;
}

.ch-delivery__timer[hidden],
.ch-delivery__timer-unit[hidden] {
    display: none;
}

.ch-delivery__timer-icon {
    flex: none;
    color: #0d7a4a;
}

.ch-delivery__timer-text strong {
    font-weight: 600;
}

.ch-delivery__timer-digits {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin-left: auto;
    white-space: nowrap;
}

.ch-delivery__timer-unit b {
    display: inline-block;
    min-width: 28px;
    padding: 3px 6px;
    border-radius: 6px;
    background: #1c3431;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.ch-delivery__timer-unit i {
    margin-left: 3px;
    color: #5a6966;
    font-size: 11px;
    font-style: normal;
}

/* Under an hour left. */
.ch-delivery__timer.is-urgent .ch-delivery__timer-unit b {
    background: #b45309;
}

/* Availability wording shown in place of the timer on products that cannot go next day. */
.ch-delivery__avail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #dde3dd;
    border-radius: 12px;
    background: #fff;
    color: #1c3431;
    font-size: 14px;
    line-height: 1.4;
}

.ch-delivery__avail-icon {
    flex: none;
    color: #5a6966;
}

/* The countdown opens a note about delivery times. */
.ch-delivery__timer.has-note {
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ch-delivery__timer.has-note:hover {
    border-color: #1c3431;
    box-shadow: 0 2px 10px rgba(28, 52, 49, .08);
}

.ch-delivery__timer-info,
.ch-delivery .ch-delivery__timer-info {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-left: 4px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #5a6966;
    cursor: pointer;
}

.ch-delivery__timer-info:hover,
.ch-delivery__timer-info:focus {
    border: 0;
    background: #e8f0ec;
    color: #1c3431;
}

.ch-delivery-note {
    box-sizing: border-box;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 30px 32px 26px;
    border: 0;
    border-radius: 22px;
    background: #fff;
    color: #1c3431;
    box-shadow: 0 24px 60px rgba(28, 52, 49, .28);
    overflow: auto;
}

.ch-delivery-note::backdrop {
    background: rgba(28, 52, 49, .5);
}

.ch-delivery-note__close,
.ch-delivery-note .ch-delivery-note__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #5a6966;
    cursor: pointer;
}

.ch-delivery-note__close:hover,
.ch-delivery-note__close:focus {
    border: 0;
    background: #e8f0ec;
    color: #1c3431;
}

.ch-delivery-note__title {
    margin: 0 44px 14px 0;
    color: #1c3431;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.ch-delivery-note__body {
    color: #42524f;
    font-size: 15px;
    line-height: 1.6;
}

.ch-delivery-note__body p {
    margin: 0 0 12px;
}

.ch-delivery-note__body ul {
    margin: 0 0 12px;
    padding: 0 0 0 22px;
    list-style: disc;
}

.ch-delivery-note__body li {
    margin: 0 0 8px;
}

.ch-delivery-note__body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .ch-delivery-note {
        padding: 24px 20px 20px;
    }
}
