:root {
  --gp-green: rgb(115, 190, 30);
  --gp-darkgreen: rgb(0, 92, 66);
  --gp-lightgreen: rgba(115, 190, 30, .2);
  --gp-cta: #f36b35;
  --gp-cta-h: #f36b35;
  --gp-grey: #f4f4f4;
  --gp-grey-border: #d1d1d1;
  --gp-grey-text: #969696;
  --gp-psp-mobilepay: #5A78FF;
  --gp-psp-vipps: #ff5b24;
  --gp-psp-swish: #205dff; 
  --gp-psp-bankid: #183e4f;
}

/* Bare minimum styling necessary for the 4.x theme */

    /* Quirky accessibility button misbehaves; removing for now */

    #type-b.arya #header .container#header_wrapinner #lang {
      position: absolute !important;
      background-color: transparent !important;
      margin-top: 0 !important;
      width: 140px !important;
      left: auto !important;
      right: 0 !important;
      justify-content: right !important;
    }

    #type-b.arya #header #lang a.header_link {
      border: 0 !important;
    }

/* Hide S2S fields */
p[name='reserved_clientid'],
p[name='reserved_sessionid'],
p[name='reserved_timestamp'] {
  display: none;
}

/* Make header white */
#type-b.arya #header {
  z-index: 101;
  background: #fff;
  margin: 0 0 2em !important;
  padding: 0 20px !important;
}

/* Keep header width consistent */
#type-b.arya.one-column-layout.form_left.logo-left #container #header .container#header_wrapinner #logo h1 {
    width: auto !important;
}

/* Resize logo */
#type-b.arya #header #logo img {
  transform: translateY(4.5px);
  height: 26px;
}

/* Keep space around logo consistent  */
#type-b.arya #header #logo a,
#type-b.arya #header #logo h1,
#type-b.arya #header #logo img {
  display: inline;
  line-height: 65px;
  text-align: left !important;
}

/* Tidy up header margins */
#type-b.arya #header .container#header_wrapinner #logo {
  margin: 0 !important;
}

#type-b.arya #last_donors_banner {
  position: absolute !important;
  background: transparent !important;
  color: var(--gp-darkgreen) !important;
  font-weight: bold !important;
  font-size: .9em !important;
  margin: 7px 0 0 !important;
  z-index: 999 !important;
}

@media only screen and (max-width: 1080px) {
  #type-b.arya #last_donors_banner {
    position: relative !important;
    background: var(--gp-darkgreen) !important;
    color: #fff !important;
    height: 30px !important;
    margin: 0 !important;
  }
}

/* Blocks */

/* Align headers left and tidy up */
#type-b.arya #greetings-comp h2,
#type-b.arya .step-title h2 {
  display: flex;
  justify-content: left;
  font-size: 1rem;
  font-weight: bold;
}

/* Resize free amount field text */
#type-b.arya #step-1 .free-amount p.ira-form-item label input:visited, #type-b.arya #step-1 .free-amount p.ira-form-item label input:focus, #type-b.arya #step-1 .free-amount p.ira-form-item label input:focus-visible, #type-b.arya #step-1 .free-amount p.ira-form-item label input:focus-within, #type-b.arya #step-1 .free-amount p.ira-form-item label input:not(:placeholder-shown) {
  font-size: 1rem !important;
  font-weight: bold;
}

/* Minor padding at bottom of step blocks */
#type-b.arya #step-1 .step-content .height_adaptor,
#type-b.arya #step-2 .step-content .height_adaptor,
#type-b.arya #step-3 .step-content .height_adaptor {
  padding-bottom: .5rem;
}

/* Reassurance: align headlines proper */
#type-b.arya .step-info.step-info-1 h4,
#type-b.arya .step-info.step-info-2 h4,
#type-b.arya .step-info.step-info-3 h4 {
  text-align: left;
  text-indent: 20px;
}

/* Reassurance: behave with footer */
#type-b.arya #footer {
  position: relative !important;
}

/* CONFIRM */
#type-b.arya.footer-detach #container #step-1 .step-content, #type-b.arya.footer-detach #container #step-2 .step-content, #type-b.arya.footer-detach #container #step-3 .step-content,
#type-b.arya #container #step-1 .step-content,
#type-b.arya #container #step-2 .step-content,
#type-b.arya #container #step-3 .step-content {
  border-bottom-left-radius: 2px !important;
  border-bottom-right-radius: 2px !important;
  padding-top: 20px !important;
}

/* Create breathing space around footer */
#type-b.arya #footer {
  padding: 30px 0 !important;
}

/* Tidy up bullet points */
#type-b.arya .step-info-body li {
  padding: 0 !important;
  margin-left: 10px !important;
}

.f_logos, .f_policy, .f_taxes {
  width: 100%;
  text-align: center;
  line-height: 1.em;
  font-size: 1.2em;
  margin: 0 0 20px !important;
}

.f_logos {
  display: flex;
  justify-content: center;
  padding-bottom: 15px !important;
  opacity: .8;
}

.f_logos img {
  max-width: 100px;
  max-height: 50px;
  margin: 0 10px !important;
}

.f_ir {
  text-align: center;
}

.regularblock {
  display: initial;
}

#type-b.arya #cookiesBanner {
  padding: 4px 10px !important;
  background: #fff !important;
  color: #000 !important;
  font-size: .9em !important;
}

#type-b.arya #cookiesBanner span.close {
  background-color: var(--gp-darkgreen) !important;
  color: #fff !important;
  margin: 0 0 0 10px !important;
} 

#type-b.arya.footer-detach #container {
  padding-bottom: 0;
}

#type-b.arya #container #step-3 .payment_titles .payment_head.payment_mode-bban-se::before {
  background-color: var(--gp-psp-bankid) !important;
  mask-image: url(https://lib.greenpeace.se/frp/img/alt_se-bi.svg) !important; -webkit-mask-image: url(https://lib.greenpeace.se/frp/img/alt_se-bi.svg) !important;
  -webkit-mask-size: 40px !important;
  mask-size: 40px !important;
  width: 40px !important;
}

/* Paygate Tweaks */

p[name=reserved_paygate] {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid var(--gp-grey-border) !important;
  height: 50px;
}

p[name=reserved_paygate]:hover {
  background: var(--main-action-color-transparent) !important;
}

p[name=reserved_paygate] label span a {
  text-decoration: none !important;
  font-weight: normal !important;
  padding: 10px 20px !important;
  display: block;
  text-align: center;
}
p[name=reserved_paygate] label span a strong {
  font-weight: bold !important;
  text-decoration: underline !important;
}

p[name=reserved_paygate] label span a strong::before {
  display: inline-block;
  content: "";
  height: 20px;
  width: 20px;
  margin: 0 3px 0 0;
  transform: translateY(4px);
  background-repeat: no-repeat;
  background-size: 20px;
  mask-image: url(https://lib.greenpeace.se/frp/img/alt_pg.svg);
  -webkit-mask-image: url(https://lib.greenpeace.se/frp/img/alt_pg.svg);
  mask-size: 100%;
  -webkit-mask-size: 100%;
  mask-position: center center;
  -webkit-mask-position: center center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

p[name=reserved_paygate] label span a.mp strong { color: var(--gp-psp-mobilepay) }
#type-b.arya p.ira-form-item a.vp.mp { color: var(--gp-psp-mobilepay) !important }
p[name=reserved_paygate] label span a.mp strong::before { background-color: var(--gp-psp-mobilepay) }

p[name=reserved_paygate] label span a.vp strong { color: var(--gp-psp-vipps) }
#type-b.arya p.ira-form-item a.vp.mp.vp { color: var(--gp-psp-vipps !important) }
p[name=reserved_paygate] label span a.vp strong::before { background-color: var(--gp-psp-vipps); mask-image: url(https://lib.greenpeace.se/frp/img/alt_pg-vp.svg); -webkit-mask-image: url(https://lib.greenpeace.se/frp/img/alt_pg-vp.svg); }

/* Reponsive Tweaks */

@media only screen and (min-width: 0px) and (max-width: 959px) {
  #type-b.arya #container #step-1,
  #type-b.arya #container #step-2,
  #type-b.arya #container #step-3 {
    margin-bottom: 30px !important;
  }
}

@media (min-width: 576px){
  #type-b.arya #header #header_wrapinner.container,
  #type-b.arya #container #form-error,
  #type-b.arya #container .container  { max-width: 540px }
}
@media only screen and (max-width: 568px) and (min-width: 0px) {
/*  #type-b.arya.mobile_no_widget #widget_progress_bar, #type-b.arya.mobile_no_widget #last_donors_banner, #type-b.arya.mobile_no_widget #main_wrapinner .widgets, #type-b.arya.mobile_no_widget #form-info, #type-b.arya.mobile_no_widget #video { display: inherit }*/
  #type-b.arya.one-column-layout.form_left #container #main_wrapinner #widgets, #type-b.arya.one-column-layout.form_right #container #main_wrapinner #widgets {
    width: 100% !important;
    margin: 20px auto 10px !important;
  }
}

@media (min-width: 768px){
  #type-b.arya #header #header_wrapinner.container,
  #type-b.arya #container #form-error,
  #type-b.arya #container .container  { max-width: 720px; margin: 0 auto }
}

@media only screen and (max-width: 959px) and (min-width: 0px) {
  #type-b.arya #bottom .step-info-1.mobile_show { margin-top: 25px }
  #type-b.arya #step-2 .step-title,
  #type-b.arya #step-3 .step-title,
  #type-b.arya #step-1.no_title .step-content {
    background-color: #eee !important;
    color: var(--gp-darkgreen) !important;
    font-weight: bold !important;
  }
}

@media only screen and (min-width: 960px) and (max-width: 1250px) {
  #type-b.arya #container .container, #type-b.arya #container #bottom .container {
    margin: 0 auto;
  }
}

@media (min-width: 992px) {
  #type-b.arya #header #header_wrapinner.container,
  #type-b.arya #container #form-error,
  #type-b.arya #container .container { max-width: 960px; margin: 0 auto }
    
  #type-b.arya #header #logo a,
  #type-b.arya #header #logo h1,
  #type-b.arya #header #logo img { line-height: 68px !important; }
}

@media (min-width: 1080px) {
    #type-b.arya #header .container#header_wrapinner #lang {
        margin-top: 1em !important;
    }
}
    
@media (min-width: 1200px) {
  #type-b.arya #header #header_wrapinner.container,
  #type-b.arya #container #form-error,
  #type-b.arya #container .container { max-width: 1140px; margin: 0 auto }
}