/* Shared existing-button treatment is limited to the approved public pages. */
body.bli-experience-enabled #page-container #et-boc .et_pb_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: #173d30 !important;
  border: 2px solid #173d30 !important;
  color: #fff !important;
  border-radius: 8px !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  min-height: 48px;
  padding: 12px 22px !important;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  text-align: center;
  text-decoration: none !important;
  box-shadow: none !important;
}
body.bli-experience-enabled #page-container #et-boc .et_pb_button:visited {
  color: #fff !important;
}
body.bli-experience-enabled #page-container #et-boc .et_pb_button:is(:hover, :focus-visible, :active) {
  background: #102c23 !important;
  border-color: #102c23 !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 12px 22px !important;
  text-decoration: none !important;
}
/* Prevent Divi's hover icon from changing button width or inheriting pink text. */
body.bli-experience-enabled #page-container #et-boc .et_pb_button::after {
  display: none !important;
}
body.bli-experience-enabled #page-container #et-boc .et_pb_button:focus-visible {
  outline: 3px solid #9a6b20 !important;
  outline-offset: 4px;
}
body.bli-experience-enabled #page-container #et-boc .et_pb_button:disabled {
  background: #eaf2ec !important;
  border-color: #a5b7aa !important;
  color: #40564a !important;
  cursor: not-allowed;
  opacity: 1;
}
body.bli-experience-enabled #page-container #et-boc .bli-site .bli-button {
  background: #173d30 !important;
  border-color: #173d30 !important;
  color: #fff !important;
}
body.bli-experience-enabled #page-container #et-boc .bli-site .bli-button:visited {
  color: #fff !important;
}
body.bli-experience-enabled #page-container #et-boc .bli-site .bli-button:is(:hover, :focus-visible, :active) {
  background: #102c23 !important;
  border-color: #102c23 !important;
  color: #fff !important;
}
body.bli-experience-enabled #page-container #et-boc .bli-site .bli-button--secondary,
body.bli-experience-enabled #page-container #et-boc .bli-site .bli-button--secondary:visited {
  background: #fff !important;
  border-color: #173d30 !important;
  color: #173d30 !important;
}
body.bli-experience-enabled #page-container #et-boc .bli-site .bli-button--secondary:is(:hover, :focus-visible, :active) {
  background: #eaf2ec !important;
  border-color: #102c23 !important;
  color: #102c23 !important;
}
.bli-experience-enabled :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #9a501b;
  outline-offset: 4px;
}
.page-id-154 #bli-alcohol-planner {
  scroll-margin-top: 100px;
}
.page-id-154 #bli-alcohol-planner :is(button, select, input:not([type="checkbox"]):not([type="radio"])) {
  min-height: 44px;
}
.page-id-154 #bli-alcohol-planner :is(button, a, input, select):focus-visible {
  outline: 3px solid #9a501b;
  outline-offset: 3px;
}
/* Planner-owned selectors remain safe when Divi section ordering changes. */
@media (max-width: 767px) {
  .page-id-154 #bli-alcohol-planner .bli-ap__hero {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bli-experience-enabled .et_pb_button {
    transition: none !important;
  }
}

/* Supplements the existing planner stylesheet; all selectors stay inside the planner. */
#bli-alcohol-planner .bli-ap__drink {
  cursor: default;
  min-width: 0;
  text-align: left;
}
#bli-alcohol-planner .bli-ap__drink button.bli-ap__add-label {
  appearance: none;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #244d37;
  border-radius: 7px;
  background: #244d37;
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  white-space: normal;
}
#bli-alcohol-planner .bli-ap__drink button.bli-ap__add-label:hover {
  background: #183a29;
}
#bli-alcohol-planner .bli-ap__drink button.bli-ap__add-label:disabled {
  background: #e8e8e2;
  border-color: #a1a498;
  color: #414b42;
  cursor: not-allowed;
  opacity: 1;
}
#bli-alcohol-planner :is(button, a, select, input):focus-visible {
  outline: 3px solid #9a501b;
  outline-offset: 4px;
}
#bli-alcohol-planner .bli-ap__drink-bottom {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
#bli-alcohol-planner .bli-ap__recipe-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#bli-alcohol-planner .bli-ap__allocation-control {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-block: 16px;
}
#bli-alcohol-planner .bli-ap__allocation-control label {
  display: block;
  font-weight: 700;
}
#bli-alcohol-planner .bli-ap__allocation-control select {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #6d786d;
  border-radius: 7px;
  background: #fff;
  color: #24382b;
  font: inherit;
}
#bli-alcohol-planner .bli-ap__allocation-control p,
#bli-alcohol-planner #bli-ap-affiliate-disclosure {
  color: #465348;
  line-height: 1.55;
}
#bli-alcohol-planner .bli-ap__check-helper,
#bli-alcohol-planner .bli-ap__count {
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  #bli-alcohol-planner .bli-ap__item-head { flex-wrap: wrap; }
  #bli-alcohol-planner .bli-ap__check-left { min-width: 0; }
  #bli-alcohol-planner .bli-ap__pill { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  #bli-alcohol-planner * { animation: none !important; transition: none !important; }
}

/* Bring legacy homepage text modules into the same type system. Preserve their colors. */
body.home #page-container #et-boc .et_pb_text h2 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(30px, 3.2vw, 42px) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
body.home #page-container #et-boc .et_pb_text h5 {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.5 !important;
  letter-spacing: .08em !important;
  text-transform: none !important;
}
body.home #page-container #et-boc .et_pb_text p {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
  letter-spacing: normal !important;
}
