.afontify-toast {
  position: fixed;
  width: 400px;
  width: fit-content;
  bottom: 80px;
  right: 30px;
  border-radius: 10px;
  background: #fff;
  padding: 10px 20px 10px 20px;
  border: 3px solid #4070f4;
  overflow: hidden;
  transform: translateX(calc(100% + 30px));
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
  z-index: 100000000000000000;
  display: flex;
}
.afontify-toast.active {
  transform: translateX(0);
}
.afontify-toast .toast-content {
  display: flex;
  align-items: center;
  justify-content: center;
}
.afontify-toast .toast-content .afontify-message {
  display: flex;
  flex-direction: column;
  z-index: 100000000000000000;
}
.afontify-toast .afontify-message .afontify-text {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

/* Element selector panel */
.afontify-panel,
.afontify-panel *,
.afontify-panel *::before,
.afontify-panel *::after {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  line-height: 1.4 !important;
}

.afontify-panel {
  width: 100%;
  background-color: #ffffff;
  padding: 10px 20px;
  margin: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  border: 2px solid #4070f4;
  border-left: none;
  border-right: none;
  flex-shrink: 0;
}

.afontify-panel {
  margin-bottom: 20px;
}

.afontify-panel__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  width: 100%;
}

.afontify-panel__text {
  font-size: 13px !important;
  font-weight: 500 !important;
}

.afontify-panel--mobile .afontify-panel__controls {
  flex-wrap: wrap;
  gap: 10px;
}
.afontify-panel__source {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 10px;
}
.afontify-panel--mobile .afontify-panel__source {
  width: 100%;
  flex-basis: 100%;
}
.afontify-panel--mobile #afontify-font-select,
.afontify-panel--mobile .afontify-panel__source select {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

.afontify-panel__exit,
.afontify-panel__try-all {
  background-color: rgb(0, 128, 96);
  border: none;
  padding: 0 20px;
  border-radius: 3px;
  cursor: pointer;
  transition: 0.3s all;
  color: #ffffff;
  height: 38px;
  display: inline-flex;
  align-items: center;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: nowrap;
}

.afontify-panel__try-all {
  background-color: #5c6ac4;
}

.afontify-panel__try-all:hover {
  background-color: #4959bd;
}

.afontify-panel--mobile .afontify-panel__exit,
.afontify-panel--mobile .afontify-panel__try-all {
  margin-top: 0;
}

/* Font dropdowns — match height/spacing with panel buttons (38px) */
#afontify-font-select,
#afontify-font-source {
  padding: 6px 28px 6px 10px;
  height: 38px;
  font-size: 13px !important;
  font-weight: 500 !important;
  max-width: 215px;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #c9c9c9;
  border-radius: 3px;
  background-color: #fff;
  color: #202223;
  cursor: pointer;
  line-height: 1.25 !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c5f62' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#afontify-font-select:hover,
#afontify-font-source:hover {
  border-color: #8c9196;
}

#afontify-font-select:focus,
#afontify-font-source:focus {
  outline: none;
  border-color: #4070f4;
  box-shadow: 0 0 0 1px #4070f4;
}

#afontify-font-select option,
#afontify-font-source option {
  font-weight: 500;
  color: #202223;
}

.anyfont-button-atc {
  opacity: 0;
  padding: 10px 15px;
  background: #ededed;
  color: #000;
  cursor: pointer;
  position: absolute;
  z-index: 999;
  border: 1px solid #c9c9c9 !important;
  outline: none !important;
  width: 100px;
  text-align: center;
}

#insertButton,
#insertButtonRemove {
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  top: var(--insertTop);
  transform: translateY(-45px);
}

#insertButton {
  left: var(--insertLeft);
}

#insertButtonRemove {
  left: var(--insertLeft);
}

#insertButtonTry,
#insertButtonCopy {
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  top: var(--insertBottom);
  transform: translateY(-45px);
}

#insertButtonTry {
  left: var(--insertTryLeft);
}

#insertButtonCopy {
  left: var(--insertLeft);
}

#insertButton:hover,
#insertButtonTry:hover,
#insertButtonRemove:hover,
#insertButtonCopy:hover {
  background: red;
  color: #ffffff;
  transition: 0.1s all;
  transform: translateY(0);
}

#insertShape {
  transition: 0.1s all;
  box-shadow: 0 0 1px 2px rgb(186, 191, 195);
  width: var(--widthShape);
  height: var(--heightShape);
  pointer-events: none;
  position: absolute;
  z-index: 999;
  top: var(--topShape);
  left: var(--leftShape);
}
