.sm-feedback-launcher {
  position: fixed;
  z-index: 99980;
  border: 0;
  background: var(--sm-feedback-primary, #0f766e);
  color: var(--sm-feedback-on-primary, #fff);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-family: var(--sm-font-body, Arial, Helvetica, sans-serif);
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}
.sm-feedback-launcher:hover {
  background: var(--sm-feedback-primary-hover, var(--sm-feedback-primary, #0f766e));
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
.sm-feedback-launcher:focus {
  outline: 3px solid var(--sm-feedback-focus, rgba(15, 118, 110, 0.25));
  outline-offset: 3px;
}
.sm-feedback-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  line-height: 0;
}
.sm-feedback-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}
.sm-feedback-launcher--circle {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  font-size: 0;
}
.sm-feedback-launcher--circle .sm-feedback-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sm-feedback-launcher--circle .sm-feedback-icon svg {
  width: 31px;
  height: 31px;
}
.sm-feedback-launcher--button {
  min-width: 126px;
  height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 15px;
}
.sm-feedback-launcher--tab {
  height: 44px;
  min-width: 126px;
  border-radius: 10px 10px 0 0;
  padding: 0 16px;
  font-size: 15px;
}
.sm-feedback-position-bottom_right {
  right: 24px;
  bottom: 24px;
}
.sm-feedback-position-bottom_left {
  left: 24px;
  bottom: 24px;
}
.sm-feedback-position-middle_right {
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: 100% 100%;
}
.sm-feedback-position-middle_left {
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: 0 100%;
}
.sm-feedback-position-top_right {
  right: 24px;
  top: 24px;
}
.sm-feedback-position-top_left {
  left: 24px;
  top: 24px;
}
.sm-feedback-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.46);
  z-index: 99990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.sm-feedback-overlay.is-open {
  display: flex;
}
.sm-feedback-dialog {
  width: min(520px, 100%);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.32);
  font-family: var(--sm-font-body, Arial, Helvetica, sans-serif);
  color: #1f2937;
  overflow: hidden;
}
.sm-feedback-head {
  padding: 22px 24px 12px;
  position: relative;
}
.sm-feedback-title {
  margin: 0 40px 8px 0;
  font-size: 22px;
  line-height: 1.25;
}
.sm-feedback-intro {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}
.sm-feedback-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 24px;
  line-height: 36px;
  cursor: pointer;
}
.sm-feedback-body {
  padding: 0 24px 24px;
}
.sm-feedback-field {
  margin-top: 14px;
}
.sm-feedback-field label {
  display: block;
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 13px;
}
.sm-feedback-field select,
.sm-feedback-field input,
.sm-feedback-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  background: #fff;
  color: #111827;
}
.sm-feedback-field textarea {
  min-height: 118px;
  resize: vertical;
}
.sm-feedback-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sm-feedback-stars {
  display: flex;
  gap: 6px;
}
.sm-feedback-star {
  border: 0;
  background: #e5e7eb;
  color: #374151;
  border-radius: 10px;
  width: 42px;
  height: 38px;
  font-size: 20px;
  cursor: pointer;
}
.sm-feedback-star.is-active {
  background: var(--sm-feedback-primary, #0f766e);
  color: var(--sm-feedback-on-primary, #fff);
}
.sm-feedback-privacy {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.4;
  color: #4b5563;
}
.sm-feedback-privacy input {
  margin-top: 2px;
}
.sm-feedback-dialog .checkoutconditions {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.4;
  color: #4b5563;
}
.sm-feedback-dialog .checkoutconditions .cus_check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.sm-feedback-dialog .checkoutconditions input[type="checkbox"] {
  width: auto;
  margin: 2px 0 0;
}
.sm-feedback-dialog .checkoutconditions label {
  font-weight: 400;
  margin: 0;
}
.sm-feedback-dialog .checkoutconditions strong {
  color: #374151;
}
.sm-feedback-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.sm-feedback-submit {
  border: 0;
  border-radius: 999px;
  background: var(--sm-feedback-primary, #0f766e);
  color: var(--sm-feedback-on-primary, #fff);
  font-weight: 700;
  padding: 12px 19px;
  cursor: pointer;
}
.sm-feedback-submit:hover {
  background: var(--sm-feedback-primary-hover, var(--sm-feedback-primary, #0f766e));
}
.sm-feedback-status {
  font-size: 13px;
  color: #4b5563;
}
.sm-feedback-status.is-error {
  color: #b91c1c;
}
.sm-feedback-status.is-success {
  color: #166534;
}
.sm-feedback-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}
.sm-feedback-order-prompt {
  margin: 22px auto;
  padding: 18px 20px;
  border: 1px solid #d1fae5;
  background: #ecfdf5;
  border-radius: 16px;
  max-width: 980px;
  font-family: var(--sm-font-body, Arial, Helvetica, sans-serif);
  color: #064e3b;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.sm-feedback-order-prompt strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}
.sm-feedback-order-prompt p {
  margin: 0 0 12px;
  color: #065f46;
}
.sm-feedback-order-prompt button {
  border: 0;
  border-radius: 999px;
  background: var(--sm-feedback-primary, #0f766e);
  color: var(--sm-feedback-on-primary, #fff);
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
}
.sm-feedback-order-prompt button:hover {
  background: var(--sm-feedback-primary-hover, var(--sm-feedback-primary, #0f766e));
}
@media (max-width: 640px) {
  .sm-feedback-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(88px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
  }
  .sm-feedback-launcher--circle {
    width: 56px;
    height: 56px;
  }
  .sm-feedback-launcher--circle .sm-feedback-icon svg {
    width: 28px;
    height: 28px;
  }
  .sm-feedback-position-bottom_right {
    right: 16px;
    bottom: 16px;
  }
  .sm-feedback-position-bottom_left {
    left: 16px;
    bottom: 16px;
  }
  .sm-feedback-row {
    grid-template-columns: 1fr;
  }
  .sm-feedback-stars {
    gap: 4px;
  }
  .sm-feedback-star {
    flex: 1 1 0;
    min-width: 0;
  }
  .sm-feedback-dialog {
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
  .sm-feedback-head {
    flex: 0 0 auto;
    padding: 19px 18px 10px;
  }
  .sm-feedback-body {
    overflow-y: auto;
    padding: 0 18px 18px;
    -webkit-overflow-scrolling: touch;
  }
  .sm-feedback-title {
    font-size: 20px;
  }
  .sm-feedback-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  .sm-feedback-submit {
    min-height: 44px;
    width: 100%;
  }
  .sm-feedback-status {
    min-height: 18px;
  }
}
@media (max-width: 420px) {
  .sm-feedback-field textarea {
    min-height: 96px;
  }
}
