.text-center {
  flex-grow: 1;
  text-align: center;
}

.feedback-modal-wrapper * {
  font-family: var(--feedback-font-family);
}

.feedback-modal-wrapper--custom-font * {
  font-family: inherit;

}

.feedback-modal-wrapper {
  position: absolute;
  z-index: var(--feedback-modal-modal-wrapper-z-index);
}

.feedback-overlay {
  background-color: var(--feedback-modal-screenshot-bg-color);
  height: 100%;
  left: 0;
  opacity: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: var(--feedback-modal-screnshot-z-index);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.feedback-overlay--visible {
  opacity: 1;
}

.feedback-modal {
  display: inline-block;
  position: relative;
}

.feedback-modal-content {
  background-color: var(--feedback-modal-content-bg-color);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--feedback-modal-content-border-radius);
  box-shadow: 
    0px 0px 0px 1px rgba(0, 0, 0, 0.02),
    0px 2px 4px rgba(0, 0, 0, 0.04),
    0px 8px 16px rgba(0, 0, 0, 0.06),
    0px 16px 32px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  color: var(--feedback-modal-content-text-color);
  display: flex;
  flex-direction: column;
  left: 50%;
  max-width: 90%;
  padding: 24px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  width: 100%;
  z-index: var(--feedback-modal-content-z-index);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-modal-content--open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.feedback-modal-header {
  color: var(--feedback-modal-header-text-color);
  display: flex;
  font-size: var(--feedback-modal-header-font-size);
  font-weight: var(--feedback-modal-header-font-weight);
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.feedback-modal-header-content {
  flex: 1;
}

.feedback-modal-header-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feedback-modal-title {
  display: block;
}

.feedback-modal-powered-by {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--feedback-color-gray-500);
  line-height: 1.4;
}

.feedback-modal-powered-by a {
  color: var(--feedback-modal-header-text-color);
  text-decoration: none;
  font-weight: 500;
}

.feedback-modal-powered-by a:hover {
  text-decoration: underline;
}

.feedback-modal-header--no-content {
  margin-bottom: 0;
}

.feedback-modal-rating-buttons {
  width: 100%;
  margin-bottom: 24px;
  display: flex;
  gap: 4px;
}

.feedback-modal-rating-button {
  padding: 0;
  background-color: transparent;
  border: transparent;
  margin-right: 8px;
  cursor: pointer;
}

/* Star rating buttons - animations are fine here */
.feedback-modal-rating-buttons--stars .feedback-modal-rating-button {
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.feedback-modal-rating-buttons--stars .feedback-modal-rating-button:hover {
  transform: scale(1.1);
}

.feedback-modal-rating-buttons--thumbs .feedback-modal-rating-button {
  border: 1.5px solid var(--feedback-modal-button-border-color);
  border-radius: var(--feedback-modal-button-border-radius);
  color: var(--feedback-modal-button-text-color);
  font-size: var(--feedback-modal-button-font-size);
  font-weight: 500;
  margin-right: 12px;
  justify-content: center;
  padding: 10px 16px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.feedback-modal-rating-buttons--thumbs .feedback-modal-rating-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.feedback-modal-rating-buttons--thumbs .feedback-modal-rating-button:hover,
.feedback-modal-rating-buttons--thumbs .feedback-modal-rating-button--selected {
  background-color: var(--feedback-modal-button-bg-color-active);
  border: 1.5px solid var(--feedback-modal-button-border-color-active);
  color: var(--feedback-modal-button-text-color-active);
}

.feedback-modal-rating-buttons--thumbs .feedback-modal-rating-button:hover svg,
.feedback-modal-rating-buttons--thumbs .feedback-modal-rating-button--selected svg {
  stroke: var(--feedback-modal-rating-button-selected-color);
}

.feedback-modal-rating-buttons svg {
  stroke: var(--feedback-modal-rating-button-color);
  cursor: pointer;
}

.feedback-modal-rating-buttons--stars .feedback-modal-rating-button--selected svg {
  fill: var(--feedback-modal-rating-button-stars-selected-color);
  stroke: var(--feedback-modal-rating-button-stars-selected-color);
}

.feedback-modal-text textarea {
  background-color: var(--feedback-modal-input-bg-color);
  border: 1.5px solid var(--feedback-modal-input-border-color);
  border-radius: var(--feedback-modal-input-border-radius);
  box-sizing: border-box;
  color: var(--feedback-modal-input-text-color);
  font-size: var(--feedback-modal-input-font-size);
  margin-bottom: 20px;
  height: 100px;
  min-height: 100px;
  padding: 12px;
  resize: vertical;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.5;
}

.feedback-modal-text textarea:hover {
  border-color: var(--feedback-modal-input-border-color-hover);
}


.feedback-modal-email input {
  background-color: var(--feedback-modal-input-bg-color);
  border: 1.5px solid var(--feedback-modal-input-border-color);
  border-radius: var(--feedback-modal-input-border-radius);
  box-sizing: border-box;
  color: var(--feedback-modal-input-text-color);
  font-size: var(--feedback-modal-input-font-size);
  margin-bottom: 20px;
  height: 44px;
  padding: 12px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-modal-email input:hover {
  border-color: var(--feedback-modal-input-border-color-hover);
}

.feedback-modal-text textarea:-webkit-autofill,
.feedback-modal-email input:-webkit-autofill,
.feedback-modal-email input:-webkit-autofill:hover,
.feedback-modal-email input:-webkit-autofill:focus,
.feedback-modal-email input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--feedback-modal-input-bg-color) inset !important;
  -webkit-text-fill-color: var(--feedback-modal-input-text-color) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.feedback-modal-privacy {
  font-size: var(--feedback-modal-input-font-size);
  margin-bottom: 20px;
}


.feedback-modal-text textarea:focus, .feedback-modal-email input:focus {
  border: 1.5px solid var(--feedback-modal-input-border-color-focused);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.feedback-modal-buttons {
  display: flex;
  flex-direction: column;
}

.feedback-modal-buttons .feedback-modal-button {
  margin-bottom: 20px;
}

.feedback-modal-button {
  align-items: center;
  background-color: transparent;
  border: 1.5px solid var(--feedback-modal-button-border-color);
  border-radius: var(--feedback-modal-button-border-radius);
  color: var(--feedback-modal-button-text-color);
  cursor: pointer;
  display: flex;
  font-size: var(--feedback-modal-button-font-size);
  font-weight: 500;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.feedback-modal-button svg {
  margin-right: 6px;
}

.feedback-modal-button path {
  fill: var(--feedback-modal-button-icon-color);
}

.feedback-modal-button:hover path,
.feedback-modal-button--active path  {
  fill: var(--feedback-modal-button-icon-color-active);
}

.feedback-modal-button--submit {
  background-color: var(--feedback-modal-button-submit-bg-color);
  border: 1.5px solid var(--feedback-modal-button-border-color-active);
  color: var(--feedback-modal-button-submit-text-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feedback-modal-button:hover,
.feedback-modal-button--active {
  background-color: var(--feedback-modal-button-bg-color-active);
  border: 1.5px solid var(--feedback-modal-button-border-color-active);
  color: var(--feedback-modal-button-text-color-active);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.feedback-modal-button--submit:hover{
  background-color: var(--feedback-modal-button-submit-bg-color-hover);
  border: 1.5px solid var(--feedback-modal-button-submit-border-color-hover);
  color: var(--feedback-modal-button-submit-text-color-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.feedback-modal-button--submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.feedback-modal-input-heading{
  display: block;
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 12px;
  color: var(--feedback-modal-header-text-color);
  letter-spacing: -0.01em;
}

.feedback-modal-footer {
  font-size: 12px;
  text-align: center;
}

.feedback-modal-footer a {
  color: var(--feedback-modal-footer-link);
  font-weight: 500;
  text-decoration: none;
}

.feedback-logo,
.feedback-footer-text {
  display: block;
  text-align: center;
  margin-top: 5px;
}

.feedback-footer-text {
  margin-top: 10px;
  line-height: 1.5;
}

.feedback-footer-combined {
  display: block;
  text-align: center;
  font-size: 11px;
  color: #666;
  line-height: 1.5;
}

.feedback-footer-combined a {
  color: #666;
  text-decoration: underline;
}

.feedback-recaptcha-notice {
  display: block;
  text-align: center;
  margin-bottom: 10px;
  font-size: 11px;
  color: #666;
  line-height: 1.4;
}

.feedback-recaptcha-notice a {
  color: #666;
  text-decoration: underline;
}

.feedback-modal-close {
  background-color: var(--feedback-modal-close-bg-color);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  height: 32px;
  width: 32px;
  margin-left: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.feedback-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.06);
  transform: scale(1.05);
}

.feedback-modal-close:active {
  transform: scale(0.95);
}

.feedback-modal-close svg {
  stroke: var(--feedback-modal-close-color);
}


.feedback-modal-screenshot {
  background-color: var(--feedback-modal-screenshot-bg-color);
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: var(--feedback-modal-screnshot-z-index);
}

.feedback-modal-screenshot-header {
  align-items: center;
  background-color: var(--feedback-modal-screenshot-header-bg-color);
  border-radius: var(--feedback-modal-content-border-radius);
  box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, .30), 0px 2px 6px 2px rgba(60, 64, 67, .15);
  box-sizing: border-box;
  color: var(--feedback-modal-screenshot-header-text-color);
  cursor: pointer;
  display: flex;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  padding: 10px;
  position: fixed;
  width: max-content; 
  z-index: var(--feedback-modal-screenshot-header-z-index);
}

.feedback-modal-screenshot-close {
  height: 24px;
  padding-left: 10px;
  width: 24px;
}

.feedback-modal-screenshot-close svg {
  stroke: var(--feedback-modal-close-color);
}

.feedback-modal-message {
  font-size: var(--feedback-modal-message-font-size);
  margin: 0;
  line-height: 1.6;
  color: var(--feedback-modal-content-text-color);
}


.feedback-modal-element-hover {
  background-color: transparent;  
  cursor: pointer;
  border: 1px solid var(--feedback-modal-element-hover-border-color); 
}


.feedback-modal-element-selected {
  background-color: transparent;  
  border: 3px solid var(--feedback-modal-element-selected-border-color) !important;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3) !important;
}

.screenshot-preview {
  display: inline-block;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 6px;
  margin-right: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.screenshot-preview:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.screenshot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.screenshot-loading {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}

/* Responsive Design */
@media screen and (min-width: 768px) {
  .feedback-modal-content {
    max-width: var(--feedback-modal-content-max-width);
  }
  
  .feedback-modal-content.feedback-modal-content--bottom-right {
    bottom: var(--feedback-modal-content-position-bottom);
    left: initial;
    right: var(--feedback-modal-content-position-right);
    top: initial;
    transform: initial;
  }

  .feedback-modal-content.feedback-modal-content--bottom-left {
    bottom: var(--feedback-modal-content-position-bottom);
    left: var(--feedback-modal-content-position-left);
    top: initial;
    transform: initial;
  }

  .feedback-modal-content.feedback-modal-content--top-right {
    right: var(--feedback-modal-content-position-right);
    top: var(--feedback-modal-content-position-top);
    transform: initial;
  }

  .feedback-modal-content.feedback-modal-content--top-left {
    left: var(--feedback-modal-content-position-left);
    top: var(--feedback-modal-content-position-top);
    transform: initial;
  } 

  .feedback-modal-content.feedback-modal-content--center-left {
    left: 5px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
  } 

  .feedback-modal-content.feedback-modal-content--center-right {
    left: auto;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
  }

  .feedback-modal-content.feedback-modal-content--sidebar-left.feedback-modal-content--open,
  .feedback-modal-content.feedback-modal-content--sidebar-right.feedback-modal-content--open{
    transform: translateX(0);
  }

  .feedback-modal-content.feedback-modal-content--sidebar-left {
    max-width: var(--feedback-modal-content-sidebar-max-width);
    left: 0;
    right: auto;
    height: 100vh;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.5s ease-in-out; 
    border-radius: 0;
  }

  .feedback-modal-content.feedback-modal-content--sidebar-right {
    max-width: var(--feedback-modal-content-sidebar-max-width);
    left: auto;
    right: 0;
    height: 100vh;
    top: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out; 
    border-radius: 0;
  }

  .feedback-modal-text textarea {
    height: 150px;
    min-height: 150px;
  }

  /* Animations */
  .feedback-modal-content.feedback-modal-content--bottom-right {
    transform: translateY(20px);
  }

  .feedback-modal-content.feedback-modal-content--bottom-right.feedback-modal-content--open {
    transform: translateY(0);
  }

  .feedback-modal-content.feedback-modal-content--bottom-left {
    transform: translateY(20px);
  }

  .feedback-modal-content.feedback-modal-content--bottom-left.feedback-modal-content--open {
    transform: translateY(0);
  }

  .feedback-modal-content.feedback-modal-content--top-right {
    transform: translateY(-20px);
  }

  .feedback-modal-content.feedback-modal-content--top-right.feedback-modal-content--open {
    transform: translateY(0);
  }

  .feedback-modal-content.feedback-modal-content--top-left {
    transform: translateY(-20px);
  }

  .feedback-modal-content.feedback-modal-content--top-left.feedback-modal-content--open {
    transform: translateY(0);
  }
}



/* Feather loader animation */
@keyframes feather-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.feather-loader {
  animation: feather-spin 1s linear infinite;
  display: block;
}

/* Screenshot Error Notification */
.screenshot-error-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  max-width: 500px;
  width: 90%;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.screenshot-error-content {
  background: #fee;
  border: 1.5px solid #fcc;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 
    0 0 0 1px rgba(197, 48, 48, 0.05),
    0 4px 6px rgba(0, 0, 0, 0.07),
    0 10px 20px rgba(0, 0, 0, 0.1);
  color: #c53030;
}

.screenshot-error-content svg:first-child {
  color: #e53e3e;
  flex-shrink: 0;
}

.screenshot-error-content span {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.error-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  color: #c53030;
  flex-shrink: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-close-btn:hover {
  background: rgba(197, 48, 48, 0.15);
  transform: scale(1.1);
}

.error-close-btn:active {
  transform: scale(0.95);
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  .feedback-modal-content {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: scale(0.95);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
  }
  
  .feedback-modal-content--open {
    transform: scale(1);
  }
  
  /* Hide screenshot button on mobile */
  .feedback-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .feedback-modal-button--screenshot {
    display: none !important;
  }
  
  /* Make submit button full width */
  .feedback-modal-button--submit {
    width: 100%;
  }
  
  /* Adjust text area for mobile */
  .feedback-modal-text textarea {
    flex: 1;
    min-height: 120px;
    resize: none;
  }
}

/* Embedded mode styles */
.feedback-modal-wrapper--embedded {
  position: relative;
  z-index: auto;
  display: block;
  width: 100%;
}

.feedback-modal-content--embedded {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  opacity: 1 !important;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.feedback-modal-content--embedded.feedback-modal-content--open {
  transform: none !important;
}

@media screen and (max-width: 768px) {
  .feedback-modal-content--embedded {
    width: 100%;
    height: auto;
    border-radius: var(--feedback-modal-content-border-radius);
    padding: 24px;
  }

  /* Show screenshot button in embedded mode on mobile */
  .feedback-modal-content--embedded .feedback-modal-button--screenshot {
    display: flex !important;
  }
}


