/*
 * Mycotrop company identity and footer presentation.
 * Kept separate from custom.css so this production change can be deployed
 * and rolled back independently from unrelated theme customisations.
 */

#footer-copyrights {
  padding: 0;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.mycotrop-footer-legal {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 1fr) minmax(190px, .7fr);
  gap: 28px;
  align-items: start;
  padding: 24px 0;
}

.mycotrop-footer-legal__company,
.mycotrop-footer-legal__notice,
.mycotrop-footer-legal__payments {
  min-width: 0;
}

.mycotrop-footer-legal__notice,
.mycotrop-footer-legal__payments {
  padding-left: 24px;
  border-left: 1px solid #e5e7eb;
}

.mycotrop-footer-legal__label,
.mycotrop-operator-details__eyebrow {
  margin: 0 0 8px;
  color: #111827;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.mycotrop-operator-details__statement {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.5;
}

.mycotrop-operator-details__address {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  margin: 0 0 8px;
  color: #4b5563;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.mycotrop-operator-details__address span:not(:last-child)::after {
  content: "·";
  margin-left: 12px;
  color: #9ca3af;
}

.mycotrop-operator-details__registry {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 20px;
  margin: 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.4;
}

.mycotrop-operator-details__registry div {
  display: flex;
  gap: 5px;
}

.mycotrop-operator-details__registry dt {
  font-weight: 700;
}

.mycotrop-operator-details__registry dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.mycotrop-footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin-top: 12px;
}

.mycotrop-footer-legal__links a {
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: #d1d5db;
  text-underline-offset: 3px;
}

.mycotrop-footer-legal__links a:hover,
.mycotrop-footer-legal__links a:focus {
  color: #111827;
  text-decoration-color: currentColor;
}

.mycotrop-footer-legal__notice .copyright-txt,
.mycotrop-footer-legal__notice .copyright-txt > *,
.mycotrop-footer-legal__notice .copyright-txt .h-px,
.mycotrop-footer-legal__notice .copyright-txt .w-px {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

.mycotrop-footer-legal__notice .copyright-txt {
  color: #4b5563;
  font-size: 12px;
  line-height: 1.55;
}

.mycotrop-footer-legal__notice .copyright-txt > * {
  margin: 0;
}

.mycotrop-footer-legal__payments {
  text-align: left;
}

.mycotrop-footer-legal__payments img {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 36px;
  margin: 2px 0 0;
  object-fit: contain;
  object-position: left center;
}

.mycotrop-company-card {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #f2a900;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .05);
}

.mycotrop-company-card--legal {
  margin-top: 32px;
}

.mycotrop-company-card .mycotrop-operator-details {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(180px, .9fr) minmax(190px, .8fr);
  gap: 18px 28px;
  align-items: start;
}

.mycotrop-company-card .mycotrop-operator-details__statement,
.mycotrop-company-card .mycotrop-operator-details__address {
  margin-bottom: 0;
}

.mycotrop-company-card .mycotrop-operator-details__address,
.mycotrop-company-card .mycotrop-operator-details__registry {
  padding-top: 23px;
}

@media (max-width: 991px) {
  .mycotrop-footer-legal {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr);
  }

  .mycotrop-footer-legal__payments {
    grid-column: 1 / -1;
    padding: 18px 0 0;
    border-top: 1px solid #e5e7eb;
    border-left: 0;
  }

  .mycotrop-company-card .mycotrop-operator-details {
    grid-template-columns: 1fr 1fr;
  }

  .mycotrop-company-card .mycotrop-operator-details__registry {
    grid-column: 1 / -1;
    padding-top: 0;
  }
}

@media (max-width: 575px) {
  .mycotrop-footer-legal {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 0;
  }

  .mycotrop-footer-legal__notice,
  .mycotrop-footer-legal__payments {
    grid-column: auto;
    padding: 18px 0 0;
    border-top: 1px solid #e5e7eb;
    border-left: 0;
  }

  .mycotrop-footer-legal__payments {
    text-align: left !important;
  }

  .mycotrop-footer-legal__payments img {
    margin-right: 0;
    margin-left: 0;
  }

  .mycotrop-company-card {
    padding: 20px;
  }

  .mycotrop-company-card .mycotrop-operator-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mycotrop-company-card .mycotrop-operator-details__address,
  .mycotrop-company-card .mycotrop-operator-details__registry {
    grid-column: auto;
    padding-top: 0;
  }

  .mycotrop-operator-details__address {
    display: grid;
    gap: 2px;
  }

  .mycotrop-operator-details__address span::after {
    content: none !important;
  }
}
