/**
 * CM Social Widget module
 * PrestaShop 1.6.x - 9.x
 * CSS
 * Front-office - the only stylesheet of the widget. The side (sw-left / sw-right),
 * the style (sw-slide / sw-detached) and "hidden on small screens" (sw-nomobile)
 * are classes of the widget, so a single file serves every setting.
 */

/* Base */
#social-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#social-widget li {
  position: relative;
  margin-bottom: 5px;
}
#social-widget {
  position: fixed;
  z-index: 99999;
  width: 35px;
  max-width: none;
  margin: 0;
  padding: 0; /* themes with Bootstrap 5 grids pad every child of a .row */
}
#social-widget a {
  background: #333;
  color: #fff;
  display: block;
  height: 35px;
  font: 16px "Open Sans", sans-serif;
  line-height: 35px;
  position: relative;
  text-align: center;
  width: 35px;
  background-image: url("../img/sprite.png")!important;
  background-repeat: no-repeat!important;
}
#social-widget a:hover {
  color: #fff;
}
/*
 * The label is NOT parked outside of the window - it has no width until the icon is
 * hovered, so no part of it can ever show (themes with their own sliding panels,
 * widgets that are not at the very edge of the window...).
 */
#social-widget a span {
  position: absolute;
  top: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  color: #fff;
  line-height: 35px;
  text-align: center;
  font-size: 13px;
  text-shadow: none;
  transition: width .4s ease, opacity .3s ease, visibility 0s linear .4s;
}

/* Side - sliding labels */
#social-widget.sw-left { left: 0; }
#social-widget.sw-right { right: 0; }
#social-widget.sw-left a { border-radius: 0 5px 5px 0; }
#social-widget.sw-right a { border-radius: 5px 0 0 5px; }
#social-widget.sw-left a:hover,
#social-widget.sw-right a:hover { border-radius: 0; }
#social-widget.sw-left a span { left: 100%; border-radius: 0 5px 5px 0; }
#social-widget.sw-right a span { right: 100%; border-radius: 5px 0 0 5px; }
#social-widget.sw-left a:hover span,
#social-widget.sw-right a:hover span { width: 120px; opacity: 1; visibility: visible; transition-delay: 0s; }

/* Hidden on small screens */
@media (max-width: 575px) {
  #social-widget.sw-nomobile {
    display: none;
  }
}

/* "Detached icons" style - no sliding label, the icons stand on their own */
#social-widget.sw-detached { left: auto; right: auto; }
#social-widget.sw-detached.sw-left { left: 15px; }
#social-widget.sw-detached.sw-right { right: 15px; }
#social-widget.sw-detached li { margin-bottom: 10px; }
#social-widget.sw-detached li:last-child { margin-bottom: 0; }
#social-widget.sw-detached a,
#social-widget.sw-detached a:hover {
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#social-widget.sw-detached a:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}
/* The text stays in the markup (it is the accessible name), only out of the visual flow */
#social-widget.sw-detached a span,
#social-widget.sw-detached a:hover span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  left: auto;
  right: auto;
  transition: none;
  opacity: 1;
  visibility: visible;
}

/* Close button - centred below the icons */
/* A visitor has closed the widget: hidden before the first paint (see widget.tpl), no flicker */
html.sw-closed #social-widget { display: none !important; }
#social-widget.sw-detached .sw-close { margin-top: 10px; }
#social-widget .sw-close {
  display: block;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  margin: 6px 6px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #555;
  color: #fff;
  font: 16px/22px Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  opacity: .75;
  transition: opacity .2s ease;
}
#social-widget .sw-close:hover { opacity: 1; }
#social-widget .sw-close:focus-visible {
  opacity: 1;
  outline: 2px solid #fff;
  box-shadow: 0 0 0 4px #000;
}

/* Keyboard users get the same label as mouse users get on hover */
#social-widget a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
  box-shadow: 0 0 0 2px #000;
}
#social-widget.sw-slide.sw-left a:focus-visible span { width: 120px; opacity: 1; visibility: visible; transition-delay: 0s; }
#social-widget.sw-slide.sw-right a:focus-visible span { width: 120px; opacity: 1; visibility: visible; transition-delay: 0s; }

/* Brands *//* #1 */
#social-widget a.facebook,
#social-widget a.facebook:hover,
#social-widget a.facebook span { background: #0865fe; background-position: 0px 0px;}

/* #4 */
#social-widget a.youtube,
#social-widget a.youtube:hover,
#social-widget a.youtube span { background: #e52d27; background-position: 0px -35px;}

/* #3 */
#social-widget a.instagram,
#social-widget a.instagram:hover,
#social-widget a.instagram span { background: #f72d07; background-position: 0px -70px;}  

/* #4 */
#social-widget a.tiktok,
#social-widget a.tiktok:hover,
#social-widget a.tiktok span { background: #1e1e1e; background-position: 0px -105px;}  

/* #5 */
#social-widget a.weibo,
#social-widget a.weibo:hover,
#social-widget a.weibo span { background: #d52a2c; background-position: 0px -140px;}  

/* #6 */
#social-widget a.xcom,
#social-widget a.xcom:hover,
#social-widget a.xcom span { background: #272727; background-position: 0px -175px;}

/* #7 */
#social-widget a.reddit,
#social-widget a.reddit:hover,
#social-widget a.reddit span { background: #dd4b39; background-position: 0px -210px;}

/* #8 */
#social-widget a.pinterest,
#social-widget a.pinterest:hover,
#social-widget a.pinterest span { background: #cc2127; background-position: 0px -245px;}  

/* #9 */
#social-widget a.askfm,
#social-widget a.askfm:hover,
#social-widget a.askfm span { background: #784589; background-position: 0px -280px;}

/* #10 */
#social-widget a.tumblr,
#social-widget a.tumblr:hover,
#social-widget a.tumblr span { background: #314358; background-position: 0px -315px;}

/* #11 */
#social-widget a.flickr,
#social-widget a.flickr:hover,
#social-widget a.flickr span { background: #fe0083; background-position: 0px -350px;}

/* #12 */
#social-widget a.discord,
#social-widget a.discord:hover,
#social-widget a.discord span { background: #5165f9; background-position: 0px -385px;}  

/* #13 */
#social-widget a.linkedin,
#social-widget a.linkedin:hover,
#social-widget a.linkedin span { background: #007aaa; background-position: 0px -420px;}

/* #14 */
#social-widget a.vk,
#social-widget a.vk:hover,
#social-widget a.vk span { background: #4c75a3; background-position: 0px -455px;}

/* #15 */
#social-widget a.odnoklassniki,
#social-widget a.odnoklassniki:hover,
#social-widget a.odnoklassniki span { background: #e27e35; background-position: 0px -490px;}

/* #16 */
#social-widget a.meetup,
#social-widget a.meetup:hover,
#social-widget a.meetup span { background: #ed1c40; background-position: 0px -525px;}

/* #17 */
#social-widget a.email,
#social-widget a.email:hover,
#social-widget a.email span { background: #9dc622; background-position: 0px -560px;}

/* #18 */
#social-widget a.phone,
#social-widget a.phone:hover,
#social-widget a.phone span { background: #3387db; background-position: 0px -595px;}

/* #19 */
#social-widget a.vimeo,
#social-widget a.vimeo:hover,
#social-widget a.vimeo span { background: #00adef; background-position: 0px -630px;}

/* #20 */
#social-widget a.qzone,
#social-widget a.qzone:hover,
#social-widget a.qzone span { background: #fece08; background-position: 0px -665px;}

/* #21 */
#social-widget a.twitch,
#social-widget a.twitch:hover,
#social-widget a.twitch span { background: #9147ff; background-position: 0px -700px;}

/* #22 */
#social-widget a.gmaps,
#social-widget a.gmaps:hover,
#social-widget a.gmaps span { background: #56b154; background-position: 0px -735px;}

/* #23 */
#social-widget a.threads,
#social-widget a.threads:hover,
#social-widget a.threads span { background: #272727; background-position: 0px -770px;}

/* #24 */
#social-widget a.telegram,
#social-widget a.telegram:hover,
#social-widget a.telegram span { background: #38B0E3; background-position: 0px -805px;}

/* Icons drawn as images (the sprite has no cell for them) */
#social-widget a.whatsapp, #social-widget a.viber, #social-widget a.messenger,
#social-widget a.signal, #social-widget a.skype, #social-widget a.share,
#social-widget a.sw-custom {
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 22px 22px !important;
}
#social-widget a.whatsapp, #social-widget a.whatsapp:hover, #social-widget a.whatsapp span { background-color: #25d366; }
#social-widget a.viber, #social-widget a.viber:hover, #social-widget a.viber span { background-color: #7360f2; }
#social-widget a.messenger, #social-widget a.messenger:hover, #social-widget a.messenger span { background-color: #0084ff; }
#social-widget a.signal, #social-widget a.signal:hover, #social-widget a.signal span { background-color: #3a76f0; }
#social-widget a.skype, #social-widget a.skype:hover, #social-widget a.skype span { background-color: #00aff0; }
#social-widget a.share, #social-widget a.share:hover, #social-widget a.share span { background-color: #6c757d; }

#social-widget a.whatsapp { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.8' stroke-linejoin='round' d='M12 3.2a8.8 8.8 0 0 0-7.6 13.2L3.2 20.8l4.5-1.2A8.8 8.8 0 1 0 12 3.2z'/%3E%3Cpath fill='%23fff' d='M9 7.8c-.4 0-.9.4-1 1-.2 2.2 2.6 5.9 6 6.6.8.1 1.6-.5 1.7-1.2l-1.9-1.1-.9.9c-1.1-.5-2.2-1.5-2.7-2.7l.9-.8-.9-2.3z'/%3E%3C/svg%3E") !important; }
#social-widget a.viber { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.8' stroke-linejoin='round' d='M6 3.5h12a2.5 2.5 0 0 1 2.5 2.5v8a2.5 2.5 0 0 1-2.5 2.5h-5.5l-4 3.5v-3.5H6A2.5 2.5 0 0 1 3.5 14V6A2.5 2.5 0 0 1 6 3.5z'/%3E%3Cpath fill='%23fff' d='M9.2 7.4c-.3 0-.7.3-.8.8-.1 1.6 1.9 4.3 4.4 4.8.6.1 1.2-.4 1.3-.9l-1.4-.8-.6.6c-.8-.4-1.6-1.1-2-2l.7-.6-.7-1.7z'/%3E%3C/svg%3E") !important; }
#social-widget a.messenger { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.8' stroke-linejoin='round' d='M12 3C7 3 3.2 6.7 3.2 11.4c0 2.5 1.1 4.7 2.9 6.2V21l3.1-1.7c.9.3 1.8.4 2.8.4 5 0 8.8-3.7 8.8-8.4S17 3 12 3z'/%3E%3Cpath fill='%23fff' d='M6.8 13.8l3.5-3.7 2.2 2 3.6-2.1-3.5 3.7-2.2-2z'/%3E%3C/svg%3E") !important; }
#social-widget a.signal { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-dasharray='2.6 1.5'/%3E%3Ccircle cx='12' cy='12' r='4.6' fill='%23fff'/%3E%3C/svg%3E") !important; }
#social-widget a.skype { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3Ctext x='12' y='16.6' font-family='Arial' font-weight='700' font-size='12.5' text-anchor='middle' fill='%23fff'%3ES%3C/text%3E%3C/svg%3E") !important; }
#social-widget a.share { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='6' cy='12' r='2.6' fill='%23fff'/%3E%3Ccircle cx='17' cy='6' r='2.6' fill='%23fff'/%3E%3Ccircle cx='17' cy='18' r='2.6' fill='%23fff'/%3E%3Cpath stroke='%23fff' stroke-width='1.6' d='M8.3 10.8l6.4-3.6M8.3 13.2l6.4 3.6'/%3E%3C/svg%3E") !important; }

/* Custom buttons (the colour comes from the settings) */
#social-widget a.sw-ic-link { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E") !important; }
#social-widget a.sw-ic-star { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z'/%3E%3C/svg%3E") !important; }
#social-widget a.sw-ic-heart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 20.5S3.5 15 3.5 8.9A4.6 4.6 0 0 1 12 6.6a4.6 4.6 0 0 1 8.5 2.3C20.5 15 12 20.5 12 20.5z'/%3E%3C/svg%3E") !important; }
#social-widget a.sw-ic-cart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.9' stroke-linejoin='round' stroke-linecap='round' d='M3 4h2.5l2 10h10l2-7.5H6.4'/%3E%3Ccircle cx='9' cy='19' r='1.6' fill='%23fff'/%3E%3Ccircle cx='17' cy='19' r='1.6' fill='%23fff'/%3E%3C/svg%3E") !important; }
#social-widget a.sw-ic-calendar { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='5.5' width='16' height='14.5' rx='2' fill='none' stroke='%23fff' stroke-width='1.9'/%3E%3Cpath stroke='%23fff' stroke-width='1.9' d='M4 10h16M8.5 3.5v4M15.5 3.5v4'/%3E%3C/svg%3E") !important; }
#social-widget a.sw-ic-info { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23fff' stroke-width='1.9'/%3E%3Cpath stroke='%23fff' stroke-width='2' stroke-linecap='round' d='M12 11v5.5'/%3E%3Ccircle cx='12' cy='7.8' r='1.2' fill='%23fff'/%3E%3C/svg%3E") !important; }

/* Share menu */
#social-widget .sw-share-menu {
  position: absolute;
  top: 0;
  z-index: 5;
  min-width: 170px;
  padding: 6px 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
}
#social-widget.sw-left .sw-share-menu { left: calc(100% + 8px); }
#social-widget.sw-right .sw-share-menu { right: calc(100% + 8px); }
#social-widget .sw-share-menu[hidden] { display: none; }
#social-widget .sw-share-menu li { margin: 0; }
#social-widget .sw-share-menu a,
#social-widget .sw-share-menu a:hover {
  width: auto;
  height: auto;
  padding: 7px 16px;
  background: none !important;
  background-image: none !important;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  color: #222;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
}
#social-widget .sw-share-menu a:hover { background-color: rgba(0, 0, 0, .08) !important; }

/* Dark mode - dark icons need an outline on a dark page */
@media (prefers-color-scheme: dark) {
  #social-widget a { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
  #social-widget.sw-detached a,
  #social-widget.sw-detached a:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 1px 4px rgba(0, 0, 0, .5); }
  #social-widget .sw-close { background: #ddd; color: #111; }
  #social-widget .sw-share-menu { background: #2b2b2b; box-shadow: 0 4px 18px rgba(0, 0, 0, .7); }
  #social-widget .sw-share-menu a,
  #social-widget .sw-share-menu a:hover { color: #eee; box-shadow: none; }
  #social-widget .sw-share-menu a:hover { background-color: rgba(255, 255, 255, .12) !important; }
}

/* EOF */
