/**
 * MetaoFly Edge Consent Hardware-Accelerated Stylesheet
 * Shadow DOM compatible, zero CLS, responsive across mobile, tablet, and desktop.
 */
.mfcg-wrapper {
  position: fixed;
  z-index: 2147483640;
  font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Public Sans", "Segoe UI", sans-serif;
  box-sizing: border-box;
}
.mfcg-wrapper *, .mfcg-wrapper *::before, .mfcg-wrapper *::after {
  box-sizing: border-box;
}
.mfcg-layout-bottom-bar {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
}
.mfcg-layout-floating-card {
  left: 20px;
  bottom: 20px;
  max-width: 460px;
}
.mfcg-layout-center-modal, .mfcg-layout-cookie-wall {
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mfcg-layout-cookie-wall {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
}
.mfcg-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mfcg-logo {
  max-height: 28px;
  width: auto;
  display: block;
}
.mfcg-card {
  background: var(--mfcg-bg, #ffffff);
  color: var(--mfcg-text, #0f172a);
  border-radius: var(--mfcg-radius, 10px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.18);
  padding: 20px 24px;
  max-width: 1140px;
  margin: 0 auto;
}
.mfcg-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.mfcg-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.mfcg-region-tag {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
.mfcg-desc {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.9;
}
.mfcg-policy-link {
  color: var(--mfcg-primary, #1d4ed8);
  text-decoration: underline;
  font-weight: 500;
}
.mfcg-categories {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
  padding: 12px;
  background: rgba(100, 116, 139, 0.08);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}
.mfcg-cat-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.mfcg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.mfcg-btn {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: transform 0.12s ease, opacity 0.12s ease;
  white-space: nowrap;
}
.mfcg-btn:focus-visible {
  outline: 2px solid var(--mfcg-primary, #1d4ed8);
  outline-offset: 2px;
}
.mfcg-btn:active {
  transform: scale(0.98);
}
.mfcg-btn-primary {
  background: var(--mfcg-primary, #1d4ed8);
  color: #ffffff;
}
.mfcg-btn-secondary {
  background: rgba(100, 116, 139, 0.14);
  color: var(--mfcg-text, #0f172a);
}
.mfcg-btn-outline {
  background: transparent;
  border-color: rgba(100, 116, 139, 0.35);
  color: var(--mfcg-text, #0f172a);
}
.mfcg-embed-placeholder {
  background: rgba(15, 23, 42, 0.05);
  border: 1px dashed rgba(100, 116, 139, 0.4);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin: 12px 0;
}
.mfcg-embed-msg {
  margin: 0 0 12px;
  font-size: 14px;
}
.mfcg-cookie-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}
.mfcg-cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.mfcg-cookie-table th, .mfcg-cookie-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}
@media (max-width: 640px) {
  .mfcg-layout-floating-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  .mfcg-card {
    padding: 16px;
  }
}
