/*
 * GPT000000000001 - 2026-11-23 - Presenta el menú de compartir como desplegable en escritorio y en línea en móvil.

 * GPT000000000003 - 2026-11-23 - Sirve los estilos del diálogo desde un archivo propio para evitar la copia antigua en caché.
 * GPT000000000002 - 2026-11-23 - Presenta el botón de compartir junto al título y un diálogo adaptable con iconos para las redes.
 */

/* GPT000000000002 - El acceso de compartir tiene su propio espacio junto al nombre de la ficha. */
.fone-product-share-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.75rem;
    margin-block-end: 1rem;
}

.fone-shop-main div.product .fone-product-share-heading > .product_title {
    margin-block-end: 0;
    overflow-wrap: anywhere;
}

.fone-product-share__trigger,
.fone-product-share__close {
    display: grid;
    place-items: center;
    inline-size: 44px;
    block-size: 44px;
    padding: 0;
    border: 1px solid #dce4f1;
    border-radius: 12px;
    background: #f8faff;
    color: #284071;
    text-decoration: none;
}

.fone-product-share__trigger:hover,
.fone-product-share__close:hover {
    background: #edf4fc;
    color: #14355d;
}

/* GPT000000000003 - Se aplican estos estilos al recurso específico del diálogo. */
/* GPT000000000002 - El diálogo se centra y el enlace abre las opciones aunque falte JavaScript. */
html.fone-product-share-open {
    overflow: hidden;
}

.fone-product-share:not([open]):not(:target) {
    display: none;
}

.fone-product-share {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    inline-size: min(30rem, calc(100% - 2rem));
    block-size: fit-content;
    max-block-size: calc(100vh - 2rem);
    max-block-size: calc(100dvh - 2rem);
    overflow: auto;
    overscroll-behavior: contain;
    margin: auto;
    padding: clamp(1rem, 5vw, 1.5rem);
    border: 1px solid #dce4f1;
    border-radius: 18px;
    background: #fff;
    color: #1d2558;
    box-shadow: 0 18px 56px #131c4640;
}

.fone-product-share::backdrop {
    background: #141c3c88;
}

.fone-product-share:target:not([open]) {
    display: block;
    z-index: 100001;
    box-shadow: 0 0 0 150vmax #141c3c88;
}

/* GPT000000000002 - Los destinos y el enlace de copia resultan legibles en pantallas estrechas. */
.fone-product-share__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.75rem;
    margin-block-end: 1.25rem;
}

.fone-product-share .fone-product-share__heading h2 {
    margin: 0;
    color: inherit;
    font-size: 1.375rem;
    line-height: 1.25;
}

.fone-product-share .fone-product-share__heading p {
    margin: 0.375rem 0 0;
    color: #515e78;
    font-size: 0.875rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.fone-product-share .fone-product-share__options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.fone-product-share__options a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-block-size: 100%;
    padding: 0.75rem 0.25rem;
    border: 1px solid #e0e7f3;
    border-radius: 12px;
    color: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.fone-product-share__options a:hover {
    border-color: #b5c7e7;
    background: #f8faff;
    color: #14355d;
}

.fone-product-share__service-icon {
    display: grid;
    place-items: center;
    inline-size: 42px;
    block-size: 42px;
    border-radius: 12px;
    background: #edf2ff;
    color: #214ea9;
}

.fone-product-share__service-icon--whatsapp {
    background: #e5f7eb;
    color: #0b7046;
}

.fone-product-share__service-icon--linkedin {
    background: #e9f3fc;
    color: #075b91;
}

.fone-product-share__link {
    display: grid;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.fone-product-share__link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fone-product-share__link input {
    flex: 1 1 11rem;
    inline-size: 100%;
    min-inline-size: 0;
    min-block-size: 44px;
    padding: 0.625rem 0.75rem;
    border: 1px solid #dce4f1;
    border-radius: 10px;
    background: #f5f7fc;
    color: #344269;
    font: inherit;
    font-weight: 400;
    text-overflow: ellipsis;
}

.fone-product-share__copy {
    display: inline-flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-block-size: 44px;
    padding: 0.5rem 0.875rem;
    border: 1px solid #cbd8ee;
    border-radius: 10px;
    background: #edf3ff;
    color: #253c70;
    font: inherit;
    cursor: pointer;
}

.fone-product-share__copy:hover {
    background: #e4eeff;
}

.fone-product-share__copy[hidden] {
    display: none;
}

.fone-product-share .fone-product-share__status {
    margin: 0.5rem 0 0;
    color: #255847;
    font-size: 0.8125rem;
}

.fone-product-share .fone-product-share__status:empty {
    margin: 0;
}

.fone-product-share :focus-visible,
.fone-product-share__trigger:focus-visible {
    outline: 2px solid #0a6894;
    outline-offset: 2px;
}
