:root{
  --meb-red: #6D0202;
}

/* Overlay container */
.meb-agegate{
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
}

.meb-agegate.is-open{
  display: flex;
}

.meb-agegate__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(2px);
}

.meb-agegate__panel{
  position: relative;
  width: min(560px, 100%);
  border: 2px solid var(--meb-red);
  border-radius: 18px;
  background: #0b0b0b;
  color: #fff;
  padding: 26px 24px 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.6);
}

.meb-agegate__brand{
  letter-spacing: .18em;
  font-size: 11px;
  text-transform: uppercase;
  opacity: .85;
  text-align: center;
  margin-bottom: 10px;
}

.meb-agegate__title{
  margin: 0 0 10px;
  text-align: center;
  font-size: 18px !important;
  line-height: 1.2;
  color: #fff !important;
  font-weight: 800;
}

.meb-agegate__text{
  margin: 0 0 18px;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.86);
}

.meb-agegate__btn{
  appearance: none;
  border: 0;
  width: auto;
  max-width: 100%;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .08s ease, filter .18s ease, opacity .18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--meb-red);
  color: #fff;
}

.meb-agegate__btn:active{
  transform: translateY(1px);
}

.meb-agegate__btn--accept{
  background: var(--meb-red) !important;
  color: #fff !important;
}

.meb-agegate__btn--accept:hover{
  filter: brightness(1.05);
}

.meb-agegate__btn--decline{
  background: var(--meb-red) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.12);
}

.meb-agegate__btn--decline:hover{
  filter: brightness(1.05);
}



/* Actions row */
.meb-agegate__actions{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.meb-agegate__actions .meb-agegate__btn{
  margin: 0 !important;
}

.meb-agegate__btn--accept{
  flex: 1 1 320px;
}

.meb-agegate__btn--decline{
  flex: 0 0 auto;
  min-width: 84px;
  padding-left: 22px;
  padding-right: 22px;
}

@media (max-width: 480px){
  .meb-agegate__actions{
    gap: 8px;
  }
  .meb-agegate__btn--accept,
  .meb-agegate__btn--decline{
    flex: 1 1 100%;
    width: 100% !important;
  }
}

.meb-agegate__footer{
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.75);
}

.meb-agegate__link{
  color: rgba(255,255,255,.92);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.meb-agegate--lock{
  overflow: hidden !important;
}

/* === FORCE BUTTON SHAPE (override theme/button styles) === */
#meb-agegate .meb-agegate__actions > button.meb-agegate__btn{
  all: unset;
  box-sizing: border-box;
  font-family: inherit;
  cursor: pointer;
  user-select: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;

  border-radius: 0px !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;

  transition: opacity .15s ease;
}

#meb-agegate .meb-agegate__actions > button.meb-agegate__btn:hover{
  opacity: .92;
  filter: none !important;
}

#meb-agegate .meb-agegate__actions > button.meb-agegate__btn:active{
  opacity: .88;
  transform: none !important;
}

#meb-agegate .meb-agegate__actions > button.meb-agegate__btn:focus{
  outline: 2px solid rgba(255,255,255,.25);
  outline-offset: 2px;
}

#meb-agegate .meb-agegate__actions > button.meb-agegate__btn--accept{
  background: var(--meb-red) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.18) !important;
}

#meb-agegate .meb-agegate__actions > button.meb-agegate__btn--decline{
  background: #000 !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.22) !important;
}
