.wtw-tly-shortener-wrap {
  width: 100%;
  max-width: 100%;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.14), transparent 28%),
    linear-gradient(180deg, #eff6ff 0%, #fff 58%);
  padding: 12px;
  border-radius: 24px;
}

.wtw-tly-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 28px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 20px 44px rgba(37, 99, 235, 0.08);
  backdrop-filter: blur(10px);
}

.wtw-tly-card-inner {
  padding: 22px 20px 18px;
}

.wtw-tly-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1d4ed8;
}

.wtw-tly-shortener-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.wtw-tly-field {
  margin-bottom: 12px;
}

.wtw-tly-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  color: #1d4ed8;
}

.wtw-tly-input,
.wtw-tly-textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #93c5fd;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03), 0 0 0 0 rgba(0, 0, 0, 0);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.wtw-tly-input {
  min-height: 48px;
  padding: 0 14px;
  font-size: 15px;
}

.wtw-tly-input:focus,
.wtw-tly-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.wtw-tly-actions {
  margin: 10px 0 0;
}

.wtw-tly-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #0b5ed7;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(11, 94, 215, 0.22);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.wtw-tly-button:hover {
  transform: translateY(-1px);
  background: #084298;
  color: #fff;
  box-shadow: 0 12px 24px rgba(8, 66, 152, 0.28);
}

.wtw-tly-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.wtw-tly-message,
.wtw-tly-copy-status,
.wtw-tly-note {
  margin-top: 10px;
  font-size: 14px;
}

.wtw-tly-message.is-error,
.wtw-tly-copy-status.is-error,
.wtw-tly-note {
  color: #b91c1c;
}

.wtw-tly-message.is-success,
.wtw-tly-copy-status.is-success {
  color: #1d4ed8;
}

.wtw-tly-result {
  margin-top: 12px;
}

.wtw-tly-result-row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.wtw-tly-result-row .wtw-tly-short-url {
  flex: 1 1 auto;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 14px;
}

.wtw-tly-result-row .wtw-tly-copy-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #0b5ed7;
  background: #0b5ed7;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.wtw-tly-result-row .wtw-tly-copy-button:hover {
  background: #084298;
  color: #fff;
}

.wtw-tly-admin-wrap .wtw-tly-admin-panel {
  margin-top: 24px;
  padding: 16px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 4px;
}

.wtw-tly-copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.wtw-tly-copy-row .wtw-tly-shortcode-value {
  min-width: 280px;
}

.wtw-tly-admin-wrap .tablenav {
  clear: both;
}

.wtw-tly-settings-form .regular-text {
  width: 100%;
  max-width: 420px;
}

.wtw-tly-shortcode-value {
  max-width: 360px;
}

.wtw-tly-admin-wrap .wtw-tly-copy-status {
  margin-top: 10px;
  font-weight: 600;
}

.wtw-tly-help {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #1d4ed8;
  opacity: 0.82;
}

@media screen and (max-width: 782px) {
  .wtw-tly-card-inner {
    padding: 18px 14px 16px;
  }

  .wtw-tly-field label {
    font-size: 15px;
  }

  .wtw-tly-input {
    min-height: 44px;
    font-size: 15px;
  }

  .wtw-tly-button {
    min-height: 44px;
    font-size: 15px;
    width: 100%;
  }

  .wtw-tly-result-row {
    flex-direction: column;
    align-items: stretch;
  }

  .wtw-tly-result-row .wtw-tly-copy-button {
    width: 100%;
  }

}
