/* Inline Add to Cart on keyword search and category results (OnlineComponents.com). Markup: Components/OLCInlineAddToCart. */

.olc-inline-atc {
    margin-top: 4px;
    padding: 14px 15px 12px;
    background-color: #f5f6f7;
    border-left: 4px solid #076af5;
    color: #002a49;
    font-family: SourceSansPro, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}

    .olc-inline-atc [hidden] {
        display: none !important;
    }

.olc-inline-atc__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.olc-inline-atc__label {
    margin: 0;
    color: #002a49;
    font-weight: 600;
}

.olc-inline-atc__qty {
    width: 84px;
    height: 42px;
    padding: 6px 10px;
    border: 1px solid #c0c8ce;
    border-radius: 5px;
    background-color: #fff;
    color: #002a49;
    font-size: 15px;
}

    .olc-inline-atc__qty:focus {
        border-color: #076af5;
        outline: 2px solid rgba(7, 106, 245, .25);
        outline-offset: 0;
    }

.olc-inline-atc.is-error .olc-inline-atc__qty {
    border-color: #d0021b;
}

/* stock lot: the quantity is the whole lot and can't be changed */
.olc-inline-atc[data-fixed-quantity="true"] .olc-inline-atc__qty {
    background-color: #f1f3f5;
    cursor: default;
}

.olc-inline-atc__btn {
    flex: 1 1 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px 6px;
    border: 0;
    border-radius: 5px;
    background-color: #076af5;
    color: #fff;
    font-family: var(--header-font-family);
    font-size: 18px;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

    .olc-inline-atc__btn:hover,
    .olc-inline-atc__btn:focus-visible {
        background-color: #2952f6;
    }

    .olc-inline-atc__btn:focus-visible {
        outline: 2px solid #002a49;
        outline-offset: 2px;
    }

    .olc-inline-atc__btn[disabled] {
        opacity: .7;
        cursor: wait;
    }

.olc-inline-atc__icon {
    flex: none;
    margin-top: -2px;
}

.olc-inline-atc__info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px 12px;
    margin-top: 10px;
    font-size: 13px;
}

.olc-inline-atc__total {
    margin-left: auto;
    white-space: nowrap;
}

.olc-inline-atc__message {
    position: relative;
    flex: 1 1 100%;
    padding-left: 22px;
}

    .olc-inline-atc__message::before {
        content: "";
        position: absolute;
        top: 1px;
        left: 0;
        width: 16px;
        height: 16px;
        background-repeat: no-repeat;
        background-size: 16px 16px;
    }

.olc-inline-atc.is-error .olc-inline-atc__message::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23d0021b' d='M8 1 15.5 14.5H.5z'/%3E%3Cpath fill='%23fff' d='M7.2 5.5h1.6v4.6H7.2zm0 5.7h1.6v1.6H7.2z'/%3E%3C/svg%3E");
}

.olc-inline-atc.is-success .olc-inline-atc__message::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23188038'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m4.5 8.2 2.3 2.3 4.7-4.8'/%3E%3C/svg%3E");
}

.olc-inline-atc__message a {
    color: #076af5;
    text-decoration: underline;
}

.olc-inline-atc__cart-link {
    font-weight: 600;
    white-space: nowrap;
}
