/**
 * The Events Calendar — theme overrides (subscribe dropdown, top bar).
 */

/* Today button — brand purple hover (TEC border button has no default hover). */
.tribe-events-c-top-bar__today-button {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tribe-events-c-top-bar__today-button:hover,
.tribe-events-c-top-bar__today-button:focus-visible {
  background-color: #6c3b5d !important;
  border-color: #6c3b5d !important;
  color: #fff !important;
}

/* Theme purple hover (replaces TEC default blue accent). */
.tribe-events-c-subscribe-dropdown__button:hover,
.tribe-events-c-subscribe-dropdown__button:focus-within {
  background-color: #6c3b5d !important;
  border-color: #6c3b5d !important;
  color: #fff !important;
}

.tribe-events-c-subscribe-dropdown__button:hover .tribe-events-c-subscribe-dropdown__button-text,
.tribe-events-c-subscribe-dropdown__button:focus-within .tribe-events-c-subscribe-dropdown__button-text {
  color: #fff !important;
  background-color: transparent !important;
}

.tribe-events-c-subscribe-dropdown__button:hover .tribe-common-c-svgicon,
.tribe-events-c-subscribe-dropdown__button:focus-within .tribe-common-c-svgicon {
  color: #fff !important;
  fill: #fff !important;
}

/* Mobile: full-width subscribe control (unchanged from prior layout). */
@media (max-width: 767px) {
  .tribe-events-c-subscribe-dropdown__container {
    width: 100%;
  }

  .tribe-events-c-subscribe-dropdown,
  .tribe-events-c-subscribe-dropdown__button {
    width: 100% !important;
    max-width: 100%;
  }
}

/*
 * Tablet / iPad: centered, natural button width — not stretched to full viewport.
 */
@media (min-width: 768px) and (max-width: 1279px) {
  .tribe-events-c-subscribe-dropdown__container {
    display: flex;
    justify-content: center !important;
    width: 100%;
  }

  .tribe-events-c-subscribe-dropdown {
    width: fit-content !important;
    max-width: 100%;
    float: none !important;
    margin-inline: auto !important;
  }

  .tribe-events-c-subscribe-dropdown__button {
    width: fit-content !important;
    max-width: 100%;
  }
}
