.mkshare-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background-color: transparent;
    color: #cccccc;
    cursor: pointer;
    padding: 0.4rem;
    width: 2rem;
    height: 2rem;
    margin: 0 0.25rem;
}

.mkshare-button:hover {
    color: #fff;
}

.mkshare-button svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.mkshare-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

.mkshare-overlay[hidden] {
    display: none;
}

.mkshare-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.mkshare-close svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.mkshare-panel {
    text-align: center;
    max-width: 90%;
}

.mkshare-heading {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.mkshare-targets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.mkshare-target {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 4.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.mkshare-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.15s;
}

.mkshare-target:hover .mkshare-icon,
.mkshare-target:focus .mkshare-icon {
    background-color: rgba(255, 255, 255, 0.35);
}

.mkshare-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.mkshare-target-facebook .mkshare-icon,
.mkshare-target-facebook:hover .mkshare-icon,
.mkshare-target-facebook:focus .mkshare-icon {
    background-color: transparent;
}

.mkshare-target-facebook .mkshare-icon svg {
    width: 100%;
    height: 100%;
}

.mkshare-target-facebook:hover .mkshare-icon svg,
.mkshare-target-facebook:focus .mkshare-icon svg {
    opacity: 0.85;
}

.mkshare-target-linkedin .mkshare-icon,
.mkshare-target-linkedin:hover .mkshare-icon,
.mkshare-target-linkedin:focus .mkshare-icon {
    background-color: transparent;
}

.mkshare-target-linkedin .mkshare-icon svg {
    width: 100%;
    height: 100%;
}

.mkshare-target-linkedin:hover .mkshare-icon svg,
.mkshare-target-linkedin:focus .mkshare-icon svg {
    opacity: 0.85;
}

.mkshare-target-x .mkshare-icon,
.mkshare-target-x:hover .mkshare-icon,
.mkshare-target-x:focus .mkshare-icon {
    background-color: transparent;
}

.mkshare-target-x .mkshare-icon svg {
    width: 100%;
    height: 100%;
    border-radius: 18%;
}

.mkshare-target-x:hover .mkshare-icon svg,
.mkshare-target-x:focus .mkshare-icon svg {
    opacity: 0.85;
}

.mkshare-label {
    margin-top: 0.4rem;
    font-size: 0.75rem;
}

.mkshare-toast {
    margin-top: 1rem;
    min-height: 1.25rem;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.mkshare-toast-visible {
    opacity: 1;
}

@media (max-height: 260px) {
    .mkshare-heading, .mkshare-label { display: none; }
    .mkshare-target { width: 3rem; }
    .mkshare-icon { width: 2.5rem; height: 2.5rem; }
}
