/* Contact icons inherit the text color and sit inside the existing links. */
.cbt-theme {
  --cbt-contact-email: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22m3%207%209%206%209-6%22%2F%3E%3C%2Fsvg%3E");
  --cbt-contact-phone: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%203H5a2%202%200%200%200-2%202%2016%2016%200%200%200%2016%2016%202%202%200%200%200%202-2v-3l-4-1-2%202a12%2012%200%200%201-8-8l2-2-1-4Z%22%2F%3E%3C%2Fsvg%3E");
  --cbt-contact-whatsapp: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22-85%20-85%201194%201194%22%20fill%3D%22black%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M511.872427%200h0.256C794.45376%200%201024.000427%20229.674667%201024.000427%20512s-229.589333%20512-511.872%20512c-104.106667%200-200.704-31.018667-281.6-84.565333L33.707093%201002.325333l63.786667-190.250666A508.245333%20508.245333%200%200%201%200.000427%20512C0.000427%20229.674667%20229.58976%200%20511.872427%200zM365.39776%20281.429333c-9.770667-23.338667-17.194667-24.234667-32-24.832A285.525333%20285.525333%200%200%200%20316.50176%20256c-19.285333%200-39.424%205.632-51.626667%2018.048C250.155093%20289.109333%20213.33376%20324.266667%20213.33376%20396.501333c0%2072.149333%2052.778667%20141.952%2059.861333%20151.722667%207.424%209.728%20102.912%20160%20251.093334%20221.226667%20115.925333%2047.914667%20150.314667%2043.477333%20176.725333%2037.845333%2038.528-8.277333%2086.826667-36.693333%2098.986667-70.954667%2012.16-34.346667%2012.16-63.616%208.618666-69.845333-3.584-6.186667-13.354667-9.728-28.16-17.152-14.848-7.381333-86.869333-42.88-100.522666-47.616-13.354667-4.992-26.069333-3.242667-36.138667%2010.965333-14.250667%2019.797333-28.16%2039.936-39.466667%2052.053334-8.874667%209.472-23.424%2010.666667-35.541333%205.632-16.298667-6.826667-61.952-22.784-118.314667-72.789334-43.562667-38.741333-73.216-86.954667-81.792-101.418666-8.618667-14.805333-0.896-23.381333%205.930667-31.36%207.381333-9.173333%2014.506667-15.658667%2021.930667-24.234667%207.424-8.576%2011.52-13.013333%2016.298666-23.082667%205.034667-9.770667%201.493333-19.84-2.090666-27.221333-3.541333-7.381333-33.194667-79.573333-45.354667-108.8z%22%2F%3E%3C%2Fsvg%3E");
  --cbt-contact-company: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%223.5%22%20width%3D%2214%22%20height%3D%2217%22%20rx%3D%221.5%22%2F%3E%3Cpath%20d%3D%22M9%208h.01M15%208h.01M9%2012h.01M15%2012h.01M10%2020.5v-4h4v4%22%2F%3E%3C%2Fsvg%3E");
  --cbt-contact-address: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M19%2010c0%205-7%2010.5-7%2010.5S5%2015%205%2010a7%207%200%201%201%2014%200Z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%222.2%22%2F%3E%3C%2Fsvg%3E");
}

.cbt-theme a[href^="mailto:"] { --cbt-contact-icon: var(--cbt-contact-email); }
.cbt-theme a[href^="tel:"] { --cbt-contact-icon: var(--cbt-contact-phone); }
.cbt-theme a[href^="https://wa.me/"] { --cbt-contact-icon: var(--cbt-contact-whatsapp); }
.cbt-theme #main-content .cbt-guide .cbt-contact-info > .cbt-cell:nth-child(4):nth-last-child(2) > dd { --cbt-contact-icon: var(--cbt-contact-company); }
.cbt-theme #main-content .cbt-guide .cbt-contact-info > .cbt-cell:nth-child(5):last-child > dd { --cbt-contact-icon: var(--cbt-contact-address); }

.cbt-theme :is(.cbt-footer, #main-content .cbt-guide .cbt-matrix dd, #main-content .rf-contact-links, #main-content .cbt-contact-actions) a:is([href^="mailto:"], [href^="tel:"], [href^="https://wa.me/"]),
.cbt-theme :is(#main-content .cbt-guide .cbt-contact-info > .cbt-cell:nth-child(4):nth-last-child(2) > dd, #main-content .cbt-guide .cbt-contact-info > .cbt-cell:nth-child(5):last-child > dd):not(:has(a)) {
  display: inline-flex;
  align-items: flex-start;
  column-gap: .5rem;
  max-inline-size: 100%;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.cbt-theme :is(.cbt-footer, #main-content .cbt-guide .cbt-matrix dd, #main-content .rf-contact-links, #main-content .cbt-contact-actions) a:is([href^="mailto:"], [href^="tel:"], [href^="https://wa.me/"])::before,
.cbt-theme :is(#main-content .cbt-guide .cbt-contact-info > .cbt-cell:nth-child(4):nth-last-child(2) > dd, #main-content .cbt-guide .cbt-contact-info > .cbt-cell:nth-child(5):last-child > dd):not(:has(a))::before {
  content: "";
  display: block;
  position: static;
  flex: 0 0 1rem;
  inline-size: 1rem;
  block-size: 1rem;
  margin: max(0px, calc((1lh - 1rem) / 2)) 0 0;
  transform: none;
  background: currentColor;
  mask: var(--cbt-contact-icon) center / contain no-repeat;
}

.cbt-theme :is(#main-content .cbt-guide .cbt-matrix dd, #main-content .rf-contact-links, #main-content .cbt-contact-actions) a:is([href^="mailto:"], [href^="tel:"], [href^="https://wa.me/"]) { align-items: center; }
.cbt-theme :is(#main-content .cbt-guide .cbt-matrix dd, #main-content .rf-contact-links, #main-content .cbt-contact-actions) a:is([href^="mailto:"], [href^="tel:"], [href^="https://wa.me/"])::before { margin-block-start: 0; }

@media (min-width: 43.01rem) and (max-width: 50rem) {
  .cbt-theme #main-content .cbt-guide .cbt-contact-info > .cbt-cell {
    grid-template-columns: minmax(6rem, .6fr) minmax(0, 1.4fr);
    column-gap: .75rem;
  }
}

@media (max-width: 43rem) {
  .cbt-theme .cbt-footer li:has(> a:is([href^="mailto:"], [href^="tel:"], [href^="https://wa.me/"])) {
    flex-basis: 100%;
  }
}
