/* ERP Cookie Consent - compact modern card (v6) */
#erp-cookie-consent{
  position: fixed !important;
  left: 0; right: 0; bottom: 0;
  z-index: 99999 !important;
  padding: 10px max(12px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: none;
  box-sizing: border-box;
  font-family: inherit;
}

/* Prevent theme styles from creating "double card" */
#erp-cookie-consent.erp-cookie-consent{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Card */
#erp-cookie-consent .erp-cc-card{
  pointer-events: auto;
  margin: 0 auto;
  max-width: 920px;
  width: 100%;
  background: rgba(255,255,255,0.88) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 34px rgba(0,0,0,0.16) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 10px 12px;
  box-sizing: border-box;
}

/* Layout */
#erp-cookie-consent .erp-cc-row{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

#erp-cookie-consent .erp-cc-text,
#erp-cookie-consent .erp-cookie-consent__text{
  flex: 1 1 auto;
  color: #111 !important;
  font-size: 14px;
  line-height: 1.32;
  margin: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  text-align: left;
}

#erp-cookie-consent .erp-cc-text a,
#erp-cookie-consent .erp-cookie-consent__text a{
  color: #0b57d0 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#erp-cookie-consent .erp-cc-actions,
#erp-cookie-consent .erp-cookie-consent__actions{
  flex: 0 0 auto;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Button */
#erp-cookie-consent .erp-cc-btn,
#erp-cookie-consent .erp-cookie-consent__btn{
  appearance: none;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 9px 14px;
  min-height: 44px;
  min-width: 128px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #111 !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

#erp-cookie-consent .erp-cc-btn:hover,
#erp-cookie-consent .erp-cookie-consent__btn:hover{ filter: brightness(1.05); }
#erp-cookie-consent .erp-cc-btn:active,
#erp-cookie-consent .erp-cookie-consent__btn:active{ transform: translateY(1px); }
#erp-cookie-consent .erp-cc-btn:focus-visible,
#erp-cookie-consent .erp-cookie-consent__btn:focus-visible{
  outline: 2px solid rgba(11,87,208,0.7);
  outline-offset: 2px;
}

/* Mobile: stack + justify text */
@media (max-width: 520px){
  #erp-cookie-consent{ padding: 10px max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right)); }
  #erp-cookie-consent .erp-cc-row{ flex-direction: column; align-items: stretch; }
  #erp-cookie-consent .erp-cc-text,
  #erp-cookie-consent .erp-cookie-consent__text{ text-align: justify; }
  #erp-cookie-consent .erp-cc-btn,
  #erp-cookie-consent .erp-cookie-consent__btn{ width: 100%; min-width: 0; }
}
