/*
Theme Name: Serapis Divi Child
Theme URI: https://serapis-light.com
Description: Child Theme for Divi
Author: Serapis Light
Author URI: https://serapis-light.com
Template: Divi
Version: 1.0.0
*/

/* Your custom CSS starts here */

/* Tooltip Info boxes */

/* Tooltip Info Boxes */

.sl-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: help;
  z-index: 99999;
}

.sl-tooltip::after {
  content: "?";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 15px;
  height: 15px;
  border-radius: 50%;

  background: #B58B18;
  color: #fff;

  font-size: 10px;
  font-weight: 700;
  line-height: 1;

  transform: translateY(-1px);
}

.sl-tooltip-box {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);

  width: 420px;
  max-width: 90vw;

  background: rgba(20,20,20,0.96);
  color: #fff;

  padding: 18px 20px;
  border-radius: 12px;

  font-size: 15px;
  line-height: 1.6;
  text-align: left;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 999999;

  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.sl-tooltip:hover .sl-tooltip-box,
.sl-tooltip:focus-within .sl-tooltip-box {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sl-tooltip:focus {
  outline: 2px solid #B58B18;
  outline-offset: 4px;
}

/* Only use this on sections/rows that contain tooltips */
.sl-tooltip-section,
.sl-tooltip-section .et_pb_row,
.sl-tooltip-section .et_pb_column,
.sl-tooltip-section .et_pb_module {
  overflow: visible !important;
}

/* SHARE FUNCTIONALITY */
.sl-share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(181, 139, 24, 0.55);
  border-radius: 999px;
  background: rgba(181, 139, 24, 0.08);
  color: #B58B18;
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sl-share-box {
  margin: 24px 0;
  font-family: inherit;
}

.sl-share-button:hover,
.sl-share-button:focus-visible {
  background: rgba(181, 139, 24, 0.16);
  border-color: #B58B18;
  outline: none;
}

.sl-share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sl-share-icon svg {
  width: 20px;
  height: 20px;
}

.sl-share-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sl-share-fallback[hidden] {
  display: none;
}

.sl-share-fallback a,
.sl-share-fallback button {
  padding: 8px 13px;
  border: 1px solid rgba(181, 139, 24, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #B58B18;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sl-share-fallback a:hover,
.sl-share-fallback button:hover,
.sl-share-fallback a:focus-visible,
.sl-share-fallback button:focus-visible {
  background: rgba(181, 139, 24, 0.12);
  border-color: #B58B18;
  outline: none;
}

.sl-dictionary-search-wrap {
  margin: 0 auto 32px;
  max-width: 720px;
}

#sl-dictionary-search {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(181, 139, 24, 0.35);
  border-radius: 12px;
  font-size: 18px;
  line-height: 1.4;
  background: #fff;
  color: #1f1f1f;
}

#sl-dictionary-search:focus {
  outline: none;
  border-color: #B58B18;
  box-shadow: 0 0 0 3px rgba(181, 139, 24, 0.15);
}

.sl-dictionary-hidden {
  display: none !important;
}