/* Evals cart + product page. Paired with evals-cart.js (every page) and evals-product.js (product pages).
   !important where Elementor's own stylesheets (loaded later) would otherwise win. */

/* The theme (Astra) styles every <button>; keep ours plain. */
.evc-trigger,
.evc-trigger:hover,
.evc-trigger:focus,
.evc-trigger:active,
.evc-close,
.evc-close:hover,
.evc-close:focus,
.evc-close:active,
.evc-remove,
.evc-remove:hover,
.evc-remove:focus,
.evc-remove:active {
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 4px !important;
}
.evc-trigger,
.evc-trigger:hover,
.evc-trigger:focus,
.evc-trigger:active {
  padding: 0 !important;
}
.evc-close,
.evc-close:hover,
.evc-close:focus {
  color: #2e1918 !important;
}
.evc-remove,
.evc-remove:hover,
.evc-remove:focus {
  color: #8a6f6a !important;
}
.evp-tab:hover,
.evp-tab:focus,
.evp-add:hover,
.evp-add:focus {
  box-shadow: none;
}

/* ---------- header cart icon + badge ---------- */
.evc-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
}
.evc-trigger:focus-visible {
  outline: 2px solid #ffeeda;
  outline-offset: 4px;
  border-radius: 4px;
}
.evc-badge {
  position: absolute;
  top: -9px;
  right: -11px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: #ffeeda;
  color: #2e1918;
  font: 600 11px/19px Poppins, sans-serif;
  text-align: center;
  box-shadow: 0 0 0 2px #36211e;
  transform-origin: 50% 50%;
}
.evc-badge.is-empty {
  display: none;
}
.evc-badge.is-bump {
  animation: evc-bump 0.45s ease;
}
@keyframes evc-bump {
  40% {
    transform: scale(1.45);
  }
}

/* ---------- cart panel ---------- */
.evc-panel {
  position: fixed;
  z-index: 10000;
  width: 340px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 140px);
  overflow: auto;
  background: #fffaf6;
  color: #2e1918;
  border: 1px solid rgba(54, 33, 30, 0.15);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(54, 33, 30, 0.25);
  font-family: Poppins, sans-serif;
}
.evc-panel[hidden] {
  display: none;
}
.evc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px dashed rgba(54, 33, 30, 0.35);
}
.evc-title {
  font: 400 22px/1.2 'Playfair Display SC', serif;
}
.evc-close {
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: #2e1918;
  cursor: pointer;
  padding: 0 4px;
}
.evc-list {
  list-style: none;
  margin: 0;
  padding: 6px 18px;
}
.evc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(54, 33, 30, 0.1);
}
.evc-thumb {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #f3f3f3;
  border-radius: 8px;
  flex: 0 0 auto;
}
.evc-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.evc-name {
  font-weight: 500;
  font-size: 14px;
  color: #2e1918;
  text-decoration: none;
}
.evc-meta {
  font-size: 12px;
  color: #6b5a57;
}
.evc-item.is-new {
  animation: evc-new 1.6s ease;
}
@keyframes evc-new {
  0%,
  40% {
    background: rgba(172, 144, 122, 0.22);
  }
  100% {
    background: transparent;
  }
}
.evc-qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
  border: 1px dashed rgba(54, 33, 30, 0.5);
  align-self: flex-start;
}
.evc-step,
.evc-step:hover,
.evc-step:focus,
.evc-step:active {
  width: 26px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: #2e1918 !important;
  font: 500 15px/24px Poppins, sans-serif !important;
  cursor: pointer;
}
.evc-step:focus-visible {
  outline: 2px solid #ac907a;
}
.evc-num {
  min-width: 22px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}
.evc-line {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.evc-item {
  flex-wrap: wrap;
}
.evc-remove {
  flex-basis: 100%;
  text-align: right;
  border: 0;
  background: none;
  color: #8a6f6a;
  font: 400 12px Poppins, sans-serif;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}
.evc-empty {
  margin: 0;
  padding: 18px;
  font-size: 14px;
  color: #6b5a57;
}
.evc-empty[hidden],
.evc-foot[hidden] {
  display: none;
}
.evc-foot {
  padding: 12px 18px 18px;
}
.evc-total {
  font-weight: 600;
  font-size: 16px;
  white-space: pre;
}
.evc-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: #8a6f6a;
}

/* ---------- toast ---------- */
.evc-toast {
  position: fixed;
  z-index: 10001;
  left: 50%;
  bottom: 28px;
  max-width: calc(100vw - 32px);
  padding: 14px 22px;
  border-radius: 10px;
  background: #2e1918;
  color: #ffeeda;
  font: 400 15px/1.4 Poppins, sans-serif;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.evc-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- product page ---------- */
.evp-select-box {
  position: relative !important;
}
.evp-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px; /* keeps iOS from zooming */
  border: 0;
  -webkit-appearance: none;
  appearance: none;
}
.evp-select-box.is-focus {
  outline: 2px solid #2e1918;
  outline-offset: 2px;
}
.evp-flash {
  animation: evp-flash 0.5s ease;
}
@keyframes evp-flash {
  0% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}
.evp-tab {
  font: inherit;
}
.evp-tab.is-active {
  background-color: #ffffff !important;
  border-color: #2e1918 !important;
}
.evp-tab.is-active * {
  color: #2e1918 !important;
}
.evp-tab:not(.is-active) {
  background-color: #2e1918 !important;
  border-color: #2e1918 !important;
}
.evp-tab:not(.is-active) * {
  color: #ffffff !important;
}
.evp-tab:focus-visible {
  outline: 2px solid #ac907a;
  outline-offset: 2px;
}
.evp-panel[hidden] {
  display: none !important;
}
.evp-add {
  border: 0;
  font: inherit;
  transition: transform 0.15s ease;
}
.evp-add:active {
  transform: scale(0.98);
}
.evp-add.is-added {
  animation: evp-added 0.5s ease;
}
@keyframes evp-added {
  50% {
    box-shadow: 0 0 0 6px rgba(172, 144, 122, 0.45);
  }
}

/* ---------- Journal: Read story ---------- */
.evj-card.is-open {
  background-color: transparent !important;
}
.evj-card.is-open > button {
  display: none !important;
}
.evj-card.is-open .evj-story {
  display: flex !important;
  animation: evj-in 0.45s ease;
}
.evj-story:focus {
  outline: none;
}
@keyframes evj-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.evj-card > button,
.evj-card > button:hover,
.evj-card > button:focus {
  background: transparent !important; /* the card's brown shows through, as designed */
  border-radius: 0 0 20px 20px !important;
}
.evj-card > button {
  border: 0;
  font: inherit;
  transition: opacity 0.2s ease;
}
.evj-card > button:hover,
.evj-card > button:focus {
  box-shadow: none;
  opacity: 0.88;
}
.evj-card > button:focus-visible {
  outline: 2px solid #ac907a;
  outline-offset: -4px;
}
.evj-close,
.evj-close:hover,
.evj-close:focus {
  align-self: flex-start;
  margin-top: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: #371b17 !important;
  font: 500 15px/1.4 Poppins, sans-serif !important;
  text-decoration: underline;
  cursor: pointer;
}
.evj-close:focus-visible {
  outline: 2px solid #ac907a;
  outline-offset: 2px;
}

/* ---------- Header search ---------- */
.evs-form {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.evs-box {
  cursor: text;
}
.evs-input,
.evs-input:focus {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  color: #ffeeda !important;
  font: 300 16px/1.2 Poppins, sans-serif !important;
}
.evs-input::placeholder {
  color: #ffeeda;
  opacity: 0.8;
}
.evs-input::-webkit-search-cancel-button {
  filter: invert(1) sepia(1) saturate(0.3);
  cursor: pointer;
}
.evs-box:focus-within {
  border-color: #ac907a !important;
}
.evs-go,
.evs-go:hover,
.evs-go:focus {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  cursor: pointer;
  line-height: 0;
}
.evs-go:focus-visible {
  outline: 2px solid #ffeeda;
  outline-offset: 3px;
  border-radius: 50%;
}
.evs-results {
  position: fixed;
  z-index: 10000;
  max-width: calc(100vw - 24px);
  background: #fffaf6;
  border: 1px solid rgba(54, 33, 30, 0.15);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(54, 33, 30, 0.25);
  overflow: hidden;
  font-family: Poppins, sans-serif;
}
.evs-results[hidden] {
  display: none;
}
.evs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #2e1918;
  text-decoration: none;
  border-bottom: 1px solid rgba(54, 33, 30, 0.08);
}
.evs-item:last-child {
  border-bottom: 0;
}
.evs-item.is-active,
.evs-item:focus {
  background: rgba(172, 144, 122, 0.18);
  outline: none;
}
.evs-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #f3f3f3;
  border-radius: 8px;
  flex: 0 0 auto;
}
.evs-title {
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 500;
}
.evs-price {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.evs-empty {
  padding: 14px 16px;
  font-size: 14px;
  color: #6b5a57;
}
.evs-empty a {
  color: #2e1918;
  font-weight: 500;
}
