/* HOME-04: redes sociais da Home e newsletter global. */

.mundial-social {
  display: grid;
  grid-template-columns: 45px max-content;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 16px;
  align-items: start;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px;
  background: var(--color-white);
  color: var(--color-gray-202020);
  font-family: "Lato", sans-serif;
  text-align: center;
}

.mundial-social__heading {
  display: contents;
}

.mundial-social__symbol {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 39px;
}

.mundial-social__symbol img {
  display: block;
  width: 45px;
  height: 39px;
}

.mundial-social__copy {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mundial-social__copy h2,
.mundial-social__copy p {
  margin: 0;
}

.mundial-social__copy h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
}

.mundial-social__copy p {
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
}

.mundial-social__links {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 20px;
  list-style: none;
}

.mundial-social__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  line-height: 0;
  text-decoration: none;
}

.mundial-social__links a:focus-visible {
  outline: 3px solid var(--color-blue-petroleum);
  outline-offset: 3px;
}

.mundial-social__links img {
  display: block;
  width: 40px;
  height: 40px;
  max-width: none;
}

.mundial-newsletter {
  display: flex;
  align-items: center;
  width: 100%;
  height: 71px;
  min-height: 71px;
  padding: 0;
  background: var(--color-green-primary);
  color: var(--color-white);
  font-family: "Lato", sans-serif;
}

.mundial-newsletter__container {
  display: grid;
  grid-template-columns: 94px minmax(220px, 1fr) minmax(420px, 500px);
  align-items: center;
  width: min(calc(100% - 40px), 1110px);
  height: 100%;
  margin: 0 auto;
  padding: 0;
  gap: 16px;
}

.mundial-newsletter__visual {
  align-self: end;
  height: 71px;
  overflow: hidden;
}

.mundial-newsletter .mundial-newsletter__visual img {
  display: block;
  width: 94px;
  height: auto;
  margin: 0;
}

.mundial-newsletter__title {
  margin: 0;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.mundial-newsletter #newsletter-validate-detail {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 125px;
  align-items: start;
  width: 100%;
  padding: 0;
  gap: 10px;
  min-height: 0;
  height: 42px;
}

.mundial-newsletter__field,
.mundial-newsletter__actions {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  text-align: initial;
  height: 42px;
}

.mundial-newsletter__field {
  display: block;
  min-height: 0;
}

.mundial-newsletter .mundial-newsletter__field .control {
  width: 100%;
  height: 42px;
}

.mundial-newsletter .mundial-newsletter__field .control::before {
  display: none;
}

.mundial-newsletter__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mundial-newsletter input#newsletter,
.mundial-newsletter .action.subscribe {
  width: 100%;
  height: 42px;
  margin: 0;
  border: 1px solid var(--color-white);
  border-radius: 0;
  box-shadow: none;
  font-family: inherit;
}

.mundial-newsletter input#newsletter {
  padding: 0 24px;
  background: var(--color-white);
  color: var(--color-black-primary);
  font-size: 16px;
  font-weight: 400;
}

.mundial-newsletter input#newsletter::placeholder {
  color: var(--color-gray-dark);
  opacity: 1;
}

.mundial-newsletter .action.subscribe {
  padding: 0 16px;
  background: var(--color-white);
  color: var(--color-black-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mundial-newsletter .action.subscribe:hover {
  background: var(--color-gray-light);
  color: var(--color-black-primary);
  opacity: 1;
}

.mundial-newsletter input#newsletter:focus {
  border-color: var(--color-white);
  outline: 0;
  outline-offset: 0;
  box-shadow: none;
}

.mundial-newsletter .action.subscribe:focus-visible {
  outline: 3px solid var(--color-blue-petroleum);
  outline-offset: 2px;
}

.mundial-newsletter #newsletter-error {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 2;
  margin: 0;
  padding: 3px 6px;
  background: var(--color-white);
  font-size: 12px;
  line-height: 1.3;
}

.checkout-cart-index .mundial-newsletter {
  display: none;
}

@media (max-width: 768px) {
  .mundial-social {
    grid-template-columns: 45px minmax(0, 1fr);
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
  }

  .mundial-social__symbol {
    width: 45px;
    height: 39px;
  }

  .mundial-social__symbol img {
    width: 45px;
    height: 39px;
  }

  .mundial-social__copy h2 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
  }

  .mundial-social__copy p {
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
  }

  .mundial-social__links {
    margin: 0;
    padding: 0;
  }

  .mundial-newsletter {
    height: auto;
    min-height: 112px;
    padding: 12px 0;
  }

  .mundial-newsletter__container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    width: min(calc(100% - 40px), 388px);
    height: auto;
    gap: 10px;
  }

  .mundial-newsletter__visual {
    display: none;
  }

  .mundial-newsletter__title {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.4;
    text-align: center;
  }

  .mundial-newsletter #newsletter-validate-detail {
    grid-template-columns: minmax(0, 1fr) 105px;
    gap: 8px;
  }

  .mundial-newsletter input#newsletter {
    padding: 0 12px;
    font-size: 12px;
  }

  .mundial-newsletter .action.subscribe {
    padding: 0 10px;
    font-size: 14px;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .mundial-newsletter__container {
    grid-template-columns: minmax(200px, 1fr) minmax(360px, 420px);
  }

  .mundial-newsletter__visual {
    display: none;
  }

  .mundial-newsletter__title {
    font-size: 14px;
    font-weight: 700;
  }

  .mundial-newsletter #newsletter-validate-detail {
    grid-template-columns: minmax(0, 1fr) 110px;
  }
}

@media (max-width: 359px) {
  .mundial-newsletter__container {
    width: calc(100% - 24px);
  }

  .mundial-newsletter #newsletter-validate-detail {
    grid-template-columns: minmax(0, 1fr) 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mundial-newsletter .action.subscribe {
    transition: none;
  }
}
