/**
 * Omnibus Price History - Estilos del Front Office (5 disenos)
 *
 * Este fichero se carga tambien en el Back Office para la previsualizacion
 * de la pagina de configuracion.
 *
 * @author    Ecom Experts <ecomyseo@gmail.com>
 * @copyright 2026 Ecom Experts
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 */

/* ------------------------------------------------------------------ Base */
.ecom-omnibus {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 6px 0 10px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #6c757d;
}

.ecom-omnibus__body {
    flex: 1 1 auto;
    min-width: 0;
}

.ecom-omnibus__label {
    display: inline;
}

.ecom-omnibus__price {
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.ecom-omnibus__percent,
.ecom-omnibus__saving,
.ecom-omnibus__date {
    display: inline-block;
    margin-left: 6px;
}

.ecom-omnibus__percent {
    padding: 0 5px;
    border-radius: 3px;
    background: #eaeaea;
    color: #444;
    font-weight: 600;
}

.ecom-omnibus__legal {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    color: #8a8a8a;
}

.ecom-omnibus__icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.55;
    position: relative;
}

.ecom-omnibus__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 4px;
    width: 2px;
    height: 10px;
    margin-left: -1px;
    background: #fff;
    border-radius: 1px;
}

.ecom-omnibus--listing {
    font-size: 0.75rem;
    margin: 2px 0 4px;
}

.ecom-omnibus--listing .ecom-omnibus__legal {
    display: none;
}

/* ------------------------------------------------------- 1. Minimal */
.ecom-omnibus--minimal {
    padding: 0;
    border: 0;
    background: none;
    color: #7a7a7a;
}

.ecom-omnibus--minimal .ecom-omnibus__price {
    font-weight: 600;
    color: #4a4a4a;
}

.ecom-omnibus--minimal .ecom-omnibus__legal {
    font-size: 0.68rem;
    opacity: 0.85;
}

/* ------------------------------------------------------------ 2. Box */
.ecom-omnibus--box {
    padding: 8px 12px;
    border: 1px solid #e6e6e6;
    border-left: 3px solid #7a7a7a;
    border-radius: 3px;
    background: #f7f7f7;
}

.ecom-omnibus--box .ecom-omnibus__price {
    color: #2b3445;
}

/* ---------------------------------------------------------- 3. Badge */
.ecom-omnibus--badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #2b3445;
    color: #f1f3f6;
    font-size: 0.8rem;
}

.ecom-omnibus--badge .ecom-omnibus__price {
    margin-left: 5px;
    color: #ffffff;
}

.ecom-omnibus--badge .ecom-omnibus__percent {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.ecom-omnibus--badge .ecom-omnibus__legal {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.68rem;
}

/* ---------------------------------------------------------- 4. Legal */
.ecom-omnibus--legal {
    padding: 10px 14px;
    border: 1px dashed #b9c2cc;
    border-radius: 4px;
    background: #fbfcfd;
    color: #55606b;
}

.ecom-omnibus--legal .ecom-omnibus__icon {
    color: #55606b;
}

.ecom-omnibus--legal .ecom-omnibus__label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ecom-omnibus--legal .ecom-omnibus__price {
    display: inline-block;
    margin-top: 2px;
    font-size: 1.05rem;
    color: #1f2933;
}

.ecom-omnibus--legal .ecom-omnibus__legal {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e4e9ee;
    font-size: 0.7rem;
}

/* ------------------------------------------------------ 5. Highlight */
.ecom-omnibus--highlight {
    padding: 12px 14px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, #fff7e0 0%, #ffeec2 100%);
    color: #7a5b00;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.ecom-omnibus--highlight .ecom-omnibus__icon {
    color: #c79000;
    opacity: 1;
}

.ecom-omnibus--highlight .ecom-omnibus__label {
    display: block;
    font-weight: 600;
}

.ecom-omnibus--highlight .ecom-omnibus__price {
    display: inline-block;
    margin-top: 3px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #8a5a00;
}

.ecom-omnibus--highlight .ecom-omnibus__percent {
    background: #8a5a00;
    color: #fff7e0;
}

.ecom-omnibus--highlight .ecom-omnibus__legal {
    color: #9a7c2e;
}

/* --------------------------------------- Previsualizacion Back Office */
.ecom-omnibus-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 6px 0 4px;
}

.ecom-omnibus-preview__item {
    flex: 1 1 260px;
    min-width: 240px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.ecom-omnibus-preview__item.is-selected {
    border-color: #25b9d7;
    box-shadow: 0 0 0 2px rgba(37, 185, 215, 0.18);
}

.ecom-omnibus-preview__title {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #363a41;
}

.ecom-omnibus-preview__sample {
    padding: 10px;
    border-radius: 4px;
    background: #fafafa;
}

.ecom-omnibus-preview__fakeprice {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 700;
    color: #ca3c3c;
}

.ecom-omnibus-preview__fakeprice del {
    margin-left: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #999;
}
