.z7-share-dropdown {
    display: block !important;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible !important;
    background: transparent !important;
}

.z7-share-dropdown__details {
    width: 100%;
}

.z7-share-dropdown__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: .65rem .8rem;
    border: 1px solid var(--surfaceBorderColor, #d5ddd1);
    border-radius: 8px;
    color: var(--textPrimaryColor, #223021);
    background: var(--surfaceColor, #fff);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.z7-share-dropdown__summary::-webkit-details-marker {
    display: none;
}

.z7-share-dropdown__summary::after {
    content: '';
    width: .55rem;
    height: .55rem;
    flex: 0 0 .55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .16s ease;
}

.z7-share-dropdown__details[open] > .z7-share-dropdown__summary::after {
    transform: translateY(2px) rotate(225deg);
}

.z7-share-dropdown__summary:hover {
    border-color: var(--buttonColor, #4b7949);
    background: var(--surfaceMutedColor, #f7faf6);
}

.z7-share-dropdown__summary:focus-visible {
    outline: 3px solid var(--focusRingColor, rgba(75, 121, 73, .18));
    outline-offset: 2px;
    border-color: var(--buttonColor, #4b7949);
}

.z7-share-dropdown__details.is-empty > .z7-share-dropdown__summary {
    color: var(--textMutedColor, #667163);
    cursor: default;
}

.z7-share-dropdown__details.is-empty > .z7-share-dropdown__summary::after {
    opacity: .35;
}

.z7-share-dropdown__summary-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.z7-share-dropdown__panel {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-height: min(320px, 45vh);
    margin-top: .35rem;
    padding: .5rem;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    border: 1px solid var(--surfaceBorderColor, #d5ddd1);
    border-radius: 8px;
    background: var(--surfaceMutedColor, #f7faf6);
}

.z7-share-dropdown__option {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .z7-share-dropdown__panel {
        max-height: min(280px, 40vh);
    }
}
