:root {
    --fw-bg: #ffffff;
    --fw-accent: #528b8b;
    --fw-text: #0d1117;
    --fw-border: rgba(13, 17, 23, 0.08);
    --fw-shadow: 0 6px 18px rgba(3, 10, 20, 0.12);
    --fw-radius: 10px;
    --fw-z: 9999;
    --fw-width: 300px;
    --fw-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.fw-fixed {
    position: fixed;
    z-index: var(--fw-z);
    left: 20px; /* move to left side */
    bottom: 20px;
    right: auto; /* override right positioning */
    font-family: var(--fw-font);
}

.fw-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--fw-accent);
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--fw-shadow);
    cursor: pointer;
    margin: 0 auto 12px;
}

/* Tooltip styling for fw-toggle (improved) / not yet responsive (have a solution for that) toggling off for now */
/*.fw-toggle {
  position: relative;
}

.fw-toggle::after {
  content: attr(title);
  position: absolute;
  bottom: 130%; /\* lift it further above the button *\/
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/\* Small arrow below the tooltip *\/
.fw-toggle::before {
  content: "";
  position: absolute;
  bottom: 118%; /\* just below the tooltip box *\/
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fw-toggle:hover::after,
.fw-toggle:hover::before {
  opacity: 1;
}*/


.fw-panel {
    width: var(--fw-width);
    max-width: calc(100vw - 40px);
    background: var(--fw-bg);
    border-radius: var(--fw-radius);
    box-shadow: var(--fw-shadow);
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--fw-border);
    font-size: 14px;
    color: var(--fw-text);
    z-index: 9999;
}

.fw-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--fw-border);
    background: transparent;
    cursor: pointer;
}

.fw-btn.primary {
    background: var(--fw-accent);
    color: white;
    border: none;
}

.fw-textarea {
    width: 100%;
    min-height: 60px;
    border-radius: 8px;
    border: 1px solid var(--fw-border);
    padding: 8px;
    font-size: 13px;
    resize: vertical;
}

.fw-textarea:focus {
  border-color: #528b8b !important; /* Border color when the textarea has focus */
  outline: none; /* Removes the default outline that some browsers add on focus */
}

.fw-name {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--fw-border);
    padding: 8px;
    font-size: 13px;
    resize: vertical;
    margin: 0 0 5px 0;
}

.fw-name:focus {
  border-color: #528b8b !important; /* Border color when the textarea has focus */
  outline: none; /* Removes the default outline that some browsers add on focus */
}

.fw-email {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--fw-border);
    padding: 8px;
    font-size: 13px;
    resize: vertical;
    margin: 0;
}

.fw-email:focus {
  border-color: #528b8b !important; /* Border color when the textarea has focus */
  outline: none; /* Removes the default outline that some browsers add on focus */
}

.fa-thumbs-up {
    color: #528b8b; /* green */
}

.fa-thumbs-down {
    color: #8b5252; /* red */
}

span.click-to-send {
    position: relative; /* Needed for positioning the tooltip */
}

span.click-to-send:hover::after {
    content: attr(data-title); /* Get content from data-title attribute */
    position: absolute;
    /* Customize styling and positioning */
    background-color: black;
    color: white;
    font-size: 11px; /* smaller text */
    padding: 4px 6px; /* smaller box padding */
    border-radius: 4px; /* smaller corners */
    white-space: nowrap; /* Prevent line breaks */
    z-index: 100; /* Ensure it appears above other elements */
    /* Adjust position relative to the element */
    top: 100%;
    left: 0;
}

/* Selected button states */
.fw-btn-selected-yes {
    background-color: #528b8b !important;
    color: #ffffff !important;
    border-color: #528b8b !important;
}

.fw-btn-selected-yes .fa-thumbs-up {
    color: #ffffff !important;
}

.fw-btn-selected-no {
    background-color: #8b5252 !important;
    color: #ffffff !important;
    border-color: #8b5252 !important;
}

.fw-btn-selected-no .fa-thumbs-down {
    color: #ffffff !important;
}

/* Smooth transition for button state changes */
.fw-btn {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fw-btn .fa-thumbs-up,
.fw-btn .fa-thumbs-down {
    transition: color 0.2s ease;
}