/**
 * @category  Softaware
 * @package   Softaware_FreeGift
 * @copyright Copyright © Softaware Commerce Ltd (https://softawarecommerce.com/)
 *
 * Luma styles. Hyvä templates use Tailwind classes instead.
 */
.softaware-free-gift-notice[hidden],
.softaware-free-gift-notice__bar[hidden] {
    display: none !important;
}

.softaware-free-gift-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Spend-more notice */
.softaware-free-gift-notice {
    margin: 0 0 20px;
    padding: 12px 15px;
    border: 1px solid #c9e1f4;
    border-radius: 4px;
    background: #eef6fc;
    color: #1a4d73;
    font-size: 1.4rem;
    line-height: 1.4;
}

.softaware-free-gift-notice__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.softaware-free-gift-notice__icon {
    flex: 0 0 auto;
    color: #1979c3;
}

.softaware-free-gift-notice__text {
    flex: 1 1 200px;
    font-weight: 600;
}

.softaware-free-gift-notice__bar {
    flex: 1 1 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: #d4e7f6;
}

.softaware-free-gift-notice__progress {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: #1979c3;
    transition: width .3s ease;
}

.softaware-free-gift-notice--top {
    margin: 0;
    padding: 8px 15px;
    border-width: 0 0 1px;
    border-radius: 0;
    font-size: 1.3rem;
}

.softaware-free-gift-notice--top .softaware-free-gift-notice__inner {
    max-width: 1280px;
    margin: 0 auto;
    justify-content: center;
}

.softaware-free-gift-notice--top .softaware-free-gift-notice__text {
    flex: 0 1 auto;
}

.softaware-free-gift-notice--top .softaware-free-gift-notice__bar {
    flex: 0 0 120px;
}

.softaware-free-gift-notice--product {
    margin: 15px 0 20px;
}

/* Gift choice on the cart page */
.softaware-free-gift-chooser {
    margin: 0 0 25px;
    padding: 20px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    background: #fff;
}

.softaware-free-gift-chooser__title {
    margin: 0 0 6px;
    font-size: 2rem;
    font-weight: 600;
}

.softaware-free-gift-chooser__intro {
    margin: 0 0 15px;
    color: #575757;
}

.softaware-free-gift-chooser__intro strong {
    margin-right: 4px;
    color: #333;
}

.softaware-free-gift-chooser__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 0 0 15px;
    padding: 0;
    list-style: none;
}

.softaware-free-gift-chooser__list > li {
    margin: 0;
}

.softaware-free-gift-card {
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    background: #fafafa;
}

.softaware-free-gift-card__form {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
    box-sizing: border-box;
}

.softaware-free-gift-card__image {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
    object-fit: contain;
    background: #fff;
}

.softaware-free-gift-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
}

.softaware-free-gift-card__name {
    font-weight: 600;
    line-height: 1.3;
}

.softaware-free-gift-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.softaware-free-gift-card__free,
.softaware-free-gift-card__now {
    color: #2e7d32;
    font-weight: 700;
}

.softaware-free-gift-card__was {
    color: #757575;
    font-size: 1.3rem;
    text-decoration: line-through;
}

.softaware-free-gift-card__label {
    font-size: 1.3rem;
    font-weight: 600;
}

.softaware-free-gift-card__select {
    width: 100%;
}

.softaware-free-gift-card__button {
    width: 100%;
    margin-top: auto;
}

.softaware-free-gift-chooser__removed {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px dashed #c2c2c2;
    border-radius: 4px;
}

.softaware-free-gift-chooser__removed img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.softaware-free-gift-chooser__removed span {
    flex: 1 1 200px;
}

/* Gift lines */
input.softaware-free-gift-qty {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Mini cart */
.softaware-free-gift-minicart {
    margin: 10px 0 0;
    padding: 8px 10px;
    border-radius: 4px;
    background: #eef6fc;
    color: #1a4d73;
    font-size: 1.3rem;
    text-align: left;
}

.softaware-free-gift-minicart__link {
    margin-left: 4px;
    font-weight: 600;
}
