/* Add to Calendar for Elementor
 * Selectors are prefixed with .atc-wrap on purpose: it raises specificity just enough to beat
 * Elementor Kit / theme "button" styles, while Elementor's {{WRAPPER}} style controls
 * (which are more specific still) can always override everything below.
 */

.atc-wrap {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: var(--atc-width, auto); /* set by the Position control: 100% when "Stretch" */
  max-width: 100%;
  font-family: inherit;
  z-index: 20;
  text-align: left;
}

/* ---------- Trigger button ---------- */
.atc-wrap .atc-trigger,
.atc-wrap .atc-trigger:focus {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: var(--atc-width, auto);
  max-width: 100%;
  margin: 0;
  padding: 13px 20px;
  background: #202020;
  color: #fff;
  border: 1px solid #202020;
  border-radius: 6px;
  box-shadow: none;
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.atc-wrap .atc-trigger:hover,
.atc-wrap .atc-trigger:focus-visible {
  background: #404040;
  color: #fff;
  border-color: #404040;
}
.atc-wrap .atc-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.atc-calendar-icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.atc-chevron { font-size: 13px; }

/* ---------- Dropdown menu ---------- */
.atc-wrap .atc-menu {
  box-sizing: border-box;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 230px;
  max-width: min(320px, calc(100vw - 32px));
  padding: 5px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  z-index: 99999;
  text-align: left;
}
/* NB: the default drop shadow is set by the "Box Shadow" control in the Dropdown style section. */
.atc-wrap .atc-menu[hidden] { display: none !important; }

/* ---------- Dropdown options ---------- */
.atc-wrap .atc-option,
.atc-wrap .atc-option:focus {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px;
  color: #222;
  background: transparent;
  border: 0;
  border-radius: 5px;
  box-shadow: none;
  text-decoration: none !important;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
.atc-wrap .atc-option:hover,
.atc-wrap .atc-option:focus-visible {
  background: #f2f2f2;
  color: #222;
  text-decoration: none !important;
}
.atc-wrap .atc-option:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }

.atc-provider { display: inline-flex; flex: 0 0 25px; width: 25px; height: 25px; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.atc-google  { color: #4285f4; }
.atc-outlook { color: #0078d4; }
.atc-apple   { color: #333; font-size: 15px; }

@media (max-width: 480px) {
  .atc-wrap .atc-menu { min-width: 220px; }
}
