/* Shariff Social Media Share Buttons für plentyShop LTS */

.shariff-buttons {
    --shariff-size: 40px;
    --shariff-icon-size: 18px;
    --shariff-gap: 6px;
    --shariff-radius: 4px;
    margin: 1rem 0;
    font-size: var(--shariff-icon-size);
    line-height: 1;
}

.shariff-size-small {
    --shariff-size: 32px;
    --shariff-icon-size: 15px;
    --shariff-gap: 5px;
}

.shariff-size-large {
    --shariff-size: 48px;
    --shariff-icon-size: 22px;
    --shariff-gap: 8px;
}

.shariff-heading {
    margin-bottom: .5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.shariff-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--shariff-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.shariff-item {
    margin: 0;
    padding: 0;
}

.shariff-align-center { text-align: center; }
.shariff-align-center .shariff-list { justify-content: center; }
.shariff-align-right { text-align: right; }
.shariff-align-right .shariff-list { justify-content: flex-end; }

.shariff-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    box-sizing: border-box;
    min-width: var(--shariff-size);
    height: var(--shariff-size);
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--shariff-radius);
    background: var(--shariff-network-color, #5f6b76);
    color: #fff;
    font: inherit;
    font-size: var(--shariff-icon-size);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s ease, background-color .15s ease, color .15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.shariff-btn:hover,
.shariff-btn:focus {
    color: #fff;
    text-decoration: none;
    filter: brightness(.88);
}

.shariff-btn:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

.shariff-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
}

.shariff-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.shariff-glyph {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: .95em;
    line-height: 1;
}

.shariff-label {
    display: none;
    font-size: .8em;
    font-weight: 600;
    white-space: nowrap;
}

/* Stile */
.shariff-style-round .shariff-btn {
    border-radius: 50%;
    width: var(--shariff-size);
}

.shariff-style-label .shariff-btn {
    padding: 0 .9em;
}

.shariff-style-label .shariff-label {
    display: inline;
}

/* Farbschemata */
.shariff-color-grey .shariff-btn {
    background: #e9ecef;
    color: #3d4852;
}

.shariff-color-grey .shariff-btn:hover,
.shariff-color-grey .shariff-btn:focus {
    background: #dde1e5;
    color: #1f272e;
    filter: none;
}

.shariff-color-white .shariff-btn {
    background: #fff;
    border-color: #dee2e6;
    color: var(--shariff-network-color, #5f6b76);
}

.shariff-color-white .shariff-btn:hover,
.shariff-color-white .shariff-btn:focus {
    background: var(--shariff-network-color, #5f6b76);
    border-color: var(--shariff-network-color, #5f6b76);
    color: #fff;
    filter: none;
}

.shariff-color-shop .shariff-btn {
    background: var(--primary, #008ebd);
    color: #fff;
}

.shariff-color-custom .shariff-btn {
    background: var(--shariff-scheme-bg, #008ebd);
    color: var(--shariff-scheme-fg, #fff);
}

.shariff-color-custom .shariff-btn:hover,
.shariff-color-custom .shariff-btn:focus {
    color: var(--shariff-scheme-fg, #fff);
}

/* eigene Farben pro Netzwerk (überschreiben jedes Farbschema) */
.shariff-buttons .shariff-btn.shariff-custom,
.shariff-buttons .shariff-btn.shariff-custom:hover,
.shariff-buttons .shariff-btn.shariff-custom:focus {
    background: var(--shariff-custom-bg);
    border-color: var(--shariff-custom-bg);
    color: var(--shariff-custom-fg);
}

.shariff-buttons .shariff-btn.shariff-custom:hover,
.shariff-buttons .shariff-btn.shariff-custom:focus {
    filter: brightness(.88);
}

/* Sichtbarkeit pro Netzwerk */
@media (min-width: 768px) {
    .shariff-item.shariff-only-mobile {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .shariff-item.shariff-only-desktop {
        display: none;
    }
}

/* Kopieren-Bestätigung */
.shariff-buttons .shariff-btn.shariff-copied {
    background: #198754;
    border-color: #198754;
    color: #fff;
    filter: none;
}

/* automatisch platzierte Blöcke */
.shariff-auto-item .shariff-buttons {
    margin: .75rem 0;
}

.shariff-auto-bar .shariff-buttons {
    margin: 1.5rem 0;
}

/* fixierte Leiste */
.shariff-fixed {
    position: fixed;
    z-index: 1030;
    margin: 0;
}

.shariff-fixed-left,
.shariff-fixed-right {
    top: var(--shariff-offset, 50%);
    transform: translateY(calc(var(--shariff-offset, 50%) * -1));
}

.shariff-fixed-left { left: 0; }
.shariff-fixed-right { right: 0; }

.shariff-fixed-left .shariff-list,
.shariff-fixed-right .shariff-list {
    flex-direction: column;
    gap: 2px;
}

.shariff-fixed-left .shariff-btn,
.shariff-fixed-right .shariff-btn {
    width: var(--shariff-size);
    padding: 0;
}

.shariff-fixed-left .shariff-label,
.shariff-fixed-right .shariff-label {
    display: none;
}

.shariff-fixed-left .shariff-btn { border-radius: 0 var(--shariff-radius) var(--shariff-radius) 0; }
.shariff-fixed-right .shariff-btn { border-radius: var(--shariff-radius) 0 0 var(--shariff-radius); }
.shariff-style-round.shariff-fixed-left .shariff-btn,
.shariff-style-round.shariff-fixed-right .shariff-btn { border-radius: 50%; }
.shariff-style-round.shariff-fixed-left { left: 6px; }
.shariff-style-round.shariff-fixed-right { right: 6px; }

.shariff-fixed-bottom {
    bottom: 8px;
    left: var(--shariff-offset, 50%);
    transform: translateX(calc(var(--shariff-offset, 50%) * -1));
    max-width: calc(100vw - 16px);
}

.shariff-fixed-bottom .shariff-list {
    flex-wrap: nowrap;
    overflow-x: auto;
}

@media (max-width: 767.98px) {
    .shariff-fixed.shariff-hide-mobile {
        display: none;
    }
}

/* Platzhalter im ShopBuilder */
.shariff-placeholder {
    display: block;
    padding: .75rem 1rem;
    border: 1px dashed #adb5bd;
    color: #6c757d;
    font-size: .875rem;
}

.shariff-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media print {
    .shariff-buttons {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shariff-btn {
        transition: none;
    }
}
