
@tailwind components;
@tailwind utilities;

.sws-network-on-dragging{
  @apply !_overflow-hidden
}

@layer components{
  .sws-max-500 {
    max-width: 500px;
    width: 100%;
  }
  
  .sws-input.sws-input-toggle {
    display: none;
  }
  
  .sws-input-toggle + label {
    width: 75px;
    height: 28px;
    background: rgb(143, 143, 143);
    display: block;
    border-radius: 50px;
    position: relative;
    -webkit-transition: 0.4s;
    transition: 0.4s;
  }
  
  .sws-input-toggle:checked + label {
    background-color: #1a4548;
  }
  
  .sws-input-toggle + label::after {
    content: attr(data-text-is-off);
    width: 30px;
    height: 20px;
    position: absolute;
    top: calc(50% - 10px);
    left: 5px;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 3px 2px rgba(157, 157, 157, 0.2588235294);
    text-align: center;
    line-height: 20px;
    font-size: 10px;
  }
  
  .sws-input-toggle:checked + label::after {
    content: attr(data-text-is-on);
    left: 40px;
  }
  
  .sws-appearance-checkbox ul {
    display: -webkit-flex;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  
  .sws-appearance-checkbox .sws-input-radio {
    display: none;
  }
  
  .sws-appearance-checkbox label {
    position: relative;
    display: block;
    transition: all 0.3s;
    border: 1px solid transparent;
  }
  
  .sws-appearance-checkbox .sws-input-radio:checked + label::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGNsYXNzPSJoLTYgdy02IiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2Utd2lkdGg9IjIiPg0KICA8cGF0aCBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGQ9Ik05IDEybDIgMiA0LTRNNy44MzUgNC42OTdhMy40MiAzLjQyIDAgMDAxLjk0Ni0uODA2IDMuNDIgMy40MiAwIDAxNC40MzggMCAzLjQyIDMuNDIgMCAwMDEuOTQ2LjgwNiAzLjQyIDMuNDIgMCAwMTMuMTM4IDMuMTM4IDMuNDIgMy40MiAwIDAwLjgwNiAxLjk0NiAzLjQyIDMuNDIgMCAwMTAgNC40MzggMy40MiAzLjQyIDAgMDAtLjgwNiAxLjk0NiAzLjQyIDMuNDIgMCAwMS0zLjEzOCAzLjEzOCAzLjQyIDMuNDIgMCAwMC0xLjk0Ni44MDYgMy40MiAzLjQyIDAgMDEtNC40MzggMCAzLjQyIDMuNDIgMCAwMC0xLjk0Ni0uODA2IDMuNDIgMy40MiAwIDAxLTMuMTM4LTMuMTM4IDMuNDIgMy40MiAwIDAwLS44MDYtMS45NDYgMy40MiAzLjQyIDAgMDEwLTQuNDM4IDMuNDIgMy40MiAwIDAwLjgwNi0xLjk0NiAzLjQyIDMuNDIgMCAwMTMuMTM4LTMuMTM4eiIgLz4NCjwvc3ZnPg==") no-repeat;
  }
  
  .sws-appearance-checkbox .sws-input-radio:checked + label {
    border: 1px solid gray;
    background: white;
  }
  
  .sws-appearance-checkbox ul > li {
    width: 50px;
    margin-right: 10px;
  }
  
  .sws-appearance-checkbox.sws-appearance-style ul > li {
    width: auto;
  }
  
  .sws-appearance-checkbox.sws-appearance-style ul > li label {
    padding: 5px;
  }
  
  .sws-appearance-checkbox.sws-appearance-style ul > li .superwebshare_button {
    position: unset;
  }
  
  .sws-appearance-checkbox ul > li.active {
    border: 1px solid lightgray;
  }
  
  .sws-appearance-checkbox ul .sws-icon {
    width: 100%;
  }

  .sws-social-networks .sws-icon-wrap{
    
    @apply  _w-8 _px-2 _py-1 _box-border
  }
  .sws-social-networks .sws-icon-wrap svg{
    @apply _w-full
  }
  
  .sws-social-networks-container {
    @apply _max-w-xl _bg-white _p-4
  }
  
  .sws-social-networks {
   @apply _w-full _grid _grid-cols-1 xs:_grid-cols-2  _gap-x-3

  }
  
  .sws-social-network {
  
    @apply _flex _w-full sm:_w-40 _bg-gray-900 _text-white _p-1 _items-center _mb-4 _justify-between
  }
  .sws-social-network .input-network:checked+.dashicons-before{
    display: block;
  }
  .sws-selected-social-network:not(.sws-network-on-drag){
    @apply _transition-all
  }
  .sws-network-on-drag{
    @apply _opacity-50
  }
  .sws-selected-social-networks.on-dragging .sws-social-network-wrap{
    @apply _pointer-events-none _transition-all
  }
  .element-on-dragging{
    transform: none !important;
  }
  .sws-selected-social-network .sws-social-network-wrap{
    @apply _flex _py-2 _px-1 _border-gray-100 _border-0 _border-b _border-solid _justify-between _bg-white _select-none
  }
  .sws-selected-social-network .sws-icon-wrap{
    @apply _w-8 _h-8 _p-2 _box-border _text-white _me-3
  }
  .sws-selected-social-network .sws-icon-wrap svg{
    @apply _w-full
  }
  .sws-selected-social-network .sws-network-handle{
    @apply _cursor-move _transition-colors _text-gray-300 hover:_text-gray-700 
  }
  .sws-social-network-actions{
    @apply _flex _items-center _text-gray-500
  }
  .sws-social-network-actions a{
    @apply _no-underline _text-inherit
  }
  .sws-social-network-actions a .dashicons-before{
    vertical-align: bottom;
  }
  .sws-social-network-actions .sws-action-delete{
    @apply hover:_text-red-500 
  }
  
  
}
