.ep-product-card{

max-width:1000px;
margin:30px auto;
padding:30px;
background:white;
border-radius:24px;
border:1px solid rgba(20,45,34,.15);

}


.ep-product-header h1{

margin:10px 0;

}


.ep-product-type{

font-size:12px;
font-weight:800;

}


.ep-product-grid{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:15px;
margin-top:25px;

}


.ep-product-box,
.ep-product-section{

padding:18px;
border:1px solid rgba(20,45,34,.12);
border-radius:16px;
margin-top:18px;

}



.ep-product-actions{

display:flex;
gap:10px;
flex-wrap:wrap;
margin-top:25px;

}



.ep-product-actions button{

padding:12px 18px;
border-radius:14px;
border:1px solid rgba(20,45,34,.15);
background:white;
font-weight:700;
cursor:pointer;

}


.epharo-product-entity-overlay{

position:fixed;
inset:0;
background:rgba(0,0,0,.35);
z-index:9999;
display:flex;
align-items:center;
justify-content:center;
padding:30px;

}


.epharo-product-entity-panel{

background:white;
width:min(1100px,95vw);
max-height:90vh;
overflow:auto;
border-radius:28px;
padding:30px;
position:relative;

}


.epharo-product-close{

position:absolute;
right:20px;
top:20px;

width:40px;
height:40px;

border-radius:50%;
border:1px solid rgba(20,45,34,.15);
background:white;

font-size:22px;
cursor:pointer;

}


/* =========================================================
   EPHARO PRODUCT ENTITY CARD – LIVE UX OVERRIDE
   2026-08-16
   ========================================================= */

html.epharo-entity-page-lock,
html.epharo-entity-page-lock body,
body.epharo-entity-page-lock {
  overflow: hidden !important;
}

.epharo-entity-live-layer {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
  box-sizing: border-box !important;
  font-family: inherit;
}

.epharo-entity-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 48, 31, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.epharo-entity-dialog {
  position: relative !important;
  z-index: 2 !important;
  width: min(1120px, calc(100vw - 36px)) !important;
  height: min(860px, calc(100vh - 36px)) !important;
  max-height: calc(100vh - 36px) !important;
  overflow: hidden !important;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fbfdfc 100%
    ) !important;
  border: 1px solid #dbe7e0 !important;
  border-radius: 26px !important;
  box-shadow:
    0 28px 80px rgba(5, 42, 26, 0.28) !important;
}

.epharo-entity-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border: 1px solid #d7e4dc;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: #0d4b2d;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(15,66,42,.08);
}

.epharo-entity-close:hover {
  background: #f0f8f3;
  border-color: #a7c7b3;
}

.epharo-entity-loading-stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at center,
      #f9fffb 0%,
      #eff9f3 58%,
      #edf6f1 100%
    );
}

.epharo-entity-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #10482e;
}

.epharo-entity-x-orbit {
  position: relative;
  width: 108px;
  height: 108px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.epharo-entity-loader-x {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow:
    0 8px 30px rgba(25, 103, 67, .16);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  color: #315eff;
  text-shadow:
    2px 0 #00a56b,
    -2px 0 #8246ff;
}

.epharo-entity-orbit {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid transparent;
}

.epharo-entity-orbit.orbit-a {
  border-top-color: #4f72ff;
  border-left-color: #4f72ff;
  animation: epharoEntityOrbit 1.5s linear infinite;
}

.epharo-entity-orbit.orbit-b {
  inset: 12px;
  border-right-color: #4bc690;
  border-bottom-color: #4bc690;
  animation: epharoEntityOrbitReverse 1.2s linear infinite;
}

.epharo-entity-loader-title {
  font-size: 22px;
  font-weight: 800;
  color: #07512f;
  margin-bottom: 6px;
}

.epharo-entity-loader-text {
  font-size: 15px;
  color: #557567;
}

.epharo-entity-loader-dots {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}

.epharo-entity-loader-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8abda1;
  animation: epharoEntityDot 1.15s infinite ease-in-out;
}

.epharo-entity-loader-dots span:nth-child(2) {
  animation-delay: .14s;
}

.epharo-entity-loader-dots span:nth-child(3) {
  animation-delay: .28s;
}

@keyframes epharoEntityOrbit {
  to { transform: rotate(360deg); }
}

@keyframes epharoEntityOrbitReverse {
  to { transform: rotate(-360deg); }
}

@keyframes epharoEntityDot {
  0%, 80%, 100% {
    opacity: .35;
    transform: scale(.8);
  }
  40% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.epharo-entity-card-host {
  width: 100%;
  height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
  padding-top: 6px;
  scrollbar-gutter: stable;
}

.epharo-entity-card-host > * {
  max-width: 100% !important;
}

.epharo-entity-card-host h1 {
  color: #0a4a2b !important;
  letter-spacing: -.02em;
}

.epharo-entity-card-host h2,
.epharo-entity-card-host h3 {
  color: #133c2a !important;
}

.epharo-entity-card-host button {
  min-height: 46px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  border: 1px solid #d3e0d8 !important;
  background: #fff !important;
  color: #0d4a2c !important;
  font: inherit !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition:
    border-color .16s ease,
    background .16s ease,
    transform .16s ease,
    box-shadow .16s ease !important;
}

.epharo-entity-card-host button:hover {
  border-color: #82b096 !important;
  background: #f5faf7 !important;
  transform: translateY(-1px);
}

.epharo-entity-action-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 8 !important;
  padding: 16px 0 4px !important;
  margin-top: 18px !important;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.96) 28%,
      rgba(255,255,255,1) 100%
    ) !important;
}

.epharo-entity-xenyra-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  background: #087c43 !important;
  border-color: #087c43 !important;
  color: #fff !important;
  box-shadow:
    0 5px 14px rgba(7,124,67,.14) !important;
}

.epharo-entity-xenyra-button:hover {
  background: #066b3a !important;
  border-color: #066b3a !important;
}

.epharo-entity-x-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fff;
  color: #315eff;
  font-size: 17px;
  font-weight: 900;
  text-shadow:
    1px 0 #00a56b,
    -1px 0 #8246ff;
}

.epharo-entity-info-button {
  width: 48px !important;
  min-width: 48px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  font-size: 18px !important;
}

.epharo-entity-card-host button.is-saved {
  border-color: #68a782 !important;
  background: #eef8f2 !important;
  color: #08633a !important;
}

.epharo-entity-info-panel {
  position: absolute;
  right: 28px;
  bottom: 82px;
  z-index: 30;
  width: min(390px, calc(100% - 56px));
  padding: 18px 20px;
  border: 1px solid #d7e6dd;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 18px 48px rgba(12,61,38,.18);
}

.epharo-entity-info-title {
  margin-bottom: 7px;
  color: #0c4d2d;
  font-weight: 800;
}

.epharo-entity-info-text {
  color: #536d60;
  font-size: 14px;
  line-height: 1.5;
}

.epharo-entity-error {
  width: min(480px, calc(100% - 40px));
  padding: 26px;
  border: 1px solid #e6d7d2;
  border-radius: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #173d2c;
}

.epharo-entity-error button {
  align-self: flex-start;
  margin-top: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #cdded4;
  border-radius: 13px;
  background: #fff;
  color: #0c4b2d;
  font-weight: 700;
  cursor: pointer;
}

.epharo-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 760px) {
  .epharo-entity-live-layer {
    padding: 8px !important;
  }

  .epharo-entity-dialog {
    width: calc(100vw - 16px) !important;
    height: calc(100vh - 16px) !important;
    max-height: calc(100vh - 16px) !important;
    border-radius: 20px !important;
  }

  .epharo-entity-close {
    top: 12px;
    right: 12px;
  }

  .epharo-entity-action-row {
    gap: 8px !important;
  }

  .epharo-entity-card-host button {
    flex: 1 1 auto;
  }
}


/* EPHARO ENTITY HIDDEN STATE FIX */
.epharo-entity-live-layer [hidden] {
  display: none !important;
}
