.mtfp-form {
  width: 100%;
  margin: 0;
}

.mtfp-widget {
  --mtfp-accent: #a86632;
  --mtfp-dark: #171717;
  --mtfp-muted: #6b6b6b;
  --mtfp-line: #e7e1da;
  box-sizing: border-box;
  width: 100%;
  max-width: 680px;
  padding: 28px;
  border: 1px solid var(--mtfp-line);
  border-radius: 20px;
  background: #fff;
  color: var(--mtfp-dark);
  box-shadow: 0 18px 50px rgba(0,0,0,.07);
}

.mtfp-widget *, .mtfp-widget *::before, .mtfp-widget *::after {
  box-sizing: border-box;
}

.mtfp-product-name {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mtfp-accent);
}

.mtfp-title {
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.02em;
}

.mtfp-subtitle {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--mtfp-muted);
}

.mtfp-price-display {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  margin: 30px 0 24px;
  font-weight: 800;
  line-height: 1;
}

.mtfp-currency {
  padding-top: 9px;
  font-size: 22px;
  color: var(--mtfp-accent);
}

.mtfp-current {
  font-size: clamp(52px, 12vw, 78px);
  letter-spacing: -.055em;
}

.mtfp-range-wrap {
  margin-top: 8px;
}

.mtfp-range {
  --mtfp-progress: 50%;
  width: 100%;
  height: 8px;
  margin: 10px 0 8px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(to right, var(--mtfp-accent) 0%, var(--mtfp-accent) var(--mtfp-progress), #e9e9e9 var(--mtfp-progress), #e9e9e9 100%);
  cursor: pointer;
}

.mtfp-range::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  appearance: none;
  -webkit-appearance: none;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--mtfp-accent);
  box-shadow: 0 2px 10px rgba(0,0,0,.24);
}

.mtfp-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--mtfp-accent);
  box-shadow: 0 2px 10px rgba(0,0,0,.24);
}

.mtfp-range-labels {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mtfp-muted);
}

.mtfp-range-labels .woocommerce-Price-amount,
.mtfp-preset .woocommerce-Price-amount,
.mtfp-submit .woocommerce-Price-amount {
  color: inherit;
}

.mtfp-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.mtfp-preset {
  min-height: 44px;
  padding: 8px 6px;
  border: 1px solid var(--mtfp-line);
  border-radius: 12px;
  background: #fff;
  color: var(--mtfp-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}

.mtfp-preset:hover {
  border-color: var(--mtfp-accent);
  transform: translateY(-1px);
}

.mtfp-preset.is-active {
  border-color: var(--mtfp-accent);
  background: var(--mtfp-accent);
  color: #fff;
}

.mtfp-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  margin-top: 24px;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--mtfp-dark);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

.mtfp-stock {
  --mtfp-stock: #2f7d4a;
  --mtfp-low-stock: #c4492d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--mtfp-stock);
  font-size: 14px;
  font-weight: 800;
}

.mtfp-stock.is-low,
.mtfp-stock.is-out {
  color: var(--mtfp-low-stock);
}

.mtfp-stock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: mtfp-stock-pulse 1.8s infinite;
}

.mtfp-stock.is-out .mtfp-stock-dot {
  animation: none;
}

.mtfp-submit:disabled {
  cursor: not-allowed;
  opacity: .52;
  transform: none;
}

@keyframes mtfp-stock-pulse {
  0% { box-shadow: 0 0 0 0 currentColor; }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.mtfp-submit:hover {
  opacity: .92;
  transform: translateY(-1px);
}

.mtfp-submit-price::before {
  content: '•';
  margin-right: 10px;
  opacity: .55;
}

.mtfp-security-note {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--mtfp-muted);
}

.single-product .mtfp-widget {
  margin: 18px 0 22px;
  padding: 20px;
  box-shadow: none;
}

@media (max-width: 600px) {
  .mtfp-widget {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .mtfp-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mtfp-price-display {
    margin-top: 24px;
  }
}

.mtfp-editor-message {
  padding: 14px 16px;
  border: 1px dashed #c9c9c9;
  border-radius: 10px;
  background: #fafafa;
  font-size: 13px;
  line-height: 1.5;
}

.elementor-widget-mytensor_flexible_price .mtfp-form,
.elementor-widget-mytensor_flexible_price .mtfp-widget {
  margin-left: auto;
  margin-right: auto;
}
