added css close icon border fix and safari workaround