/* Custom CSS Home page table with sticky header and first column */
.table-responsive {
  height: 80vh;
  overflow: auto;
  position: relative;
}

.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table th, .table td {
  border: 1px solid #dee2e6; /* Bootstrap's default border color */
  text-align: center;
  vertical-align: middle;
}

.sticky-header {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 3;
}

.sticky-col, .table tbody tr td:first-child{
  position: -webkit-sticky; /* for Safari */
  position: sticky;
  left: 0;
  z-index: 2;
}

.top-left-cell {
  z-index: 4; /* Highest, to stay above horizontal and vertical scrolls */
}


/* Custom CSS to Set height for Modal on page */
.custom-modal-max-height {
  max-height: 90vh; /* 80% of the viewport height */
  overflow-y: auto; /* Enables scrolling within the modal */
}

/* Set height for lists inside Modal */
.modal-synced-items-list {
  max-height: 30vh;
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;
}

/* Set the height for lists of builder retailer pages  */
.set-item-list-height{
    max-height: 50vh;
    overflow-y:auto;
    -webkit-overflow-scrolling: touch;
}

.custom-card-body {
  display: flex;
  flex-direction: column;
}
.custom-card-margin, .edit-syncing-button {
  margin-bottom: 1rem;
}

.edit-syncing-button {
  width: 100%; /* Fixed width for the button */
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap; /* Prevent text from wrapping */
}

.productbarn-bridge-alert {
  background: #fff7df;
  border-bottom: 1px solid #ecd592;
  color: #332600;
  box-shadow: 0 2px 8px rgba(36, 28, 0, 0.08);
}

.productbarn-bridge-alert__body {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  margin: 0 auto;
  max-width: 1140px;
  min-height: 2.35rem;
  padding: 0.25rem 1rem;
}

.productbarn-bridge-alert__icon {
  align-items: center;
  background: #f1c44e;
  border-radius: 50%;
  color: #2c2100;
  display: inline-flex;
  flex: 0 0 auto;
  height: 1.55rem;
  justify-content: center;
  width: 1.55rem;
}

.productbarn-bridge-alert__message {
  align-items: baseline;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.35rem;
  line-height: 1.35;
  min-width: 0;
}

.productbarn-bridge-alert__message strong {
  font-size: 0.95rem;
}

.productbarn-bridge-alert__details-toggle {
  flex: 0 0 auto;
  line-height: 1.1;
  padding: 0.2rem 0.5rem;
}

.productbarn-bridge-alert__details {
  color: #5b4709;
  font-size: 0.9rem;
  margin: 0 auto;
  max-width: 1140px;
  padding: 0.15rem 1rem 0.65rem 3.1rem;
}

.productbarn-bridge-alert__details code {
  color: #4a3500;
  white-space: normal;
}

@media (max-width: 575.98px) {
  .productbarn-bridge-alert__body {
    align-items: flex-start;
  }

  .productbarn-bridge-alert__details-toggle {
    margin-left: auto;
  }

  .productbarn-bridge-alert__details {
    padding-left: 1rem;
  }
}
