/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* Disabling Double-Tap Zoom iOS */
button,
a {
    touch-action: manipulation;
}

/* Hide options for selected element on canvas */
#bricks-preview-element-actions {
display: none !important;
}

textarea {
	resize: vertical; /* user can resize vertically, but width is fixed */
}

html {
	overflow-x: hidden;
}

/*
 * Custom tooltip
 */
.sto-tooltip {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.sto-tooltip__img {
  display: block;
  margin: 0;
}

.sto-tooltip__content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20%);
  background-color: #333;
  color: #fff;
  padding: 5px 15px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sto-tooltip__content::after {
  content: '';
  position: absolute;
  top: 95%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}
.sto-tooltip:hover .sto-tooltip__content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-30%);
}

@media (hover: none) {
  .sto-tooltip__content {
    display: none;
  }
}

/*
 * Custom table
 */
.sto-table {
  display: flex;
  flex-direction: column;
}

.sto-table__row {
  flex-grow: 1;
  width: 100%;
  font-size: 14px;
  display: flex;
}

.sto-table__title {
  background: #f9fafb;
  color: #6d7381;
  font-weight: bold;
  min-width: 150px;
  display: flex;
  align-items: center;
  text-wrap: nowrap;
}
.sto-table__title,
.sto-table__content {
  padding: 15px;
  border: 1px solid #e5e7eb;
  margin-top: -1px;
  margin-left: -1px;
}

.sto-table__content {
  flex-basis: 100%;
}

.sto-table .sto-tooltip__img {
  height: 50px;
  width: 50px;
  object-fit: contain;
}

@media screen and (min-width: 1024px) {
  .sto-table {
    flex-direction: row;
  }
  .sto-table__row {
    display: flex;
    flex-direction: column;
  }
  .sto-table__title,
  .sto-table__content {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
}

.sto-certifications {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 40px;
}

.sto-certifications .sto-tooltip__img {
  max-height: 100px;
}
