/* WMES privacy-first share buttons – loaded only on single posts when enabled. */
.mc-share {
    --mc-share-border: rgba(76, 84, 0, .28);
    --mc-share-border: color-mix(in srgb, var(--mc-color-primary, #4c5400) 28%, transparent);
    margin-block: 30px;
    font-family: var(--mc-body-font-family, inherit);
    padding: 18px 0;
    border-block: 1px solid var(--mc-share-border);
}

.mc-share--top {
    margin-top: 20px;
    margin-bottom: 28px;
}

.mc-share--bottom {
    margin-top: 34px;
    margin-bottom: 16px;
}

.mc-share__headline {
    margin: 0 0 6px;
    color: var(--mc-color-heading, #353605);
    font-family: var(--mc-heading-font-family, inherit);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.25;
}

.mc-share__privacy-note {
    margin: 0 0 12px;
    color: #5d5b55;
    color: color-mix(in srgb, var(--mc-color-text, #0d0b08) 72%, transparent);
    font-size: .88rem;
    line-height: 1.45;
}

.mc-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

.mc-share--align-center .mc-share__buttons {
    justify-content: center;
}

.mc-share--align-right .mc-share__buttons {
    justify-content: flex-end;
}

.mc-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--mc-share-border);
    border-radius: 2px;
    background: transparent;
    color: var(--mc-color-text, #0d0b08);
    font-family: inherit;
    font-size: .93rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.mc-share-button:visited {
    color: inherit;
}

.mc-share-button:hover,
.mc-share-button:focus-visible {
    text-decoration: none;
}

.mc-share-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--mc-color-accent, #bdd106) 58%, transparent);
    outline-offset: 2px;
}

.mc-share-button__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex: 0 0 20px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
}

.mc-share-button__icon {
    display: block;
    width: 20px;
    height: 20px;
    max-width: 100%;
    max-height: 100%;
}

.mc-share--display-icon-only .mc-share-button {
    width: 40px;
    min-width: 40px;
    padding-inline: 0;
}

.mc-share--display-icon-only .mc-share-button__label,
.mc-share--display-text-only .mc-share-button__mark {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.mc-share--display-icon-only .mc-share-button[data-service="linkedin"] .mc-share-button__label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
}

.mc-share--size-compact .mc-share-button {
    min-height: 34px;
    padding: 6px 9px;
    font-size: .84rem;
}

.mc-share--size-compact .mc-share-button__mark,
.mc-share--size-compact .mc-share-button__icon {
    width: 17px;
    height: 17px;
    min-width: 17px;
}

.mc-share--size-large .mc-share-button {
    min-height: 46px;
    padding: 10px 15px;
    font-size: 1rem;
}

.mc-share--size-large .mc-share-button__mark,
.mc-share--size-large .mc-share-button__icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
}

.mc-share--style-wmes .mc-share-button {
    border-color: rgba(76, 84, 0, .34);
    border-color: color-mix(in srgb, var(--mc-color-primary, #4c5400) 34%, transparent);
    background: #fff;
    background: color-mix(in srgb, var(--mc-color-background, #fff) 96%, #fff 4%);
    color: var(--mc-color-text, #0d0b08);
}

.mc-share--style-wmes .mc-share-button:hover,
.mc-share--style-wmes .mc-share-button:focus-visible {
    border-color: var(--mc-color-primary, #4c5400);
    background: rgba(76, 84, 0, .06);
    background: color-mix(in srgb, var(--mc-color-primary, #4c5400) 6%, #fff);
    color: var(--mc-color-text, #0d0b08);
}

.mc-share--style-neutral .mc-share-button:hover,
.mc-share--style-neutral .mc-share-button:focus-visible {
    border-color: var(--mc-color-primary, #4c5400);
    background: color-mix(in srgb, var(--mc-color-primary, #4c5400) 7%, transparent);
    color: var(--mc-color-primary, #4c5400);
}

/* Brand marks stay recognizable without turning the whole WMES button into an ad-like brand block. */
.mc-share--style-wmes .mc-share-button[data-service="whatsapp"] .mc-share-button__mark,
.mc-share--style-neutral .mc-share-button[data-service="whatsapp"] .mc-share-button__mark { color: #25d366; }
.mc-share--style-wmes .mc-share-button[data-service="facebook"] .mc-share-button__mark,
.mc-share--style-neutral .mc-share-button[data-service="facebook"] .mc-share-button__mark { color: #0866ff; }
.mc-share--style-wmes .mc-share-button[data-service="instagram"] .mc-share-button__mark,
.mc-share--style-neutral .mc-share-button[data-service="instagram"] .mc-share-button__mark { color: #000; }
.mc-share--style-wmes .mc-share-button[data-service="telegram"] .mc-share-button__mark,
.mc-share--style-neutral .mc-share-button[data-service="telegram"] .mc-share-button__mark { color: #229ed9; }
.mc-share--style-wmes .mc-share-button[data-service="pinterest"] .mc-share-button__mark,
.mc-share--style-neutral .mc-share-button[data-service="pinterest"] .mc-share-button__mark { color: #e60023; }
.mc-share--style-wmes .mc-share-button[data-service="bluesky"] .mc-share-button__mark,
.mc-share--style-neutral .mc-share-button[data-service="bluesky"] .mc-share-button__mark { color: #1185fe; }
.mc-share--style-wmes .mc-share-button[data-service="x"] .mc-share-button__mark,
.mc-share--style-neutral .mc-share-button[data-service="x"] .mc-share-button__mark { color: #000; }
.mc-share--style-wmes .mc-share-button[data-service="reddit"] .mc-share-button__mark,
.mc-share--style-neutral .mc-share-button[data-service="reddit"] .mc-share-button__mark { color: #ff4500; }
.mc-share--style-wmes .mc-share-button[data-service="mastodon"] .mc-share-button__mark,
.mc-share--style-neutral .mc-share-button[data-service="mastodon"] .mc-share-button__mark { color: #6364ff; }
.mc-share--style-wmes .mc-share-button[data-service="native"] .mc-share-button__mark,
.mc-share--style-wmes .mc-share-button[data-service="copy"] .mc-share-button__mark,
.mc-share--style-wmes .mc-share-button[data-service="linkedin"] .mc-share-button__mark,
.mc-share--style-wmes .mc-share-button[data-service="email"] .mc-share-button__mark { color: var(--mc-color-primary, #4c5400); }

.mc-share--style-brand .mc-share-button {
    border-color: transparent;
    color: #fff;
}

.mc-share--style-brand .mc-share-button[data-service="native"],
.mc-share--style-brand .mc-share-button[data-service="copy"] { background: #4c5400; }
.mc-share--style-brand .mc-share-button[data-service="whatsapp"] { background: #25d366; }
.mc-share--style-brand .mc-share-button[data-service="facebook"] { background: #0866ff; }
.mc-share--style-brand .mc-share-button[data-service="instagram"] { background: #000; }
.mc-share--style-brand .mc-share-button[data-service="telegram"] { background: #229ed9; }
.mc-share--style-brand .mc-share-button[data-service="linkedin"] { background: #555; }
.mc-share--style-brand .mc-share-button[data-service="pinterest"] { background: #e60023; }
.mc-share--style-brand .mc-share-button[data-service="bluesky"] { background: #1185fe; }
.mc-share--style-brand .mc-share-button[data-service="x"] { background: #000; }
.mc-share--style-brand .mc-share-button[data-service="reddit"] { background: #ff4500; }
.mc-share--style-brand .mc-share-button[data-service="mastodon"] { background: #6364ff; }
.mc-share--style-brand .mc-share-button[data-service="email"] { background: #555; }

.mc-share--style-brand .mc-share-button:hover,
.mc-share--style-brand .mc-share-button:focus-visible {
    color: #fff;
    filter: brightness(.92);
}

.mc-share-button[hidden] {
    display: none !important;
}

@media (min-width: 821px) {
    .mc-share-button--mobile-only {
        display: none !important;
    }
}

@media (max-width: 820px) {
    .mc-share {
        margin-block: 24px;
        padding-block: 15px;
    }

    .mc-share__buttons {
        gap: 8px;
    }

    .mc-share--display-icon-text .mc-share-button {
        min-height: 42px;
        padding-inline: 11px;
    }
}

@media (max-width: 420px) {
    .mc-share__buttons {
        align-items: stretch;
    }

    .mc-share--display-icon-text .mc-share-button {
        flex: 0 1 auto;
    }

    .mc-share--display-icon-only .mc-share-button {
        flex: 0 0 40px;
    }
}
