/* =========================================================
   Faber-Organic — Care Tab + mini-card
   ========================================================= */

.fo-care-widget {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(8px);
  z-index: 9998;
  width: 340px;
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.fo-care-widget.fo-care-widget--ready {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.fo-care-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid #0f5f43;
  border-bottom: none;
  background: #0f5f43;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
  text-decoration: none;
  white-space: nowrap;
}

.fo-care-tab:hover,
.fo-care-tab:focus {
  background: #0b422e;
  border-color: #0b422e;
  color: #ffffff;
}

.fo-care-tab:focus-visible,
.fo-care-panel-close:focus-visible,
.fo-care-panel-button:focus-visible {
  outline: 2px solid rgba(15, 95, 67, 0.28);
  outline-offset: 2px;
}

.fo-care-panel {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 24px 24px 22px;
  background: #ffffff;
  border: 1px solid #e6e0d8;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.08);
  color: #1f1f1a;
  text-align: center;
}

.fo-care-panel[hidden] {
  display: none;
}

.fo-care-panel-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #1f1f1a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.fo-care-panel-close:hover,
.fo-care-panel-close:focus {
  color: #0f5f43;
}

.fo-care-panel h3 {
  margin: 0 24px 12px;
  color: #1f1f1a;
  font-size: 20px;
  line-height: 1.25;
}

.fo-care-panel p {
  margin: 0 0 18px;
  color: #1f1f1a;
  line-height: 1.55;
}

.fo-care-panel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 20px;
  border: 1px solid #1f1f1a;
  background: transparent;
  color: #1f1f1a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
}

.fo-care-panel-button:hover,
.fo-care-panel-button:focus {
  background: transparent;
  border-color: #1f1f1a;
  color: #1f1f1a;
  opacity: 0.82;
}

@media (max-width: 768px) {
  .fo-care-widget {
    width: 320px;
    max-width: calc(100vw - 24px);
  }

  .fo-care-tab {
    min-height: 38px;
    padding: 8px 15px;
    font-size: 13px;
  }

  .fo-care-panel {
    padding: 22px 18px 20px;
  }

  .fo-care-panel h3 {
    font-size: 18px;
  }

  .fo-care-panel p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fo-care-widget {
    transition: none;
  }
}
