body {
  min-height: 100vh;
  font-family: "Salesforce Sans", Arial, Helvetica, sans-serif;
  color: #181818;
  font-size: 16px;
  line-height: 21px;
  font-weight: 500;
}

.bg-container {
  background-image: url(https://image.mail.salesforce.com/lib/fea31c727564047c74/m/1/prefcenter-bg3.jpg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat, no-repeat;
}

.bg-arc {
  background-image: url(https://image.mail.salesforce.com/lib/fea31c727564047c74/m/1/prefcenter-bg-arc.png);
  background-size: 100%;
  background-position: center top;
  background-repeat: no-repeat, no-repeat;
}

header {
  display: -ms-flexbox;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
  flex-grow: 0;
  flex-wrap: wrap;
}

section#intro {
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  text-align: center;
  padding: 24px 10px 40px 10px;
  max-width: 750px;
  margin: 0 auto;
}

section#intro p {
  font-weight: 700;
}

section#intro p span {
  font-weight: 400;
}

section#manage {
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  max-width: 750px;
  padding: 40px 0px 0px 0px;
  margin: 0 auto;
  
}

section#manage h1 {
  padding: 0px 15px 0 15px;

}

section#manage p {
  text-align: left;
  padding: 24px 15px 24px 15px;
  background-color: #ffffff;
}

p {
  margin: 0;
}

hr.unsub {
  border-top: 2px solid #E5E5E5;
  margin-top: -24px;
  margin-bottom: 24px;
}

form {
  margin-top: 32px;
  margin-bottom: 70px;
}

/* FORM */

form {
  margin-top: 32px;
  margin-bottom: 70px;
}

form fieldset {
  margin-inline-start: 0;
  margin-inline-end: 0;
  padding-block-start: 0;
  padding-block-end: 0;
  padding-inline-start: 0;
  padding-inline-end: 0;
  border: none;
  min-inline-size: min-content;
  margin-bottom: 25px;
}

form fieldset ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  padding-top: 15px;
}

form fieldset li {
  list-style: none;
  display: inline;
  padding: 0;
  margin: 0;
  vertical-align: top;
  width: 50%;
  padding: 15px;
  display: -ms-flexbox;
  display: flex;
  align-items: stretch;
}

form .flex-padding {
  padding: 0 15px;
}

.p_label {
  font-size: 16px;
  line-height: 24px;
  color: #032d60;
  margin-bottom: 6px;
  cursor: pointer;
  padding-right: 10px;
}

form legend {
  font-family: "ITC Avant Garde", Arial, Helvetica, sans-serif;
  font-size: 24px;
  line-height: 36px;
  color: #032d60;
  margin: 0;
}

form fieldset ul li img {
  position: absolute;
  top: 30%;
  left: 14px;
  width: 64px;
  height: 64px;
}

div.checkbox_label {
  padding-left: 64px;
  width: 100%;
}

form fieldset label {
  display: inline-block;
  position: relative;
  padding: 24px 50px 24px 24px;
  border: 1px solid rgba(23, 23, 23, 0.04);
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 8px -2px rgba(23, 23, 23, 0.08), 0 8px 12px -2px rgba(23, 23, 23, 0.16);
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;
  min-height: 155px;
  align-content: center;
}

form fieldset label.checked {
  background-color: #eef4ff;
}

form fieldset label:focus-within {
  outline: 1px solid #1b96ff;
}

form fieldset label.checked.disabled {
  background-color: #fff;
}

form fieldset label::after {
  content: "";
  background-color: #fff;
  display: block;
  position: absolute;
  top: 40%;
  right: 20px;
  border: 1px solid #747474;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

form fieldset label.checked::after {
  content: "";
  background-image:url("https://www.salesforce.com/etc/clientlibs/sfdc-www/clientlibs_sfdc_forms/imgs/success-white.svg");
  background-color: #0176d3;
  color: #fff;
  border: 1px solid #0176d3;
  text-align: center;
}

form fieldset li label:hover::after {
  border: 1px solid #032d60;
}

form fieldset label.checked:hover::after {
  border: 1px solid #032d60;
}

form fieldset label.disabled:hover::after,
form fieldset label.checked.disabled:hover::after,
form fieldset label.checked.disabled::after,
form fieldset label.disabled::after {
  color: #c9c9c9;
  background-color: #f3f3f3;
  border-color: #c9c9c9;
}

form fieldset label.disabled::after {
  color: #c9c9c9;
  background-color: #f3f3f3;
  border-color: #c9c9c9;
}

#fieldset_unsub-all {
  padding-bottom:40px;
}

.toggle_wrapper {
  width: auto;
  margin-bottom: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-block;
  position: relative;
  margin-bottom: 54px;
}

.toggle_wrapper input {
  appearance: none;
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  cursor: pointer;
}

.toggle_wrapper label {
  font-size: 22px;
  line-height: 32px;
  display: inline-block;
}

form .toggle_wrapper label:focus-within {
  outline: 1px solid #1b96ff;
  border-radius: 5px;
}

.toggle_wrapper .p_label {
  margin-left: 28px;
}

.toggle_wrapper .p_label .unsub_description {
  display: inline-block;
  margin-top: 0;
  font-size: 14px;
  line-height: 18px;
}

.toggle_wrapper label::after {
  content: "";
  background-color: #fff;
  display: inline-block;
  position: absolute;
  top: 4px;
  left: 0;
  border: 1px solid #747474;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.toggle_wrapper label.checked:after {
  background-image:url("https://www.salesforce.com/etc/clientlibs/sfdc-www/clientlibs_sfdc_forms/imgs/success-white.svg");
  content: "";
  background-color: #0176d3;
  color: #fff;
  border: 1px solid #0176d3;
  display: inline-block;
}

.toggle_wrapper label.checked.disabled::after,
.toggle_wrapper label.disabled::after {
  color: #c9c9c9;
  background-color: #f3f3f3;
  border-color: #c9c9c9;
}

.toggle_wrapper span {
  margin-top: 8px;
}

form button {
  margin: 0 auto 0;
  margin-top: 20px;
  padding: 18px 32px;
  color: #fff;
  background-color: #0176d3;
  font-family: "Salesforce Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 16px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.1s linear;
  text-decoration: none;
  display: block;
}

@media screen and (max-width: 850px) {

  section#manage {
    padding-top: 40px;
  }

  form fieldset ul li {
    width: 100%;
    padding: 15px 0;
  }
}

@media screen and (max-width: 576px) {
  body,
  html {
    font-size: 14px;
    line-height: 18px;
  }

  .container {
    max-width: 540px;
  }

  section#preferences_page {
    background-size: 100% auto, 100% 205px;
    background-position: top 205px center, top center;
  }

  header .logo_wrap {
    width: 100%;
  }

  header .logo_wrap img {
    width: 70px;
    margin-right: 20px;
  }

  header .logo_wrap h4 {
    font-size: 15px;
    line-height: 20px;
    margin: 0;
  }

  header .lang_control {
    width: 100%;
  }

  header .lang_control label {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 10px;
    text-align: left;
  }

  header .lang_control select {
    width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    line-height: 21px;
  }

  section#intro {
    font-size: 18px;
    line-height: 24px;
    padding: 20px 15px;
  }

  section#manage {
    text-align: left;
    font-size: 14px;
    line-height: 18px;
  }

  section#manage h1 {
    font-size: 28px;
    line-height: 36px;
  }

  form {
    margin-top: 24px;
    margin-bottom: 40px;
  }

  form ul {
    margin-top: 15px;
  }

  form fieldset legend {
    font-size: 20px;
    line-height: 26px;
  }

  form fieldset ul li {
    padding: 15px 0;
  }

  form fieldset ul li label {
    padding-top: 15px;
    padding-bottom: 15px;
    min-height: auto;
  }

  form fieldset label::after {
    right: 15px;
  }

  form .flex-padding {
    padding: 0;
  }

  form fieldset ul li img {
    width: 48px;
    height: auto;
    top: 20%;
  }

  form fieldset ul li div.checkbox_label {
    padding-left: 50px;
  }

  form fieldset ul li div.checkbox_label .p_label {
    font-size: 18px;
    line-height: 23px;
    margin-bottom: 6px;
  }

  form .p_description {
    font-size: 14px;
    line-height: 18px;
  }

  .toggle_wrapper {
    margin-top: 16px;
  }

  .toggle_wrapper .p_label {
    font-size: 18px;
    line-height: 24px;
  }

  form button:disabled {
    cursor: not-allowed;
    background-color: #0176d3;
    border-color: #0176d3;
  }

  footer {
    background: #032d60;
    color: #fff;
    padding: 32px 0 40px;
    font-size: 12px;
    line-height: 22px;
    flex-grow: 0;
  }

  footer a {
    color: #fff;
    text-decoration: underline;
  }

  footer p {
    margin-bottom: 12px;
  }
}

@media screen and (max-width: 460px) {
  body#preferences_page {
    background-size: 100% auto, 100% 250px;
    background-position: top 250px center, top center;
  }
  section#intro p {
  word-break: break-all;
}
}

@media screen and (max-width: 400px) {

  form fieldset ul li img {
    display: none;
  }

  form fieldset ul li label {
    padding: 16px;
    padding-right: 34px;
    font-size: 14px;
  }

  form fieldset ul li div.checkbox_label {
    margin-left: 0;
    min-height: 90px;
    margin-right: 20px;
    width: 100%;
    padding-left: 0;
    padding-right: 8px;
  }
}

@media screen and (min-width: 1100px) {
  .bg-container {
    background-size: 100% auto, 100% 0;
    background-position: top -40px center, top center;
  }
}

@media screen and (min-width: 1600px) {
  .bg-container {
    background-size: 100% auto, 100% 0;
    background-position: top -40px center, top center;
  }
}

@media screen and (min-width: 1900px) {
  .bg-container {
    background-size: 100% auto, 100% 0;
    background-position: top -100px center, top center;
  }
}

@media screen and (min-width: 2300px) {
  .bg-container {
    background-size: 100% auto, 100% 0;
    background-position: top -170px center, top center;
  }
}