/* KINETIK VOLT - CARRITO GLOBAL DESPLEGABLE */

.kv-store-header-actions {
    position: relative;
}

.kv-cart-dropdown[hidden] {
    display: none !important;
}

.kv-cart-dropdown {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    z-index: 9999;
    width: min(410px, calc(100vw - 24px));
    max-height: min(620px, 80vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    color: #17283d;
    border: 1px solid #e4eaf2;
    border-radius: 16px;
    box-shadow: 0 22px 65px rgba(9, 28, 48, .24);
}

.kv-cart-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 19px 22px;
    background: #f6f9fd;
    border-bottom: 1px solid #e4eaf2;
}

.kv-cart-dropdown__header h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #173453;
}

.kv-cart-dropdown__close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #52667c;
    cursor: pointer;
    font-size: 18px;
}

.kv-cart-dropdown__close:hover {
    background: #e8eef5;
}

.kv-cart-dropdown__items {
    flex: 1;
    min-height: 90px;
    overflow-y: auto;
    padding: 18px;
}

.kv-cart-dropdown__empty {
    margin: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #718096;
}

.kv-cart-dropdown__footer {
    padding: 18px 22px 22px;
    background: #ffffff;
    border-top: 1px solid #e4eaf2;
}

.kv-cart-dropdown__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 600;
}

.kv-cart-dropdown__amount {
    font-size: 22px;
    font-weight: 800;
    color: #123e69;
}

.kv-cart-dropdown__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.kv-cart-dropdown__actions button {
    min-height: 43px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.kv-cart-dropdown__pay {
    border: 1px solid #1764a0;
    background: #1764a0;
    color: #ffffff;
}

.kv-cart-dropdown__pay:hover {
    background: #104d7d;
}

.kv-cart-dropdown__quote {
    border: 1px solid #1764a0;
    background: #ffffff;
    color: #1764a0;
}

.kv-cart-dropdown__quote:hover {
    background: #edf5fc;
}

.kv-cart-dropdown__actions button:active {
    transform: scale(.98);
}

@media (max-width: 600px) {
    .kv-cart-dropdown {
        right: -8px;
        max-height: 75vh;
        border-radius: 12px;
    }

    .kv-cart-dropdown__header,
    .kv-cart-dropdown__footer {
        padding: 15px;
    }
}

/* PRODUCTOS DEL CARRITO GLOBAL */

.kv-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px solid #e8edf3;
}

.kv-cart-item:last-child {
    border-bottom: none;
}

.kv-cart-item__image {
    width: 86px;
    height: 86px;
    flex: 0 0 86px;
    object-fit: contain;
    border: 1px solid #e5ebf2;
    border-radius: 10px;
    background: #f8fafc;
}

.kv-cart-item__image[hidden] {
    display: none;
}

.kv-cart-item__details {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.kv-cart-item__name {
    color: #173453;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.kv-cart-item__code {
    color: #718096;
    font-size: 11px;
}

.kv-cart-item__price {
    color: #1764a0;
    font-size: 16px;
    font-weight: 800;
}

.kv-cart-item__controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.kv-cart-item__controls button {
    min-width: 28px;
    min-height: 28px;
    padding: 4px 7px;
    border: 1px solid #dce5ef;
    border-radius: 7px;
    background: #f5f8fc;
    color: #173453;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.kv-cart-item__controls button:hover {
    background: #e7f1fb;
}

.kv-cart-item__controls span {
    min-width: 16px;
    text-align: center;
    color: #173453;
    font-size: 13px;
    font-weight: 700;
}

.kv-cart-item__controls .kv-cart-item__remove {
    color: #c62828;
    background: #fff5f5;
    border-color: #f5d4d4;
    font-size: 11px;
}

.kv-cart-item__controls .kv-cart-item__remove:hover {
    background: #ffe7e7;
}

@media (max-width: 420px) {
    .kv-cart-item__image {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
    }

    .kv-cart-item {
        gap: 10px;
    }

    .kv-cart-item__name {
        font-size: 13px;
    }
}

/* KV VENTANA COTIZACION GLOBAL */

.kv-quote-modal[hidden] {
    display: none !important;
}

.kv-quote-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 10, 18, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.kv-quote-modal__dialog {
    width: min(100%, 460px);
    max-height: min(90dvh, 760px);
    overflow-y: auto;
    padding: 26px;
    border: 1px solid #465568;
    border-radius: 18px;
    background: linear-gradient(145deg, #303842, #151c26);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    color: #ffffff;
}

.kv-quote-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kv-quote-modal__header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.kv-quote-modal__close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 25px;
    cursor: pointer;
}

.kv-quote-modal__close:hover {
    background: #b91c1c;
}

.kv-quote-modal__description {
    margin: 12px 0 20px;
    color: #c6d0dc;
    font-size: 13px;
    line-height: 1.5;
}

.kv-quote-modal__form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.kv-quote-modal__form label {
    color: #e5edf7;
    font-size: 13px;
    font-weight: 600;
}

.kv-quote-modal__form input {
    width: 100%;
    min-height: 42px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid #65758a;
    border-radius: 9px;
    outline: none;
    background: #ffffff;
    color: #17202b;
    font-size: 14px;
    box-sizing: border-box;
}

.kv-quote-modal__form input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.kv-quote-modal__generate {
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
    border: 0;
    border-radius: 10px;
    background: #0866f5;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.kv-quote-modal__generate:hover {
    background: #0052ce;
}

body.kv-quote-open {
    overflow: hidden;
}

@media (max-width: 520px) {
    .kv-quote-modal {
        padding: 12px;
    }

    .kv-quote-modal__dialog {
        padding: 20px 16px;
        border-radius: 14px;
        max-height: 92dvh;
    }

    .kv-quote-modal__header h2 {
        font-size: 18px;
    }
}

/* CONSENTIMIENTO DE PRIVACIDAD - SOLO DISEÑO */
.kv-quote-modal__consentimiento {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    width: 100%;
    margin-top: 8px;
    box-sizing: border-box;
}

.kv-quote-modal__form input.kv-quote-modal__checkbox {
    width: 17px;
    height: 17px;
    min-height: 17px;
    flex: 0 0 17px;
    margin: 3px 0 0;
    padding: 0;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    background: #ffffff;
    accent-color: #3b82f6;
    cursor: pointer;
    box-shadow: none;
}

.kv-quote-modal__form .kv-quote-modal__consentimiento-texto {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: #e5edf7;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.65;
    cursor: pointer;
}

.kv-quote-modal__politicas {
    color: #60a5fa;
    font-weight: 700;
}

@media (max-width: 520px) {
    .kv-quote-modal__consentimiento {
        gap: 9px;
    }

    .kv-quote-modal__form .kv-quote-modal__consentimiento-texto {
        font-size: 10.5px;
        line-height: 1.6;
    }
}
/* BOTON COTIZACION - ESTADO SIN CONSENTIMIENTO */
.kv-quote-modal__generate:disabled {
    background: #6b7280;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 1;
}

.kv-quote-modal__generate:disabled:hover {
    background: #6b7280;
}
/* FIN KV VENTANA COTIZACION GLOBAL */

/* KV AJUSTE FINAL VENTANA COTIZACION */

/* Fondo azul oscuro profesional */
.kv-quote-modal .kv-quote-modal__dialog {
    background: linear-gradient(
        145deg,
        #10345e 0%,
        #092647 48%,
        #071b34 100%
    );
    border: 1px solid #3479c2;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

/* Ocultar barra lateral sin bloquear desplazamiento */
.kv-quote-modal .kv-quote-modal__dialog {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.kv-quote-modal .kv-quote-modal__dialog::-webkit-scrollbar {
    display: none;
}

/* FIN KV AJUSTE FINAL VENTANA COTIZACION */