/**
 * All of the CSS for your public-facing functionality should be included in this file.
 */

/*
 * Alerts
 */
.dmfwc .alert {
    display: inline;
    white-space: nowrap;
    min-height: 30px;
    margin: 0;
    padding: 1px 10px 4px 10px;
    border: 1px solid transparent;
    border-radius: 5px;
    line-height: 1;
}

.dmfwc .alert > p {
    margin-bottom: 0;
}

.dmfwc .alert > p + p {
    margin-top: 5px;
}

.dmfwc .alert > .icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border-radius: 50px;
    font-size: 10px;
    line-height: 1;
}

.dmfwc .alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.dmfwc .alert-success > .icon {
    background-color: #3c763d;
    color: white;
}

.dmfwc .alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.dmfwc .alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}

.dmfwc .alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.dmfwc .alert p {
    margin: 0;
    line-height: 1.2;
}

.dmfwc-tooltip-templates {
    display: none;
}

/* Clickable tiers in the bulk pricing table */
.dmfwc-bulk-table-wrap.dmfwc-clickable .dmfwc-tier {
    cursor: pointer;
}

.dmfwc-bulk-table-wrap.dmfwc-clickable .dmfwc-tier-button {
    all: inherit;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: inherit;
}

.dmfwc-bulk-table-wrap.dmfwc-clickable .dmfwc-tier-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.dmfwc-bulk-table-wrap.dmfwc-clickable .dmfwc-tier.dmfwc-tier-selected {
    background-color: #f0f6fc;
    font-weight: 600;
}

.dmfwc-live-price {
    margin: 8px 0 0;
    font-size: 0.95em;
}

.dmfwc-live-price:empty {
    display: none;
}

.dmfwc-bulk-table-wrap.dmfwc-clickable .dmfwc-tier-unavailable {
    cursor: not-allowed;
    opacity: 0.5;
}

.dmfwc-bulk-table-wrap.dmfwc-clickable .dmfwc-tier-unavailable .dmfwc-tier-button {
    cursor: not-allowed;
}

/* Countdown timer set to "Inline": only as wide as its text. :not([hidden]) keeps an ended countdown hidden. */
.dmfwc-countdown[data-width="inline"]:not([hidden]) {
    display: inline-block;
}

/* "Shopper picks one" free gift picker above the classic cart and checkout. */
.dmfwc-gift-picker {
    margin: 0 0 1.5em;
}

.dmfwc-gift-picker__gifts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dmfwc-gift-picker__gifts li {
    display: flex;
    align-items: center;
}

/* Spend more progress bar, under the spend more message on the classic and block cart and checkout. */
.dmfwc-spend-more-progress {
    display: block;
    height: 6px;
    margin-top: 0.5em;
    overflow: hidden;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.1);
}

.dmfwc-spend-more-progress-fill {
    display: block;
    height: 100%;
    background-color: currentColor;
}
