/*
 * Header Register/Login — only elements with BOTH .mcqstestz-as-hdr-slot and .mcqstestz-as__header-buttons.
 * Avoids broad Elementor selectors (e.g. every .elementor-widget-container) so other widgets stay untouched.
 */

.mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons{
  --mcq-hdr-primary:#2563eb;
  --mcq-hdr-fs:12px;
  --mcq-hdr-ico:14px;
}

/* Elementor: only Shortcode / HTML widget roots (never bare .elementor-widget-container) */
.elementor-element.elementor-widget-shortcode .mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons,
.elementor-element.elementor-widget-shortcode .elementor-widget-container .mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons,
.elementor-element.elementor-widget-shortcode .elementor-shortcode .mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons,
.elementor-element.elementor-widget-html .mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons,
.elementor-element.elementor-widget-html .elementor-widget-container .mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons{
  width:auto!important;
  max-width:100%!important;
  display:inline-flex!important;
}

/* Astra Header Builder HTML areas */
.ast-builder-html-element .mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons,
.ast-header-html-inner .mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons,
.ast-header-html .mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons{
  width:auto!important;
  max-width:100%!important;
  display:inline-flex!important;
}

.mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons .mcqstestz-as__hbtns,
.mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons .mcqstestz-as__hbtn,
.mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons .mcqstestz-as__hlab,
.mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons .mcqstestz-as__hico,
.mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons .mcqstestz-as__hico svg{
  box-sizing:border-box;
}

.mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons{
  display:inline-flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
  align-self:center!important;
  width:auto!important;
  max-width:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  font-family:inherit;
  font-size:var(--mcq-hdr-fs)!important;
  line-height:1!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  vertical-align:middle!important;
}

.mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons .mcqstestz-as__hbtns{
  display:inline-flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  flex:0 0 auto!important;
  gap:8px!important;
  margin:0!important;
  padding:0!important;
  white-space:nowrap!important;
  min-height:0!important;
  line-height:1!important;
}

.mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons .mcqstestz-as__hbtn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  flex-shrink:0!important;
  width:auto!important;
  max-width:100%!important;
  margin:0!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  font-family:inherit!important;
  font-size:var(--mcq-hdr-fs)!important;
  font-weight:600!important;
  line-height:1!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  text-decoration:none!important;
  border:1px solid transparent!important;
  gap:6px!important;
  min-height:0!important;
  vertical-align:middle!important;
}

.mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons .mcqstestz-as__hlab{
  display:inline-block!important;
  font-size:inherit!important;
  font-weight:inherit!important;
  line-height:1!important;
  margin:0!important;
  padding:0!important;
}

.mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons .mcqstestz-as__hico{
  display:inline-flex!important;
  flex-shrink:0!important;
  margin:0!important;
  padding:0!important;
  width:var(--mcq-hdr-ico)!important;
  min-width:var(--mcq-hdr-ico)!important;
  max-width:var(--mcq-hdr-ico)!important;
  height:var(--mcq-hdr-ico)!important;
  min-height:var(--mcq-hdr-ico)!important;
  max-height:var(--mcq-hdr-ico)!important;
  line-height:0!important;
}

.mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons .mcqstestz-as__hico svg{
  display:block!important;
  flex-shrink:0!important;
  width:var(--mcq-hdr-ico)!important;
  min-width:var(--mcq-hdr-ico)!important;
  max-width:var(--mcq-hdr-ico)!important;
  height:var(--mcq-hdr-ico)!important;
  min-height:var(--mcq-hdr-ico)!important;
  max-height:var(--mcq-hdr-ico)!important;
  overflow:visible!important;
}

.mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons .mcqstestz-as__hbtn--primary{
  background:var(--mcq-hdr-primary)!important;
  color:#fff!important;
  border-color:rgba(37,99,235,.25)!important;
}

.mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons .mcqstestz-as__hbtn--ghost{
  background:rgba(37,99,235,.08)!important;
  color:var(--mcq-hdr-primary)!important;
  border-color:rgba(37,99,235,.4)!important;
}

.mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons .mcqstestz-as__hbtn--primary:hover{filter:brightness(.95)}
.mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons .mcqstestz-as__hbtn--ghost:hover{background:rgba(37,99,235,.14)!important;border-color:rgba(37,99,235,.55)!important}
.mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons .mcqstestz-as__hbtn:focus{outline:none;box-shadow:0 0 0 4px rgba(37,99,235,.22)}

@media (max-width:860px){
  .mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons .mcqstestz-as__hlab{display:none!important}
  .mcqstestz-as-hdr-slot.mcqstestz-as__header-buttons .mcqstestz-as__hbtn{padding:6px 8px!important}
}
