/* Free shipping bar and add-ons on /kurv/ (includes/functions/adt-cart-free-shipping.php). */

.adt-free-shipping {
    margin: 0 0 15px;
    padding: 12px 15px;
    border-radius: 6px;
    background: #f4f4f4;
}

.adt-free-shipping__text {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
}

.adt-free-shipping__track {
    height: 8px;
    overflow: hidden;
    border-radius: 4px;
    background: #ddd;
}

.adt-free-shipping__fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: #111;
    transition: width 0.3s ease;
}

.adt-free-shipping.is-free .adt-free-shipping__fill {
    background: #3c8a3f;
}

.woocommerce-cart-form .shop_table td.adt-cart-addons-cell {
    padding: 20px 0 10px;
    text-align: left;
}

.woocommerce-cart-form .shop_table td.adt-cart-addons-cell::before {
    display: none !important;
}

.adt-cart-addons__title {
    margin: 0 0 12px;
    font-size: 16px;
    text-align: left;
}

/* The cart column is narrow, so two cards per row on desktop and on phones. */
.adt-cart-addons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.adt-cart-addon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
}

.adt-cart-addon__image img {
    display: block;
    width: 100%;
    max-width: 120px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.adt-cart-addon__name {
    display: -webkit-box;
    overflow: hidden;
    color: inherit;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.adt-cart-addon__price {
    font-weight: 700;
}

.adt-cart-addon__option {
    color: #666;
    font-size: 12px;
}

/* min-width: 0 stops a long option from widening the cart table on phones. */
.adt-cart-addon__size {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 2.2em;
    margin: 0;
    padding: 0 8px;
    font-size: 13px;
}

.adt-cart-addon .adt-cart-addon__add {
    margin: auto 0 0;
}

.adt-cart-addon .adt-cart-addon__add.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
