/*
 * WTB (Where To Buy) Plugin – Stylesheet
 * Include this file OR set  WTBPlugin.init({ injectStyles: true })  in JS.
 */

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.cta-group {
  position: relative;
  display: inline-block;
}

.wtb-dropdown {
  position: relative;
  width: auto;
  min-width: 160px;
  max-width: 300px;
  margin: 0;
}

.wtb-dropdown .wtb-button {
  width: 100%;
  max-width: 300px;
  margin: 0;
  justify-content: center;
  text-align: center;
}

@media only screen and (max-width: 480px) {
  .wtb-dropdown {
    width: 100%;
  }
}

@media only screen and (min-width: 768px) {
  .wtb-dropdown {
    margin: 0;
  }
}

/* ── Dropdown panel ───────────────────────────────────────────────────────── */
.wtb-dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  max-width: 240px;
  width: 100%;
  box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.2);
  z-index: 19;
  bottom: 50px;
  left: 0;
  right: 0;
  margin: 0 auto !important;
  padding: 3px !important;
  border-radius: 4px;
}

.wtb-dropdown-content.wtb-open {
  display: block;
}

@media only screen and (max-width: 480px) {
  .wtb-dropdown-content {
    width: 80%;
    margin: auto !important;
  }
}

/* ── Caret arrow ──────────────────────────────────────────────────────────── */
.wtb-dropdown-content::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  bottom: -9px;
  left: 0;
  right: 0;
  margin: 0 auto;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff;
}

.wtb-dropdown-content::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  bottom: -11px;
  left: 0;
  right: 0;
  margin: 0 auto;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 11px solid #ddd;
}

/* ── Retailer links ───────────────────────────────────────────────────────── */
.wtb-dropdown-content a {
  color: #ff0000;
  padding: 5px !important;
  text-decoration: none;
  display: block !important;
  font-weight: 400;
  font-size: 0.875rem;
  border: 2px solid transparent;
}

.wtb-dropdown-content a:hover {
  background-color: #fff !important;
  color: #ff0000;
  border: 2px solid #ccc;
}

.wtb-dropdown-content a div {
  margin: 0 auto;
  width: auto;
  height: 40px;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
}
