/**
 * 2007-2024 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 *  @author    PrestaShop SA <contact@prestashop.com>
 *  @copyright 2007-2024 PrestaShop SA
 *  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 *  International Registered Trademark & Property of PrestaShop SA
 */

.fmp-advanced-grid-elements {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center horizontally for the grid */
    row-gap: 6px;
    margin-top: 8px;
    width: 100%;
    font-size: 0.85rem;
    color: #4a4a4a;
}

.fmp-advanced-grid-elements .fmp-element {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Delivery Text */
.fmp-advanced-grid-elements .fmp-delivery .delivery-information {
    display: inline-flex;
    align-items: center;
    background-color: #f1f1f1;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.2;
}

.fmp-advanced-grid-elements .fmp-delivery i.material-icons {
    font-size: 1rem;
    margin-right: 4px;
    color: #4a4a4a;
}

/* Stock Badges */
.fmp-advanced-grid-elements .fmp-stock .stock-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.fmp-advanced-grid-elements .fmp-stock .badge-in-stock {
    background-color: #e5f6e5;
    color: #2e8b57;
}

.fmp-advanced-grid-elements .fmp-stock .badge-out-of-stock {
    background-color: #fdeaea;
    color: #c0392b;
}

.fmp-advanced-grid-elements .fmp-stock .badge-low-stock {
    background-color: #fff3cd;
    color: #856404;
}

.fmp-advanced-grid-elements .fmp-stock .badge-backorder {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Reference & Brand */
.fmp-advanced-grid-elements .fmp-reference,
.fmp-advanced-grid-elements .fmp-brand {
    font-size: 0.8rem;
    color: #777;
}

.fmp-advanced-grid-elements .fmp-brand .brand-image {
    max-height: 25px;
    max-width: 80px;
    object-fit: contain;
}

/* Features */
.fmp-advanced-grid-elements .fmp-features .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    font-size: 0.8rem;
}

.fmp-advanced-grid-elements .fmp-features .feature-list li {
    display: inline-block;
    color: #666;
}

.fmp-advanced-grid-elements .fmp-features .feature-list li:not(:last-child)::after {
    content: " • ";
    color: #ccc;
    margin: 0 4px;
}

/* Countdown Timer */
.fmp-advanced-grid-elements .fmp-countdown .countdown-wrapper {
    display: inline-flex;
    align-items: center;
    background-color: #2c3e50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-family: monospace;
    font-size: 0.8rem;
}

.fmp-advanced-grid-elements .fmp-countdown i.material-icons {
    font-size: 1rem;
    margin-right: 4px;
    color: #f1c40f;
}

.fmp-advanced-grid-elements .fmp-countdown .countdown-text {
    margin-right: 6px;
    font-weight: normal;
    font-family: inherit;
    font-size: 0.75rem;
}

.fmp-advanced-grid-elements .fmp-countdown .countdown-timer span {
    color: #f1c40f;
}

/* Extra Details */
.fmp-advanced-grid-elements .fmp-details .details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    font-size: 0.75rem;
}

.fmp-advanced-grid-elements .fmp-details .details-list li {
    color: #555;
    margin-bottom: 2px;
}