/* A quiet secondary action, anchored below the ticket selector in both layouts. */
body.single-product .summary .tev-share {
    order: 10;
    width: 100%;
    min-width: 0;
    margin-block: 12px 20px;
    color: var(--ts-mediumgrey-text, #c6c2bb);
    font-size: 0.9375rem;
}

.tev-share__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--ts-border-color, #47413a);
    border-radius: 12px;
    list-style: none;
    color: var(--ts-gold, #c9a96e);
    cursor: pointer;
}

.tev-share__trigger::-webkit-details-marker { display: none; }
.tev-share__trigger::marker { content: ''; }
.tev-share__trigger svg { flex: none; }
.tev-share__chevron { margin-inline-start: auto; }
.tev-share__details[open] .tev-share__chevron { transform: rotate(180deg); }

.tev-share__trigger:hover,
.tev-share__actions :is(a, button):hover {
    background: rgb(201 169 110 / 9%);
    border-color: var(--ts-gold, #c9a96e);
}

.tev-share__trigger:focus-visible,
.tev-share__actions :is(a, button):focus-visible,
.tev-share__manual input:focus-visible {
    outline: 2px solid var(--ts-gold, #c9a96e);
    outline-offset: 3px;
}

.tev-share__panel {
    padding: 12px;
    margin-block-start: 8px;
    background: var(--ts-surface-2, #1c1a18);
    border: 1px solid var(--ts-border-color, #47413a);
    border-radius: 12px;
}

/* Open: trigger and panel read as ONE disclosure box, not two stacked cards (MOE-6-411). */
.tev-share__details[open] > .tev-share__trigger {
    border-end-start-radius: 0;
    border-end-end-radius: 0;
}
.tev-share__details[open] > .tev-share__panel {
    margin-block-start: 0;
    border-block-start: 0;
    border-start-start-radius: 0;
    border-start-end-radius: 0;
}

.tev-share__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tev-share .tev-share__actions :is(a, button) {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 120px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--ts-border-color, #47413a);
    border-radius: 8px;
    background: transparent;
    color: var(--ts-gold, #c9a96e);
    font: inherit;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
}

.single-product .tev-share [hidden] { display: none; }
.tev-share__manual {
    display: grid;
    gap: 8px;
    margin-block-start: 12px;
}
.tev-share .tev-share__manual input[type="url"] {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px;
    border: 1px solid var(--ts-border-color, #47413a);
    border-radius: 8px;
    background: var(--ts-surface-1, #161412);
    color: #eee;
    font-family: inherit; /* Storefront's form stack (Source Sans Pro fallback) spaced the URL unevenly */
    font-size: 1rem;      /* >=16px: no iOS focus zoom */
    appearance: none;
}
.tev-share .tev-share__manual {
    font-family: inherit;
}

.tev-share__status { margin: 8px 0 0; }
.tev-share__status:empty { display: none; }
