.contact-column-hidden {
  display: none !important;
}

.contact-columns-modal[hidden] {
  display: none !important;
}

.contact-columns-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-columns-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.contact-columns-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  color: #343a40;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}

.contact-columns-header,
.contact-columns-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #dee2e6;
}

.contact-columns-header h2 {
  margin: 0;
  font-size: 20px;
}

.contact-columns-close {
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.contact-columns-body {
  padding: 20px;
}

.contact-columns-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-column-toggle,
.contact-columns-done {
  border: 0;
  border-radius: 20px;
  padding: 9px 15px;
  background: #e94e00;
  color: #fff;
  cursor: pointer;
}

.contact-column-toggle.is-hidden {
  background: #6c757d;
  opacity: .75;
}

.contact-columns-footer {
  justify-content: flex-end;
  border-top: 1px solid #dee2e6;
  border-bottom: 0;
}

body.contact-columns-modal-open {
  overflow: hidden;
}


/* Poziomy przewijany kontener tabeli kontaktów w nowym motywie potomnym. */
#block-business-responsive-theme-child-content .views-element-container > .contextual-region {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important;
}
#block-business-responsive-theme-child-content .views-element-container > .contextual-region::-webkit-scrollbar {
  display: none !important;
  height: 0 !important;
}
#block-business-responsive-theme-child-content table {
  width: max-content !important;
  min-width: 100% !important;
  max-width: none !important;
  table-layout: auto;
}
#floating-table-scroll {
  scrollbar-width: auto !important;
  scrollbar-color: #999999 #eeeeee !important;
}
#floating-table-scroll::-webkit-scrollbar { display: block !important; height: 9px !important; }
#floating-table-scroll::-webkit-scrollbar-track { background: #eeeeee; }
#floating-table-scroll::-webkit-scrollbar-thumb { background: #999999; border-radius: 5px; border: 1px solid #eeeeee; }
#floating-table-scroll::-webkit-scrollbar-thumb:hover { background: #e94e00; }
@media print { #floating-table-scroll { display: none !important; } }
