.dc-promo-public {
    display: grid;
    gap: .75rem;
    margin: 1rem 0;
}

.dc-promo-public__offer,
.dc-promo-coupon,
.dc-promo-cart-state {
    box-sizing: border-box;
    border: 1px solid rgba(80, 60, 40, .2);
    border-radius: .75rem;
    padding: 1rem;
}

.dc-promo-public__offer p,
.dc-promo-coupon__feedback,
.dc-promo-nudge {
    margin: .4rem 0 0;
}

.dc-promo-coupon > div {
    display: flex;
    gap: .5rem;
    margin-top: .45rem;
}

.dc-promo-coupon input {
    flex: 1 1 12rem;
    min-width: 0;
}

.dc-promo-coupon button,
.dc-promo-free-choice button {
    cursor: pointer;
}

.dc-promo-coupon__feedback.is-error,
[data-dc-coupon-feedback] {
    color: #b42318;
}

.dc-promo-coupon__feedback.is-success {
    color: #167044;
}

.dc-promo-free-choice {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .5rem 0;
}

.dc-promo-free-choice label {
    flex: 1 1 14rem;
}

.dc-promo-free-choice select {
    max-width: 6rem;
}

/* Header bar: one offer across the top of the site, dismissible, with a link to the menu. */
.dc-promo-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    box-sizing: border-box;
    padding: .6rem 1rem;
    background: #fff7ed;
    border-bottom: 1px solid rgba(80, 60, 40, .2);
    color: #17130f;
}

.dc-promo-bar__text {
    margin: 0;
}

.dc-promo-bar a {
    font-weight: 600;
}

.dc-promo-bar__close {
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
}

.dc-promo-public__terms {
    margin-top: .5rem;
    font-size: .9em;
}

.dc-promo-public__terms summary {
    cursor: pointer;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
}

.dc-promo-applied-offer {
    margin: .4rem 0 0;
    font-weight: 600;
    color: #167044;
}

@media (max-width: 480px) {
    .dc-promo-coupon > div {
        flex-direction: column;
    }

    .dc-promo-coupon button {
        min-height: 2.75rem;
    }
}

/* Popup offer: a small card in the corner, shown after its delay, closed by the customer. */
.dc-promo-popup {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 9999;
    max-width: 22rem;
}

.dc-promo-popup__card {
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(80, 60, 40, .25);
    border-radius: .75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    padding: 1rem;
    color: #17130f;
}

.dc-promo-popup__card p {
    margin: .4rem 0 0;
}

.dc-promo-popup__close {
    margin-top: .5rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
    cursor: pointer;
}
