/* Vehículos CR – Compartir vehículo */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.single-product div.product {
    position: relative;
}

.vcrsv-share {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 120;
    font-family: inherit;
    line-height: 1.2;
}

.vcrsv-share--single {
    top: 14px;
    left: 14px;
    z-index: 130;
}

.vcrsv-share__trigger,
.vcrsv-share__close,
.vcrsv-share__option {
    -webkit-tap-highlight-color: transparent;
}

.vcrsv-share__trigger {
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 50%;
    background: linear-gradient(145deg, #ef3340, #d81728);
    color: #fff;
    box-shadow: 0 5px 14px rgba(28, 39, 54, .23);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.vcrsv-share__trigger:hover,
.vcrsv-share__trigger:focus-visible,
.vcrsv-share.is-open .vcrsv-share__trigger {
    background: linear-gradient(145deg, #db1f31, #b91122);
    box-shadow: 0 7px 18px rgba(28, 39, 54, .3);
    transform: translateY(-1px);
}

.vcrsv-share__trigger:focus-visible,
.vcrsv-share__close:focus-visible,
.vcrsv-share__option:focus-visible {
    outline: 3px solid rgba(30, 102, 190, .32);
    outline-offset: 2px;
}

.vcrsv-share__trigger svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vcrsv-share__popover {
    position: absolute;
    top: 42px;
    left: 0;
    width: 238px;
    max-width: min(238px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid #dce5ef;
    border-radius: 13px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 16px 38px rgba(21, 38, 63, .22);
    color: #10233f;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px) scale(.985);
    transform-origin: top left;
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
    z-index: 1000;
}

.vcrsv-share__popover::before,
.vcrsv-share__popover::after {
    content: "";
    position: absolute;
    left: 11px;
    width: 0;
    height: 0;
    border-style: solid;
}

.vcrsv-share__popover::before {
    top: -8px;
    border-width: 0 8px 8px;
    border-color: transparent transparent #dce5ef;
}

.vcrsv-share__popover::after {
    top: -7px;
    border-width: 0 8px 8px;
    border-color: transparent transparent #fff;
}

.vcrsv-share.is-open .vcrsv-share__popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.vcrsv-share__popover[hidden] {
    display: block;
}

.vcrsv-share__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 1px 1px 8px;
    border-bottom: 1px solid #edf1f5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.vcrsv-share__close {
    width: 25px;
    height: 25px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: #f3f6f9;
    color: #5b6b7c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.vcrsv-share__close:hover {
    background: #e8edf3;
    color: #142b49;
}

.vcrsv-share__close svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.vcrsv-share__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding-top: 9px;
}

.vcrsv-share__option,
button.vcrsv-share__option {
    min-width: 0;
    min-height: 38px;
    margin: 0;
    padding: 7px 8px;
    border: 1px solid #e1e8f0;
    border-radius: 9px;
    background: #f8fafc;
    color: #17304f;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.15;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.vcrsv-share__option:hover,
button.vcrsv-share__option:hover {
    border-color: #c6d4e3;
    background: #fff;
    color: #0d2544;
    transform: translateY(-1px);
}

.vcrsv-share__option svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vcrsv-share__option.is-whatsapp { color: #0f8f47; }
.vcrsv-share__option.is-facebook { color: #1559a6; }
.vcrsv-share__option.is-x { color: #101820; }
.vcrsv-share__option.is-email { color: #566578; }
.vcrsv-share__option.is-copy { color: #174d83; }

.vcrsv-share__hint {
    margin: 8px 2px 0;
    color: #708094;
    font-size: 8.5px;
    line-height: 1.35;
}

.vcrsv-share__status {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 999999;
    transform: translate(-50%, 12px);
    max-width: calc(100vw - 32px);
    padding: 9px 14px;
    border-radius: 9px;
    background: rgba(13, 35, 62, .96);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    pointer-events: none;
}

.vcrsv-share__status.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* Previene que el enlace principal del producto capture la interacción. */
.vcrsv-share,
.vcrsv-share * {
    pointer-events: auto;
}

@media (max-width: 767px) {
    .vcrsv-share {
        top: 9px;
        left: 9px;
    }

    .vcrsv-share--single {
        top: 11px;
        left: 11px;
    }

    .vcrsv-share__trigger {
        width: 32px;
        height: 32px;
    }

    .vcrsv-share__trigger svg {
        width: 16px;
        height: 16px;
    }

    .vcrsv-share__popover {
        top: 39px;
        width: 224px;
        padding: 9px;
    }

    .vcrsv-share__option,
    button.vcrsv-share__option {
        min-height: 40px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vcrsv-share__trigger,
    .vcrsv-share__popover,
    .vcrsv-share__option,
    .vcrsv-share__status {
        transition: none !important;
    }
}
