/**
 * AddToCalendar Icon Style
 * http://addtocalendar.com
 */

/* Base */

.addtocalendar var {
  display: none;
}

.addtocalendar {
  position: relative;
  display: inline-block;
  background: transparent !important;
}

.addtocalendar:hover .atcb-list {
  visibility: visible;
  opacity: 1;
}

.atcb-link:hover ~ ul,
.atcb-link:focus ~ ul,
.atcb-link:active ~ ul,
.atcb-list:hover {
  visibility: visible;
  opacity: 1;
}

.atcb-list {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px !important;
  z-index: 200;
  background: #ffffff !important;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  margin-top: -10px;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.atcb-list,
.atcb-item {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #ffffff !important;
}

.atcb-item {
  float: none;
  text-align: left;
}

.atcb-item-link {
  text-decoration: none;
  outline: none;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #333333;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.atcb-item.hover,
.atcb-item:hover {
  position: relative;
  z-index: 900;
  cursor: pointer;
  text-decoration: none;
  outline: none;
  background-color: #f5f5f5;
}

/* Orange */

.atcb-list {
  margin: 0;
  padding: 0;
  color: #333333 !important;
  line-height: 1.3em;
  vertical-align: middle;
  border-radius: 8px;
}

.atcb-link {
  position: relative;
  text-decoration: none;
  font-size: 1.2em;
  display: block;
  padding: 4px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
  text-align: center;
  -webkit-transition: all 0.1s ease;
  -moz-transition: all 0.1s ease;
  -ms-transition: all 0.1s ease;
  -o-transition: all 0.1s ease;
  transition: all 0.1s ease;
}

.atcb-link:active {
  -webkit-box-shadow: 0px 3px 0px rgba(8, 37, 88),
    0px 3px 6px rgba(0, 0, 0, 0.9);
  -moz-box-shadow: 0px 3px 0px rgba(8, 37, 88), 0px 3px 6px rgba(0, 0, 0, 0.9);
  box-shadow: 0px 3px 0px rgba(8, 37, 88), 0px 3px 6px rgba(0, 0, 0, 0.9);
  position: relative;
  /* top: 6px; */
}

.atcb-link::before {
  font-family: "Font Awesome 5 Pro";
  font-weight: 400;
  content: "\f133";
  width: 30px;
  height: 15px;
  z-index: 999;
  margin-right: 10px;
  color: #ffffff;
}

.atcb-link,
.atcb-link:active,
.atcb-link:focus {
  color: #000;
  text-decoration: none;
  outline: none;
  /* padding: 7px 25px; */
}

.atcb-link {
  display: block;
  outline: none !important;
  cursor: pointer;
  background: #dd303e;
  color: #ffffff;
  padding: 0.5em 1em !important;
  border-radius: 3px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1000;
  text-decoration: none;
}

.atcb-link:hover {
  color: #000 !important;
  background-color: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.atcb-link:hover::before {
  color: #000;
}

/* Botão fica branco quando o dropdown está visível */
.addtocalendar:hover .atcb-link {
  color: #000 !important;
  background-color: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.addtocalendar:hover .atcb-link::before {
  color: #000;
}

/* Overlay com blur no fundo quando dropdown está aberto */
.addtocalendar:hover::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px);
  z-index: 50;
  pointer-events: none;
}

.atcb-list {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.atcb-list,
.atcb-item {
  background: #ffffff;
  color: #333333;
}

.atcb-item,
.atcb-item-link {
  line-height: 1.3em;
  vertical-align: middle;
  zoom: 1;
}

.atcb-item-link,
.atcb-item-link:hover,
.atcb-item-link:active,
.atcb-item-link:focus {
  color: #333333;
  font-size: 14px;
  text-decoration: none;
  outline: none;
  padding: 12px 16px;
}

.atcb-item-link:hover,
.atcb-item-link:active,
.atcb-item-link:focus {
  color: #333333 !important;
  background: #f5f5f5;
}

.atcb-item.hover,
.atcb-item:hover {
  background: #f5f5f5;
}

/* Ícones dos serviços de calendário */
.atcb-item-link::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-right: 12px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Ícones específicos para cada serviço - usando Font Awesome */
.atcb-list .atcb-item:nth-child(1) .atcb-item-link::before {
  content: "\f179" !important; /* fa-apple */
  font-family: "Font Awesome 5 Brands" !important;
  font-weight: 400 !important;
  color: #000000 !important;
  background-image: none !important;
}

.atcb-list .atcb-item:nth-child(2) .atcb-item-link::before {
  content: "\f1a0" !important; /* fa-google */
  font-family: "Font Awesome 5 Brands" !important;
  font-weight: 400 !important;
  color: #4285f4 !important;
  background-image: none !important;
}

.atcb-list .atcb-item:nth-child(3) .atcb-item-link::before {
  content: "O" !important; /* Letra O do Outlook */
  font-family: "Arial", sans-serif !important;
  font-weight: bold !important;
  font-size: 14px !important;
  color: #ffffff !important;
  background-color: #0078d4 !important;
  border-radius: 3px !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-image: none !important;
}

.atcb-list .atcb-item:nth-child(4) .atcb-item-link::before {
  content: "O" !important; /* Letra O do Outlook */
  font-family: "Arial", sans-serif !important;
  font-weight: bold !important;
  font-size: 14px !important;
  color: #ffffff !important;
  background-color: #0078d4 !important;
  border-radius: 3px !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-image: none !important;
}

.atcb-list .atcb-item:nth-child(5) .atcb-item-link::before {
  content: "\f19e" !important; /* fa-yahoo */
  font-family: "Font Awesome 5 Brands" !important;
  font-weight: 400 !important;
  color: #6344b4 !important;
  background-image: none !important;
}

/* Estilos adicionais para garantir que os ícones apareçam */
.atcb-list .atcb-item-link {
  position: relative;
  padding-left: 35px !important;
}

.atcb-list .atcb-item-link::before {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

/* Forçar exibição dos ícones */
.atcb-item-link::before {
  content: "" !important;
  display: inline-block !important;
  width: 20px !important;
  height: 20px !important;
  margin-right: 12px !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}
