/* =========================================================
   BANNER BASE
========================================================= */

.dynamiCK-search {
    --banner-blue: #1c4788;

    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 1100px;
    height: 160px;
    margin: 0 auto 24px;
    border-radius: 8px;
    background: var(--banner-blue);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none !important;
}

.dynamiCK-search *,
.dynamiCK-search *::before,
.dynamiCK-search *::after {
    box-sizing: border-box;
}

.dynamiCK-search .padding-product-search {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 24px;
    background: transparent;
}

.dynamiCK-search img {
    display: block;
    max-width: 100%;
}

/* =========================================================
   MARCA Y TÍTULO
========================================================= */

.dynamiCK-search .dinamick-start {
    order: 1;
    display: flex;
    flex: 1 1 340px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 0;
    max-width: 340px;
    padding: 0;
}

.dynamiCK-search .brand {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 48px;
    height: 24px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #0053a3;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.dynamiCK-search h2 {
    display: block;
    min-width: 0;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 700;
    line-height: 1.2 !important;
    text-align: center;
    overflow-wrap: anywhere;
}

/* =========================================================
   PRECIOS
========================================================= */

.dynamiCK-search .all-dynamic-prices {
    order: 2;
    display: flex;
    flex: 0 1 220px;
    flex-direction: column;
    align-items: flex-start;
    align-self: center;
    gap: 4px;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.dynamiCK-search .all-dynamic-prices p {
    margin: 0;
    text-align: left;
}

.dynamiCK-search .price-before {
    margin: 0 0 0 8px !important;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}

.dynamiCK-search .price-before span {
    text-decoration: line-through;
}

.dynamiCK-search .price-before span:last-child {
    font-size: 85%;
    text-decoration: none;
}

.dynamiCK-search .price-offer {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    height: 52px;
    margin: 0;
    padding: 4px 8px;
    border-radius: 8px;
    background: #fff;
    color: #0053a3;
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.dynamiCK-search .price-offer strong {
    display: flex;
    align-items: baseline;
}

.dynamiCK-search .price-offer span {
    font-size: 26px;
}

.dynamiCK-search .product-payment {
    position: relative;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    height: 35px;
    margin: 0;
    padding: 0 8px 0 0;
    border: 1px solid #fff !important;
    border-radius: 8px;
    background: #0053a3;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.dynamiCK-search .product-payment span {
    position: relative;
    left: 0;
    display: flex;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    width: 56px;
    max-width: 56px !important;
    height: 33px !important;
    padding: 4px 6px;
    border-radius: 7px 0 0 7px;
    background: #fff;
}

.dynamiCK-search .product-payment img {
    position: static;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: none;
}

.dynamiCK-search .product-payment-price,
.dynamiCK-search .product-paymet-price {
    margin: 0 !important;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.dynamiCK-search .payment-percentage {
    position: relative;
    top: -6px;
    left: 0;
    font-size: 22px;
    letter-spacing: normal;
}

.dynamiCK-search .payment-text {
    position: relative;
    top: -4px;
    left: 0;
    background: transparent;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: normal;
}

.dynamiCK-search .product-save {
    display: none;
}

/* =========================================================
   IMAGEN DEL PRODUCTO
========================================================= */

.dynamiCK-search .product-main-image {
    position: relative;
    top: 0;
    left: 0;
    order: 3;
    display: block;
    flex: 0 0 160px;
    width: 160px !important;
    max-width: 160px !important;
    height: 160px;
    min-height: 0;
    margin: 0;
    padding: 8px;
    border-radius: 6px;
    background: #fff;
    object-fit: contain;
}

/* Mismo orden visual cuando no hay descuento. */

.dynamiCK-search.no-discount .all-dynamic-prices {
    order: 2;
}

.dynamiCK-search.no-discount .product-main-image {
    order: 3;
}

/* =========================================================
   DESCUENTO
========================================================= */

.dynamiCK-search .discount-label {
    position: absolute;
    top: 28px;
    right: 24px;
    bottom: auto;
    left: auto;
    display: block;
    width: 124px;
    min-width: 0;
    height: 66px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    transform: none;
}

.dynamiCK-search .discount-label p {
    display: contents;
    margin: 0;
}

.dynamiCK-search .discount-label .number {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 88px;
    font-size: 58px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    text-align: right;
    filter: none;
    text-shadow: none;
}

.dynamiCK-search .discount-label .percentage {
    position: absolute;
    top: 5px;
    left: 91px;
    display: block;
    margin: 0;
    font-size: 28px;
    line-height: 1;
    filter: none;
    text-shadow: none;
}

.dynamiCK-search .discount-label .discount {
    position: absolute;
    top: 34px;
    right: auto;
    bottom: auto;
    left: 91px;
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    background: none;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    transform: none;
}

/* =========================================================
   COMPRAR YA
========================================================= */

.dynamiCK-search .dinamick-end {
    position: static;
    order: 4;
    display: flex;
    flex: 0 0 124px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 124px;
    height: 100%;
    padding: 0 0 26px;
}

.dynamiCK-search .dinamick-end > p {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 124px;
    min-width: 0;
    height: 28px;
    margin: 0 !important;
    padding: 0 12px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: #004797 !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    cursor: pointer;
}

.dynamiCK-search .product-cart,
.dynamiCK-search .logo-event {
    display: none !important;
}

.dynamiCK-search:focus-visible {
    outline: 3px solid #0053a3;
    outline-offset: 3px;
}

/* =========================================================
   ESCRITORIO ESTRECHO / TABLET
========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {
    .dynamiCK-search .padding-product-search {
        gap: 12px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .dynamiCK-search .dinamick-start {
        flex-basis: 260px;
    }

    .dynamiCK-search h2 {
        font-size: 16px !important;
    }

    .dynamiCK-search .price-offer {
        font-size: 34px;
    }

    .dynamiCK-search .price-offer span {
        font-size: 22px;
    }

    .dynamiCK-search .product-payment-price,
    .dynamiCK-search .product-paymet-price {
        font-size: 16px;
    }

    .dynamiCK-search .product-main-image {
        flex-basis: 140px;
        width: 140px !important;
        max-width: 140px !important;
        height: 148px;
    }

    .dynamiCK-search .discount-label {
        right: 16px;
        width: 110px;
    }

    .dynamiCK-search .discount-label .number {
        width: 74px;
        font-size: 52px;
    }

    .dynamiCK-search .discount-label .percentage,
    .dynamiCK-search .discount-label .discount {
        left: 77px;
    }

    .dynamiCK-search .dinamick-end {
        flex-basis: 110px;
        width: 110px;
    }

    .dynamiCK-search .dinamick-end > p {
        width: 110px;
        font-size: 14px;
    }
}

/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 767px) {
    .dynamiCK-search {
        container-type: inline-size;
        max-width: 372px;
        height: auto;
        margin: 0 auto 24px;
        border-radius: 0;
    }

    .dynamiCK-search .padding-product-search {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        height: auto;
        padding: 12px;
    }

    .dynamiCK-search .product-main-image,
    .dynamiCK-search.no-discount .product-main-image {
        order: 1;
        flex: none;
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        aspect-ratio: 1;
        padding: 48px 12px 20px;
        border-radius: 10px 10px 0 0;
        object-fit: contain;
    }

    .dynamiCK-search .dinamick-start {
        order: 2;
        flex: none;
        align-items: stretch;
        gap: 0;
        width: 100%;
        max-width: none;
        margin: 20px 0 12px;
        padding: 0 8px;
    }

    .dynamiCK-search .brand {
        position: absolute;
        top: 30px;
        left: 28px;
        z-index: 2;
        min-width: 80px;
        max-width: calc(100% - 56px);
        height: 22px;
        border: 1px solid #666;
        border-radius: 3px;
        color: #444;
        font-size: 12px;
        font-weight: 400;
    }

    .dynamiCK-search h2 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        max-height: 40px;
        overflow: hidden;
        font-size: 16px !important;
        line-height: 20px !important;
        text-align: left;
    }

    /* Ubicado sobre la esquina inferior derecha del área blanca. */

    .dynamiCK-search .discount-label {
        top: calc(100cqw - 86px);
        z-index: 1;
        right: 24px;
        width: 118px;
        height: 62px;
        border-radius: 4px;
        background: #0053a3;
        box-shadow: 0 1px 4px rgb(0 0 0 / 25%);
    }

    .dynamiCK-search .discount-label .number {
        top: 0;
        left: 4px;
        width: 78px;
        font-size: 58px;
        line-height: 60px;
        text-align: center;
    }

    .dynamiCK-search .discount-label .percentage {
        top: 6px;
        left: 83px;
        font-size: 29px;
    }

    .dynamiCK-search .discount-label .discount {
        top: 36px;
        left: 83px;
        font-size: 12px;
    }

    .dynamiCK-search .all-dynamic-prices,
    .dynamiCK-search.no-discount .all-dynamic-prices {
        order: 3;
        flex: none;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        align-self: stretch;
        gap: 4px 8px;
        width: 100%;
        padding: 0 8px;
    }

    .dynamiCK-search .price-before {
        flex: 0 0 100%;
        margin: 0 !important;
        padding-left: 4px;
        font-size: 16px;
        line-height: 20px;
    }

    .dynamiCK-search .price-offer {
        height: 40px;
        padding: 4px 7px;
        border-radius: 5px;
        font-family: Arial, sans-serif;
        font-size: clamp(22px, 7vw, 28px);
    }

    .dynamiCK-search .price-offer span {
        font-size: 20px;
    }

    .dynamiCK-search .product-payment {
        gap: 5px;
        height: 32px;
        padding-right: 5px;
        border-radius: 5px;
    }

    .dynamiCK-search .product-payment span {
        flex-basis: 46px;
        width: 46px;
        max-width: 46px !important;
        height: 30px !important;
        padding: 4px;
        border-radius: 4px 0 0 4px;
    }

    .dynamiCK-search .product-payment-price,
    .dynamiCK-search .product-paymet-price {
        font-size: 20px;
    }

    .dynamiCK-search .dinamick-end {
        order: 4;
        flex: none;
        justify-content: center;
        width: 100%;
        height: auto;
        margin-top: 14px;
        padding: 0;
    }

    .dynamiCK-search .dinamick-end > p {
        width: fit-content;
        min-width: 124px;
        height: 32px;
        font-size: 20px;
    }
}

/* =========================================================
   FALLBACK
========================================================= */

#not-found {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 32px;
    box-sizing: border-box;
    width: 100%;
    max-width: 1100px;
    padding-right: 16px;
    color: #fff;
    text-align: center;
}

#not-found > :nth-child(2) {
    width: auto !important;
    height: 100px;
}

#not-found .fondo-negro {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100px;
    border-radius: 8px;
    background: #000;
}

#not-found p {
    margin-bottom: 0;
    text-wrap: balance;
}

#not-found > :nth-child(4) {
    max-width: 400px;
}