/*------------------------------------------------------------------------
# AA Hikashop Live Sales Notification
# ------------------------------------------------------------------------
# author    AA Extensions https://aaextensions.com
# Copyright (C) 2018 AA Extensions. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: https://aaextensions.com
-------------------------------------------------------------------------*/

@charset "UTF-8";

/* --------------------------------

Primary style

-------------------------------- */

@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600");

#hsales-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99999999;
}

.hsalesnotification-notification {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
  min-width: 350px;
  width: 100%;
  font-size: 14px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  transition: max-height 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.hsalesnotification-notification.show {
  opacity: 1;
  max-height: 300px;
}

.hsalesnotification-notification-image-wrapper {
  flex-shrink: 0;
  margin-right: 12px;
}

.hsalesnotification-notification-image-wrapper img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #f0f0f0;
}

.hsalesnotification-notification-content-wrapper {
  flex-grow: 1;
}

.hsalesnotification-notification-content {
  margin: 0;
  color: #333;
  line-height: 1.4;
}

.hsalesnotification-notification-content .v-name {
  font-weight: 600;
  color: #111;
}

.hsalesnotification-notification-content a {
  color: #1e90ff;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 2px;
}

.hsalesnotification-notification-content small {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}

.hsalesnotification-custom-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  background: url('data:image/svg+xml;utf8,<svg fill="gray" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 8.586l4.95-4.95 1.414 1.414L11.414 10l4.95 4.95-1.414 1.414L10 11.414l-4.95 4.95-1.414-1.414L8.586 10 3.636 5.05l1.414-1.414L10 8.586z"/></svg>') no-repeat center;
  background-size: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hsalesnotification-notification:hover .hsalesnotification-custom-close {
  opacity: 1;
}

@media (max-width: 600px) {
  #hsales-container {
    left: 10px;
    bottom: 10px;
  }

  .hsalesnotification-notification {
    max-width: 90vw;
    padding: 10px;
  }

  .hsalesnotification-notification-image-wrapper img {
    width: 50px;
    height: 50px;
  }
}